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: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002273/0.002273, allocations: 175.2 kB / 12.73 MB, free: 2.59 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.861/1.861, allocations: 205.2 MB / 218.5 MB, free: 9.215 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.0009322/0.0009322, allocations: 83.72 kB / 266.6 MB, free: 9.293 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05875/0.05875, allocations: 14.03 MB / 328.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.946e-05/3.958e-05, allocations: 4 kB / 388.7 MB, free: 67.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 51.12 MB / 439.9 MB, free: 16.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4635/0.5795, allocations: 82.67 MB / 0.5103 GB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.5799, allocations: 62.28 kB / 0.5104 GB, free: 10.79 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.TestTapChangerLogicInterval is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.009343/0.5892, allocations: 3.475 MB / 0.5137 GB, free: 9.148 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5893, allocations: 0 / 0.5137 GB, free: 9.148 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.5893, allocations: 3.844 kB / 0.5137 GB, free: 9.148 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.0009284/0.5902, allocations: 0.5885 MB / 0.5143 GB, free: 8.621 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.5903, allocations: 8.031 kB / 0.5143 GB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.333e-05/0.5904, allocations: 53.91 kB / 0.5144 GB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.5905, allocations: 35.73 kB / 0.5144 GB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.5906, allocations: 174.7 kB / 0.5146 GB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.5907, allocations: 27.2 kB / 0.5146 GB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.36e-05/0.5908, allocations: 43.11 kB / 0.5146 GB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007274/0.5915, allocations: 0.5351 MB / 0.5152 GB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.5915, allocations: 0 / 0.5152 GB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.321e-05/0.5916, allocations: 19.41 kB / 0.5152 GB, free: 7.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.5916, allocations: 8 kB / 0.5152 GB, free: 7.824 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/0.5919, allocations: 123.2 kB / 0.5153 GB, free: 7.742 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007176/0.5926, allocations: 489.1 kB / 0.5158 GB, free: 7.258 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.5931, allocations: 480.4 kB / 0.5162 GB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004283/0.5936, allocations: 450.8 kB / 0.5167 GB, free: 6.855 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.5936, allocations: 8 kB / 0.5167 GB, free: 6.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009356/0.5945, allocations: 0.7499 MB / 0.5174 GB, free: 6.211 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 1.613e-06/0.5946, allocations: 0 / 0.5174 GB, free: 6.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009195/0.5955, allocations: 0.7692 MB / 0.5182 GB, free: 5.672 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.5955, allocations: 67.28 kB / 0.5182 GB, free: 5.594 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.851e-05/0.5956, allocations: 128.6 kB / 0.5183 GB, free: 5.469 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.588e-05/0.5957, allocations: 49.12 kB / 0.5184 GB, free: 5.426 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.608e-05/0.5957, allocations: 100.7 kB / 0.5185 GB, free: 5.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.983e-05/0.5958, allocations: 97.53 kB / 0.5186 GB, free: 5.262 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.5958, allocations: 7.812 kB / 0.5186 GB, free: 5.262 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.909e-05/0.5959, allocations: 338.6 kB / 0.5189 GB, free: 4.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.5961, allocations: 118.4 kB / 0.519 GB, free: 4.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.5963, allocations: 202.2 kB / 0.5192 GB, free: 4.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.5964, allocations: 77.5 kB / 0.5193 GB, free: 4.629 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5964, allocations: 0 / 0.5193 GB, free: 4.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000428/0.5969, allocations: 328.6 kB / 0.5196 GB, free: 4.379 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.5969, allocations: 11.94 kB / 0.5196 GB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.5969, allocations: 0 / 0.5196 GB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.5969, allocations: 4 kB / 0.5196 GB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.5971, allocations: 31.8 kB / 0.5197 GB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.5971, allocations: 4 kB / 0.5197 GB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.5974, allocations: 71.53 kB / 0.5197 GB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.5974, allocations: 19.81 kB / 0.5197 GB, free: 4.254 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.0002247/0.5976, allocations: 193.3 kB / 0.5199 GB, free: 4.086 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/0.5977, allocations: 35.8 kB / 0.52 GB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009757/0.5987, allocations: 0.8094 MB / 0.5208 GB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.5987, allocations: 7.938 kB / 0.5208 GB, free: 3.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.5987, allocations: 4 kB / 0.5208 GB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.5987, allocations: 0 / 0.5208 GB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.599, allocations: 333.6 kB / 0.5211 GB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.599, allocations: 0 / 0.5211 GB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.939e-05/0.5991, allocations: 23.11 kB / 0.5211 GB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.5991, allocations: 0 / 0.5211 GB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.727e-05/0.5992, allocations: 40.98 kB / 0.5211 GB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.5992, allocations: 4 kB / 0.5211 GB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5992, allocations: 0 / 0.5211 GB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009077/0.6001, allocations: 0.7997 MB / 0.5219 GB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001456/0.6003, allocations: 140.8 kB / 0.5221 GB, free: 2.383 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.351e-05/0.6004, allocations: 35.14 kB / 0.5221 GB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000306/0.6007, allocations: 78.53 kB / 0.5222 GB, free: 2.285 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/0.601, allocations: 157 kB / 0.5223 GB, free: 2.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.764e-05/0.601, allocations: 57.44 kB / 0.5224 GB, free: 2.098 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.008e-05/0.6011, allocations: 110.3 kB / 0.5225 GB, free: 1.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6011, allocations: 0 / 0.5225 GB, free: 1.996 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000332/0.6014, allocations: 113.2 kB / 0.5226 GB, free: 1.898 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.001168/0.6026, allocations: 1.399 MB / 0.524 GB, free: 0.7305 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006147/0.6032, allocations: 439.6 kB / 0.5244 GB, free: 460 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.6033, allocations: 4.062 kB / 0.5244 GB, free: 456 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008246/0.6041, allocations: 1.339 MB / 0.5257 GB, free: 40 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.6044, allocations: 49.88 kB / 0.5257 GB, free: 4 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.6058, allocations: 0.4957 MB / 0.5262 GB, free: 15.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.6062, allocations: 0.7351 MB / 0.5269 GB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002009/0.6064, allocations: 49.81 kB / 0.527 GB, free: 14.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.6066, allocations: 80.3 kB / 0.5271 GB, free: 14.71 MB / 346.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6067, allocations: 0 / 0.5271 GB, free: 14.71 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.6297, allocations: 6.206 MB / 0.5331 GB, free: 8.633 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000259/0.6301, allocations: 159.6 kB / 0.5333 GB, free: 8.41 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.004/2.634, allocations: 0 / 0.5333 GB, free: 8.41 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1)