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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003084/0.003084, allocations: 178.7 kB / 7.457 MB, free: 2.5 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.593/1.593, allocations: 205.2 MB / 213.1 MB, free: 13.84 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.0009267/0.0009266, allocations: 96.78 kB / 261.1 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05988/0.05988, allocations: 14.02 MB / 323 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2537/0.3136, allocations: 57.99 MB / 381 MB, free: 73.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.4417, allocations: 51.11 MB / 432.1 MB, free: 22.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4106/0.8523, allocations: 81.94 MB / 0.502 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.8526, allocations: 64.06 kB / 0.5021 GB, free: 11.66 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: 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.01117/0.8638, allocations: 3.856 MB / 0.5059 GB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.8639, allocations: 8.25 kB / 0.5059 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.864, allocations: 33.8 kB / 0.5059 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.8642, allocations: 175.2 kB / 0.5061 GB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.8642, allocations: 24.2 kB / 0.5061 GB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.8643, allocations: 39.03 kB / 0.5061 GB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002845/0.8646, allocations: 113.7 kB / 0.5062 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008097/0.8654, allocations: 0.5105 MB / 0.5067 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.8654, allocations: 0.9375 kB / 0.5067 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-05/0.8655, allocations: 17.5 kB / 0.5067 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.8655, allocations: 2.406 kB / 0.5068 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008523/0.8664, allocations: 464.7 kB / 0.5072 GB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005366/0.8669, allocations: 454.1 kB / 0.5076 GB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000499/0.8675, allocations: 430.9 kB / 0.508 GB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.8675, allocations: 1.156 kB / 0.508 GB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008995/0.8684, allocations: 495 kB / 0.5085 GB, free: 9.012 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 1.764e-06/0.8684, allocations: 0 / 0.5085 GB, free: 9.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009079/0.8693, allocations: 497.3 kB / 0.509 GB, free: 8.891 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.8694, allocations: 56.41 kB / 0.509 GB, free: 8.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.8695, allocations: 119.5 kB / 0.5092 GB, free: 8.727 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/0.8696, allocations: 45.31 kB / 0.5092 GB, free: 8.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.357e-05/0.8696, allocations: 99.62 kB / 0.5093 GB, free: 8.598 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.905e-05/0.8697, allocations: 96.75 kB / 0.5094 GB, free: 8.539 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.892e-05/0.8697, allocations: 0 / 0.5094 GB, free: 8.539 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.716e-05/0.8698, allocations: 334.2 kB / 0.5097 GB, free: 8.219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.87, allocations: 115.9 kB / 0.5098 GB, free: 8.215 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.8703, allocations: 193.1 kB / 0.51 GB, free: 8.129 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.8704, allocations: 58.12 kB / 0.5101 GB, free: 8.102 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.8704, allocations: 1.438 kB / 0.5101 GB, free: 8.102 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005241/0.871, allocations: 294.6 kB / 0.5103 GB, free: 8.031 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.871, allocations: 8.469 kB / 0.5103 GB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.871, allocations: 2.219 kB / 0.5103 GB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.871, allocations: 3.781 kB / 0.5103 GB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.8712, allocations: 32.23 kB / 0.5104 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.8712, allocations: 3.188 kB / 0.5104 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.8716, allocations: 75.84 kB / 0.5105 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/0.8716, allocations: 13.31 kB / 0.5105 GB, free: 7.984 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.0002532/0.8719, allocations: 152.9 kB / 0.5106 GB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-05/0.872, allocations: 41.64 kB / 0.5107 GB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009612/0.8729, allocations: 0.5099 MB / 0.5112 GB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.873, allocations: 5.25 kB / 0.5112 GB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.873, allocations: 0 / 0.5112 GB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.873, allocations: 13.69 kB / 0.5112 GB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003764/0.8734, allocations: 292.1 kB / 0.5114 GB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.8734, allocations: 0 / 0.5114 GB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.531e-05/0.8735, allocations: 14.34 kB / 0.5115 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.8735, allocations: 1.75 kB / 0.5115 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.721e-05/0.8735, allocations: 45.36 kB / 0.5115 GB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.8736, allocations: 5.281 kB / 0.5115 GB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.8736, allocations: 0 / 0.5115 GB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008936/0.8745, allocations: 0.5207 MB / 0.512 GB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009062/0.8754, allocations: 0.9052 MB / 0.5129 GB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.8756, allocations: 134.5 kB / 0.513 GB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.8757, allocations: 33.88 kB / 0.5131 GB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003678/0.8761, allocations: 78.53 kB / 0.5131 GB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003243/0.8764, allocations: 154.2 kB / 0.5133 GB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-05/0.8765, allocations: 66.58 kB / 0.5133 GB, free: 6.438 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.732e-05/0.8766, allocations: 93.56 kB / 0.5134 GB, free: 6.359 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001091/0.8777, allocations: 101.2 kB / 0.5135 GB, free: 6.352 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.0002244/0.8779, allocations: 147.6 kB / 0.5137 GB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007399/0.8787, allocations: 406.5 kB / 0.5141 GB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.8787, allocations: 0 / 0.5141 GB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.8799, allocations: 1.315 MB / 0.5153 GB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.8802, allocations: 45.34 kB / 0.5154 GB, free: 6.191 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.8815, allocations: 409.7 kB / 0.5158 GB, free: 6.023 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/0.8819, allocations: 0.7836 MB / 0.5165 GB, free: 5.285 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.8819, allocations: 4 kB / 0.5166 GB, free: 5.281 MB / 330.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)