﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4872	Parameter binding equations for Complex parameters are incorrectly moved to the equation section by the NF	Francesco Casella	Per Östlund	"Please consider the attached test package case. If the Circuit1 model is flattened, the result is:
{{{
class TestComplexConnect.Circuit1
  parameter Real V1.v.re(quantity = ""ElectricPotential"", unit = ""V"") ""Real part of complex number"";
  parameter Real V1.v.im(quantity = ""ElectricPotential"", unit = ""V"") ""Imaginary part of complex number"";
  Real V1.p.v.re(quantity = ""ElectricPotential"", unit = ""V"") ""Real part of complex number"";
  Real V1.p.v.im(quantity = ""ElectricPotential"", unit = ""V"") ""Imaginary part of complex number"";
  Real V1.p.i.re(quantity = ""ElectricCurrent"", unit = ""A"") ""Real part of complex number"";
  Real V1.p.i.im(quantity = ""ElectricCurrent"", unit = ""A"") ""Imaginary part of complex number"";
  Real Z1.p.v.re(quantity = ""ElectricPotential"", unit = ""V"") ""Real part of complex number"";
  Real Z1.p.v.im(quantity = ""ElectricPotential"", unit = ""V"") ""Imaginary part of complex number"";
  Real Z1.p.i.re(quantity = ""ElectricCurrent"", unit = ""A"") ""Real part of complex number"";
  Real Z1.p.i.im(quantity = ""ElectricCurrent"", unit = ""A"") ""Imaginary part of complex number"";
  parameter Real Z1.Z.re(quantity = ""Resistance"", unit = ""Ohm"") ""Real part of complex number"";
  parameter Real Z1.Z.im(quantity = ""Resistance"", unit = ""Ohm"") ""Imaginary part of complex number"";
equation
  V1.p.v.re = Z1.p.v.re;
  V1.p.v.im = Z1.p.v.im;
  Z1.p.i.re + V1.p.i.re = 0.0;
  Z1.p.i.im + V1.p.i.im = 0.0;
  V1.v = Complex.'constructor'.fromReal(1.0, 0.0);
  V1.p.v = V1.v;
  Z1.Z = Complex.'constructor'.fromReal(0.0, 1.0);
  Z1.p.v = Modelica.SIunits.ComplexImpedance.'*'.multiply(Z1.Z, Z1.p.i);
end TestComplexConnect.Circuit1;
}}}
For some reason the binding equations for the Complex parameters {{{V1.v}}} and {{{Z1.Z}}} were moved from the parameter binding equations to the equation section, which makes the model overdetermined and at the same time leaves the parameters without any binding equation, which is mandatory for parameters having {{{fixed = true}}}.

"	defect	closed	high	2.0.0	New Instantiation		fixed		
