CPS Modeling and Simulation