Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.006561/0.006561, allocations: 100.8 kB / 15.87 MB, free: 6.32 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.00177/0.00177, allocations: 198.2 kB / 16.79 MB, free: 6.246 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.496/1.496, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8338/0.8338, allocations: 126.7 MB / 417.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 72.53 kB / 0.4951 GB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1956, allocations: 78.87 MB / 0.5721 GB, free: 11.42 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003886/0.1995, allocations: 2.067 MB / 0.5741 GB, free: 9.328 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.2006, allocations: 0.5651 MB / 0.5747 GB, free: 8.762 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2008, allocations: 7.938 kB / 0.5747 GB, free: 8.754 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.2009, allocations: 19.84 kB / 0.5747 GB, free: 8.734 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.2011, allocations: 27.72 kB / 0.5747 GB, free: 8.707 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.2013, allocations: 91.86 kB / 0.5748 GB, free: 8.617 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002916/0.2016, allocations: 263.3 kB / 0.5751 GB, free: 8.359 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.2019, allocations: 123.2 kB / 0.5752 GB, free: 8.234 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.202, allocations: 103.6 kB / 0.5753 GB, free: 8.133 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.2022, allocations: 119.4 kB / 0.5754 GB, free: 8.016 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.2023, allocations: 19.98 kB / 0.5754 GB, free: 7.996 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.862e-05/0.2023, allocations: 16 kB / 0.5755 GB, free: 7.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.54e-05/0.2024, allocations: 51.81 kB / 0.5755 GB, free: 7.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.2026, allocations: 111.4 kB / 0.5756 GB, free: 7.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003149/0.2029, allocations: 275.3 kB / 0.5759 GB, free: 7.551 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2029, allocations: 0 / 0.5759 GB, free: 7.551 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2029, allocations: 0 / 0.5759 GB, free: 7.551 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.2029, allocations: 0 / 0.5759 GB, free: 7.551 MB / 446.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.001378/0.2043, allocations: 0.6644 MB / 0.5765 GB, free: 6.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.2043, allocations: 8.031 kB / 0.5765 GB, free: 6.812 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.804e-05/0.2044, allocations: 28.66 kB / 0.5766 GB, free: 6.785 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.2048, allocations: 265.2 kB / 0.5768 GB, free: 6.484 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.2049, allocations: 20.75 kB / 0.5768 GB, free: 6.465 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.2049, allocations: 23.94 kB / 0.5768 GB, free: 6.441 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006963/0.2056, allocations: 287.5 kB / 0.5771 GB, free: 6.145 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2056, allocations: 0 / 0.5771 GB, free: 6.145 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.2057, allocations: 4 kB / 0.5771 GB, free: 6.141 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2057, allocations: 4 kB / 0.5771 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007338/0.2064, allocations: 213.6 kB / 0.5773 GB, free: 5.926 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.2077, allocations: 0.6502 MB / 0.578 GB, free: 5.227 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006699/0.2083, allocations: 202.4 kB / 0.5782 GB, free: 5.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.2087, allocations: 88.78 kB / 0.5782 GB, free: 4.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.2087, allocations: 4 kB / 0.5783 GB, free: 4.926 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006237/0.2093, allocations: 195.4 kB / 0.5784 GB, free: 4.723 MB / 446.1 MB Notification: Performance of pre-optimization done (n=19): time 2.215e-06/0.2093, allocations: 0 / 0.5784 GB, free: 4.723 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001152/0.2105, allocations: 335 kB / 0.5788 GB, free: 4.391 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.854e-05/0.2106, allocations: 140.5 kB / 0.5789 GB, free: 4.223 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.2109, allocations: 218.7 kB / 0.5791 GB, free: 4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.055e-05/0.2109, allocations: 37.7 kB / 0.5791 GB, free: 3.957 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.211, allocations: 152.2 kB / 0.5793 GB, free: 3.805 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.2111, allocations: 51.34 kB / 0.5793 GB, free: 3.754 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.2112, allocations: 65.97 kB / 0.5794 GB, free: 3.684 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.2114, allocations: 334.8 kB / 0.5797 GB, free: 3.348 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000425/0.2118, allocations: 116.2 kB / 0.5798 GB, free: 3.234 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.2123, allocations: 180.4 kB / 0.58 GB, free: 3.031 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007003/0.213, allocations: 316.2 kB / 0.5803 GB, free: 2.688 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2131, allocations: 0 / 0.5803 GB, free: 2.688 MB / 446.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001004/0.2141, allocations: 432.9 kB / 0.5807 GB, free: 2.242 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.814e-05/0.2142, allocations: 97.03 kB / 0.5808 GB, free: 2.129 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2142, allocations: 3.938 kB / 0.5808 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.2142, allocations: 4 kB / 0.5808 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.2145, allocations: 43.89 kB / 0.5809 GB, free: 2.078 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.2145, allocations: 4 kB / 0.5809 GB, free: 2.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003519/0.2148, allocations: 67.81 kB / 0.5809 GB, free: 2.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.2149, allocations: 12 kB / 0.5809 GB, free: 1.996 MB / 446.1 MB 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.0001908/0.2151, allocations: 148.4 kB / 0.5811 GB, free: 1.844 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.552e-05/0.2151, allocations: 27.64 kB / 0.5811 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.262e-05/0.2152, allocations: 25.88 kB / 0.5811 GB, free: 1.793 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.2152, allocations: 4 kB / 0.5811 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2152, allocations: 0 / 0.5811 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.2152, allocations: 4.031 kB / 0.5811 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.2164, allocations: 0.619 MB / 0.5817 GB, free: 1.109 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2164, allocations: 0 / 0.5817 GB, free: 1.109 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.2166, allocations: 27.97 kB / 0.5818 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2166, allocations: 4 kB / 0.5818 GB, free: 1.078 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.2166, allocations: 7.984 kB / 0.5818 GB, free: 1.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.676e-06/0.2166, allocations: 4 kB / 0.5818 GB, free: 1.066 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2166, allocations: 0 / 0.5818 GB, free: 1.066 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008455/0.2175, allocations: 353.4 kB / 0.5821 GB, free: 0.707 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.2176, allocations: 92.83 kB / 0.5822 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.2176, allocations: 15.98 kB / 0.5822 GB, free: 0.582 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003244/0.218, allocations: 43.94 kB / 0.5823 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.2181, allocations: 51.92 kB / 0.5823 GB, free: 500 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.2182, allocations: 8 kB / 0.5823 GB, free: 492 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001477/0.2183, allocations: 144.6 kB / 0.5825 GB, free: 348 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2183, allocations: 4 kB / 0.5825 GB, free: 344 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.2187, allocations: 63.83 kB / 0.5825 GB, free: 280 kB / 446.1 MB 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.0002124/0.2189, allocations: 112.4 kB / 0.5826 GB, free: 156 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2404/0.4593, allocations: 420.5 kB / 0.583 GB, free: 19.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.4593, allocations: 2 kB / 0.583 GB, free: 19.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004797/0.4598, allocations: 118.6 kB / 0.5831 GB, free: 19.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005052/0.4603, allocations: 40.39 kB / 0.5832 GB, free: 19.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009391/0.4613, allocations: 450.9 kB / 0.5836 GB, free: 18.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.4615, allocations: 0.7402 MB / 0.5843 GB, free: 18.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.4616, allocations: 22.88 kB / 0.5844 GB, free: 18.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.916e-05/0.4617, allocations: 24.62 kB / 0.5844 GB, free: 18.22 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4617, allocations: 0 / 0.5844 GB, free: 18.22 MB / 446.1 MB Notification: Performance of Templates: time 0.008034/0.4697, allocations: 3.082 MB / 0.5874 GB, free: 18.12 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)