Pendulum emulation program. Uses ODE solver for emulation process