Opened 7 years ago

Closed 7 years ago

#4855 closed defect (fixed)

Inverse algorithms with discrete variables are failing

Reported by: Willi Braun Owned by: Willi Braun
Priority: high Milestone: 1.13.0
Component: Backend Version:
Keywords: Cc: Adrian Pop

Description

Following example fails with segmentation fault:

model InverseAlgorithm4
  Real x;
  Real w;
  Integer y,z;
equation 
  der(x) = y;
  when sample(0,0.1) then
    w = x+sin(time);
    y = integer(sin(x)*w)*10;
    z = integer(y);
  end when;
initial algorithm 
  y := integer(w);
  z := integer(y);
end InverseAlgorithm4;

This is issue was observed in bigger models.

Change History (1)

comment:1 by Willi Braun, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in PR2336.

Note: See TracTickets for help on using tickets.