SimulateDynamics function

Simulation of generalized dynamical system model.