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.001403/0.001403, allocations: 169 kB / 12.72 MB, free: 2.586 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.379/1.379, allocations: 205.2 MB / 218.5 MB, free: 9.145 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.0007829/0.0007829, allocations: 90.22 kB / 266.6 MB, free: 9.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05822/0.05822, allocations: 14.01 MB / 328.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.053e-05/3.064e-05, allocations: 4 kB / 388.6 MB, free: 67.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0862/0.08626, allocations: 51.1 MB / 439.7 MB, free: 16.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3281/0.4145, allocations: 82.69 MB / 0.5102 GB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001671/0.4147, allocations: 67.09 kB / 0.5102 GB, free: 10.71 MB / 330.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.008102/0.4228, allocations: 3.472 MB / 0.5136 GB, free: 9.074 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4228, allocations: 0 / 0.5136 GB, free: 9.074 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.4228, allocations: 0 / 0.5136 GB, free: 9.074 MB / 330.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.0007824/0.4236, allocations: 0.5873 MB / 0.5142 GB, free: 8.613 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.4237, allocations: 11.72 kB / 0.5142 GB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.4238, allocations: 38.52 kB / 0.5142 GB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.169e-05/0.4239, allocations: 167.5 kB / 0.5144 GB, free: 8.398 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.4239, allocations: 22.5 kB / 0.5144 GB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.833e-05/0.424, allocations: 38.25 kB / 0.5145 GB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006632/0.4247, allocations: 0.5378 MB / 0.515 GB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.4247, allocations: 0 / 0.515 GB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.591e-05/0.4248, allocations: 23.08 kB / 0.515 GB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.4248, allocations: 0 / 0.515 GB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.4251, allocations: 133.2 kB / 0.5151 GB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006159/0.4257, allocations: 492 kB / 0.5156 GB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004222/0.4261, allocations: 469.4 kB / 0.5161 GB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003754/0.4265, allocations: 457.6 kB / 0.5165 GB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.4265, allocations: 4 kB / 0.5165 GB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008133/0.4274, allocations: 0.759 MB / 0.5172 GB, free: 6.398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 2.435e-06/0.4274, allocations: 0 / 0.5172 GB, free: 6.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.0008668/0.4282, allocations: 0.7703 MB / 0.518 GB, free: 5.859 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/0.4283, allocations: 59.41 kB / 0.518 GB, free: 5.789 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.223e-05/0.4284, allocations: 134.5 kB / 0.5182 GB, free: 5.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.4284, allocations: 50.81 kB / 0.5182 GB, free: 5.617 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.575e-05/0.4285, allocations: 100.3 kB / 0.5183 GB, free: 5.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.637e-05/0.4285, allocations: 102.5 kB / 0.5184 GB, free: 5.449 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.741e-05/0.4285, allocations: 6.938 kB / 0.5184 GB, free: 5.449 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.347e-05/0.4286, allocations: 325.5 kB / 0.5187 GB, free: 5.129 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.4288, allocations: 126.7 kB / 0.5189 GB, free: 5.059 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.429, allocations: 208.3 kB / 0.5191 GB, free: 4.891 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.4291, allocations: 73.16 kB / 0.5191 GB, free: 4.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.4291, allocations: 0 / 0.5191 GB, free: 4.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0004028/0.4295, allocations: 323.8 kB / 0.5194 GB, free: 4.574 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.4295, allocations: 19.95 kB / 0.5195 GB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.4295, allocations: 0 / 0.5195 GB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.4295, allocations: 4 kB / 0.5195 GB, free: 4.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.4297, allocations: 31.61 kB / 0.5195 GB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.4297, allocations: 4 kB / 0.5195 GB, free: 4.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.43, allocations: 71.34 kB / 0.5196 GB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.43, allocations: 15.56 kB / 0.5196 GB, free: 4.445 MB / 330.7 MB Warning: Assuming fixed start value for the following 7 variables: running:DISCRETE(start = runningStart fixed = false ) "whether the tap-changer/phase-shifter is running" type: Boolean tValueInRangeWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = false 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 = false 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 = false ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderMin:DISCRETE(start = false fixed = false protected = true ) "true if the monitored signal is under the minimum limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = false protected = true ) "true if the monitored signal is above the maximum limit" type: Boolean tValueUnderMinWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = false 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 () * 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.0001855/0.4302, allocations: 192 kB / 0.5198 GB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.556e-05/0.4303, allocations: 35.8 kB / 0.5198 GB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008936/0.4312, allocations: 0.8122 MB / 0.5206 GB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.4312, allocations: 4 kB / 0.5206 GB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.4312, allocations: 0 / 0.5206 GB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.4312, allocations: 3.984 kB / 0.5206 GB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.4315, allocations: 331.3 kB / 0.5209 GB, free: 3.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.4315, allocations: 3.953 kB / 0.5209 GB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.329e-05/0.4315, allocations: 19.67 kB / 0.5209 GB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.4315, allocations: 0 / 0.5209 GB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/0.4316, allocations: 39.62 kB / 0.521 GB, free: 3.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4316, allocations: 0 / 0.521 GB, free: 3.309 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4316, allocations: 0 / 0.521 GB, free: 3.309 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008216/0.4324, allocations: 0.8097 MB / 0.5218 GB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.4326, allocations: 136.8 kB / 0.5219 GB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.059e-05/0.4327, allocations: 31.62 kB / 0.5219 GB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.433, allocations: 87.41 kB / 0.522 GB, free: 2.469 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.4333, allocations: 151.4 kB / 0.5221 GB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.005e-05/0.4333, allocations: 67.11 kB / 0.5222 GB, free: 2.281 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.258e-05/0.4334, allocations: 102.2 kB / 0.5223 GB, free: 2.188 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4334, allocations: 0 / 0.5223 GB, free: 2.188 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000308/0.4337, allocations: 119.7 kB / 0.5224 GB, free: 2.086 MB / 330.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) * 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.000151/0.4338, allocations: 149.5 kB / 0.5226 GB, free: 1.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005518/0.4344, allocations: 443.2 kB / 0.523 GB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4344, allocations: 0 / 0.523 GB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007216/0.4351, allocations: 1.339 MB / 0.5243 GB, free: 1.254 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.4354, allocations: 47.81 kB / 0.5243 GB, free: 1.219 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009436/0.4364, allocations: 435.5 kB / 0.5248 GB, free: 0.8516 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.4365, allocations: 0.7351 MB / 0.5255 GB, free: 92 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.4366, allocations: 49.81 kB / 0.5255 GB, free: 40 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.4368, allocations: 54.05 kB / 0.5256 GB, free: 15.99 MB / 346.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4368, allocations: 0 / 0.5256 GB, free: 15.99 MB / 346.7 MB Notification: Performance of Templates: time 0.007611/0.4444, allocations: 4.485 MB / 0.53 GB, free: 11.56 MB / 346.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)