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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 198.6 kB / 22.17 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.6 MB / 250.9 MB, free: 13.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002533/0.002533, allocations: 281.6 kB / 306.4 MB, free: 8.465 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.219/1.219, allocations: 180.9 MB / 0.5298 GB, free: 14.54 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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 0.002808/0.002808, allocations: 105.1 kB / 0.7306 GB, free: 38.92 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1598, allocations: 94.16 MB / 0.8226 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003552/0.1634, allocations: 2.047 MB / 0.8246 GB, free: 320 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001175/0.1646, allocations: 0.5961 MB / 0.8251 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.1647, allocations: 0 / 0.8251 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.1648, allocations: 31.66 kB / 0.8252 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.165, allocations: 39.59 kB / 0.8252 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002663/0.1652, allocations: 95.89 kB / 0.8253 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003476/0.1656, allocations: 295 kB / 0.8256 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.1658, allocations: 91.36 kB / 0.8257 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.166, allocations: 119.6 kB / 0.8258 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.1661, allocations: 135.4 kB / 0.8259 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.1662, allocations: 28 kB / 0.8259 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.436e-05/0.1662, allocations: 28 kB / 0.826 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.228e-05/0.1663, allocations: 63.75 kB / 0.826 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.1664, allocations: 119.4 kB / 0.8261 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.1668, allocations: 302.8 kB / 0.8264 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1668, allocations: 4 kB / 0.8264 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1668, allocations: 0 / 0.8264 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.034e-06/0.1668, allocations: 0 / 0.8264 GB, free: 14.38 MB / 0.5762 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.001366/0.1682, allocations: 0.6641 MB / 0.8271 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1682, allocations: 12.03 kB / 0.8271 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.496e-05/0.1683, allocations: 28.8 kB / 0.8271 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004302/0.1688, allocations: 273.4 kB / 0.8274 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.1688, allocations: 16.75 kB / 0.8274 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/0.1688, allocations: 24.38 kB / 0.8274 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.1695, allocations: 283.5 kB / 0.8277 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1695, allocations: 4 kB / 0.8277 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.1696, allocations: 15.98 kB / 0.8277 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1696, allocations: 4 kB / 0.8277 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007247/0.1703, allocations: 197.6 kB / 0.8279 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.1716, allocations: 0.6465 MB / 0.8285 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007062/0.1723, allocations: 186.4 kB / 0.8287 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000321/0.1726, allocations: 92.7 kB / 0.8288 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.1727, allocations: 4 kB / 0.8288 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005045/0.1732, allocations: 195.2 kB / 0.829 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.1732, allocations: 0 / 0.829 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of matching and sorting (n=19): time 0.00116/0.1743, allocations: 343.2 kB / 0.8293 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/0.1744, allocations: 140.5 kB / 0.8295 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002292/0.1746, allocations: 208.5 kB / 0.8297 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.1747, allocations: 37.7 kB / 0.8297 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.1748, allocations: 164.3 kB / 0.8298 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.245e-05/0.1749, allocations: 51.62 kB / 0.8299 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.175, allocations: 65.97 kB / 0.83 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1752, allocations: 338.8 kB / 0.8303 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.1756, allocations: 112.2 kB / 0.8304 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004362/0.176, allocations: 184.4 kB / 0.8306 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00075/0.1767, allocations: 315 kB / 0.8309 GB, free: 9.512 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1767, allocations: 3.938 kB / 0.8309 GB, free: 9.508 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009883/0.1777, allocations: 423.6 kB / 0.8313 GB, free: 9.07 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/0.1778, allocations: 93.09 kB / 0.8314 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1778, allocations: 0 / 0.8314 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.1778, allocations: 7.938 kB / 0.8314 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.1781, allocations: 43.89 kB / 0.8314 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.1781, allocations: 4 kB / 0.8314 GB, free: 8.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.1785, allocations: 71.84 kB / 0.8315 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.1785, allocations: 12 kB / 0.8315 GB, free: 8.824 MB / 0.5762 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 0.0001766/0.1787, allocations: 152.4 kB / 0.8316 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/0.1787, allocations: 19.86 kB / 0.8317 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.325e-05/0.1788, allocations: 29.81 kB / 0.8317 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.1788, allocations: 7.984 kB / 0.8317 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.1788, allocations: 8 kB / 0.8317 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1788, allocations: 0 / 0.8317 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.18, allocations: 0.5997 MB / 0.8323 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.18, allocations: 3.938 kB / 0.8323 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.1802, allocations: 35.91 kB / 0.8323 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1802, allocations: 0 / 0.8323 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.1802, allocations: 7.984 kB / 0.8323 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1802, allocations: 4 kB / 0.8323 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1802, allocations: 0 / 0.8323 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008219/0.181, allocations: 353 kB / 0.8327 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.1811, allocations: 96.94 kB / 0.8328 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.1811, allocations: 12 kB / 0.8328 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/0.1815, allocations: 43.94 kB / 0.8328 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.1816, allocations: 55.88 kB / 0.8329 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.1816, allocations: 11.98 kB / 0.8329 GB, free: 7.301 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001347/0.1818, allocations: 147.4 kB / 0.833 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1818, allocations: 0 / 0.833 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003126/0.1821, allocations: 59.84 kB / 0.8331 GB, free: 7.098 MB / 0.5762 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 0.0001684/0.1823, allocations: 125.9 kB / 0.8332 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009382/0.1832, allocations: 417.3 kB / 0.8336 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1832, allocations: 0 / 0.8336 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003898/0.1836, allocations: 111.8 kB / 0.8337 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.184, allocations: 36.23 kB / 0.8337 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008633/0.1848, allocations: 392.4 kB / 0.8341 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.1852, allocations: 0.7401 MB / 0.8348 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.622e-05/0.1853, allocations: 21.95 kB / 0.8349 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.285e-05/0.1854, allocations: 23.42 kB / 0.8349 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of SimCode: time 4.91e-07/0.1854, allocations: 0 / 0.8349 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of Templates: time 0.007555/0.1929, allocations: 3.613 MB / 0.8384 GB, free: 1.602 MB / 0.5762 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.946116932667792] Failed to read output from testmodel.py, exit status != 0: 0.20036304369568825 0.215157808 0.04535873 Calling exit ...