def METHOD_NAME(sim, run_idx):
    self.assertEqual(run_idx, METHOD_NAME.c)
    METHOD_NAME.c += 1
    METHOD_NAME.results.append(sim)
    self.assertAlmostEqual(sim.result.get_time(0), t0)
    self.assertAlmostEqual(sim.result.get_last_time(), tmax)