Opened 15 years ago

Last modified 7 years ago

#1228 closed defect

Backend fails on when equations — at Version 2

Reported by: Martin Sjölund Owned by: Willi Braun
Priority: normal Milestone:
Component: Backend Version: 1.6.0
Keywords: Cc: Lennart Ochel

Description (last modified by Martin Sjölund)

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

Change History (2)

comment:1 by Martin Sjölund, 10 years ago

Cc: Lennart Ochel added; Martin Sjölund Jens Frenkel removed
Component: Simulation Code GenerationBackend
Milestone: 1.9.1
Owner: changed from Martin Sjölund to Willi Braun
Status: acceptedassigned

comment:2 by Martin Sjölund, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.