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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 98.08 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 212.3 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 207.6 MB / 233.8 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06678/0.06678, allocations: 14.39 MB / 300.5 MB, free: 7.43 MB / 238.1 MB " [Timeout remaining time 180] Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 67.91 kB / 423.1 MB, free: 37.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07924/0.08135, allocations: 52.89 MB / 475.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002574/0.08393, allocations: 1.448 MB / 477.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009723/0.0849, allocations: 0.5463 MB / 477.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.636e-05/0.08493, allocations: 0 / 477.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.978e-05/0.08495, allocations: 7.938 kB / 477.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.199e-05/0.08503, allocations: 11.81 kB / 478 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.08522, allocations: 79.81 kB / 478 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.08542, allocations: 191.6 kB / 478.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.949e-05/0.08546, allocations: 4 kB / 478.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.08559, allocations: 99.78 kB / 478.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.08573, allocations: 91.73 kB / 478.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.08577, allocations: 12 kB / 478.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.923e-05/0.0858, allocations: 12 kB / 478.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.185e-05/0.08586, allocations: 59.84 kB / 478.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.9e-05/0.08596, allocations: 75.8 kB / 478.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.08613, allocations: 135.6 kB / 478.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.08614, allocations: 0 / 478.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.08614, allocations: 8 kB / 478.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.08614, allocations: 0 / 478.7 MB, free: 13.85 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.0009621/0.08711, allocations: 485.7 kB / 479.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.08714, allocations: 15.97 kB / 479.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.092e-05/0.08715, allocations: 192 / 479.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.71e-05/0.08723, allocations: 50.66 kB / 479.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.923e-05/0.08732, allocations: 28.88 kB / 479.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.08744, allocations: 122 kB / 479.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.08747, allocations: 16.34 kB / 479.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.08754, allocations: 24.36 kB / 479.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006316/0.08817, allocations: 377 kB / 479.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.08818, allocations: 0 / 479.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.139e-05/0.08823, allocations: 15.92 kB / 479.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.08823, allocations: 0 / 479.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.08842, allocations: 67.92 kB / 479.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004093/0.08883, allocations: 347.7 kB / 480.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.08905, allocations: 82.8 kB / 480.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.08924, allocations: 72.73 kB / 480.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.08925, allocations: 0 / 480.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008171/0.09007, allocations: 0.5219 MB / 480.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.372e-06/0.09007, allocations: 3.938 kB / 480.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.00106/0.09113, allocations: 0.6507 MB / 481.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.09118, allocations: 55.41 kB / 481.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.0913, allocations: 133.8 kB / 481.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.37e-05/0.09135, allocations: 45.69 kB / 481.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.048e-05/0.09141, allocations: 88.8 kB / 481.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.597e-05/0.09149, allocations: 79.5 kB / 482 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-05/0.09159, allocations: 53.7 kB / 482 MB, free: 10.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.09174, allocations: 330.8 kB / 482.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.09191, allocations: 84.3 kB / 482.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.09213, allocations: 163.3 kB / 482.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.09251, allocations: 233.4 kB / 482.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.09251, allocations: 0 / 482.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004153/0.09293, allocations: 245.5 kB / 483 MB, free: 9.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.09294, allocations: 11.94 kB / 483 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.09294, allocations: 0 / 483 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.09296, allocations: 7.984 kB / 483.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.845e-05/0.09305, allocations: 19.94 kB / 483.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.09306, allocations: 4 kB / 483.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.09328, allocations: 39.91 kB / 483.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.09331, allocations: 12 kB / 483.1 MB, free: 9.195 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 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002281/0.09353, allocations: 169.7 kB / 483.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.932e-05/0.09359, allocations: 23.91 kB / 483.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.065e-05/0.09368, allocations: 37.61 kB / 483.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.09369, allocations: 0 / 483.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.0937, allocations: 4 kB / 483.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.0937, allocations: 0 / 483.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.09399, allocations: 244.5 kB / 483.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.09399, allocations: 0 / 483.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.205e-05/0.09403, allocations: 15.92 kB / 483.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.09403, allocations: 0 / 483.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.484e-05/0.09408, allocations: 23.95 kB / 483.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.09408, allocations: 7.938 kB / 483.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.09408, allocations: 0 / 483.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008112/0.0949, allocations: 0.5593 MB / 484.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.09504, allocations: 47.81 kB / 484.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/0.09512, allocations: 23.97 kB / 484.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.09535, allocations: 43.94 kB / 484.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.09556, allocations: 87.81 kB / 484.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.863e-05/0.09562, allocations: 47.89 kB / 484.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.569e-05/0.09569, allocations: 96.77 kB / 484.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.09569, allocations: 0 / 484.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002967/0.09599, allocations: 79.97 kB / 484.6 MB, free: 7.625 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001193/0.09718, allocations: 1.131 MB / 485.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005063/0.09769, allocations: 272.1 kB / 486 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.09769, allocations: 3.938 kB / 486 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.09798, allocations: 171.8 kB / 486.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.09829, allocations: 53.28 kB / 486.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.1012, allocations: 2.198 MB / 488.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.1015, allocations: 0.7177 MB / 489.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.1016, allocations: 33.94 kB / 489.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.1018, allocations: 59.39 kB / 489.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1018, allocations: 0 / 489.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04109/0.1429, allocations: 5.477 MB / 494.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.21, allocations: 16.05 kB / 494.7 MB, free: 13.39 MB / 366.1 MB " [Timeout remaining time 649] (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/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.91549704800127] Failed to read output from testmodel.py, exit status != 0: 11.388094472000375 11.413064421 11.322432833 Calling exit ...