Open gkurzbach opened 2 months ago
It seems that it is allowed by the specification (there is even one example of it) , but that:
The when-equations are even designed to make it clear how such cases are handled. That's why you cannot write:
x = time - y;
when time>0.5 then
y + x/2 = 0;
end when;
because it wouldn't make it clear which variables are updated as part of the when and which ones aren't.
I believe the impure part can be handled in #3499 - The remaining part is thus just to state that there is nothing special with when-clauses and they can be part of systems of equations.
For what it's worth, System Modeler also builds and simulates this without any complaint.
Dymola 2024x Refresh 1 also builds and simulates this without any complaint.
I thus believe it was just a tool-issue, but it might be that the specification should be clearer.
Language group: Agreement
Is it allowed for when equations to be part of an algebraic loop? Following model leads to an error in Dymola but not in OMEdit:
I have not found any statement to this regard in the specification. Please clarify.