Simulation of program locally before remote operation