events function

Extract the events from a SimInf_model object