Added parsing simulation output to extract state and energy changes.