Opened 7 years ago
Closed 7 years ago
#4644 closed defect (fixed)
Equations corresponding to complex function calls in algorithm sections are lost in NF
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
Please consider the Modelica.Electrical.Spice3.Examples.Graetz model.
The model has 63 scalar equations, however the NF reports
[1] 10:56:56 Symbolic Error Too few equations, under-determined system. The model has 61 equation(s) and 63 variable(s). [2] 10:56:56 Symbolic Warning [Modelica.Electrical.Spice3: 10615:8-10615:27]: Variable rout.vp.m_dLength does not have any remaining equation to be solved in. The original equations were: [3] 10:56:56 Symbolic Warning [Modelica.Electrical.Spice3: 10614:8-10614:26]: Variable rout.vp.m_dWidth does not have any remaining equation to be solved in. The original equations were:
When instantiating the model with the old and new front end, the same number of lines in the equation and algorithm sections are obtained; the equations are also equivalent.
I guess something goes wrong with the complex function assignment in the algorithm section
(rout.vp.m_dConduct, rout.vp.m_dCond_dTemp) := Modelica.Electrical.Spice3.Internal.Functions.resDepTemp(rout.vp.m_dResist, rout.rp.m_dTemp, rout.lp.m_dTnom, rout.lp.m_dTC1, rout.lp.m_dTC2);
which is probably lost when generating the DAE. There are also equations with complex function calls in the equation section, but those are way more than the two reportedly missing equations.
This issue also affects other models in the MSL 3.2.2
This specific issue is solved as of 07-02-2018