aggregateSimulation function

Aggregates the output of simulatePopulation.