Reverted sim.c and created new sim_convergence.c for convergence testing