Opened 12 years ago

Closed 12 years ago

#2189 closed defect (fixed)

Index reduction broken?

Reported by: Christoph Höger Owned by: Willi Braun
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: Cc:

Description

model T1
  Real x, y;
  equation
  der(y) = der(x);
  x = time - y;
end T1;

The above model results in der(y) = 0 for me. This seems like an odd error of index reduction.

Change History (5)

comment:1 by Jens Frenkel, 12 years ago

Index reduction cannot be the problem

Final System with DummyStates
========================================

Variables (3)
========================================
1: y:STATE(1)() .T1, .Real type: Real
2: x:DUMMY_STATE() .T1, .Real type: Real
3: $DER.x:DUMMY_DER(fixed = false ) .T1, .Real type: Real

Equations (3, 3)
========================================
1/1 (1): der(y) = $DER.x
2/2 (1): $DER.x = 1.0 - der(y)
3/3 (1): x = time - y

comment:2 by Christoph Höger, 12 years ago

But could you reproduce the issue?

comment:3 by Willi Braun, 12 years ago

Component: FrontendBackend
Owner: changed from somebody to Willi Braun
Status: newaccepted

It's a bug in module "constantLinearSystem", which evaluates y as constant instead of der(y).

Last edited 12 years ago by Willi Braun (previous) (diff)

comment:4 by Willi Braun, 12 years ago

fixed in 16071.

comment:5 by Willi Braun, 12 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.