Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#3325 closed defect (fixed)

Symbolic Jacobian is not generated for systems with one state

Reported by: Lennart Ochel Owned by: Lennart Ochel
Priority: critical Milestone: 1.9.4
Component: Backend Version: trunk
Keywords: Cc:

Description

Just a simple example:

model foo
  Real x1(start=1.0, fixed=true);
equation
  der(x1) = 0;
end foo;

The LOG_SOLVER dump indicates that there is something wrong with the generated symbolic jacobian:

LOG_SOLVER        | info    | sparse structure of jacobian A [size: 0x0]

In fact, there is no symbolic Jacobian generated. But if the model get extended by a second state, then the Jacobian is generated as expected:

model foo
  Real x1(start=1.0, fixed=true);
  Real x2(start=1.0, fixed=true);
equation
  der(x1) = 0;
  der(x2) = 0;
end foo;
LOG_SOLVER        | info    | sparse structure of jacobian A [size: 2x2]
|                 | |       | | 0 nonzero elements
|                 | |       | | transposed sparse structure (rows: states)
|                 | |       | | |
|                 | |       | | |

Change History (4)

comment:1 by Lennart Ochel, 10 years ago

Owner: changed from somebody to Lennart Ochel
Status: newassigned

comment:2 by Lennart Ochel, 10 years ago

Resolution: fixed
Status: assignedclosed

fixed with bf6ce68/OMCompiler

comment:3 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

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

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.