Opened 15 years ago
Last modified 7 years ago
#1228 closed defect
Backend fails on when equations — at Initial Version
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Backend | Version: | 1.6.0 |
Keywords: | Cc: | Lennart Ochel |
Description
Backend fails to generate residuals for the following Modelica code:
{{{model WhenValidResult
Real x,y;
equation
x + y = 5;
when sample(0,2) then
y = 7 - 2*x;
end when;
end WhenValidResult;}}}
Note: Changing the problem slightly does change the error messages from the backend.
x = y-5 removes "findDiscreteEquation failed, searching for $x" for example.
From forums: http://www.openmodelica.org/index.php/forum/topic?id=64&p=1#p284
Note:
See TracTickets
for help on using tickets.