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.001376/0.001377, allocations: 112.7 kB / 17.14 MB, free: 5.938 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.001356/0.001356, allocations: 195.3 kB / 18.07 MB, free: 5.012 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.329/1.329, allocations: 222.9 MB / 241.8 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04531/0.04531, allocations: 8.101 MB / 300 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.89 kB / 415.2 MB, free: 21.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08683/0.08811, allocations: 51.52 MB / 466.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.004187/0.09234, allocations: 3.213 MB / 469.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.09421, allocations: 1.106 MB / 471 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.09434, allocations: 8 kB / 471 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003872/0.09475, allocations: 175 kB / 471.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005548/0.09531, allocations: 258.5 kB / 471.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002143/0.09746, allocations: 1.272 MB / 472.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006005/0.09807, allocations: 0.5291 MB / 473.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.09828, allocations: 132 kB / 473.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.09848, allocations: 199.3 kB / 473.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.09879, allocations: 247 kB / 473.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.863e-05/0.09887, allocations: 44 kB / 473.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004801/0.09935, allocations: 311.7 kB / 474.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.989e-05/0.09944, allocations: 95.59 kB / 474.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002136/0.09966, allocations: 226.8 kB / 474.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00076/0.1004, allocations: 0.6891 MB / 475.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1004, allocations: 3.938 kB / 475.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1004, allocations: 4 kB / 475.2 MB, free: 9.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1005, allocations: 0 / 475.2 MB, free: 9.609 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.00445/0.1049, allocations: 1.322 MB / 476.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.105, allocations: 15.89 kB / 476.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.1051, allocations: 52.66 kB / 476.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.1055, allocations: 355.6 kB / 476.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.407e-05/0.1056, allocations: 54.83 kB / 477 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.409e-05/0.1057, allocations: 36.38 kB / 477 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000915/0.1066, allocations: 484.8 kB / 477.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1066, allocations: 3.938 kB / 477.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.1067, allocations: 12 kB / 477.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1067, allocations: 4 kB / 477.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008949/0.1076, allocations: 469.9 kB / 477.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.1105, allocations: 1.973 MB / 479.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.1116, allocations: 0.5507 MB / 480.5 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005767/0.1122, allocations: 333.5 kB / 480.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.1124, allocations: 93.42 kB / 480.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008961/0.1133, allocations: 0.536 MB / 481.4 MB, free: 3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 3.847e-06/0.1133, allocations: 0 / 481.4 MB, free: 3 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.006272/0.1196, allocations: 1.9 MB / 483.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1197, allocations: 199.9 kB / 483.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.1201, allocations: 316.5 kB / 483.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/0.1202, allocations: 49.64 kB / 483.9 MB, free: 464 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.1203, allocations: 173 kB / 484 MB, free: 288 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.1204, allocations: 174.6 kB / 484.2 MB, free: 112 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.1206, allocations: 102.2 kB / 484.3 MB, free: 4 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1208, allocations: 354.7 kB / 484.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005268/0.1213, allocations: 281.1 kB / 484.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005637/0.1219, allocations: 354 kB / 485.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008218/0.1301, allocations: 2.153 MB / 487.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1302, allocations: 0 / 487.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00348/0.1336, allocations: 1.297 MB / 488.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.819e-05/0.1337, allocations: 37.64 kB / 488.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.1337, allocations: 0 / 488.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003847/0.1376, allocations: 0.8744 MB / 489.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003051/0.1379, allocations: 71.89 kB / 489.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/0.1396, allocations: 1.269 MB / 491 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/0.1402, allocations: 91.67 kB / 491.1 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.291e-05/0.1403, allocations: 20 kB / 491.1 MB, free: 9.113 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.0003239/0.1406, allocations: 231.1 kB / 491.3 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.09e-05/0.1407, allocations: 43.77 kB / 491.4 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/0.1428, allocations: 1.22 MB / 492.6 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.1429, allocations: 0 / 492.6 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1429, allocations: 3.984 kB / 492.6 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002366/0.1431, allocations: 200.6 kB / 492.8 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.798e-05/0.1432, allocations: 24 kB / 492.8 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005112/0.1437, allocations: 63.92 kB / 492.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.1439, allocations: 56.31 kB / 492.9 MB, free: 7.23 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.002136/0.146, allocations: 1.925 MB / 494.8 MB, free: 4.945 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