Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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.001328/0.001328, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001511/0.001511, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9687/0.9687, allocations: 177.2 MB / 203.7 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001686/0.001686, allocations: 249.7 kB / 260.5 MB, free: 12.67 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.7378/0.7378, allocations: 138.4 MB / 455.5 MB, free: 1.402 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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) Running command: translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 0.5557 GB, free: 188 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.196e-05, allocations: 2.312 kB / 0.5557 GB, free: 184 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002492/0.002514, allocations: 2.05 MB / 0.5577 GB, free: 14.11 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009037/0.003418, allocations: 0.5964 MB / 0.5583 GB, free: 13.51 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.003542, allocations: 0 / 0.5583 GB, free: 13.51 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.003659, allocations: 27.67 kB / 0.5583 GB, free: 13.48 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.003776, allocations: 43.59 kB / 0.5583 GB, free: 13.44 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.003992, allocations: 103.8 kB / 0.5584 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.004244, allocations: 283.3 kB / 0.5587 GB, free: 13.06 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.004433, allocations: 91.89 kB / 0.5588 GB, free: 12.97 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.004623, allocations: 175.6 kB / 0.559 GB, free: 12.8 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003791/0.005002, allocations: 95.72 kB / 0.559 GB, free: 12.71 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.137e-05/0.005043, allocations: 28 kB / 0.5591 GB, free: 12.68 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.881e-05/0.005072, allocations: 28 kB / 0.5591 GB, free: 12.65 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.782e-05/0.00512, allocations: 67.75 kB / 0.5592 GB, free: 12.59 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 6.827e-05/0.005188, allocations: 79.8 kB / 0.5592 GB, free: 12.51 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.005414, allocations: 211.2 kB / 0.5594 GB, free: 12.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.005417, allocations: 0 / 0.5594 GB, free: 12.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.005418, allocations: 0 / 0.5594 GB, free: 12.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.005423, allocations: 3.938 kB / 0.5594 GB, free: 12.3 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0006877/0.00611, allocations: 0.6729 MB / 0.5601 GB, free: 11.57 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.006149, allocations: 16.75 kB / 0.5601 GB, free: 11.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.408e-05/0.006213, allocations: 40.8 kB / 0.5602 GB, free: 11.51 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.006413, allocations: 208.9 kB / 0.5604 GB, free: 11.28 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.006437, allocations: 20.88 kB / 0.5604 GB, free: 11.26 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.006464, allocations: 20.38 kB / 0.5604 GB, free: 11.24 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.006777, allocations: 318 kB / 0.5607 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.006786, allocations: 192 / 0.5607 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.006802, allocations: 8.375 kB / 0.5607 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.00681, allocations: 7.938 kB / 0.5607 GB, free: 10.87 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.379e-05/0.006893, allocations: 59.44 kB / 0.5608 GB, free: 10.81 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006191/0.007512, allocations: 0.5176 MB / 0.5613 GB, free: 10.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.00764, allocations: 86.94 kB / 0.5614 GB, free: 10.17 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.751e-05/0.007678, allocations: 23.67 kB / 0.5614 GB, free: 10.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.007692, allocations: 8 kB / 0.5614 GB, free: 10.13 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.007866, allocations: 136.9 kB / 0.5615 GB, free: 9.984 MB / 490.7 MB Notification: Performance of pre-optimization done (n=19): time 1.493e-06/0.007868, allocations: 0 / 0.5615 GB, free: 9.984 MB / 490.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002572/0.008125, allocations: 167.7 kB / 0.5617 GB, free: 9.816 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.00818, allocations: 144.5 kB / 0.5618 GB, free: 9.645 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.008314, allocations: 254.7 kB / 0.5621 GB, free: 9.379 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.008344, allocations: 33.7 kB / 0.5621 GB, free: 9.34 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.561e-05/0.00844, allocations: 211.3 kB / 0.5623 GB, free: 9.129 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.00847, allocations: 51.61 kB / 0.5623 GB, free: 9.078 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.754e-05/0.008548, allocations: 75.58 kB / 0.5624 GB, free: 8.996 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.008668, allocations: 0.5039 MB / 0.5629 GB, free: 8.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.597e-05/0.008754, allocations: 129.3 kB / 0.563 GB, free: 8.336 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.008887, allocations: 284.1 kB / 0.5633 GB, free: 7.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.009036, allocations: 215.5 kB / 0.5635 GB, free: 7.727 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.009038, allocations: 0 / 0.5635 GB, free: 7.727 MB / 490.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000286/0.009324, allocations: 376.8 kB / 0.5639 GB, free: 7.316 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.535e-05/0.009369, allocations: 97.25 kB / 0.564 GB, free: 7.203 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.009375, allocations: 0 / 0.564 GB, free: 7.203 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.009389, allocations: 4 kB / 0.564 GB, free: 7.199 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.009512, allocations: 43.91 kB / 0.564 GB, free: 7.156 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.009516, allocations: 4 kB / 0.564 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.009656, allocations: 59.73 kB / 0.5641 GB, free: 7.094 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.009671, allocations: 12.05 kB / 0.5641 GB, free: 7.082 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,minFloRatSaf.disErr.local_reset,minFloRatSaf.disErr.local_set,minFloRatSaf.intConOne.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,minFloRatSaf.hysEva.y,$PRE.minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,$PRE.minFloRatSaf.hysCon.y,minFloRatSaf.booPasThr.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 3 * 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.0001036/0.009774, allocations: 191.1 kB / 0.5643 GB, free: 6.883 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.009806, allocations: 35.84 kB / 0.5643 GB, free: 6.848 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.624e-05/0.009842, allocations: 25.8 kB / 0.5643 GB, free: 6.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.009844, allocations: 0 / 0.5643 GB, free: 6.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.009846, allocations: 0 / 0.5643 GB, free: 6.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.009851, allocations: 4 kB / 0.5643 GB, free: 6.816 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.01022, allocations: 441.6 kB / 0.5647 GB, free: 6.352 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01022, allocations: 0 / 0.5647 GB, free: 6.352 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.066e-05/0.01028, allocations: 23.97 kB / 0.5648 GB, free: 6.328 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.01028, allocations: 8 kB / 0.5648 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.01029, allocations: 0 / 0.5648 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.01029, allocations: 0 / 0.5648 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.01029, allocations: 0 / 0.5648 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001977/0.01049, allocations: 311.2 kB / 0.5651 GB, free: 6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.79e-05/0.01051, allocations: 19.8 kB / 0.5651 GB, free: 5.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.01054, allocations: 11.98 kB / 0.5651 GB, free: 5.969 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.01065, allocations: 35.97 kB / 0.5651 GB, free: 5.934 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.321e-05/0.01074, allocations: 47.91 kB / 0.5652 GB, free: 5.887 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.01075, allocations: 11.98 kB / 0.5652 GB, free: 5.875 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.632e-05/0.01082, allocations: 175.2 kB / 0.5654 GB, free: 5.703 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01082, allocations: 0 / 0.5654 GB, free: 5.703 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002051/0.01102, allocations: 63.83 kB / 0.5654 GB, free: 5.641 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (minFloRatSaf.booPasThr.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.hysCon.y,minFloRatSaf.hysEva.y,ySetPul.T_start,ySetPul.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count) * Number of discrete states: 7 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001138/0.01114, allocations: 122.7 kB / 0.5655 GB, free: 5.516 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005603/0.0117, allocations: 367.5 kB / 0.5659 GB, free: 5.098 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.0117, allocations: 3.938 kB / 0.5659 GB, free: 5.094 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.186e-05/0.01178, allocations: 59.91 kB / 0.566 GB, free: 5.031 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.01204, allocations: 47.89 kB / 0.566 GB, free: 4.984 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005099/0.01255, allocations: 361.5 kB / 0.5663 GB, free: 4.602 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.542e-05/0.0126, allocations: 80.16 kB / 0.5664 GB, free: 4.504 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.887e-05/0.01267, allocations: 21.95 kB / 0.5664 GB, free: 4.484 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.01281, allocations: 130.2 kB / 0.5666 GB, free: 4.355 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01281, allocations: 0 / 0.5666 GB, free: 4.355 MB / 490.7 MB Notification: Performance of Templates: time 0.005905/0.01872, allocations: 4.115 MB / 0.5706 GB, free: 344 kB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6574973929673433]