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.0008502/0.0008502, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.000919/0.000919, allocations: 173 kB / 23.36 MB, free: 1.133 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.9557/0.9557, allocations: 177.1 MB / 203.8 MB, free: 5.465 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.00164/0.00164, allocations: 253.4 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.7103/0.7103, allocations: 138.4 MB / 402.2 MB, free: 15.98 MB / 378.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 2.004e-06/2.004e-06, allocations: 0 / 462.4 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.536e-05/1.736e-05, allocations: 3.188 kB / 462.4 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002865/0.002883, allocations: 2.053 MB / 464.4 MB, free: 15.51 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009977/0.00388, allocations: 0.621 MB / 465 MB, free: 15.09 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.759e-05/0.003978, allocations: 2.406 kB / 465 MB, free: 15.09 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.004096, allocations: 27.67 kB / 465.1 MB, free: 15.07 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.004219, allocations: 46.53 kB / 465.1 MB, free: 15.05 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.004432, allocations: 96.11 kB / 465.2 MB, free: 14.99 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.004721, allocations: 283.7 kB / 465.5 MB, free: 14.86 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.004916, allocations: 97.91 kB / 465.6 MB, free: 14.8 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.005131, allocations: 167.6 kB / 465.7 MB, free: 14.73 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.005263, allocations: 106.1 kB / 465.9 MB, free: 14.68 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 4.83e-05/0.005311, allocations: 27.44 kB / 465.9 MB, free: 14.68 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.559e-05/0.005347, allocations: 28.59 kB / 465.9 MB, free: 14.68 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.73e-05/0.005404, allocations: 55.84 kB / 466 MB, free: 14.65 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 8.614e-05/0.00549, allocations: 90.23 kB / 466.1 MB, free: 14.6 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.00573, allocations: 208.1 kB / 466.3 MB, free: 14.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.005732, allocations: 0 / 466.3 MB, free: 14.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005732, allocations: 0.9375 kB / 466.3 MB, free: 14.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.005737, allocations: 0 / 466.3 MB, free: 14.48 MB / 426.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.0009185/0.006656, allocations: 0.548 MB / 466.8 MB, free: 13.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.006685, allocations: 13.31 kB / 466.8 MB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.634e-05/0.006741, allocations: 42.48 kB / 466.9 MB, free: 13.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.006925, allocations: 180.3 kB / 467 MB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.006946, allocations: 16.86 kB / 467 MB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.006973, allocations: 24.38 kB / 467.1 MB, free: 13.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.007251, allocations: 307.9 kB / 467.4 MB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.00726, allocations: 8.906 kB / 467.4 MB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.007276, allocations: 8.375 kB / 467.4 MB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.007283, allocations: 9.344 kB / 467.4 MB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.361e-05/0.007357, allocations: 47.47 kB / 467.4 MB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005001/0.007857, allocations: 379.6 kB / 467.8 MB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.007968, allocations: 78.47 kB / 467.9 MB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.611e-05/0.008004, allocations: 20.86 kB / 467.9 MB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.008018, allocations: 4.562 kB / 467.9 MB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001423/0.00816, allocations: 133.3 kB / 468 MB, free: 12.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=19): time 1.933e-06/0.008162, allocations: 1.875 kB / 468.1 MB, free: 12.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.0001747/0.008337, allocations: 125 kB / 468.2 MB, free: 12.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.008393, allocations: 136.5 kB / 468.3 MB, free: 12.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.008509, allocations: 208.7 kB / 468.5 MB, free: 12.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.008534, allocations: 37.7 kB / 468.5 MB, free: 12.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.008602, allocations: 148.4 kB / 468.7 MB, free: 11.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.008631, allocations: 53.48 kB / 468.7 MB, free: 11.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.456e-05/0.008695, allocations: 65.94 kB / 468.8 MB, free: 11.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.447e-05/0.00878, allocations: 342.7 kB / 469.1 MB, free: 11.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.108e-05/0.008851, allocations: 109.4 kB / 469.2 MB, free: 11.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.008981, allocations: 263.9 kB / 469.5 MB, free: 11.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.009112, allocations: 193.5 kB / 469.7 MB, free: 10.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.009114, allocations: 0 / 469.7 MB, free: 10.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002119/0.009326, allocations: 328.6 kB / 470 MB, free: 10.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.009364, allocations: 90.09 kB / 470.1 MB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.009369, allocations: 0 / 470.1 MB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.009381, allocations: 4 kB / 470.1 MB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.009492, allocations: 52.69 kB / 470.2 MB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.009496, allocations: 4.859 kB / 470.2 MB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.009625, allocations: 61.23 kB / 470.2 MB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.009639, allocations: 12 kB / 470.2 MB, free: 10.23 MB / 426.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 8.985e-05/0.009729, allocations: 144.6 kB / 470.4 MB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.009751, allocations: 19.92 kB / 470.4 MB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.034e-05/0.009781, allocations: 29.8 kB / 470.4 MB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.009784, allocations: 5.344 kB / 470.4 MB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.009786, allocations: 0 / 470.4 MB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.009789, allocations: 0.9375 kB / 470.4 MB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.01007, allocations: 310.4 kB / 470.7 MB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01007, allocations: 0.5 kB / 470.7 MB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.906e-05/0.01012, allocations: 28.69 kB / 470.8 MB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.01012, allocations: 0.75 kB / 470.8 MB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.01013, allocations: 0.6875 kB / 470.8 MB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.01013, allocations: 5.719 kB / 470.8 MB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.01013, allocations: 3.984 kB / 470.8 MB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.01026, allocations: 196.8 kB / 471 MB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.552e-05/0.01028, allocations: 19.8 kB / 471 MB, free: 9.449 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.01031, allocations: 13.08 kB / 471 MB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.01041, allocations: 38.41 kB / 471 MB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.154e-05/0.0105, allocations: 47.91 kB / 471.1 MB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.01051, allocations: 7.984 kB / 471.1 MB, free: 9.348 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.369e-05/0.01055, allocations: 57.89 kB / 471.1 MB, free: 9.289 MB / 426.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01055, allocations: 0 / 471.1 MB, free: 9.289 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001781/0.01073, allocations: 64.62 kB / 471.2 MB, free: 9.227 MB / 426.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 9.353e-05/0.01082, allocations: 99.61 kB / 471.3 MB, free: 9.121 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002406/0.01106, allocations: 362.5 kB / 471.7 MB, free: 8.711 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.01107, allocations: 4 kB / 471.7 MB, free: 8.707 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.259e-05/0.01114, allocations: 59.94 kB / 471.7 MB, free: 8.648 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.01132, allocations: 47.25 kB / 471.8 MB, free: 8.609 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004333/0.01175, allocations: 354.1 kB / 472.1 MB, free: 8.242 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.162e-05/0.0118, allocations: 86.02 kB / 472.2 MB, free: 8.141 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 7.099e-05/0.01187, allocations: 21.44 kB / 472.2 MB, free: 8.121 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.012, allocations: 95.34 kB / 472.3 MB, free: 8.027 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.012, allocations: 0.7188 kB / 472.3 MB, free: 8.027 MB / 426.7 MB Notification: Performance of Templates: time 0.00543/0.01743, allocations: 3.882 MB / 476.2 MB, free: 4.504 MB / 426.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.4680257150903344]