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.0009014/0.0009014, allocations: 76.5 kB / 19.93 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.0008589/0.0008589, allocations: 178.2 kB / 23.21 MB, free: 1.34 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.9034/0.9034, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.001621/0.001621, allocations: 237.9 kB / 260.2 MB, free: 13.02 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.6667/0.6667, allocations: 138.4 MB / 455.1 MB, free: 29.95 MB / 410.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.914e-06/1.914e-06, allocations: 0 / 0.6476 GB, free: 1.293 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.183e-05/2.375e-05, allocations: 2.281 kB / 0.6476 GB, free: 1.289 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.2807/0.2808, allocations: 1.992 MB / 0.6495 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2818, allocations: 0.5775 MB / 0.6501 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.2819, allocations: 7.125 kB / 0.6501 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.282, allocations: 20.67 kB / 0.6501 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.2822, allocations: 49.25 kB / 0.6502 GB, free: 56 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.2824, allocations: 99.17 kB / 0.6503 GB, free: 55.99 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.2827, allocations: 288.4 kB / 0.6505 GB, free: 55.95 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.2829, allocations: 84.56 kB / 0.6506 GB, free: 55.94 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.2831, allocations: 171.1 kB / 0.6508 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.2832, allocations: 102.3 kB / 0.6509 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 5.014e-05/0.2832, allocations: 28.38 kB / 0.6509 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 3.552e-05/0.2833, allocations: 28.66 kB / 0.6509 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/0.2833, allocations: 65.86 kB / 0.651 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 8.449e-05/0.2834, allocations: 86.25 kB / 0.6511 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.2838, allocations: 324.6 kB / 0.6514 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2838, allocations: 0 / 0.6514 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2838, allocations: 0 / 0.6514 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.2838, allocations: 0.9062 kB / 0.6514 GB, free: 55.65 MB / 0.5573 GB 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.0007696/0.2846, allocations: 0.5899 MB / 0.652 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2846, allocations: 12.12 kB / 0.652 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.726e-05/0.2846, allocations: 32.12 kB / 0.652 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.2849, allocations: 211.4 kB / 0.6522 GB, free: 54.99 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.2849, allocations: 19.31 kB / 0.6522 GB, free: 54.98 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.591e-05/0.285, allocations: 21.86 kB / 0.6522 GB, free: 54.98 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004172/0.2854, allocations: 365 kB / 0.6526 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.2854, allocations: 1.219 kB / 0.6526 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.2854, allocations: 14.89 kB / 0.6526 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.2854, allocations: 4.312 kB / 0.6526 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003616/0.2858, allocations: 211.3 kB / 0.6528 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000699/0.2865, allocations: 0.5078 MB / 0.6533 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.2869, allocations: 195.4 kB / 0.6535 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.287, allocations: 91.88 kB / 0.6536 GB, free: 54.28 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.287, allocations: 2.125 kB / 0.6536 GB, free: 54.28 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.2874, allocations: 189.5 kB / 0.6538 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=19): time 1.974e-06/0.2874, allocations: 0.6562 kB / 0.6538 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of matching and sorting (n=19): time 0.0006228/0.288, allocations: 343.1 kB / 0.6541 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.288, allocations: 135.5 kB / 0.6542 GB, free: 53.95 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.2882, allocations: 217.7 kB / 0.6544 GB, free: 53.81 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.2882, allocations: 36.86 kB / 0.6545 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 6.683e-05/0.2882, allocations: 162.5 kB / 0.6546 GB, free: 53.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.2883, allocations: 49.48 kB / 0.6547 GB, free: 53.6 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-05/0.2883, allocations: 72.39 kB / 0.6547 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.034e-05/0.2884, allocations: 335.3 kB / 0.6551 GB, free: 53.23 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.2886, allocations: 199.7 kB / 0.6553 GB, free: 53.11 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.2888, allocations: 346.4 kB / 0.6556 GB, free: 52.81 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.2892, allocations: 310.2 kB / 0.6559 GB, free: 52.62 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2892, allocations: 0.8125 kB / 0.6559 GB, free: 52.62 MB / 0.5573 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005081/0.2897, allocations: 0.5123 MB / 0.6564 GB, free: 52.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.2897, allocations: 92.11 kB / 0.6565 GB, free: 52.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2897, allocations: 4.469 kB / 0.6565 GB, free: 52.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2897, allocations: 4.891 kB / 0.6565 GB, free: 52.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.2899, allocations: 43.3 kB / 0.6565 GB, free: 52.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.2899, allocations: 3.359 kB / 0.6565 GB, free: 52.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.29, allocations: 73.75 kB / 0.6566 GB, free: 52.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.2901, allocations: 17.41 kB / 0.6566 GB, free: 52.18 MB / 0.5573 GB 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,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,minFloRatSaf.intConOne.y,minFloRatSaf.disErr.local_set,minFloRatSaf.disErr.local_reset) * 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 9.113e-05/0.2902, allocations: 151.2 kB / 0.6568 GB, free: 52.04 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.123e-05/0.2902, allocations: 18.22 kB / 0.6568 GB, free: 52.04 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.398e-05/0.2902, allocations: 32.55 kB / 0.6568 GB, free: 52.01 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2902, allocations: 4.25 kB / 0.6568 GB, free: 52.01 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2902, allocations: 2.156 kB / 0.6568 GB, free: 52.01 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2902, allocations: 4.594 kB / 0.6568 GB, free: 52.01 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/0.2908, allocations: 0.526 MB / 0.6573 GB, free: 51.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2908, allocations: 0 / 0.6573 GB, free: 51.69 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.378e-05/0.2909, allocations: 35.52 kB / 0.6574 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2909, allocations: 1.656 kB / 0.6574 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2909, allocations: 5.453 kB / 0.6574 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.2909, allocations: 0 / 0.6574 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2909, allocations: 6 kB / 0.6574 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003748/0.2913, allocations: 348.1 kB / 0.6577 GB, free: 51.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.2913, allocations: 28.23 kB / 0.6577 GB, free: 51.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.2913, allocations: 9.719 kB / 0.6577 GB, free: 51.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.2915, allocations: 46.27 kB / 0.6578 GB, free: 51.47 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.513e-05/0.2915, allocations: 52.42 kB / 0.6578 GB, free: 51.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2916, allocations: 13.03 kB / 0.6578 GB, free: 51.45 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 7.126e-05/0.2916, allocations: 143.4 kB / 0.658 GB, free: 51.36 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.2916, allocations: 0 / 0.658 GB, free: 51.36 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002003/0.2918, allocations: 62.44 kB / 0.658 GB, free: 51.34 MB / 0.5573 GB 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.279e-05/0.2919, allocations: 119.4 kB / 0.6582 GB, free: 51.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004973/0.2924, allocations: 0.4908 MB / 0.6586 GB, free: 50.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2924, allocations: 4.062 kB / 0.6586 GB, free: 50.89 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001862/0.2926, allocations: 108.7 kB / 0.6587 GB, free: 50.87 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.2929, allocations: 41.17 kB / 0.6588 GB, free: 50.86 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005323/0.2934, allocations: 403.5 kB / 0.6592 GB, free: 50.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.26e-05/0.2935, allocations: 127.6 kB / 0.6593 GB, free: 50.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.084e-05/0.2935, allocations: 30 kB / 0.6593 GB, free: 50.49 MB / 0.5573 GB Notification: Performance of SimCode: time 5.31e-07/0.2935, allocations: 4 kB / 0.6593 GB, free: 50.49 MB / 0.5573 GB Notification: Performance of Templates: time 0.003931/0.2975, allocations: 3.153 MB / 0.6624 GB, free: 50.27 MB / 0.5573 GB " [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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.396615938283503] Failed to read output from testmodel.py, exit status != 0: 0.3033006452023983 0.310227459 0.024674007 Calling exit ...