Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009312/0.0009312, allocations: 101.4 kB / 15.06 MB, free: 1.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009827/0.0009828, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1979/0.1979, allocations: 14.21 MB / 305.2 MB, free: 1.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.0003207, allocations: 8 kB / 371 MB, free: 5.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3442, allocations: 53.9 MB / 424.9 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001597/0.3458, allocations: 1.133 MB / 426 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009273/0.3468, allocations: 488.8 kB / 426.5 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.625e-05/0.3468, allocations: 0.5625 kB / 426.5 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.847e-05/0.3468, allocations: 3.031 kB / 426.5 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.424e-05/0.3469, allocations: 18.81 kB / 426.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.3471, allocations: 67.09 kB / 426.6 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000127/0.3473, allocations: 99.94 kB / 426.7 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.773e-05/0.3473, allocations: 2.219 kB / 426.7 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.3475, allocations: 104.8 kB / 426.8 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.3476, allocations: 93.72 kB / 426.9 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.402e-05/0.3476, allocations: 13.31 kB / 426.9 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.769e-05/0.3477, allocations: 11.94 kB / 426.9 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.3477, allocations: 61.36 kB / 426.9 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.987e-05/0.3478, allocations: 47.86 kB / 427 MB, free: 38.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.661e-05/0.3479, allocations: 81.09 kB / 427.1 MB, free: 38.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.3479, allocations: 0 / 427.1 MB, free: 38.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3479, allocations: 0 / 427.1 MB, free: 38.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.3479, allocations: 0 / 427.1 MB, free: 38.15 MB / 350.1 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.000822/0.3487, allocations: 497.3 kB / 427.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3488, allocations: 10.34 kB / 427.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.642e-05/0.3489, allocations: 23.06 kB / 427.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.349, allocations: 180.3 kB / 427.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.3491, allocations: 15.2 kB / 427.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.436e-05/0.3491, allocations: 27.61 kB / 427.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004946/0.3496, allocations: 371.1 kB / 428.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3496, allocations: 0 / 428.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.385e-05/0.3497, allocations: 21.89 kB / 428.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.3497, allocations: 3.688 kB / 428.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.3499, allocations: 70.16 kB / 428.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003532/0.3502, allocations: 362.7 kB / 428.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.3505, allocations: 179.1 kB / 428.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.597e-06/0.3505, allocations: 3.938 kB / 428.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006868/0.3512, allocations: 0.5292 MB / 429.3 MB, free: 37.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.563e-06/0.3512, allocations: 0 / 429.3 MB, free: 37.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008477/0.352, allocations: 0.6458 MB / 430 MB, free: 37.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.3521, allocations: 60.52 kB / 430 MB, free: 37.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.024e-05/0.3522, allocations: 125 kB / 430.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/0.3522, allocations: 49 kB / 430.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.58e-05/0.3523, allocations: 91.67 kB / 430.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.093e-05/0.3524, allocations: 71.75 kB / 430.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.419e-05/0.3524, allocations: 9.844 kB / 430.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.585e-05/0.3524, allocations: 326.5 kB / 430.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.3526, allocations: 79.7 kB / 430.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.3527, allocations: 150.6 kB / 430.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.872e-05/0.3528, allocations: 53.31 kB / 431 MB, free: 36.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3528, allocations: 0 / 431 MB, free: 36.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003183/0.3532, allocations: 243.8 kB / 431.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3532, allocations: 9.609 kB / 431.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3532, allocations: 7.781 kB / 431.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3532, allocations: 2.875 kB / 431.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.459e-05/0.3533, allocations: 19.72 kB / 431.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3533, allocations: 2.688 kB / 431.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.3536, allocations: 54.72 kB / 431.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.3536, allocations: 12.59 kB / 431.3 MB, free: 36.37 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "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 () * Number of clocked 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.0001728/0.3538, allocations: 153.5 kB / 431.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.3538, allocations: 25.55 kB / 431.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.482e-05/0.3539, allocations: 37.75 kB / 431.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3539, allocations: 3.562 kB / 431.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3539, allocations: 0 / 431.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3539, allocations: 0 / 431.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.3541, allocations: 272.9 kB / 431.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3541, allocations: 3.938 kB / 431.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-05/0.3542, allocations: 15.48 kB / 431.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3542, allocations: 0 / 431.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.3542, allocations: 29.3 kB / 431.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3542, allocations: 6.891 kB / 431.9 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3542, allocations: 0 / 431.9 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006479/0.3549, allocations: 0.5579 MB / 432.4 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.355, allocations: 115.1 kB / 432.5 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.764e-05/0.3551, allocations: 26.06 kB / 432.5 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.3553, allocations: 53.78 kB / 432.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.3556, allocations: 115 kB / 432.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/0.3556, allocations: 42.19 kB / 432.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.016e-05/0.3557, allocations: 95.86 kB / 432.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3557, allocations: 6.812 kB / 432.9 MB, free: 35.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002825/0.356, allocations: 77.62 kB / 432.9 MB, free: 35.76 MB / 350.1 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) * Number of clocked states: 0 () * 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.0001652/0.3561, allocations: 138.3 kB / 433.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000485/0.3566, allocations: 293.4 kB / 433.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3566, allocations: 0 / 433.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005927/0.3572, allocations: 0.7228 MB / 434.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.3575, allocations: 39.02 kB / 434.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008886/0.3584, allocations: 453.6 kB / 434.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.3586, allocations: 0.7253 MB / 435.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.918e-05/0.3587, allocations: 29.77 kB / 435.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.3588, allocations: 39.95 kB / 435.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3588, allocations: 2.938 kB / 435.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of Templates: time 0.005692/0.3645, allocations: 3.092 MB / 438.4 MB, free: 34.53 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)