Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad") translateModel(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001094, allocations: 118.5 kB / 17.14 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 194.9 kB / 18.07 MB, free: 4.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.8 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04718/0.04718, allocations: 8.088 MB / 300 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.08327, allocations: 51.53 MB / 466.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.00419/0.0875, allocations: 3.201 MB / 469.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.08959, allocations: 1.113 MB / 471 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.08984, allocations: 4 kB / 471 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004773/0.09033, allocations: 171 kB / 471.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007261/0.09108, allocations: 254.4 kB / 471.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002336/0.09343, allocations: 1.276 MB / 472.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007182/0.09416, allocations: 0.5253 MB / 473.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.09438, allocations: 128 kB / 473.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.09462, allocations: 203.2 kB / 473.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.09494, allocations: 255 kB / 473.8 MB, free: 11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.896e-05/0.09502, allocations: 44 kB / 473.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005177/0.09554, allocations: 311.8 kB / 474.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.692e-05/0.09563, allocations: 87.62 kB / 474.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.09585, allocations: 242.8 kB / 474.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007871/0.09665, allocations: 0.6778 MB / 475.1 MB, free: 9.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.09666, allocations: 3.938 kB / 475.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09667, allocations: 0 / 475.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.09669, allocations: 0 / 475.1 MB, free: 9.641 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.004413/0.1011, allocations: 1.312 MB / 476.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1011, allocations: 15.89 kB / 476.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.1013, allocations: 48.38 kB / 476.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.1017, allocations: 351.4 kB / 476.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/0.1018, allocations: 50.83 kB / 476.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.1019, allocations: 40.38 kB / 477 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/0.1027, allocations: 484.8 kB / 477.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1028, allocations: 3.938 kB / 477.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-05/0.1029, allocations: 12 kB / 477.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.1029, allocations: 4 kB / 477.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008827/0.1038, allocations: 466 kB / 477.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002835/0.1066, allocations: 1.976 MB / 479.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1077, allocations: 0.5507 MB / 480.4 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005787/0.1083, allocations: 333.5 kB / 480.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.1085, allocations: 93.42 kB / 480.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008629/0.1094, allocations: 0.5359 MB / 481.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 3.587e-06/0.1094, allocations: 0 / 481.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.006226/0.1156, allocations: 1.904 MB / 483.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.941e-05/0.1157, allocations: 195.9 kB / 483.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003408/0.1161, allocations: 316.5 kB / 483.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.341e-05/0.1161, allocations: 41.7 kB / 483.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1162, allocations: 172.8 kB / 484 MB, free: 348 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.1164, allocations: 161.8 kB / 484.2 MB, free: 184 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.1166, allocations: 106.2 kB / 484.3 MB, free: 72 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1167, allocations: 354.7 kB / 484.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005016/0.1172, allocations: 285.1 kB / 484.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005372/0.1178, allocations: 350 kB / 485.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008198/0.126, allocations: 2.153 MB / 487.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.126, allocations: 0 / 487.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003522/0.1295, allocations: 1.305 MB / 488.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.1296, allocations: 41.69 kB / 488.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1296, allocations: 3.984 kB / 488.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003915/0.1335, allocations: 0.8589 MB / 489.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.1338, allocations: 71.89 kB / 489.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001714/0.1356, allocations: 1.274 MB / 490.9 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005828/0.1362, allocations: 87.53 kB / 491 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.1362, allocations: 19.98 kB / 491 MB, free: 9.176 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = true ) "Current tap position" type: Integer varTra.tapChanger.furtherTapChangeTimeout:DISCRETE(start = varTra.tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.abnormalUTime,varLoad.degradedMode,$PRE.varLoad.degradedMode,varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.increaseEvent,varTra.tapChanger.decreaseEvent,varTra.tapChanger.normalU,varTra.tapChanger.abnormalUTime,varTra.tapChanger.tap,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003131/0.1365, allocations: 239.3 kB / 491.3 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.652e-05/0.1366, allocations: 43.53 kB / 491.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/0.1388, allocations: 1.209 MB / 492.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/0.1388, allocations: 3.984 kB / 492.5 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1388, allocations: 4 kB / 492.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/0.139, allocations: 196.4 kB / 492.7 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-05/0.1391, allocations: 24 kB / 492.7 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005359/0.1397, allocations: 63.92 kB / 492.8 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.1398, allocations: 56.3 kB / 492.9 MB, free: 7.297 MB / 366.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (11): algorithm varTra.tapChanger.varRatio := $START.varTra.tapChanger.varRatio; varTra.tapChanger.tap := pre(varTra.tapChanger.tap); varTra.tapChanger.furtherTapChangeTimeout := pre(varTra.tapChanger.furtherTapChangeTimeout); $whenCondition4 := pre($whenCondition4); $whenCondition3 := pre($whenCondition3); varTra.tapChanger.abnormalUTime := pre(varTra.tapChanger.abnormalUTime); $whenCondition2 := pre($whenCondition2); $whenCondition1 := pre($whenCondition1); varTra.tapChanger.decreaseEvent := pre(varTra.tapChanger.decreaseEvent); varTra.tapChanger.increaseEvent := pre(varTra.tapChanger.increaseEvent); varTra.tapChanger.normalU := pre(varTra.tapChanger.normalU); varTra.tapChanger.normalU := varTra.UB >= varTra.tapChanger.underMinU and varTra.UB <= varTra.tapChanger.aboveMaxU; varTra.tapChanger.increaseEvent := varTra.UB < varTra.tapChanger.underMinU; varTra.tapChanger.decreaseEvent := varTra.UB > varTra.tapChanger.aboveMaxU; $whenCondition1 := varTra.UB < varTra.tapChanger.underMinU or varTra.UB > varTra.tapChanger.aboveMaxU; $whenCondition2 := not (varTra.UB < varTra.tapChanger.underMinU or varTra.UB > varTra.tapChanger.aboveMaxU); when $whenCondition1 then varTra.tapChanger.abnormalUTime := time; elsewhen $whenCondition2 then varTra.tapChanger.abnormalUTime := 1e60; end when; $whenCondition3 := not varTra.tapChanger.normalU and time > varTra.tapChanger.abnormalUTime + varTra.tapChanger.firstTapChangeTimeout; $whenCondition4 := not varTra.tapChanger.normalU and time > varTra.tapChanger.abnormalUTime + varTra.tapChanger.firstTapChangeTimeout + pre(varTra.tapChanger.furtherTapChangeTimeout); when $whenCondition3 then varTra.tapChanger.furtherTapChangeTimeout := varTra.tapChanger.nextTapChangeTimeout; varTra.tapChanger.tap := if varTra.tapChanger.decreaseEvent then if pre(varTra.tapChanger.tap) > varTra.tapChanger.tapMin then pre(varTra.tapChanger.tap) - 1 else pre(varTra.tapChanger.tap) else if pre(varTra.tapChanger.tap) < varTra.tapChanger.tapMax then pre(varTra.tapChanger.tap) + 1 else pre(varTra.tapChanger.tap); elsewhen $whenCondition4 then varTra.tapChanger.furtherTapChangeTimeout := pre(varTra.tapChanger.furtherTapChangeTimeout) + varTra.tapChanger.nextTapChangeTimeout; varTra.tapChanger.tap := if varTra.tapChanger.decreaseEvent then if pre(varTra.tapChanger.tap) > varTra.tapChanger.tapMin then pre(varTra.tapChanger.tap) - 1 else pre(varTra.tapChanger.tap) else if pre(varTra.tapChanger.tap) < varTra.tapChanger.tapMax then pre(varTra.tapChanger.tap) + 1 else pre(varTra.tapChanger.tap); end when; varTra.tapChanger.varRatio := 1.0 + /*Real*/(pre(varTra.tapChanger.tap) - varTra.tapChanger.startTap) * varTra.tapChanger.deltaTapRatio; 2/12 (1): varTra.k.re = varTra.tapChanger.varRatio * varTra.UNomB * $cse2 / varTra.UNomA 3/13 (1): line1.terminalB.v.re + ((-varTra.terminalB.v.re) * varTra.k.re - varTra.terminalB.v.im * varTra.k.im) / (varTra.k.re ^ 2.0 + varTra.k.im ^ 2.0) = (varTra.Z.im * varTra.k.im + varTra.Z.re * varTra.k.re) * line2.terminalA.i.re + (varTra.Z.re * varTra.k.im - varTra.Z.im * varTra.k.re) * line2.terminalA.i.im 4/14 (1): $cse6 = PowerSysPro.Functions.abs(varTra.terminalB.v) 5/15 (1): varTra.UB = 1.7320508075688772 * $cse6 6/16 (1): varTra.terminalB.v.re - line2.terminalB.v.re = line2.Z.re * (line2.terminalA.i.re + line2.Y.im * varTra.terminalB.v.im - line2.Y.re * varTra.terminalB.v.re) - line2.Z.im * (line2.terminalA.i.im + (-line2.Y.re) * varTra.terminalB.v.im - line2.Y.im * varTra.terminalB.v.re) 7/17 (1): varTra.terminalB.v.im - line2.terminalB.v.im = line2.Z.re * (line2.terminalA.i.im + (-line2.Y.re) * varTra.terminalB.v.im - line2.Y.im * varTra.terminalB.v.re) + line2.Z.im * (line2.terminalA.i.re + line2.Y.im * varTra.terminalB.v.im - line2.Y.re * varTra.terminalB.v.re) 8/18 (1): $cse9 = PowerSysPro.Functions.abs(PowerSysPro.Types.myComplexVoltage(line2.terminalB.v.re, line2.terminalB.v.im)) 9/19 (1): varLoad.U = 1.7320508075688772 * $cse9 10/20 (1): varLoad.degradedMode = varLoad.U < varLoad.minU and varLoad.switchToImpedanceMode 11/21 (1): 0.0 = if varLoad.degradedMode then varLoad.terminal.i.re - varLoad.Y.re * line2.terminalB.v.re else 3.0 * (line2.terminalB.v.re * varLoad.terminal.i.re + line2.terminalB.v.im * varLoad.terminal.i.im) - ramp.y 12/22 (1): 0.0 = if varLoad.degradedMode then varLoad.terminal.i.im - varLoad.Y.re * line2.terminalB.v.im else 3.0 * line2.terminalB.v.im * varLoad.terminal.i.re + (-3.0) * line2.terminalB.v.re * varLoad.terminal.i.im 13/23 (1): line2.terminalA.i.re - varLoad.terminal.i.re = line2.Y.re * (line2.terminalB.v.re + varTra.terminalB.v.re) - line2.Y.im * (line2.terminalB.v.im + varTra.terminalB.v.im) 14/24 (1): line1.terminalB.v.im + (varTra.terminalB.v.re * varTra.k.im - varTra.terminalB.v.im * varTra.k.re) / (varTra.k.re ^ 2.0 + varTra.k.im ^ 2.0) = (varTra.Z.im * varTra.k.im + varTra.Z.re * varTra.k.re) * line2.terminalA.i.im + (varTra.Z.im * varTra.k.re - varTra.Z.re * varTra.k.im) * line2.terminalA.i.re 15/25 (1): line2.terminalA.i.im - varLoad.terminal.i.im = line2.Y.re * (line2.terminalB.v.im + varTra.terminalB.v.im) + line2.Y.im * (line2.terminalB.v.re + varTra.terminalB.v.re) 16/26 (1): varTra.terminalA.i.re + (-line2.terminalA.i.re) * varTra.k.re - line2.terminalA.i.im * varTra.k.im = varTra.Y.re * line1.terminalB.v.re - varTra.Y.im * line1.terminalB.v.im 17/27 (1): line1.terminalA.i.re - varTra.terminalA.i.re = line1.Y.re * (line1.terminalB.v.re + src.terminal.v.re) - line1.Y.im * (line1.terminalB.v.im + src.terminal.v.im) 18/28 (1): src.terminal.v.re - line1.terminalB.v.re = line1.Z.re * (line1.terminalA.i.re + line1.Y.im * src.terminal.v.im - line1.Y.re * src.terminal.v.re) - line1.Z.im * (line1.terminalA.i.im + (-line1.Y.re) * src.terminal.v.im - line1.Y.im * src.terminal.v.re) 19/29 (1): src.terminal.v.im - line1.terminalB.v.im = line1.Z.re * (line1.terminalA.i.im + (-line1.Y.re) * src.terminal.v.im - line1.Y.im * src.terminal.v.re) + line1.Z.im * (line1.terminalA.i.re + line1.Y.im * src.terminal.v.im - line1.Y.re * src.terminal.v.re) 20/30 (1): varTra.terminalA.i.im + line2.terminalA.i.re * varTra.k.im - line2.terminalA.i.im * varTra.k.re = varTra.Y.re * line1.terminalB.v.im + varTra.Y.im * line1.terminalB.v.re 21/31 (1): line1.terminalA.i.im - varTra.terminalA.i.im = line1.Y.re * (line1.terminalB.v.im + src.terminal.v.im) + line1.Y.im * (line1.terminalB.v.re + src.terminal.v.re) 22/32 (1): varTra.k.im = varTra.tapChanger.varRatio * varTra.UNomB * $cse1 / varTra.UNomA Variables: 1: varTra.k.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real 2: line1.terminalB.v.re:VARIABLE(flow=false start = varTra.UNomA / 1.7320508075688772 unit = "V" ) "Real part of complex number" type: Real 3: varTra.terminalA.i.im:VARIABLE(flow=true start = 0.0 unit = "A" ) "Imaginary part of complex number" type: Real 4: line1.terminalB.v.im:VARIABLE(flow=false start = 0.0 unit = "V" ) "Imaginary part of complex number" type: Real 5: line1.terminalA.i.im:VARIABLE(flow=true start = 0.0 unit = "A" ) "Imaginary part of complex number" type: Real 6: line1.terminalA.i.re:VARIABLE(flow=true start = 0.0 unit = "A" ) "Real part of complex number" type: Real 7: varTra.terminalA.i.re:VARIABLE(flow=true start = 0.0 unit = "A" ) "Real part of complex number" type: Real 8: varLoad.terminal.i.im:VARIABLE(flow=true start = 0.0 unit = "A" ) "Imaginary part of complex number" type: Real 9: varTra.terminalB.v.im:VARIABLE(flow=false start = 0.0 unit = "V" ) "Imaginary part of complex number" type: Real 10: line2.terminalA.i.re:VARIABLE(flow=true start = 0.0 unit = "A" ) "Real part of complex number" type: Real 11: varLoad.terminal.i.re:VARIABLE(flow=true start = 0.0 unit = "A" ) "Real part of complex number" type: Real 12: line2.terminalB.v.re:VARIABLE(flow=false start = varLoad.UNom / 1.7320508075688772 unit = "V" ) "Real part of complex number" type: Real 13: varLoad.degradedMode:DISCRETE(start = false fixed = true protected = true ) "Mode for load: normal / degraded" type: Boolean 14: varLoad.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real 15: $cse9:VARIABLE(protected = true ) type: Real unreplaceable 16: line2.terminalB.v.im:VARIABLE(flow=false start = 0.0 unit = "V" ) "Imaginary part of complex number" type: Real 17: line2.terminalA.i.im:VARIABLE(flow=true start = 0.0 unit = "A" ) "Imaginary part of complex number" type: Real 18: varTra.UB:VARIABLE(unit = "V" ) "Voltage at port B" type: Real 19: $cse6:VARIABLE(protected = true ) type: Real unreplaceable 20: varTra.terminalB.v.re:VARIABLE(flow=false start = line2.UNom / 1.7320508075688772 unit = "V" ) "Real part of complex number" type: Real 21: varTra.k.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real 22: varTra.tapChanger.varRatio:VARIABLE(flow=false ) "Variable transformer ratio" type: Real 23: varTra.tapChanger.furtherTapChangeTimeout:DISCRETE(start = varTra.tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real 24: $whenCondition2:DISCRETE(fixed = true protected = true ) "not (varTra.UB < varTra.tapChanger.underMinU or varTra.UB > varTra.tapChanger.aboveMaxU)" type: Boolean unreplaceable 25: $whenCondition4:DISCRETE(fixed = true protected = true ) "not varTra.tapChanger.normalU and time > varTra.tapChanger.abnormalUTime + varTra.tapChanger.firstTapChangeTimeout + pre(varTra.tapChanger.furtherTapChangeTimeout)" type: Boolean unreplaceable 26: varTra.tapChanger.normalU:DISCRETE(start = false protected = true ) "U is in the normal range [underMinU, aboveMaxU]" type: Boolean 27: varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = true ) "Current tap position" type: Integer 28: $whenCondition1:DISCRETE(fixed = true protected = true ) "varTra.UB < varTra.tapChanger.underMinU or varTra.UB > varTra.tapChanger.aboveMaxU" type: Boolean unreplaceable 29: varTra.tapChanger.increaseEvent:DISCRETE(start = false protected = true ) "Increasing event to be confirmed" type: Boolean 30: varTra.tapChanger.decreaseEvent:DISCRETE(start = false protected = true ) "Decreasing event to be confirmed" type: Boolean 31: $whenCondition3:DISCRETE(fixed = true protected = true ) "not varTra.tapChanger.normalU and time > varTra.tapChanger.abnormalUTime + varTra.tapChanger.firstTapChangeTimeout" type: Boolean unreplaceable 32: varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001979/0.1418, allocations: 1.928 MB / 494.8 MB, free: 5.012 MB / 366.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PowerSysPro.Examples.VariableTransformers.WithVariableLoad could not be translated