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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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=200,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=200,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 111.1 kB / 17.07 MB, free: 5.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 203 kB / 18.05 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 225.6 MB / 244.5 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002552/0.002552, allocations: 293.1 kB / 297.6 MB, free: 11.3 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.234/1.234, allocations: 180.9 MB / 0.519 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002766/0.002766, allocations: 101.3 kB / 0.7167 GB, free: 39.89 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1854, allocations: 94.16 MB / 0.8086 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003697/0.1891, allocations: 2.039 MB / 0.8106 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.1902, allocations: 0.5844 MB / 0.8112 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.1903, allocations: 0 / 0.8112 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.1905, allocations: 31.67 kB / 0.8112 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.1906, allocations: 39.59 kB / 0.8113 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.1909, allocations: 99.88 kB / 0.8114 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.1913, allocations: 287.1 kB / 0.8116 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.1915, allocations: 99.34 kB / 0.8117 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.1917, allocations: 119.6 kB / 0.8118 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.1918, allocations: 135.4 kB / 0.812 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.132e-05/0.1919, allocations: 28 kB / 0.812 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.488e-05/0.192, allocations: 28 kB / 0.812 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.097e-05/0.192, allocations: 59.83 kB / 0.8121 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.1922, allocations: 123.4 kB / 0.8122 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003786/0.1925, allocations: 302.8 kB / 0.8125 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1925, allocations: 4 kB / 0.8125 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.743e-06/0.1925, allocations: 0 / 0.8125 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.1925, allocations: 0 / 0.8125 GB, free: 2.449 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.001265/0.1938, allocations: 0.6642 MB / 0.8131 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1939, allocations: 8.031 kB / 0.8131 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.76e-05/0.1939, allocations: 32.8 kB / 0.8132 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004012/0.1943, allocations: 265.4 kB / 0.8134 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.1944, allocations: 20.8 kB / 0.8134 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.645e-05/0.1944, allocations: 20.38 kB / 0.8135 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006543/0.1951, allocations: 291.5 kB / 0.8137 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1951, allocations: 0 / 0.8137 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.1951, allocations: 8 kB / 0.8138 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1951, allocations: 4 kB / 0.8138 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007107/0.1958, allocations: 197.6 kB / 0.8139 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.197, allocations: 0.6504 MB / 0.8146 GB, free: 132 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006977/0.1977, allocations: 193.7 kB / 0.8148 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.198, allocations: 84.72 kB / 0.8148 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.1981, allocations: 11.92 kB / 0.8149 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004935/0.1986, allocations: 195.2 kB / 0.815 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=19): time 1.743e-06/0.1986, allocations: 3.938 kB / 0.815 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of matching and sorting (n=19): time 0.001164/0.1997, allocations: 343.4 kB / 0.8154 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/0.1998, allocations: 136.5 kB / 0.8155 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.2, allocations: 211 kB / 0.8157 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.2001, allocations: 41.69 kB / 0.8157 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.2002, allocations: 164.6 kB / 0.8159 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.063e-05/0.2003, allocations: 47.64 kB / 0.8159 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.2004, allocations: 65.97 kB / 0.816 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.2006, allocations: 338.8 kB / 0.8163 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.201, allocations: 112.2 kB / 0.8164 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.2014, allocations: 180.4 kB / 0.8166 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007231/0.2021, allocations: 315.5 kB / 0.8169 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.2021, allocations: 7.938 kB / 0.8169 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009627/0.2031, allocations: 423.5 kB / 0.8173 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.312e-05/0.2032, allocations: 89.09 kB / 0.8174 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2032, allocations: 0 / 0.8174 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.2032, allocations: 7.938 kB / 0.8174 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.2034, allocations: 43.95 kB / 0.8175 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.2034, allocations: 7.938 kB / 0.8175 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.2038, allocations: 71.88 kB / 0.8175 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.2038, allocations: 12 kB / 0.8175 GB, free: 12.89 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.0001713/0.204, allocations: 152.4 kB / 0.8177 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.243e-05/0.2041, allocations: 19.86 kB / 0.8177 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.052e-05/0.2041, allocations: 29.8 kB / 0.8177 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2041, allocations: 8 kB / 0.8177 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2041, allocations: 0 / 0.8177 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2041, allocations: 0 / 0.8177 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.2053, allocations: 0.6099 MB / 0.8183 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2053, allocations: 0 / 0.8183 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.2055, allocations: 43.83 kB / 0.8184 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.2055, allocations: 0 / 0.8184 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.2055, allocations: 4 kB / 0.8184 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.2055, allocations: 7.984 kB / 0.8184 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2055, allocations: 0 / 0.8184 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007772/0.2063, allocations: 351.1 kB / 0.8187 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.51e-05/0.2064, allocations: 92.95 kB / 0.8188 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/0.2064, allocations: 8 kB / 0.8188 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.2067, allocations: 47.94 kB / 0.8189 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.2069, allocations: 51.92 kB / 0.8189 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.2069, allocations: 15.94 kB / 0.8189 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001448/0.207, allocations: 148.6 kB / 0.8191 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/0.207, allocations: 3.938 kB / 0.8191 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003298/0.2074, allocations: 59.84 kB / 0.8191 GB, free: 11.17 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.0001698/0.2075, allocations: 115.2 kB / 0.8192 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009265/0.2085, allocations: 422.4 kB / 0.8197 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2085, allocations: 0 / 0.8197 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003625/0.2088, allocations: 110.1 kB / 0.8198 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.2092, allocations: 36.22 kB / 0.8198 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009508/0.2102, allocations: 406.2 kB / 0.8202 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.2105, allocations: 0.7439 MB / 0.8209 GB, free: 9.25 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.514e-05/0.2106, allocations: 23.44 kB / 0.8209 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/0.2106, allocations: 0 / 0.8209 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of Templates: time 0.005431/0.2161, allocations: 3.114 MB / 0.824 GB, free: 6.133 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (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)