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") [: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.00272/0.00272, allocations: 178.1 kB / 7.454 MB, free: 2.508 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.116/1.116, 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.0008292/0.0008292, allocations: 93.5 kB / 261.1 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05511/0.05511, allocations: 14.01 MB / 323 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.603e-06/6.633e-06, allocations: 0 / 380.9 MB, free: 73.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08631, allocations: 51.1 MB / 432 MB, free: 22.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2376/0.324, allocations: 81.94 MB / 0.5019 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001596/0.3242, allocations: 68.38 kB / 0.502 GB, free: 11.78 MB / 330.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: time 0.008366/0.3325, allocations: 3.264 MB / 0.5052 GB, free: 10.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.3326, allocations: 2.656 kB / 0.5052 GB, free: 10.67 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.0008255/0.3334, allocations: 0.5929 MB / 0.5057 GB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.3334, allocations: 8.25 kB / 0.5057 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.3335, allocations: 33.8 kB / 0.5058 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.998e-05/0.3337, allocations: 184.2 kB / 0.506 GB, free: 9.984 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.3337, allocations: 16.22 kB / 0.506 GB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.774e-05/0.3338, allocations: 40.91 kB / 0.506 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000257/0.3341, allocations: 110.9 kB / 0.5061 GB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006675/0.3347, allocations: 0.5043 MB / 0.5066 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.485e-06/0.3347, allocations: 5.359 kB / 0.5066 GB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.3348, allocations: 13.47 kB / 0.5066 GB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3348, allocations: 2.75 kB / 0.5066 GB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007229/0.3356, allocations: 455.1 kB / 0.5071 GB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.336, allocations: 460.9 kB / 0.5075 GB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003645/0.3364, allocations: 430.1 kB / 0.5079 GB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.3364, allocations: 1.562 kB / 0.5079 GB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000712/0.3372, allocations: 481.8 kB / 0.5084 GB, free: 9.141 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 1.884e-06/0.3372, allocations: 1.219 kB / 0.5084 GB, free: 9.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007322/0.3379, allocations: 495.6 kB / 0.5088 GB, free: 9.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.3379, allocations: 57.16 kB / 0.5089 GB, free: 8.957 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.438e-05/0.338, allocations: 129.8 kB / 0.509 GB, free: 8.848 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/0.3381, allocations: 44.66 kB / 0.5091 GB, free: 8.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.031e-05/0.3381, allocations: 87.05 kB / 0.5092 GB, free: 8.727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.445e-05/0.3382, allocations: 107.8 kB / 0.5093 GB, free: 8.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/0.3382, allocations: 4.938 kB / 0.5093 GB, free: 8.656 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.537e-05/0.3383, allocations: 334.2 kB / 0.5096 GB, free: 8.336 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.3385, allocations: 114.8 kB / 0.5097 GB, free: 8.332 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.3387, allocations: 190.8 kB / 0.5099 GB, free: 8.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.8e-05/0.3388, allocations: 55.3 kB / 0.5099 GB, free: 8.227 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3388, allocations: 3.938 kB / 0.5099 GB, free: 8.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0004197/0.3392, allocations: 291.8 kB / 0.5102 GB, free: 8.152 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3392, allocations: 9.453 kB / 0.5102 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3392, allocations: 1.656 kB / 0.5102 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3393, allocations: 6.125 kB / 0.5102 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3394, allocations: 32.08 kB / 0.5103 GB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3394, allocations: 4.281 kB / 0.5103 GB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.3397, allocations: 73.81 kB / 0.5103 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.3398, allocations: 13.91 kB / 0.5103 GB, free: 8.105 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.0002271/0.34, allocations: 172.4 kB / 0.5105 GB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.3401, allocations: 40.55 kB / 0.5105 GB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007007/0.3408, allocations: 0.5168 MB / 0.511 GB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3408, allocations: 4.75 kB / 0.5111 GB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3408, allocations: 0.875 kB / 0.5111 GB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3408, allocations: 1.062 kB / 0.5111 GB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.341, allocations: 296.9 kB / 0.5113 GB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.341, allocations: 4.766 kB / 0.5113 GB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.269e-05/0.3411, allocations: 13.84 kB / 0.5114 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3411, allocations: 2.031 kB / 0.5114 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.468e-05/0.3412, allocations: 42.45 kB / 0.5114 GB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.3412, allocations: 1.188 kB / 0.5114 GB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3412, allocations: 0 / 0.5114 GB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006354/0.3418, allocations: 0.5233 MB / 0.5119 GB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.342, allocations: 135.9 kB / 0.512 GB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.3421, allocations: 32.83 kB / 0.5121 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/0.3424, allocations: 80.66 kB / 0.5121 GB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.3427, allocations: 152.3 kB / 0.5123 GB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.834e-05/0.3428, allocations: 63.59 kB / 0.5124 GB, free: 7.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.684e-05/0.3428, allocations: 96.39 kB / 0.5124 GB, free: 7.012 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003085/0.3431, allocations: 108.6 kB / 0.5125 GB, free: 6.992 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.0001681/0.3433, allocations: 142.2 kB / 0.5127 GB, free: 6.887 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005742/0.3439, allocations: 403.8 kB / 0.5131 GB, free: 6.867 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3439, allocations: 0 / 0.5131 GB, free: 6.867 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007578/0.3446, allocations: 1.319 MB / 0.5144 GB, free: 6.859 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.3449, allocations: 37.89 kB / 0.5144 GB, free: 6.844 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009568/0.3459, allocations: 416.3 kB / 0.5148 GB, free: 6.672 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.3462, allocations: 0.778 MB / 0.5156 GB, free: 5.938 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3462, allocations: 0 / 0.5156 GB, free: 5.938 MB / 330.7 MB Notification: Performance of Templates: time 0.007094/0.3533, allocations: 4.78 MB / 0.5202 GB, free: 3.574 MB / 330.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)