Opened 12 years ago

Closed 7 years ago

#1990 closed defect (worksforme)

Symbolic Jacobian fails for functions

Reported by: Christian Schubert Owned by: Willi Braun
Priority: normal Milestone: 1.13.0
Component: Backend Version: trunk
Keywords: symbolic jacobian functions Cc: Jens Frenkel

Description

I tried the new Symbolic Jacobian feature on a msl32 model that previously failed with a nonlinear solver error.

Hoowever, if I run:

omc Modelica.Fluid.Examples.Tanks.TanksWithOverflow.mos +d=NLSanalyticJacobian

I get a long list of errors which in essence reads:

Error: Interner Fehler BackendDAEOptimize.derive failed: lowerTank.portDensities[1] = Modelica.Fluid.Vessels.OpenTank__OMC__36.Medium.density(Modelica.Fluid.Vessels.OpenTank__OMC__36.Medium.setState_phX(lowerTank.vessel_ps_static[1], if (-upperTank.ports[2].m_flow) > 0.0 then pipe.port_b.h_outflow else lowerTank.medium.h, {}, 0))

I presume it is because the module generating the symbolic jacobian tries to differentiate a function.

I suggest, taht there should be an appropriate error message for the time being.
In the long run however, it would be beneficial if it would be possible to mix symbolic and numerical jacobians, so that elements or columns may be derived numerically, if no analytical solution exists.

Change History (9)

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

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:2 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:3 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:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

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

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

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

Milestone: 1.9.51.10.0

Milestone renamed

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

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:8 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:9 by Francesco Casella, 7 years ago

Milestone: 1.12.01.13.0
Resolution: worksforme
Status: newclosed

As of v1.13.0-dev-155-g68350e9, the model is compiled and simulates until the stop time.

Note: See TracTickets for help on using tickets.