Real-time emulation and simulation of production systems