How can I set up a variable TL, when time<=1 is 0, else is 1. I can run the example in the Dymola with "TL=0+(if time<1 then 0 else 1);", but in the JModelica.org , there is an Exception: The collocation optimization algorithm does not support models with events. Please consider using the noEvent() operator or rewriting the model.
I don`t know how to deal with this problem.
I need your help.
- FMI Library
- Log in