WorkingMemorySimulationRepository wmRepo = (WorkingMemorySimulationRepository) repo;
// start evaluating all the simulation events generated
// wmRepo.fireAllRules();
List<SimulationEvent> allEvents = new ArrayList<SimulationEvent>(wmRepo.getEvents());
wmRepo.getSession().execute(new InsertElementsCommand((Collection)wmRepo.getAggregatedEvents()));
wmRepo.fireAllRules();
List<AggregatedSimulationEvent> aggEvents = (List<AggregatedSimulationEvent>) wmRepo.getGlobal("summary");
SimulationInfo simInfo = wmRepo.getSimulationInfo(); // TODO add siminfo to json
wmRepo.close();
Map<String, Double> numInstanceData = new HashMap<String, Double>();