Opened 12 years ago

Closed 7 years ago

#1990 closed defect (worksforme)

Symbolic Jacobian fails for functions

Reported by: cschubert Owned by: wbraun
Priority: normal Milestone: 1.13.0
Component: Backend Version: trunk
Keywords: symbolic jacobian functions Cc: jfrenkel

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 Changed 11 years ago by sjoelund.se

  • Milestone changed from 1.9.0 to 1.9.1

Postponed until 1.9.1

comment:2 Changed 10 years ago by sjoelund.se

  • Milestone changed from 1.9.1 to 1.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 Changed 10 years ago by sjoelund.se

  • Milestone changed from 1.9.2 to 1.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:4 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.3 to 1.9.4

Moved to new milestone 1.9.4

comment:5 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.5

Milestone pushed to 1.9.5

comment:6 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.5 to 1.10.0

Milestone renamed

comment:7 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.10.0 to 1.11.0

Ticket retargeted after milestone closed

comment:8 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.11.0 to 1.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:9 Changed 7 years ago by casella

  • Milestone changed from 1.12.0 to 1.13.0
  • Resolution set to worksforme
  • Status changed from new to closed

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.