Simulation of systems with feedback loops