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.001348/0.001348, allocations: 111.5 kB / 18.88 MB, free: 3.055 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.001392/0.001392, allocations: 192.8 kB / 22.17 MB, free: 5.199 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.407/1.407, 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.002472/0.002472, allocations: 287.2 kB / 306.4 MB, free: 8.461 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.329/1.329, allocations: 180.9 MB / 0.5298 GB, free: 14.6 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.002942/0.002942, allocations: 106.1 kB / 0.7306 GB, free: 39.07 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1531, allocations: 94.16 MB / 0.8226 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003675/0.1568, allocations: 2.057 MB / 0.8246 GB, free: 340 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001124/0.1579, allocations: 0.5883 MB / 0.8251 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.1581, allocations: 4 kB / 0.8251 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.1582, allocations: 27.66 kB / 0.8252 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.1584, allocations: 39.59 kB / 0.8252 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.1586, allocations: 95.88 kB / 0.8253 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004056/0.159, allocations: 291.1 kB / 0.8256 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.1593, allocations: 99.3 kB / 0.8257 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.1595, allocations: 119.6 kB / 0.8258 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.1596, allocations: 139.3 kB / 0.8259 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.861e-05/0.1597, allocations: 32 kB / 0.826 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.245e-05/0.1597, allocations: 28 kB / 0.826 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.008e-05/0.1598, allocations: 59.81 kB / 0.826 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.16, allocations: 115.4 kB / 0.8261 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004293/0.1604, allocations: 302.8 kB / 0.8264 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.1604, allocations: 0 / 0.8264 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of FrontEnd: time 7.12e-07/0.1604, allocations: 0 / 0.8264 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.1604, allocations: 0 / 0.8264 GB, free: 14.41 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.001337/0.1617, allocations: 0.672 MB / 0.8271 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.1618, allocations: 8.031 kB / 0.8271 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.68e-05/0.1618, allocations: 28.8 kB / 0.8271 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.1622, allocations: 261.4 kB / 0.8274 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.1623, allocations: 24.81 kB / 0.8274 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.1623, allocations: 24.38 kB / 0.8274 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006977/0.163, allocations: 283.5 kB / 0.8277 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.163, allocations: 3.938 kB / 0.8277 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.163, allocations: 15.98 kB / 0.8277 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1631, allocations: 8 kB / 0.8277 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007248/0.1638, allocations: 197.6 kB / 0.8279 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.1651, allocations: 0.6543 MB / 0.8285 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006865/0.1658, allocations: 182.4 kB / 0.8287 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003318/0.1661, allocations: 92.72 kB / 0.8288 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.1661, allocations: 0 / 0.8288 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000522/0.1667, allocations: 195.2 kB / 0.829 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=19): time 1.503e-06/0.1667, allocations: 0 / 0.829 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of matching and sorting (n=19): time 0.001168/0.1678, allocations: 343.4 kB / 0.8293 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.1679, allocations: 144.5 kB / 0.8295 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.1682, allocations: 208.5 kB / 0.8297 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.494e-05/0.1682, allocations: 37.7 kB / 0.8297 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.1683, allocations: 156.4 kB / 0.8298 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.504e-05/0.1684, allocations: 55.61 kB / 0.8299 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.1685, allocations: 65.98 kB / 0.83 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002431/0.1687, allocations: 330.8 kB / 0.8303 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003997/0.1691, allocations: 120.2 kB / 0.8304 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004551/0.1696, allocations: 184.4 kB / 0.8306 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007447/0.1703, allocations: 315 kB / 0.8309 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1703, allocations: 0 / 0.8309 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001017/0.1714, allocations: 431.6 kB / 0.8313 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.912e-05/0.1714, allocations: 93.11 kB / 0.8314 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1714, allocations: 0 / 0.8314 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.704e-05/0.1715, allocations: 7.938 kB / 0.8314 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.1717, allocations: 43.89 kB / 0.8314 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.1717, allocations: 0 / 0.8314 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.1721, allocations: 67.72 kB / 0.8315 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.98e-05/0.1721, allocations: 20.03 kB / 0.8315 GB, free: 8.844 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.0001703/0.1723, allocations: 148.4 kB / 0.8316 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.1723, allocations: 23.86 kB / 0.8317 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.482e-05/0.1724, allocations: 37.73 kB / 0.8317 GB, free: 8.629 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1724, allocations: 48 / 0.8317 GB, free: 8.629 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1724, allocations: 7.984 kB / 0.8317 GB, free: 8.621 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1724, allocations: 0 / 0.8317 GB, free: 8.621 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.1736, allocations: 0.6037 MB / 0.8323 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1736, allocations: 3.938 kB / 0.8323 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.1738, allocations: 23.97 kB / 0.8323 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1738, allocations: 4 kB / 0.8323 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.1738, allocations: 11.98 kB / 0.8323 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1738, allocations: 0 / 0.8323 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1738, allocations: 0 / 0.8323 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008612/0.1747, allocations: 349.4 kB / 0.8327 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.449e-05/0.1748, allocations: 104.9 kB / 0.8328 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.123e-05/0.1748, allocations: 12 kB / 0.8328 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003494/0.1752, allocations: 39.94 kB / 0.8328 GB, free: 7.391 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.1753, allocations: 55.88 kB / 0.8329 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.1753, allocations: 11.98 kB / 0.8329 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001411/0.1755, allocations: 143.4 kB / 0.833 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1755, allocations: 0 / 0.833 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003211/0.1758, allocations: 67.84 kB / 0.8331 GB, free: 7.117 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.000145/0.1759, allocations: 119.2 kB / 0.8332 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009663/0.1769, allocations: 415.3 kB / 0.8336 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1769, allocations: 0 / 0.8336 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004007/0.1773, allocations: 113.2 kB / 0.8337 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.1777, allocations: 35.86 kB / 0.8337 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009057/0.1786, allocations: 392.5 kB / 0.8341 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.179, allocations: 0.7401 MB / 0.8348 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.403e-05/0.1791, allocations: 17.95 kB / 0.8349 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.886e-05/0.1791, allocations: 27.42 kB / 0.8349 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of SimCode: time 4.01e-07/0.1791, allocations: 0 / 0.8349 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of Templates: time 0.008274/0.1874, allocations: 3.618 MB / 0.8384 GB, free: 1.621 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.04956737998873] Failed to read output from testmodel.py, exit status != 0: 0.19533821195363998 0.21113711000000002 0.047708886000000006 Calling exit ...