Opened 11 years ago

Closed 9 years ago

Last modified 9 years ago

#2337 closed defect (fixed)

When equations get not solved for lhs

Reported by: Vitalij Ruge Owned by: Lennart Ochel
Priority: normal Milestone: 1.9.4
Component: Backend Version: trunk
Keywords: when, residual Cc: Lennart Ochel, Willi Braun

Description

We can simulate singularity systems like:

model whenBug
 Real x(start = 2, fixed = true);
 Real y(start = 1, fixed = true);

equation
 when(sample(0,0.1)) then
   x = 2;
   y = x + y; // singularity loop
 end when;

end whenBug;

the linear singularity equation y = x + y is in the C-Code an algorithm y:= x + y!

Change History (10)

comment:1 by Lennart Ochel, 11 years ago

Owner: changed from probably noone to Lennart Ochel
Status: newassigned

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

Milestone: 1.9.01.9.1

Postponed until 1.9.1

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

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

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

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:6 by Lennart Ochel, 9 years ago

Status: assignedaccepted

comment:7 by Lennart Ochel, 9 years ago

Summary: missig nonlinear system in when equationWhen equations get not solved for lhs

comment:8 by Lennart Ochel, 9 years ago

Resolution: fixed
Status: acceptedclosed

We catch those models now. If it is possible to solve for lhs, then the translation will continue with the transformed equation. Otherwise the translation will abort.

Fixed in ef8b4ae.
Test added in cf476661.

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

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

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.