Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0056/0.0056, allocations: 169.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 221.3 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009032/0.0009032, allocations: 90.88 kB / 269.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06963/0.06963, allocations: 14.17 MB / 332 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003408, allocations: 8.5 kB / 395 MB, free: 50.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1071, allocations: 51.12 MB / 446.1 MB, free: 5.535 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1154/0.2225, allocations: 82.78 MB / 0.5165 GB, free: 2.645 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.2228, allocations: 63.97 kB / 0.5165 GB, free: 2.582 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/Electrical/Branches/BaseClasses/TapChangerPhaseShifterLogicCommon.mo:13:3-13:48:writable] Error: Variable state: Variable stateStart in package PowerGrids.Electrical.Test.TestTapChangerLogicInterval is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.2095/0.4323, allocations: 3.46 MB / 0.5199 GB, free: 82.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4324, allocations: 4.594 kB / 0.5199 GB, free: 82.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.4324, allocations: 2.281 kB / 0.5199 GB, free: 82.91 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001354/0.4338, allocations: 0.5976 MB / 0.5205 GB, free: 82.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4338, allocations: 12.8 kB / 0.5205 GB, free: 82.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002026/0.434, allocations: 34.91 kB / 0.5205 GB, free: 82.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.4342, allocations: 170.2 kB / 0.5207 GB, free: 82.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.911e-05/0.4343, allocations: 21.33 kB / 0.5207 GB, free: 82.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.4344, allocations: 38.47 kB / 0.5208 GB, free: 82.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.4357, allocations: 0.5492 MB / 0.5213 GB, free: 82.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.4357, allocations: 0 / 0.5213 GB, free: 82.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.325e-05/0.4358, allocations: 22.25 kB / 0.5213 GB, free: 82.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-06/0.4358, allocations: 2.531 kB / 0.5213 GB, free: 82.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003795/0.4362, allocations: 140.5 kB / 0.5214 GB, free: 82.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009149/0.4371, allocations: 491.8 kB / 0.5219 GB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000596/0.4378, allocations: 482.4 kB / 0.5224 GB, free: 82.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.4378, allocations: 5.812 kB / 0.5224 GB, free: 82.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001434/0.4392, allocations: 0.7639 MB / 0.5231 GB, free: 81.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.594e-06/0.4393, allocations: 1.562 kB / 0.5231 GB, free: 81.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001725/0.441, allocations: 0.983 MB / 0.5241 GB, free: 81.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.441, allocations: 60.38 kB / 0.5241 GB, free: 81.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.4412, allocations: 129.1 kB / 0.5243 GB, free: 81.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.494e-05/0.4412, allocations: 51.81 kB / 0.5243 GB, free: 81.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.881e-05/0.4413, allocations: 97.55 kB / 0.5244 GB, free: 81.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.712e-05/0.4414, allocations: 107.3 kB / 0.5245 GB, free: 81.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.058e-05/0.4414, allocations: 8.5 kB / 0.5245 GB, free: 81.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.373e-05/0.4415, allocations: 335.3 kB / 0.5248 GB, free: 81.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.4418, allocations: 125.4 kB / 0.525 GB, free: 81.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.442, allocations: 207 kB / 0.5252 GB, free: 81.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.4422, allocations: 71.8 kB / 0.5252 GB, free: 81.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.4422, allocations: 3.953 kB / 0.5252 GB, free: 81.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006841/0.4429, allocations: 346.4 kB / 0.5256 GB, free: 81.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.4429, allocations: 5.438 kB / 0.5256 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.443, allocations: 5.094 kB / 0.5256 GB, free: 81.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.443, allocations: 3.094 kB / 0.5256 GB, free: 81.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.4431, allocations: 29.81 kB / 0.5256 GB, free: 81.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.4432, allocations: 3.812 kB / 0.5256 GB, free: 81.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/0.4435, allocations: 69.66 kB / 0.5257 GB, free: 81.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.4436, allocations: 14.59 kB / 0.5257 GB, free: 81.07 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean tValueInRangeWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = true protected = true ) "time when the monitored signal comes back into the [valueMin ; valueMax] range and the tap-changer/phase-shifter is running" type: Real tValueAboveMaxWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = true protected = true ) "time when the monitored signal went above the maximum limit and the tap-changer/phase-shifter is running" type: Real locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderMin:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is under the minimum limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is above the maximum limit" type: Boolean tValueUnderMinWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = true protected = true ) "time when the monitored signal went under the minimum limit and the tap-changer/phase-shifter is running" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 52 (locked,valueUnderMin,valueAboveMax,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition29,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderMin,$PRE.valueAboveMax,valueInRange,$PRE.tValueUnderMinWhileRunning,tValueUnderMinWhileRunning,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.tValueInRangeWhileRunning,tValueInRangeWhileRunning,$PRE.running,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002815/0.4439, allocations: 188.3 kB / 0.5259 GB, free: 80.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/0.4439, allocations: 41.38 kB / 0.5259 GB, free: 80.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.4454, allocations: 0.8329 MB / 0.5267 GB, free: 80.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.4454, allocations: 6.797 kB / 0.5267 GB, free: 80.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4454, allocations: 1.344 kB / 0.5267 GB, free: 80.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.4454, allocations: 1.922 kB / 0.5267 GB, free: 80.87 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/0.4458, allocations: 333.8 kB / 0.527 GB, free: 80.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.4458, allocations: 1.203 kB / 0.527 GB, free: 80.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.062e-05/0.4459, allocations: 21.16 kB / 0.5271 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.4459, allocations: 1.094 kB / 0.5271 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.277e-05/0.446, allocations: 37.89 kB / 0.5271 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.446, allocations: 2.625 kB / 0.5271 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.446, allocations: 1.438 kB / 0.5271 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.4471, allocations: 0.8253 MB / 0.5279 GB, free: 80.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.4473, allocations: 132.3 kB / 0.528 GB, free: 80.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.4474, allocations: 42.5 kB / 0.5281 GB, free: 80.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.4477, allocations: 78.06 kB / 0.5282 GB, free: 80.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/0.448, allocations: 152 kB / 0.5283 GB, free: 80.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.593e-05/0.4481, allocations: 62.44 kB / 0.5284 GB, free: 80.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.169e-05/0.4482, allocations: 112 kB / 0.5285 GB, free: 80.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4482, allocations: 0 / 0.5285 GB, free: 80.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003857/0.4486, allocations: 114.2 kB / 0.5286 GB, free: 80.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition29,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderMin,valueAboveMax,valueInRange,tValueUnderMinWhileRunning,tValueAboveMaxWhileRunning,tValueInRangeWhileRunning) * Number of discrete states: 9 (tValueInRangeWhileRunning,tValueAboveMaxWhileRunning,tValueUnderMinWhileRunning,tap,valueUnderMin,valueAboveMax,locked,state,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001733/0.4487, allocations: 147.7 kB / 0.5287 GB, free: 80.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006547/0.4494, allocations: 463.4 kB / 0.5292 GB, free: 79.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4494, allocations: 0 / 0.5292 GB, free: 79.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009871/0.4504, allocations: 1.343 MB / 0.5305 GB, free: 79.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.4508, allocations: 56.08 kB / 0.5305 GB, free: 78.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.452, allocations: 0.5358 MB / 0.531 GB, free: 78.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.4522, allocations: 0.7391 MB / 0.5318 GB, free: 78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.4524, allocations: 48.64 kB / 0.5318 GB, free: 77.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001707/0.4525, allocations: 51.52 kB / 0.5319 GB, free: 77.97 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4526, allocations: 0 / 0.5319 GB, free: 77.97 MB / 362.7 MB Notification: Performance of Templates: time 0.01008/0.4626, allocations: 4.495 MB / 0.5363 GB, free: 76.62 MB / 362.7 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1)