Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [: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.002125/0.002125, allocations: 182.5 kB / 7.455 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.127/1.127, allocations: 205.2 MB / 213.1 MB, free: 13.92 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.0008033/0.0008032, allocations: 88.34 kB / 261.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05332/0.05332, allocations: 14 MB / 323 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.831e-06/5.961e-06, allocations: 0 / 380.9 MB, free: 73.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.08361, allocations: 51.11 MB / 432 MB, free: 22.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2448/0.3284, allocations: 80.26 MB / 0.5003 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.3287, allocations: 63.28 kB / 0.5003 GB, free: 11.71 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.TestTapChangerLogicMax is not constant. Notification: Performance of FrontEnd: time 0.006453/0.3352, allocations: 2.484 MB / 0.5028 GB, free: 11.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.934e-06/0.3352, allocations: 7.938 kB / 0.5028 GB, free: 11.41 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006507/0.3359, allocations: 490 kB / 0.5032 GB, free: 10.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3359, allocations: 10.84 kB / 0.5032 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.575e-05/0.336, allocations: 23.05 kB / 0.5033 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.3362, allocations: 178.3 kB / 0.5034 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.3362, allocations: 13.25 kB / 0.5035 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.887e-05/0.3363, allocations: 25.73 kB / 0.5035 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001898/0.3365, allocations: 49.75 kB / 0.5035 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005055/0.337, allocations: 351.7 kB / 0.5039 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.337, allocations: 0.5 kB / 0.5039 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.754e-05/0.3371, allocations: 16.06 kB / 0.5039 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.3371, allocations: 1.125 kB / 0.5039 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004262/0.3375, allocations: 343.2 kB / 0.5042 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.3378, allocations: 155.6 kB / 0.5044 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002766/0.3381, allocations: 142.2 kB / 0.5045 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.3381, allocations: 1.125 kB / 0.5045 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005862/0.3387, allocations: 336.2 kB / 0.5048 GB, free: 10.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.573e-06/0.3387, allocations: 0 / 0.5048 GB, free: 10.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005601/0.3393, allocations: 335.5 kB / 0.5051 GB, free: 10.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.3393, allocations: 55.41 kB / 0.5052 GB, free: 9.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.696e-05/0.3394, allocations: 112.4 kB / 0.5053 GB, free: 9.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.22e-05/0.3395, allocations: 38.25 kB / 0.5053 GB, free: 9.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.535e-05/0.3395, allocations: 102.8 kB / 0.5054 GB, free: 9.727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.3395, allocations: 63.22 kB / 0.5055 GB, free: 9.691 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.214e-05/0.3396, allocations: 1.344 kB / 0.5055 GB, free: 9.691 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.586e-05/0.3396, allocations: 324.6 kB / 0.5058 GB, free: 9.375 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.3398, allocations: 79.3 kB / 0.5059 GB, free: 9.371 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.3399, allocations: 146.7 kB / 0.506 GB, free: 9.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.814e-05/0.34, allocations: 39.06 kB / 0.506 GB, free: 9.277 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.34, allocations: 1.375 kB / 0.506 GB, free: 9.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003111/0.3403, allocations: 214 kB / 0.5063 GB, free: 9.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.3403, allocations: 4 kB / 0.5063 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3403, allocations: 6.719 kB / 0.5063 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3404, allocations: 2.625 kB / 0.5063 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.282e-05/0.3405, allocations: 20.2 kB / 0.5063 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.3405, allocations: 2.25 kB / 0.5063 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.3407, allocations: 48.27 kB / 0.5063 GB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.3408, allocations: 11.69 kB / 0.5063 GB, free: 9.18 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = false ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = false protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = false protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = false ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001835/0.3409, allocations: 138.7 kB / 0.5065 GB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.341, allocations: 28.92 kB / 0.5065 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.965e-05/0.3411, allocations: 28.56 kB / 0.5065 GB, free: 9.031 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.3411, allocations: 6.531 kB / 0.5065 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3411, allocations: 0 / 0.5065 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3411, allocations: 5.266 kB / 0.5065 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.3413, allocations: 236 kB / 0.5068 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3413, allocations: 0 / 0.5068 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.743e-05/0.3414, allocations: 8.062 kB / 0.5068 GB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3414, allocations: 5.312 kB / 0.5068 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.702e-05/0.3414, allocations: 34.88 kB / 0.5068 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.3414, allocations: 1.375 kB / 0.5068 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3414, allocations: 3.906 kB / 0.5068 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004648/0.3419, allocations: 362.5 kB / 0.5072 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.3421, allocations: 121.1 kB / 0.5073 GB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.313e-05/0.3421, allocations: 30.36 kB / 0.5073 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.3424, allocations: 49.92 kB / 0.5074 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.3426, allocations: 103.5 kB / 0.5075 GB, free: 8.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.003e-05/0.3426, allocations: 45.36 kB / 0.5075 GB, free: 8.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.566e-05/0.3427, allocations: 97.3 kB / 0.5076 GB, free: 8.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002781/0.343, allocations: 64.11 kB / 0.5077 GB, free: 8.34 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: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000141/0.3431, allocations: 127.2 kB / 0.5078 GB, free: 8.238 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004078/0.3435, allocations: 265.5 kB / 0.508 GB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3435, allocations: 0 / 0.508 GB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004696/0.344, allocations: 0.7018 MB / 0.5087 GB, free: 8.219 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.3443, allocations: 42.22 kB / 0.5088 GB, free: 8.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008768/0.3451, allocations: 350.8 kB / 0.5091 GB, free: 8.043 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.3454, allocations: 0.7591 MB / 0.5098 GB, free: 7.309 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3454, allocations: 3.938 kB / 0.5098 GB, free: 7.305 MB / 330.7 MB Notification: Performance of Templates: time 0.005959/0.3514, allocations: 3.467 MB / 0.5132 GB, free: 5.605 MB / 330.7 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)