Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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-master/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/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.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001715/0.001715, allocations: 170.1 kB / 16.11 MB, free: 5.582 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.886/1.886, allocations: 205.4 MB / 222.3 MB, free: 9.008 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.0007918/0.0007918, allocations: 97.52 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06471/0.06471, allocations: 14.21 MB / 333.1 MB, free: 9.656 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004354, allocations: 12 kB / 396.2 MB, free: 63.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1213, allocations: 51.11 MB / 447.3 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4177/0.539, allocations: 81.12 MB / 0.5161 GB, free: 10.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.5393, allocations: 68.78 kB / 0.5162 GB, free: 10.09 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/Electrical/Branches/BaseClasses/TapChangerPhaseShifterLogicCommon.mo:13:3-13:48:writable] Error: Variable state: Variable stateStart in package PowerGrids.Electrical.Test.TestTapChangerLogicMax is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.006263/0.5455, allocations: 2.749 MB / 0.5188 GB, free: 7.652 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5456, allocations: 0 / 0.5188 GB, free: 7.652 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.5456, allocations: 0 / 0.5188 GB, free: 7.652 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008475/0.5464, allocations: 496.1 kB / 0.5193 GB, free: 7.133 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.5465, allocations: 12.03 kB / 0.5193 GB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.501e-05/0.5466, allocations: 24.83 kB / 0.5193 GB, free: 7.098 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.5467, allocations: 179.5 kB / 0.5195 GB, free: 6.887 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.5468, allocations: 8.359 kB / 0.5195 GB, free: 6.879 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.5468, allocations: 31.47 kB / 0.5196 GB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005643/0.5474, allocations: 374.2 kB / 0.5199 GB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.5474, allocations: 4.188 kB / 0.5199 GB, free: 6.562 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.5475, allocations: 15.8 kB / 0.5199 GB, free: 6.551 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.5475, allocations: 0 / 0.5199 GB, free: 6.551 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.5476, allocations: 69.75 kB / 0.52 GB, free: 6.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003413/0.548, allocations: 364.9 kB / 0.5203 GB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.5482, allocations: 175.2 kB / 0.5205 GB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.5484, allocations: 156.4 kB / 0.5207 GB, free: 5.914 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.399e-05/0.5484, allocations: 4 kB / 0.5207 GB, free: 5.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006472/0.5491, allocations: 0.5564 MB / 0.5212 GB, free: 5.422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.402e-06/0.5491, allocations: 0 / 0.5212 GB, free: 5.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008175/0.5499, allocations: 0.6559 MB / 0.5218 GB, free: 4.977 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.5499, allocations: 55.41 kB / 0.5219 GB, free: 4.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.521e-05/0.55, allocations: 127.6 kB / 0.522 GB, free: 4.785 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.5501, allocations: 40.89 kB / 0.5221 GB, free: 4.746 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/0.5501, allocations: 96.12 kB / 0.5222 GB, free: 4.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.5502, allocations: 73.91 kB / 0.5222 GB, free: 4.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.5502, allocations: 6.688 kB / 0.5222 GB, free: 4.594 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.316e-05/0.5502, allocations: 329.8 kB / 0.5225 GB, free: 4.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.5504, allocations: 85.3 kB / 0.5226 GB, free: 4.215 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.5505, allocations: 148.7 kB / 0.5228 GB, free: 4.082 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.5508, allocations: 250.9 kB / 0.523 GB, free: 3.887 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.5508, allocations: 3.938 kB / 0.523 GB, free: 3.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002886/0.5511, allocations: 231 kB / 0.5232 GB, free: 3.707 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.5511, allocations: 8 kB / 0.5232 GB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.5512, allocations: 4.125 kB / 0.5232 GB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.5512, allocations: 4 kB / 0.5232 GB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.905e-05/0.5513, allocations: 15.92 kB / 0.5233 GB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.5513, allocations: 7.938 kB / 0.5233 GB, free: 3.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.5515, allocations: 40.97 kB / 0.5233 GB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.5515, allocations: 11.5 kB / 0.5233 GB, free: 3.629 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.running,$PRE.valueAboveMax,$PRE.valueUnderStop,$PRE.locked,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000163/0.5517, allocations: 162 kB / 0.5235 GB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.932e-05/0.5517, allocations: 35.23 kB / 0.5235 GB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.27e-05/0.5518, allocations: 26.69 kB / 0.5235 GB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.5518, allocations: 4 kB / 0.5235 GB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.5518, allocations: 0 / 0.5235 GB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5518, allocations: 3.984 kB / 0.5235 GB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.552, allocations: 284.9 kB / 0.5238 GB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.552, allocations: 0 / 0.5238 GB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.317e-05/0.552, allocations: 7.938 kB / 0.5238 GB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.5521, allocations: 4 kB / 0.5238 GB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/0.5521, allocations: 26.89 kB / 0.5239 GB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.5521, allocations: 0.875 kB / 0.5239 GB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.5521, allocations: 0 / 0.5239 GB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005574/0.5527, allocations: 0.5603 MB / 0.5244 GB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.5528, allocations: 116.9 kB / 0.5245 GB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.509e-05/0.5529, allocations: 25.41 kB / 0.5245 GB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.5531, allocations: 47 kB / 0.5246 GB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.5533, allocations: 107.7 kB / 0.5247 GB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.295e-05/0.5533, allocations: 42.27 kB / 0.5247 GB, free: 2.367 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.713e-05/0.5533, allocations: 99.64 kB / 0.5248 GB, free: 2.277 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5534, allocations: 3.938 kB / 0.5248 GB, free: 2.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002393/0.5536, allocations: 81.41 kB / 0.5249 GB, free: 2.203 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: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001303/0.5537, allocations: 135.8 kB / 0.525 GB, free: 2.074 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004236/0.5542, allocations: 293.1 kB / 0.5253 GB, free: 1.875 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5542, allocations: 0 / 0.5253 GB, free: 1.875 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004613/0.5546, allocations: 0.7194 MB / 0.526 GB, free: 1.629 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.5549, allocations: 58.16 kB / 0.5261 GB, free: 1.586 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008464/0.5558, allocations: 462.4 kB / 0.5265 GB, free: 1.168 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/0.556, allocations: 0.7179 MB / 0.5272 GB, free: 436 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.5561, allocations: 41.83 kB / 0.5272 GB, free: 396 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.5562, allocations: 39.22 kB / 0.5273 GB, free: 364 kB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5562, allocations: 0 / 0.5273 GB, free: 364 kB / 330.7 MB Notification: Performance of Templates: time 0.008385/0.5646, allocations: 3.272 MB / 0.5305 GB, free: 13.14 MB / 346.7 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)