Simulation.m
  Changed placement of autoreleasepool blocks to better manage application memory footprint.