﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5001	Issue with Spice3 models in NF	Francesco Casella	Per Östlund	"Please check [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]. The {{{removeSimpleEquations}}} module fails.

I flattened the model with the old and new FE. The equations seem to me equivalent, considering that the connection equations for 3 effort variables can be equivalently stated in the form {{{a = b; b = c;}}} as well as in the form {{{a = b; a = c;}}}

The only other difference I spotted was in the way a connection equation for flow variables is rendered:
{{{
D2.n.i = (-D2.icap) - D2.cc.m_dCurrent - D2.igmin;    // Old FE

D2.n.i = (-(D2.cc.m_dCurrent + D2.igmin)) - D2.icap;  // New FE
}}}

Of course the unary minus operator and the binary minus operator look the same when  pretty printed, but maybe the {{{-}}} in the NF-produced AST is the binary operator, and that causes the removeSimpleEquations module to fail.

There are many other Spice3 models failing in the same place, so I guess this is a commonplace issue, please check."	defect	closed	high	2.0.0	New Instantiation		fixed		
