sim.c converges properly now