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.0008068/0.0008067, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0009927/0.000993, allocations: 168.7 kB / 15.95 MB, free: 204 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.428/1.428, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1934/0.1934, allocations: 14.19 MB / 305.3 MB, free: 1.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003431, allocations: 8 kB / 371.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3924, allocations: 53.92 MB / 425.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001989/0.3945, allocations: 1.138 MB / 426.2 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.3959, allocations: 483.8 kB / 426.7 MB, free: 38.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.844e-05/0.396, allocations: 0 / 426.7 MB, free: 38.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.434e-05/0.396, allocations: 3.047 kB / 426.7 MB, free: 38.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.3961, allocations: 14.88 kB / 426.7 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002313/0.3964, allocations: 64.22 kB / 426.7 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.3966, allocations: 168.4 kB / 426.9 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.976e-05/0.3966, allocations: 5.188 kB / 426.9 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.3968, allocations: 92.98 kB / 427 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.3969, allocations: 89.97 kB / 427.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.05e-05/0.397, allocations: 13.38 kB / 427.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.57e-05/0.397, allocations: 13.09 kB / 427.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.002e-05/0.3971, allocations: 57.89 kB / 427.2 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.494e-05/0.3972, allocations: 58.03 kB / 427.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.3973, allocations: 75.55 kB / 427.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3973, allocations: 0.5 kB / 427.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3973, allocations: 0.9688 kB / 427.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.3973, allocations: 0 / 427.3 MB, free: 38.28 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.0008469/0.3982, allocations: 497.1 kB / 427.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.3983, allocations: 9.562 kB / 427.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.519e-05/0.3983, allocations: 55.23 kB / 427.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.3984, allocations: 18.47 kB / 427.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.3985, allocations: 179.9 kB / 428 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.3986, allocations: 12.53 kB / 428.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.279e-05/0.3986, allocations: 26.23 kB / 428.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004894/0.3991, allocations: 375.5 kB / 428.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3992, allocations: 6.281 kB / 428.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.255e-05/0.3992, allocations: 15.2 kB / 428.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.3992, allocations: 2.25 kB / 428.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.3994, allocations: 64.03 kB / 428.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003576/0.3997, allocations: 373.1 kB / 428.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.4, allocations: 175.9 kB / 429.1 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.4002, allocations: 160 kB / 429.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.4002, allocations: 3.953 kB / 429.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006801/0.4009, allocations: 0.528 MB / 429.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.413e-06/0.4009, allocations: 0 / 429.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009081/0.4018, allocations: 0.6449 MB / 430.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.4018, allocations: 58.34 kB / 430.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.819e-05/0.4019, allocations: 128.8 kB / 430.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.402, allocations: 44.44 kB / 430.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.678e-05/0.402, allocations: 98.55 kB / 430.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.4021, allocations: 64.8 kB / 430.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.497e-05/0.4021, allocations: 6.281 kB / 430.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.763e-05/0.4022, allocations: 330.2 kB / 431.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.4023, allocations: 81.84 kB / 431.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.4025, allocations: 158.5 kB / 431.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.93e-05/0.4026, allocations: 46.44 kB / 431.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4026, allocations: 6.875 kB / 431.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003032/0.4029, allocations: 251 kB / 431.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.4029, allocations: 5.844 kB / 431.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4029, allocations: 3.781 kB / 431.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.403, allocations: 2.938 kB / 431.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.729e-05/0.403, allocations: 18.09 kB / 431.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.4031, allocations: 4.422 kB / 431.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.4032, allocations: 47.97 kB / 431.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.4033, allocations: 9.953 kB / 431.7 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.0001682/0.4034, allocations: 157.2 kB / 431.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.4035, allocations: 32.41 kB / 431.9 MB, free: 36.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.763e-05/0.4036, allocations: 34.42 kB / 432 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4036, allocations: 2.812 kB / 432 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4036, allocations: 2.781 kB / 432 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.4036, allocations: 1.453 kB / 432 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.4038, allocations: 272.5 kB / 432.2 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4038, allocations: 3.828 kB / 432.2 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.132e-05/0.4039, allocations: 12.22 kB / 432.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.4039, allocations: 0 / 432.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.4039, allocations: 32.19 kB / 432.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.4039, allocations: 2.875 kB / 432.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4039, allocations: 4 kB / 432.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006876/0.4046, allocations: 0.5634 MB / 432.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.4048, allocations: 118.9 kB / 433 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.489e-05/0.4048, allocations: 26.64 kB / 433 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.405, allocations: 54.12 kB / 433 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.4052, allocations: 106.3 kB / 433.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.599e-05/0.4053, allocations: 46.12 kB / 433.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.454e-05/0.4053, allocations: 99.69 kB / 433.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4053, allocations: 0 / 433.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002693/0.4056, allocations: 79.98 kB / 433.4 MB, free: 35.85 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.0008106/0.4064, allocations: 1.128 MB / 434.5 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004163/0.4069, allocations: 298.7 kB / 434.8 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4069, allocations: 0 / 434.8 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006642/0.4075, allocations: 0.7239 MB / 435.5 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.4078, allocations: 48.94 kB / 435.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.4095, allocations: 1.177 MB / 436.7 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.4096, allocations: 0.7201 MB / 437.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.4097, allocations: 33.27 kB / 437.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.4099, allocations: 66.91 kB / 437.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4099, allocations: 0 / 437.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01444/0.4243, allocations: 4.393 MB / 442 MB, free: 33.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/0.4245, allocations: 193.8 kB / 442.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.3, allocations: 4 kB / 442.1 MB, free: 32.96 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)