Opened 11 years ago

Closed 11 years ago

#2189 closed defect (fixed)

Index reduction broken?

Reported by: choeger Owned by: wbraun
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 Changed 11 years ago by jfrenkel

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 Changed 11 years ago by choeger

But could you reproduce the issue?

comment:3 Changed 11 years ago by wbraun

  • Component changed from Frontend to Backend
  • Owner changed from somebody to wbraun
  • Status changed from new to accepted

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

Last edited 11 years ago by wbraun (previous) (diff)

comment:4 Changed 11 years ago by wbraun

fixed in 16071.

comment:5 Changed 11 years ago by wbraun

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.