﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4644	Equations corresponding to complex function calls in algorithm sections are lost in NF	Francesco Casella	Per Östlund	"Please consider the [https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.err 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"	defect	closed	high	2.0.0	New Instantiation		fixed		
