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.001559/0.001559, allocations: 103.1 kB / 16.45 MB, free: 6.449 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.001703/0.001703, allocations: 186.9 kB / 19.4 MB, free: 3.66 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.471/1.471, allocations: 225.6 MB / 247.8 MB, free: 13.98 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.002547/0.002547, allocations: 279.4 kB / 302.9 MB, free: 9.531 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.18/1.18, allocations: 180.9 MB / 0.5261 GB, free: 14.76 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.004019/0.004019, allocations: 100.1 kB / 0.7253 GB, free: 40.1 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.177, allocations: 94.17 MB / 0.8172 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003492/0.1805, allocations: 2.031 MB / 0.8192 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.1816, allocations: 0.5844 MB / 0.8198 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1817, allocations: 4 kB / 0.8198 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1818, allocations: 23.67 kB / 0.8198 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.1819, allocations: 43.59 kB / 0.8199 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.1822, allocations: 95.89 kB / 0.82 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.1825, allocations: 291 kB / 0.8202 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.1828, allocations: 95.41 kB / 0.8203 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.183, allocations: 119.6 kB / 0.8204 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.1831, allocations: 131.4 kB / 0.8206 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.1832, allocations: 28 kB / 0.8206 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.204e-05/0.1832, allocations: 36 kB / 0.8206 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.377e-05/0.1833, allocations: 59.77 kB / 0.8207 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1834, allocations: 127.4 kB / 0.8208 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.1838, allocations: 298.8 kB / 0.8211 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.1838, allocations: 3.938 kB / 0.8211 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.021e-06/0.1838, allocations: 0 / 0.8211 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.1838, allocations: 0 / 0.8211 GB, free: 0.9766 MB / 0.5606 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.001303/0.1851, allocations: 0.6681 MB / 0.8218 GB, free: 244 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.1851, allocations: 8.031 kB / 0.8218 GB, free: 236 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.243e-05/0.1852, allocations: 28.8 kB / 0.8218 GB, free: 208 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.1856, allocations: 265.3 kB / 0.822 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.1856, allocations: 16.8 kB / 0.8221 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/0.1857, allocations: 24.38 kB / 0.8221 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006729/0.1864, allocations: 291.5 kB / 0.8224 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.1864, allocations: 0 / 0.8224 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.1864, allocations: 8 kB / 0.8224 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.1864, allocations: 8 kB / 0.8224 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006905/0.1871, allocations: 201.6 kB / 0.8226 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.1883, allocations: 0.6387 MB / 0.8232 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007133/0.189, allocations: 194.4 kB / 0.8234 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003386/0.1894, allocations: 92.77 kB / 0.8235 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.1894, allocations: 4 kB / 0.8235 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005151/0.1899, allocations: 197.6 kB / 0.8237 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.1899, allocations: 0 / 0.8237 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=19): time 0.001144/0.1911, allocations: 345.1 kB / 0.824 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1912, allocations: 136.5 kB / 0.8241 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.1914, allocations: 211 kB / 0.8243 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.1914, allocations: 41.69 kB / 0.8244 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.1916, allocations: 164.6 kB / 0.8245 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.131e-05/0.1916, allocations: 51.62 kB / 0.8246 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.1918, allocations: 69.97 kB / 0.8246 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1919, allocations: 330.8 kB / 0.8249 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.1923, allocations: 112.2 kB / 0.825 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004454/0.1928, allocations: 188.4 kB / 0.8252 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007496/0.1935, allocations: 312 kB / 0.8255 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1935, allocations: 0 / 0.8255 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009791/0.1945, allocations: 423.5 kB / 0.8259 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.456e-05/0.1946, allocations: 97.03 kB / 0.826 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1946, allocations: 4 kB / 0.826 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1946, allocations: 3.938 kB / 0.826 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.1948, allocations: 56.05 kB / 0.8261 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.1948, allocations: 0 / 0.8261 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.1952, allocations: 63.78 kB / 0.8261 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.1952, allocations: 8 kB / 0.8262 GB, free: 11.43 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.000175/0.1954, allocations: 160.3 kB / 0.8263 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.1954, allocations: 23.86 kB / 0.8263 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.353e-05/0.1955, allocations: 33.8 kB / 0.8264 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.1955, allocations: 0 / 0.8264 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1955, allocations: 0 / 0.8264 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1955, allocations: 0 / 0.8264 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.1967, allocations: 0.6134 MB / 0.827 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1967, allocations: 0 / 0.827 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.1969, allocations: 31.95 kB / 0.827 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1969, allocations: 0 / 0.827 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.1969, allocations: 4 kB / 0.827 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.1969, allocations: 3.984 kB / 0.827 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1969, allocations: 0 / 0.827 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000825/0.1977, allocations: 356.3 kB / 0.8273 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.1978, allocations: 96.95 kB / 0.8274 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.1978, allocations: 11.94 kB / 0.8274 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003375/0.1982, allocations: 43.94 kB / 0.8275 GB, free: 9.969 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.1983, allocations: 55.92 kB / 0.8275 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.1983, allocations: 7.984 kB / 0.8275 GB, free: 9.906 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001421/0.1985, allocations: 144.6 kB / 0.8277 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1985, allocations: 0 / 0.8277 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003118/0.1988, allocations: 67.84 kB / 0.8277 GB, free: 9.699 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.0001611/0.1989, allocations: 122.7 kB / 0.8279 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009825/0.1999, allocations: 419.1 kB / 0.8283 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1999, allocations: 0 / 0.8283 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.2003, allocations: 114.2 kB / 0.8284 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.2007, allocations: 42.55 kB / 0.8284 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009146/0.2016, allocations: 376.5 kB / 0.8288 GB, free: 8.578 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.202, allocations: 0.7439 MB / 0.8295 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001019/0.2021, allocations: 25.89 kB / 0.8295 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.886e-05/0.2022, allocations: 31.36 kB / 0.8296 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.2022, allocations: 0 / 0.8296 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of Templates: time 0.007606/0.2098, allocations: 3.547 MB / 0.833 GB, free: 4.262 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.217057412490249]