Simulation of production systems