﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3195	Translation error with integer inputs	Rüdiger Franke	Lennart Ochel	"This case is motivated by transformer models of the PowerSystems library that have integer inputs for tap changers. The models are of the form:
{{{#!mo
package InputIndex
  model Component
    parameter Real[3] data = {1, 2, 3};
    input Integer index;
    Real x;
    output Real y;
  initial equation
    y = 0;
  equation
    x = data[1 + index];
    der(y) = x - y;
  end Component;

  model Test
    Component c(index = 1);
  end Test;
end InputIndex;
}}}
`InputIndex.Test` gives the error messages:
{{{
[1] Translation Error
Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!

[2] Symbolic Error
Too many equations, over-determined system. The model has 3 equation(s) and 1 variable(s).

[3] Translation Error
Internal error pre-optimization module removeSimpleEquations failed.
}}}

See also:
`PowerSystems.Examples.Spot.AC1ph_DC.Transformer`
`PowerSystems.Examples.Spot.AC3ph.Transformer`
`PowerSystems.Examples.Spot.TransformationAC1ph.TapChanger`
`PowerSystems.Examples.Spot.TransformationAC3ph.PhaseShifts`
`PowerSystems.Examples.Spot.TransformationAC1ph.TapChanger`
..."	defect	closed	high		Backend	trunk	fixed		
