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/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 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 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 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_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_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.001095/0.001095, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.001314/0.001314, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0572/0.0572, allocations: 14.16 MB / 284.6 MB, free: 7.137 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005023/0.0005024, allocations: 20 kB / 347.6 MB, free: 18.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08365/0.08416, allocations: 51.11 MB / 398.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001708/0.0859, allocations: 1.137 MB / 399.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.08693, allocations: 0.5118 MB / 400.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.75e-05/0.08702, allocations: 4 kB / 400.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.359e-05/0.08706, allocations: 3.984 kB / 400.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.14e-05/0.08714, allocations: 15.86 kB / 400.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.08738, allocations: 59.88 kB / 400.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.08757, allocations: 163.6 kB / 400.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.198e-05/0.08763, allocations: 8 kB / 400.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.08777, allocations: 99.78 kB / 400.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.08791, allocations: 87.73 kB / 400.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.168e-05/0.08797, allocations: 12 kB / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.247e-05/0.08801, allocations: 12 kB / 400.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.309e-05/0.08806, allocations: 63.77 kB / 400.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.08814, allocations: 57.64 kB / 400.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.08824, allocations: 84.05 kB / 401 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.08826, allocations: 4 kB / 401 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.08826, allocations: 0 / 401 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.08827, allocations: 0 / 401 MB, free: 12.93 MB / 302.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.0007639/0.08905, allocations: 487 kB / 401.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.0891, allocations: 12.02 kB / 401.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.543e-05/0.08918, allocations: 54.48 kB / 401.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.08925, allocations: 23.89 kB / 401.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.08939, allocations: 178.9 kB / 401.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.08942, allocations: 15.98 kB / 401.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.08948, allocations: 19.98 kB / 401.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.09, allocations: 373.1 kB / 402.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.09002, allocations: 0 / 402.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.504e-05/0.09007, allocations: 19.91 kB / 402.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.09008, allocations: 4 kB / 402.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.09025, allocations: 63.94 kB / 402.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003714/0.09063, allocations: 372.7 kB / 402.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.09088, allocations: 174.8 kB / 402.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.0911, allocations: 164.7 kB / 402.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.09112, allocations: 4 kB / 403 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007392/0.09187, allocations: 0.519 MB / 403.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.09188, allocations: 3.938 kB / 403.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009505/0.09284, allocations: 0.638 MB / 404.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.0929, allocations: 71.39 kB / 404.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.09302, allocations: 125.2 kB / 404.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.09308, allocations: 53.62 kB / 404.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.331e-05/0.09314, allocations: 92.69 kB / 404.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.786e-05/0.09321, allocations: 75.17 kB / 404.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.527e-05/0.09323, allocations: 8 kB / 404.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.09334, allocations: 322.8 kB / 404.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.0935, allocations: 92.28 kB / 404.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.0937, allocations: 163.3 kB / 405.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.222e-05/0.0938, allocations: 40.42 kB / 405.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.09381, allocations: 0 / 405.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003623/0.09418, allocations: 249.3 kB / 405.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.09421, allocations: 8.125 kB / 405.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.09422, allocations: 4 kB / 405.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.09425, allocations: 0 / 405.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.09435, allocations: 19.92 kB / 405.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.09437, allocations: 0 / 405.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.09458, allocations: 51.86 kB / 405.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.09462, allocations: 8 kB / 405.5 MB, free: 8.238 MB / 302.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.0002066/0.09483, allocations: 158.7 kB / 405.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.0949, allocations: 31.83 kB / 405.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.219e-05/0.09499, allocations: 29.62 kB / 405.7 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.095, allocations: 4 kB / 405.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.09501, allocations: 3.984 kB / 405.7 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.09502, allocations: 0 / 405.7 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.09528, allocations: 277.4 kB / 406 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.09529, allocations: 0 / 406 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.09533, allocations: 7.938 kB / 406 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.09535, allocations: 3.984 kB / 406 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.0954, allocations: 27.95 kB / 406 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.09541, allocations: 4 kB / 406 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.09541, allocations: 0 / 406 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007324/0.09615, allocations: 0.5592 MB / 406.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.09629, allocations: 116.9 kB / 406.7 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.024e-05/0.09638, allocations: 27.95 kB / 406.7 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.09659, allocations: 51.94 kB / 406.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.0968, allocations: 111.7 kB / 406.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.248e-05/0.09686, allocations: 39.95 kB / 406.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.198e-05/0.09693, allocations: 95.27 kB / 407 MB, free: 6.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09693, allocations: 4 kB / 407 MB, free: 6.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002912/0.09723, allocations: 79.92 kB / 407.1 MB, free: 6.531 MB / 302.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.001092/0.09833, allocations: 1.139 MB / 408.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004812/0.09883, allocations: 291.8 kB / 408.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.09884, allocations: 4.25 kB / 408.5 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005752/0.09942, allocations: 0.7303 MB / 409.2 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.09974, allocations: 46.44 kB / 409.3 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.1016, allocations: 1.173 MB / 410.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.1018, allocations: 0.7141 MB / 411.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.102, allocations: 33.94 kB / 411.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.1021, allocations: 59.39 kB / 411.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1021, allocations: 0 / 411.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01487/0.117, allocations: 4.376 MB / 415.6 MB, free: 13.94 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.1173, allocations: 178 kB / 415.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/1.901, allocations: 0 / 415.8 MB, free: 13.7 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) Environment - environmentSimulation: