Get an occurred event.
eventInfo = fmiEventUpdate(instance, intermediateResults)
tlist, an instance of a model.
boolean, intermediateResults = %t or %f.
mlist, an information about an event. For more details see fmiInitialize.
fmiEventUpdate is the function that is called after time, state or step event occurred. This function returns with
eventInfo (for details see function fmiInitialize).
If intermediateResults = false, the function returns once new consistent state has been found and the integration can be restarted.
If the argument is true, then the function returns for every event iteration that is performed internally,
in order to allow to get result variables after every iteration with the fmiGetXXX functions above.
The function has to be called successively then until eventInfo->iterationConverged = true and has
to return the final status of eventInfo->stateValueReferencesChanged and of
eventInfo->stateValuesChanged.