Opened 9 years ago

Last modified 7 years ago

#3926 accepted defect

Parameter calculation with numerical Jacobian leads to wrong results

Reported by: Patrick Täuber Owned by: Willi Braun
Priority: normal Milestone: Future
Component: Backend Version:
Keywords: Cc: Francesco Casella, Lennart Ochel

Description (last modified by Martin Sjölund)

The non-fixed parameters of the following model are calculated to 0 if calculateStrongComponentJacobians is skipped for initialization, which is obviously wrong:

model foo
  final parameter Real p1 = 1;
  final parameter Real p2 = 2;
  final parameter Real p3 = 3;
  final parameter Real p4 = 4;
  parameter Real q1 (fixed=false);
  parameter Real q2 (fixed=false);
initial equation
  -p1 = 3 * (p3 * q1 + p4 * q2);
  -p2 = 3 * (q1 * p4 - p3 * q2);
end foo;

A testing script is attached.

Attachments (1)

calculateParametersBug.mos (1.5 KB ) - added by Patrick Täuber 9 years ago.

Download all attachments as: .zip

Change History (6)

by Patrick Täuber, 9 years ago

Attachment: calculateParametersBug.mos added

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

Description: modified (diff)

comment:2 by Willi Braun, 9 years ago

Component: Run-timeBackend
Milestone: Future1.10.0
Priority: highnormal
Status: newaccepted

So the problem is that we have currently no means to handle torn linear system numerically, so the module calculateStrongComponentJacobians is mandatory for them.
So I added a translation error for this case.

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

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

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

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:5 by Francesco Casella, 7 years ago

Milestone: 1.12.0Future

The milestone of this ticket has been reassigned to "Future".

If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.

If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".

In both cases, a short informative comment would be welcome.

Note: See TracTickets for help on using tickets.