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: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_dev_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_dev_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001309/0.00131, allocations: 177.3 kB / 15.94 MB, free: 228 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.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1986/0.1986, allocations: 14.17 MB / 305.1 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003653, allocations: 12 kB / 371 MB, free: 5.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3519, allocations: 53.91 MB / 424.9 MB, free: 38.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001492/0.3534, allocations: 1.127 MB / 426.1 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008738/0.3543, allocations: 493 kB / 426.5 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.58e-05/0.3544, allocations: 0 / 426.5 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.3544, allocations: 0.6562 kB / 426.5 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.263e-05/0.3545, allocations: 18.55 kB / 426.6 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001706/0.3547, allocations: 64.28 kB / 426.6 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001358/0.3548, allocations: 104.5 kB / 426.7 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.553e-05/0.3549, allocations: 7.5 kB / 426.7 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.355, allocations: 98.22 kB / 426.8 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.3551, allocations: 95.09 kB / 426.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.299e-05/0.3552, allocations: 12.88 kB / 426.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.914e-05/0.3552, allocations: 14.75 kB / 426.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.778e-05/0.3552, allocations: 59.17 kB / 427 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.87e-05/0.3553, allocations: 49.52 kB / 427 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.082e-05/0.3554, allocations: 76.2 kB / 427.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.3554, allocations: 1.781 kB / 427.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3554, allocations: 0 / 427.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.3554, allocations: 0 / 427.1 MB, free: 38.29 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.0007613/0.3562, allocations: 0.4893 MB / 427.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3562, allocations: 8.594 kB / 427.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.98e-05/0.3563, allocations: 48.27 kB / 427.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.3564, allocations: 24.61 kB / 427.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.3565, allocations: 170.3 kB / 427.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.3565, allocations: 23.09 kB / 427.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.3566, allocations: 26.39 kB / 427.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.3571, allocations: 370.4 kB / 428.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.3571, allocations: 1.219 kB / 428.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.3572, allocations: 20.56 kB / 428.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3572, allocations: 1.953 kB / 428.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.3573, allocations: 67.77 kB / 428.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003626/0.3577, allocations: 367.8 kB / 428.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.358, allocations: 178.1 kB / 428.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.358, allocations: 288 / 428.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006616/0.3587, allocations: 0.5288 MB / 429.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.423e-06/0.3587, allocations: 0 / 429.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008181/0.3595, allocations: 0.6465 MB / 430.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.3595, allocations: 54 kB / 430.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.202e-05/0.3596, allocations: 136.4 kB / 430.3 MB, free: 37.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.3597, allocations: 41.81 kB / 430.3 MB, free: 37.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.3597, allocations: 90.77 kB / 430.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.484e-05/0.3598, allocations: 76.05 kB / 430.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.3598, allocations: 3.5 kB / 430.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.3599, allocations: 327.3 kB / 430.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.36, allocations: 84.22 kB / 430.9 MB, free: 36.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.3602, allocations: 150.2 kB / 431 MB, free: 36.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.735e-05/0.3603, allocations: 50.23 kB / 431.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3603, allocations: 0 / 431.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003082/0.3606, allocations: 249.5 kB / 431.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3606, allocations: 8.922 kB / 431.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.3607, allocations: 2.938 kB / 431.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3607, allocations: 3.094 kB / 431.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.367e-05/0.3608, allocations: 22.44 kB / 431.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.3608, allocations: 3.531 kB / 431.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.361, allocations: 51.88 kB / 431.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.361, allocations: 8.719 kB / 431.4 MB, free: 36.46 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.0002169/0.3613, allocations: 158.2 kB / 431.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.3613, allocations: 29.8 kB / 431.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.064e-05/0.3614, allocations: 41.95 kB / 431.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3614, allocations: 3.906 kB / 431.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.3614, allocations: 1.656 kB / 431.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3614, allocations: 0 / 431.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.3617, allocations: 269.7 kB / 431.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3617, allocations: 3 kB / 431.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.537e-05/0.3617, allocations: 10.69 kB / 431.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3617, allocations: 0 / 431.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.336e-05/0.3618, allocations: 29.02 kB / 431.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.3618, allocations: 9.516 kB / 431.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3618, allocations: 0 / 431.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007995/0.3626, allocations: 0.5613 MB / 432.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.3628, allocations: 119.7 kB / 432.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/0.3629, allocations: 27.28 kB / 432.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.3631, allocations: 50.81 kB / 432.7 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.3633, allocations: 117.8 kB / 432.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.953e-05/0.3633, allocations: 39.62 kB / 432.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.256e-05/0.3634, allocations: 98.66 kB / 432.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3634, allocations: 0 / 432.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.3637, allocations: 73.81 kB / 433 MB, free: 35.86 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.0008191/0.3645, allocations: 1.134 MB / 434.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004005/0.3649, allocations: 294.9 kB / 434.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3649, allocations: 0 / 434.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/0.3655, allocations: 0.7277 MB / 435.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.3658, allocations: 39.25 kB / 435.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.3675, allocations: 1.779 MB / 437 MB, free: 33.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.3676, allocations: 0.7195 MB / 437.7 MB, free: 33.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.3678, allocations: 33.3 kB / 437.7 MB, free: 33.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.3679, allocations: 56.27 kB / 437.8 MB, free: 32.99 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3679, allocations: 0 / 437.8 MB, free: 32.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.3838, allocations: 4.38 MB / 442.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/0.3841, allocations: 177.8 kB / 442.3 MB, free: 32.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.299, allocations: 0 / 442.3 MB, free: 32.44 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_dev_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_dev_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)