A simulator for dynamic systems (such as closed-loop control systems)