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: "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004429/0.004429, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001307/0.001308, allocations: 197.5 kB / 16.68 MB, free: 5.977 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002354/0.002354, allocations: 279 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 178.6 MB / 0.5074 GB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002601/0.002601, allocations: 96.27 kB / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.45/0.4526, allocations: 89.14 MB / 0.7814 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003337/0.456, allocations: 2.03 MB / 0.7834 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009662/0.457, allocations: 0.5749 MB / 0.7839 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.531e-05/0.4571, allocations: 2.562 kB / 0.7839 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.4572, allocations: 25.45 kB / 0.784 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.4574, allocations: 40.53 kB / 0.784 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.4576, allocations: 92.28 kB / 0.7841 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003277/0.4579, allocations: 292.9 kB / 0.7844 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.4582, allocations: 127.9 kB / 0.7845 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.4583, allocations: 115.1 kB / 0.7846 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.4585, allocations: 134.4 kB / 0.7847 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.4586, allocations: 28.88 kB / 0.7848 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.095e-05/0.4586, allocations: 32.53 kB / 0.7848 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.485e-05/0.4587, allocations: 64.14 kB / 0.7848 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.4588, allocations: 119.8 kB / 0.785 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003942/0.4592, allocations: 305 kB / 0.7853 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4592, allocations: 0.7031 kB / 0.7853 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4593, allocations: 1.5 kB / 0.7853 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.4593, allocations: 0 / 0.7853 GB, free: 11.21 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.001231/0.4605, allocations: 0.6634 MB / 0.7859 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.4605, allocations: 9.875 kB / 0.7859 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.446e-05/0.4606, allocations: 56.19 kB / 0.786 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.064e-05/0.4607, allocations: 32.64 kB / 0.786 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.4611, allocations: 268 kB / 0.7863 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.4611, allocations: 19.05 kB / 0.7863 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.018e-05/0.4611, allocations: 26.31 kB / 0.7863 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006573/0.4618, allocations: 291.9 kB / 0.7866 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.4618, allocations: 3.938 kB / 0.7866 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.4619, allocations: 11.69 kB / 0.7866 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.4619, allocations: 5.188 kB / 0.7866 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006862/0.4626, allocations: 209.9 kB / 0.7868 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.4638, allocations: 0.6533 MB / 0.7874 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000667/0.4644, allocations: 199.6 kB / 0.7876 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.4648, allocations: 91.11 kB / 0.7877 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.4648, allocations: 2.594 kB / 0.7877 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005106/0.4653, allocations: 204.5 kB / 0.7879 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=19): time 1.833e-06/0.4653, allocations: 0 / 0.7879 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19): time 0.001089/0.4664, allocations: 337.3 kB / 0.7882 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.434e-05/0.4665, allocations: 140.2 kB / 0.7884 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.4667, allocations: 211.9 kB / 0.7886 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.4668, allocations: 44.75 kB / 0.7886 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.4669, allocations: 159.5 kB / 0.7888 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/0.467, allocations: 56.12 kB / 0.7888 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.4671, allocations: 68.45 kB / 0.7889 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.4673, allocations: 330.9 kB / 0.7892 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003678/0.4677, allocations: 113.2 kB / 0.7893 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/0.4681, allocations: 185.4 kB / 0.7895 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007774/0.4689, allocations: 315.8 kB / 0.7898 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.4689, allocations: 5.031 kB / 0.7898 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001023/0.47, allocations: 419 kB / 0.7902 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.744e-05/0.47, allocations: 96.3 kB / 0.7903 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.433e-06/0.4701, allocations: 1.688 kB / 0.7903 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.4701, allocations: 7.156 kB / 0.7903 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.4703, allocations: 44.09 kB / 0.7903 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.4703, allocations: 3.766 kB / 0.7903 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003394/0.4707, allocations: 71.36 kB / 0.7904 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.4707, allocations: 9.156 kB / 0.7904 GB, free: 7.836 MB / 0.5606 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.0001776/0.4709, allocations: 151.7 kB / 0.7906 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.4709, allocations: 23.12 kB / 0.7906 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.636e-05/0.471, allocations: 32.22 kB / 0.7906 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.471, allocations: 6.438 kB / 0.7906 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.471, allocations: 1 kB / 0.7906 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.471, allocations: 0.75 kB / 0.7906 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.4722, allocations: 0.614 MB / 0.7912 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.4722, allocations: 0 / 0.7912 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.4724, allocations: 35.67 kB / 0.7912 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.4724, allocations: 1.062 kB / 0.7912 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.4724, allocations: 4.297 kB / 0.7913 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.4724, allocations: 1.562 kB / 0.7913 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4724, allocations: 0 / 0.7913 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.4732, allocations: 363.1 kB / 0.7916 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.691e-05/0.4733, allocations: 94.78 kB / 0.7917 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.84e-05/0.4734, allocations: 8.828 kB / 0.7917 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.4737, allocations: 47.16 kB / 0.7917 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.4739, allocations: 53.83 kB / 0.7918 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.602e-05/0.4739, allocations: 7.281 kB / 0.7918 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001397/0.474, allocations: 144.7 kB / 0.7919 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.474, allocations: 0 / 0.7919 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003092/0.4744, allocations: 66.5 kB / 0.792 GB, free: 6.816 MB / 0.5606 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.001574/0.4759, allocations: 1.014 MB / 0.793 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009551/0.4769, allocations: 431.8 kB / 0.7934 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4769, allocations: 8.25 kB / 0.7934 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.4773, allocations: 114 kB / 0.7935 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.4777, allocations: 30.62 kB / 0.7936 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004532/0.4822, allocations: 2.682 MB / 0.7962 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.4827, allocations: 0.7411 MB / 0.7969 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001243/0.4828, allocations: 23.77 kB / 0.7969 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.483, allocations: 73.69 kB / 0.797 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of SimCode: time 3.2e-07/0.483, allocations: 0 / 0.797 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.5103, allocations: 5.739 MB / 0.8026 GB, free: 424 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.939/8.449, allocations: 13.27 kB / 0.8026 GB, free: 416 kB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)