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.001087/0.001087, allocations: 169 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.8/1.8, allocations: 205.3 MB / 213.4 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008465/0.0008468, allocations: 94.2 kB / 261.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05374/0.05374, allocations: 14.01 MB / 323.4 MB, free: 13.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.891e-05/1.893e-05, allocations: 4 kB / 381.5 MB, free: 3.559 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2771, allocations: 51.11 MB / 432.6 MB, free: 16.11 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.3918, allocations: 82.01 MB / 0.5025 GB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.3921, allocations: 71.97 kB / 0.5026 GB, free: 13.91 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.009656/0.4018, allocations: 3.453 MB / 0.506 GB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4018, allocations: 0 / 0.506 GB, free: 10.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.4018, allocations: 0 / 0.506 GB, free: 10.43 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.001176/0.403, allocations: 0.584 MB / 0.5065 GB, free: 9.801 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.4031, allocations: 8.031 kB / 0.5066 GB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.4033, allocations: 39.73 kB / 0.5066 GB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.4035, allocations: 171.1 kB / 0.5068 GB, free: 9.547 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.173e-05/0.4036, allocations: 15.97 kB / 0.5068 GB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.4037, allocations: 39.97 kB / 0.5068 GB, free: 9.492 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002919/0.404, allocations: 111.9 kB / 0.5069 GB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000858/0.4049, allocations: 0.5048 MB / 0.5074 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4049, allocations: 3.938 kB / 0.5074 GB, free: 8.867 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.991e-05/0.405, allocations: 15.97 kB / 0.5074 GB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.405, allocations: 4 kB / 0.5074 GB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009284/0.4059, allocations: 464.8 kB / 0.5079 GB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.4065, allocations: 450.6 kB / 0.5083 GB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000466/0.407, allocations: 440.8 kB / 0.5087 GB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.407, allocations: 0 / 0.5087 GB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.4081, allocations: 0.7325 MB / 0.5094 GB, free: 6.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.943e-06/0.4082, allocations: 0 / 0.5094 GB, free: 6.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001126/0.4093, allocations: 0.7114 MB / 0.5101 GB, free: 6.012 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.4094, allocations: 63.41 kB / 0.5102 GB, free: 5.938 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.4095, allocations: 121.1 kB / 0.5103 GB, free: 5.809 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.11e-05/0.4096, allocations: 41.69 kB / 0.5103 GB, free: 5.762 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.4096, allocations: 100.8 kB / 0.5104 GB, free: 5.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.4098, allocations: 99.06 kB / 0.5105 GB, free: 5.562 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/0.4098, allocations: 0 / 0.5105 GB, free: 5.562 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.41, allocations: 330.8 kB / 0.5109 GB, free: 5.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.4102, allocations: 113 kB / 0.511 GB, free: 5.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.4105, allocations: 196 kB / 0.5111 GB, free: 4.906 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.4106, allocations: 62.58 kB / 0.5112 GB, free: 4.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4106, allocations: 0 / 0.5112 GB, free: 4.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0004843/0.4111, allocations: 291.8 kB / 0.5115 GB, free: 4.551 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.4111, allocations: 11.56 kB / 0.5115 GB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.4111, allocations: 3.984 kB / 0.5115 GB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.4112, allocations: 4 kB / 0.5115 GB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.4113, allocations: 35.86 kB / 0.5115 GB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.4113, allocations: 4 kB / 0.5115 GB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.4117, allocations: 59.84 kB / 0.5116 GB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/0.4117, allocations: 16 kB / 0.5116 GB, free: 4.422 MB / 362.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.0002572/0.412, allocations: 161.5 kB / 0.5118 GB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.727e-05/0.4121, allocations: 39.75 kB / 0.5118 GB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.4132, allocations: 0.7412 MB / 0.5125 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.4132, allocations: 4 kB / 0.5125 GB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4132, allocations: 0 / 0.5125 GB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4132, allocations: 7.922 kB / 0.5125 GB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.4136, allocations: 297.8 kB / 0.5128 GB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4136, allocations: 3.938 kB / 0.5128 GB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.435e-05/0.4136, allocations: 11.94 kB / 0.5128 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.4137, allocations: 0 / 0.5128 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.761e-05/0.4137, allocations: 47.88 kB / 0.5129 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4138, allocations: 0 / 0.5129 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4138, allocations: 0 / 0.5129 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009871/0.4148, allocations: 0.7506 MB / 0.5136 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.4149, allocations: 136.7 kB / 0.5138 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.4151, allocations: 35.94 kB / 0.5138 GB, free: 2.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.4154, allocations: 71.88 kB / 0.5139 GB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.4157, allocations: 159.6 kB / 0.514 GB, free: 1.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.502e-05/0.4158, allocations: 55.94 kB / 0.5141 GB, free: 1.832 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.776e-05/0.4159, allocations: 103.2 kB / 0.5142 GB, free: 1.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4159, allocations: 0 / 0.5142 GB, free: 1.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003606/0.4163, allocations: 99.97 kB / 0.5143 GB, free: 1.633 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) * 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.0002245/0.4165, allocations: 150.2 kB / 0.5144 GB, free: 1.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006373/0.4171, allocations: 397.4 kB / 0.5148 GB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4171, allocations: 0 / 0.5148 GB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.244/0.6612, allocations: 1.307 MB / 0.5161 GB, free: 89.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.6617, allocations: 40.69 kB / 0.5161 GB, free: 89.35 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.6629, allocations: 398 kB / 0.5165 GB, free: 89.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001984/0.6631, allocations: 0.733 MB / 0.5172 GB, free: 88.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002354/0.6634, allocations: 50.95 kB / 0.5172 GB, free: 88.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.6635, allocations: 51.98 kB / 0.5173 GB, free: 88.53 MB / 362.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6635, allocations: 0 / 0.5173 GB, free: 88.53 MB / 362.7 MB Notification: Performance of Templates: time 0.009913/0.6735, allocations: 4.438 MB / 0.5216 GB, free: 88.35 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)