// this is the output
System.err.println(step + "\t" + num.getValue());
// now check events
for (long j = 0; j < m.getListOfEvents().size(); j++) {
Event eve = m.getListOfEvents().get(j);
Trigger trig = eve.getTrigger();
// check triggers which we know are just time dependent
ASTNode root3 = convertSBMLMathToJavaMath(trig.getMath());
EvaluationContext e2 = new EvaluationContext();
e2.setValueFor("t", step);
// if triggered
if (root3.evaluate(e2).isTruth()) {
// now do assignments
for (long k = 0; k < eve.getNumEventAssignments(); k++) {
EventAssignment ea = eve.getEventAssignment(k);
String var = ea.getVariable();
ASTNode rootAssign =convertSBMLMathToJavaMath(ea.getMath());
// evaluate assignment statements
EvaluationContext ec3 = new EvaluationContext();
for (ASTCi s : rootAssign.getIdentifiers()) {