﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3649	Number of equations are not determined correctly	Christian Kral <dr.christian.kral@…>	Adrian Pop	"I ran into troubles with my students simulating a short circuit test of quasi static transformer. Please consider the attached package Transformers. It includes two examples, SC1 and SC2. The only difference between the two examples is one connect statement:

SC1:
{{{
  connect(currentSensor1.pin_p, voltageSensor1.pin_n);
}}}

SC2:
{{{
  connect(currentSensor1.pin_p, ground2.pin);
}}}

Those two connects shall be treated equally, since in SC1 the negative pin of the voltage sensor is also connected to ground2 (same potential). Consequently, the (number of) equations in SC1 are not determined correctly.

However, the check of SC1 leads to the following message:
{{{
Check of Transformer.SC1 completed successfully.
Class Transformer.SC1 has 293 equation(s) and 292 variable(s).
183 of these are trivial equation(s).
}}}
SC1 cannot be simulated and returns an error message:
{{{
[1] 10:02:20 Translation Error
Internal error Circular Equalities Detected for Variables:
powerSensor1.currentP.reference.gamma
powerSensor1.currentN.reference.gamma
----------------------------------
currentSensor1.pin_n.reference.gamma
powerSensor1.currentN.reference.gamma
----------------------------------
currentSensor1.pin_p.reference.gamma
currentSensor1.pin_n.reference.gamma
----------------------------------
currentSensor1.pin_p.reference.gamma
powerSensor1.voltageN.reference.gamma
----------------------------------
powerSensor1.voltageP.reference.gamma
powerSensor1.voltageN.reference.gamma
----------------------------------
powerSensor1.currentP.reference.gamma
powerSensor1.voltageP.reference.gamma
----------------------------------


[2] 10:02:20 Symbolic Error
Too many equations, over-determined system. The model has 293 equation(s) and 292 variable(s).

[3] 10:02:20 Translation Error
Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!
}}}

SC2 compiles with no complaints; the model check results are:
{{{
Check of Transformer.SC2 completed successfully.
Class Transformer.SC2 has 292 equation(s) and 292 variable(s).
182 of these are trivial equation(s).
}}}

This issue occurs under Windows and Linux with version OpenModelica 1.9.4~dev-675-gb524b08."	defect	closed	high		Frontend		fixed		
