[Thank you Florian,
I have tested "der(x)=if (x < 2) then 0.3 else 0;" and i hadn't an error message..
I have many problems using OpenModelica..(No checking for equations, explicit error message, no warnings..)
I have many models (state1.mo, state2.mo, connector1.mo, connector2.mo and hybrid.mo which connects the other models). I did a package and i include all these model under this package ( i named it test.mo).
So my tet.mo is like this:
CODE
Package test
model state1
...
...
end state1;
model state2
...
...
end state2;
...
etc
...
model hybrid
... // here i instantiate state1 and state2... and i connect them.
...
end hybrid,
end test;
I load the package under OMShell and simulate it.
CODE
simulate(test, startTime=0, stopTime=10)
No errors! I want to plot the variables, but i haven't found them!! the variables are in state1 and state2 model.
Is it the good way to simulate many models under OpenModelica? Under Dymola, i didn't a package, i simulated only the hybrid model in which i instantiated and connected the other models.
Hope you can help me..
Best Regard,
Jawhar.