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.001364/0.001364, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001453/0.001453, allocations: 191.9 kB / 16.14 MB, free: 6.715 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.449/1.449, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 282.8 kB / 290.2 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.092/1.092, allocations: 178.6 MB / 0.5068 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002816/0.002817, allocations: 99.28 kB / 0.6058 GB, free: 25.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1703, allocations: 89.15 MB / 0.6928 GB, free: 4.812 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003567/0.1739, allocations: 2.073 MB / 0.6948 GB, free: 2.734 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.175, allocations: 0.5778 MB / 0.6954 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.668e-05/0.1751, allocations: 4.875 kB / 0.6954 GB, free: 2.148 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.1752, allocations: 27.72 kB / 0.6954 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.1753, allocations: 27.19 kB / 0.6955 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002167/0.1756, allocations: 83.86 kB / 0.6955 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.1759, allocations: 259.4 kB / 0.6958 GB, free: 1.762 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.1761, allocations: 119.5 kB / 0.6959 GB, free: 1.645 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.1763, allocations: 103.6 kB / 0.696 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.1765, allocations: 119.4 kB / 0.6961 GB, free: 1.426 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.472e-05/0.1765, allocations: 16 kB / 0.6961 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.821e-05/0.1765, allocations: 16 kB / 0.6961 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.1766, allocations: 55.73 kB / 0.6962 GB, free: 1.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001383/0.1768, allocations: 107.4 kB / 0.6963 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.1771, allocations: 279.1 kB / 0.6966 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1771, allocations: 0 / 0.6966 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1771, allocations: 0 / 0.6966 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1771, allocations: 4 kB / 0.6966 GB, free: 0.957 MB / 494.1 MB 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.001376/0.1785, allocations: 0.6527 MB / 0.6972 GB, free: 240 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1785, allocations: 8.031 kB / 0.6972 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.933e-05/0.1786, allocations: 28.66 kB / 0.6972 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.179, allocations: 269.2 kB / 0.6975 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.179, allocations: 24.8 kB / 0.6975 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.1791, allocations: 20.38 kB / 0.6975 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006789/0.1798, allocations: 291.5 kB / 0.6978 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.1798, allocations: 0 / 0.6978 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.1798, allocations: 4 kB / 0.6978 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.1798, allocations: 8 kB / 0.6978 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007165/0.1806, allocations: 209.6 kB / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.1818, allocations: 0.6386 MB / 0.6987 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007071/0.1826, allocations: 202.4 kB / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003261/0.1829, allocations: 88.78 kB / 0.6989 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.1829, allocations: 11.94 kB / 0.6989 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005713/0.1835, allocations: 191.1 kB / 0.6991 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.1835, allocations: 0 / 0.6991 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.00115/0.1847, allocations: 339 kB / 0.6994 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.1848, allocations: 140.5 kB / 0.6996 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.185, allocations: 211 kB / 0.6998 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.756e-05/0.1851, allocations: 37.7 kB / 0.6998 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.1852, allocations: 164.4 kB / 0.7 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.1853, allocations: 51.38 kB / 0.7 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.1854, allocations: 65.97 kB / 0.7001 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1856, allocations: 334.8 kB / 0.7004 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/0.186, allocations: 112.2 kB / 0.7005 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004626/0.1865, allocations: 188.4 kB / 0.7007 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007343/0.1872, allocations: 310.4 kB / 0.701 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1872, allocations: 0 / 0.701 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009884/0.1882, allocations: 428.7 kB / 0.7014 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.475e-05/0.1883, allocations: 94.66 kB / 0.7015 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1883, allocations: 3.984 kB / 0.7015 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1883, allocations: 7.938 kB / 0.7015 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.1886, allocations: 44.11 kB / 0.7015 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.1886, allocations: 11.92 kB / 0.7016 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.189, allocations: 63.69 kB / 0.7016 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/0.189, allocations: 12 kB / 0.7016 GB, free: 11.4 MB / 0.4981 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.0001811/0.1892, allocations: 152.4 kB / 0.7018 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.1893, allocations: 19.8 kB / 0.7018 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.852e-05/0.1893, allocations: 29.81 kB / 0.7018 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1893, allocations: 4 kB / 0.7018 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1894, allocations: 0 / 0.7018 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1894, allocations: 3.984 kB / 0.7018 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.1906, allocations: 0.6133 MB / 0.7024 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1906, allocations: 0 / 0.7024 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.1908, allocations: 31.91 kB / 0.7025 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1908, allocations: 0 / 0.7025 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.1908, allocations: 7.984 kB / 0.7025 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.1908, allocations: 4 kB / 0.7025 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1908, allocations: 0 / 0.7025 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008031/0.1916, allocations: 351 kB / 0.7028 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.039e-05/0.1917, allocations: 92.86 kB / 0.7029 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.333e-05/0.1917, allocations: 15.98 kB / 0.7029 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003354/0.1921, allocations: 47.94 kB / 0.703 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.1922, allocations: 51.92 kB / 0.703 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.1923, allocations: 4 kB / 0.703 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001365/0.1924, allocations: 152.3 kB / 0.7032 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1924, allocations: 0 / 0.7032 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003332/0.1928, allocations: 63.83 kB / 0.7032 GB, free: 9.684 MB / 0.4981 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.0001585/0.1929, allocations: 119.2 kB / 0.7033 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000939/0.1939, allocations: 426.4 kB / 0.7037 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1939, allocations: 0 / 0.7037 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004091/0.1943, allocations: 120.2 kB / 0.7038 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.1947, allocations: 47.77 kB / 0.7039 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009223/0.1956, allocations: 456.1 kB / 0.7043 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.196, allocations: 0.7403 MB / 0.705 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.1961, allocations: 21.95 kB / 0.7051 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.003e-05/0.1962, allocations: 27.42 kB / 0.7051 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.1962, allocations: 0 / 0.7051 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of Templates: time 0.006899/0.2032, allocations: 3.089 MB / 0.7081 GB, free: 4.625 MB / 0.4981 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)