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-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.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.001349/0.001349, allocations: 170.2 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.684/1.684, allocations: 205.4 MB / 222.3 MB, free: 13.61 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.00103/0.00103, allocations: 90.28 kB / 270.6 MB, free: 13.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05762/0.05762, allocations: 14.19 MB / 333.1 MB, free: 8.578 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004659/0.000466, allocations: 12.09 kB / 396.2 MB, free: 50.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1227, allocations: 51.12 MB / 447.4 MB, free: 4.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.2491, allocations: 82.79 MB / 0.5177 GB, free: 1.984 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.2494, allocations: 69.89 kB / 0.5178 GB, free: 1.918 MB / 362.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.TestTapChangerLogicInterval is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.2214/0.4708, allocations: 3.483 MB / 0.5212 GB, free: 83 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4709, allocations: 1.938 kB / 0.5212 GB, free: 83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.4709, allocations: 1.25 kB / 0.5212 GB, free: 83 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.001178/0.4721, allocations: 0.5925 MB / 0.5218 GB, free: 82.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.4721, allocations: 12.59 kB / 0.5218 GB, free: 82.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.4723, allocations: 39.58 kB / 0.5218 GB, free: 82.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.4725, allocations: 181.6 kB / 0.522 GB, free: 82.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.993e-05/0.4726, allocations: 21.69 kB / 0.522 GB, free: 82.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.4727, allocations: 39.89 kB / 0.522 GB, free: 82.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.4738, allocations: 0.5497 MB / 0.5226 GB, free: 82.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.4738, allocations: 192 / 0.5226 GB, free: 82.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.296e-05/0.4739, allocations: 23.41 kB / 0.5226 GB, free: 82.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.4739, allocations: 3.453 kB / 0.5226 GB, free: 82.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004067/0.4744, allocations: 139.5 kB / 0.5227 GB, free: 82.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.4755, allocations: 486.1 kB / 0.5232 GB, free: 82.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007869/0.4763, allocations: 494.8 kB / 0.5237 GB, free: 82.08 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006987/0.477, allocations: 465.3 kB / 0.5241 GB, free: 82.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.477, allocations: 2.516 kB / 0.5241 GB, free: 82.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001826/0.4789, allocations: 0.7619 MB / 0.5249 GB, free: 82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.557e-06/0.4789, allocations: 1.922 kB / 0.5249 GB, free: 82 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001818/0.4807, allocations: 0.9826 MB / 0.5258 GB, free: 81.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.4808, allocations: 65.45 kB / 0.5259 GB, free: 81.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.481, allocations: 136.3 kB / 0.526 GB, free: 81.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.689e-05/0.4811, allocations: 50.72 kB / 0.5261 GB, free: 81.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.232e-05/0.4812, allocations: 98.75 kB / 0.5262 GB, free: 81.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.4814, allocations: 103.1 kB / 0.5263 GB, free: 81.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.675e-05/0.4814, allocations: 7.094 kB / 0.5263 GB, free: 81.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4816, allocations: 337.9 kB / 0.5266 GB, free: 81.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.4819, allocations: 124.4 kB / 0.5267 GB, free: 81.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004482/0.4824, allocations: 212 kB / 0.5269 GB, free: 81.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008038/0.4832, allocations: 333.7 kB / 0.5272 GB, free: 81.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4832, allocations: 0 / 0.5272 GB, free: 81.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000793/0.484, allocations: 323.9 kB / 0.5275 GB, free: 81.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.4841, allocations: 6.594 kB / 0.5275 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.4841, allocations: 5.094 kB / 0.5276 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/0.4841, allocations: 4.062 kB / 0.5276 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.4843, allocations: 29.48 kB / 0.5276 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.4844, allocations: 10.44 kB / 0.5276 GB, free: 81.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.4847, allocations: 69.2 kB / 0.5277 GB, free: 81.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.4848, allocations: 16.88 kB / 0.5277 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 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 valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is above the maximum limit" type: Boolean valueUnderMin:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is under the minimum 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: 6 * Number of states: 0 () * Number of discrete variables: 52 (locked,valueUnderMin,valueAboveMax,$PRE.running,$PRE.tValueInRangeWhileRunning,$PRE.tValueAboveMaxWhileRunning,$PRE.tValueUnderMinWhileRunning,$PRE.valueAboveMax,$PRE.valueUnderMin,$PRE.locked,$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.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,valueInRange,tValueUnderMinWhileRunning,tValueAboveMaxWhileRunning,tValueInRangeWhileRunning,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.0002956/0.4851, allocations: 198.7 kB / 0.5279 GB, free: 80.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.574e-05/0.4852, allocations: 40.97 kB / 0.5279 GB, free: 80.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.4866, allocations: 0.8256 MB / 0.5287 GB, free: 80.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.4866, allocations: 8.406 kB / 0.5287 GB, free: 80.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.4867, allocations: 0 / 0.5287 GB, free: 80.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.4867, allocations: 6.047 kB / 0.5287 GB, free: 80.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.4871, allocations: 332.9 kB / 0.529 GB, free: 80.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4871, allocations: 0 / 0.529 GB, free: 80.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.875e-05/0.4871, allocations: 16.5 kB / 0.5291 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.4872, allocations: 0.5 kB / 0.5291 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.516e-05/0.4872, allocations: 35.7 kB / 0.5291 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4873, allocations: 0.9688 kB / 0.5291 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.4873, allocations: 0.875 kB / 0.5291 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.4886, allocations: 0.8328 MB / 0.5299 GB, free: 80.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/0.4888, allocations: 141.9 kB / 0.53 GB, free: 80.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.489, allocations: 32.8 kB / 0.5301 GB, free: 80.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.4893, allocations: 81.77 kB / 0.5302 GB, free: 80 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003455/0.4897, allocations: 156.5 kB / 0.5303 GB, free: 79.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.4898, allocations: 61.91 kB / 0.5304 GB, free: 79.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.91e-05/0.4899, allocations: 99.39 kB / 0.5305 GB, free: 79.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4899, allocations: 0 / 0.5305 GB, free: 79.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004695/0.4903, allocations: 111.3 kB / 0.5306 GB, free: 79.88 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.0002632/0.4906, allocations: 153.6 kB / 0.5307 GB, free: 79.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008754/0.4915, allocations: 451.7 kB / 0.5311 GB, free: 79.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4915, allocations: 0 / 0.5311 GB, free: 79.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.4926, allocations: 1.346 MB / 0.5325 GB, free: 78.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.493, allocations: 70.22 kB / 0.5325 GB, free: 78.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.4943, allocations: 0.5373 MB / 0.533 GB, free: 78.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.4945, allocations: 0.7343 MB / 0.5338 GB, free: 77.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002268/0.4948, allocations: 44.95 kB / 0.5338 GB, free: 77.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.4949, allocations: 50.52 kB / 0.5339 GB, free: 77.65 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4949, allocations: 1.5 kB / 0.5339 GB, free: 77.65 MB / 362.7 MB Notification: Performance of Templates: time 0.01193/0.5069, allocations: 4.539 MB / 0.5383 GB, free: 75.7 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)