A simulation tool for modelling and optimization of a job-shop production system