Simulation of partitioned dynamical systems