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.004317/0.004317, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.001188/0.001188, allocations: 192 kB / 16.67 MB, free: 6.391 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.327/1.327, 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.002368/0.002368, allocations: 286.9 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.023/1.023, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002475/0.002475, allocations: 99.83 kB / 0.6943 GB, free: 3.562 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4621/0.4646, allocations: 89.14 MB / 0.7814 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003287/0.4679, allocations: 2.03 MB / 0.7834 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009929/0.4689, allocations: 0.5716 MB / 0.7839 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.4691, allocations: 6.844 kB / 0.7839 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.4692, allocations: 24.44 kB / 0.784 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.4693, allocations: 41.34 kB / 0.784 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.4696, allocations: 86.56 kB / 0.7841 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003967/0.47, allocations: 301.4 kB / 0.7844 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/0.4703, allocations: 127.2 kB / 0.7845 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.4705, allocations: 122.7 kB / 0.7846 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001871/0.4707, allocations: 129.5 kB / 0.7847 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.421e-05/0.4707, allocations: 29.31 kB / 0.7848 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.614e-05/0.4708, allocations: 29.12 kB / 0.7848 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.289e-05/0.4709, allocations: 56.75 kB / 0.7848 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.471, allocations: 127 kB / 0.785 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004148/0.4714, allocations: 302.3 kB / 0.7853 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4714, allocations: 2 kB / 0.7853 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4715, allocations: 4 kB / 0.7853 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.062e-05/0.4715, allocations: 0 / 0.7853 GB, free: 11.34 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.001273/0.4728, allocations: 0.6596 MB / 0.7859 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.4728, allocations: 9.25 kB / 0.7859 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.217e-05/0.4729, allocations: 57.03 kB / 0.786 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.927e-05/0.473, allocations: 37.03 kB / 0.786 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.4733, allocations: 272.2 kB / 0.7863 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.4734, allocations: 19.03 kB / 0.7863 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.4734, allocations: 21.53 kB / 0.7863 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000667/0.4741, allocations: 293 kB / 0.7866 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.4741, allocations: 3.938 kB / 0.7866 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.4742, allocations: 11.98 kB / 0.7866 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.4742, allocations: 4.031 kB / 0.7866 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006774/0.4748, allocations: 206.3 kB / 0.7868 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.476, allocations: 0.6537 MB / 0.7874 GB, free: 9.824 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006673/0.4767, allocations: 194.6 kB / 0.7876 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.4771, allocations: 95.2 kB / 0.7877 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.4771, allocations: 2.219 kB / 0.7877 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005303/0.4776, allocations: 206.2 kB / 0.7879 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=19): time 1.523e-06/0.4776, allocations: 0 / 0.7879 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19): time 0.001093/0.4787, allocations: 331.2 kB / 0.7882 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/0.4788, allocations: 135.1 kB / 0.7884 GB, free: 9.391 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.4791, allocations: 217.6 kB / 0.7886 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.4791, allocations: 39.94 kB / 0.7886 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.4792, allocations: 163.2 kB / 0.7888 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.171e-05/0.4793, allocations: 52.83 kB / 0.7888 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.4794, allocations: 64.22 kB / 0.7889 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.4796, allocations: 339.1 kB / 0.7892 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.48, allocations: 112.4 kB / 0.7893 GB, free: 8.637 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/0.4805, allocations: 189.3 kB / 0.7895 GB, free: 8.523 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008001/0.4813, allocations: 312 kB / 0.7898 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4813, allocations: 0.6875 kB / 0.7898 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001027/0.4824, allocations: 423.7 kB / 0.7902 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.95e-05/0.4825, allocations: 97.33 kB / 0.7903 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4825, allocations: 2.562 kB / 0.7903 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.4825, allocations: 3.234 kB / 0.7903 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.4827, allocations: 42.73 kB / 0.7903 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.4827, allocations: 3.938 kB / 0.7903 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.4831, allocations: 70.52 kB / 0.7904 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.4831, allocations: 14.2 kB / 0.7904 GB, free: 7.98 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.0001583/0.4833, allocations: 149.1 kB / 0.7905 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.4833, allocations: 22.38 kB / 0.7906 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.952e-05/0.4834, allocations: 28.42 kB / 0.7906 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.4834, allocations: 10.34 kB / 0.7906 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.4834, allocations: 0.9375 kB / 0.7906 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.4834, allocations: 0.7969 kB / 0.7906 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.4846, allocations: 0.6208 MB / 0.7912 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4846, allocations: 0 / 0.7912 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.4848, allocations: 31.14 kB / 0.7912 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4848, allocations: 1.875 kB / 0.7912 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.4848, allocations: 7.375 kB / 0.7912 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.4848, allocations: 5.469 kB / 0.7913 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4848, allocations: 0.7031 kB / 0.7913 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007666/0.4856, allocations: 351.2 kB / 0.7916 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.564e-05/0.4857, allocations: 95.88 kB / 0.7917 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.4857, allocations: 13.48 kB / 0.7917 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.486, allocations: 41.91 kB / 0.7917 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.4862, allocations: 58.88 kB / 0.7918 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.4862, allocations: 7.5 kB / 0.7918 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001341/0.4864, allocations: 143.9 kB / 0.7919 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4864, allocations: 0 / 0.7919 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003013/0.4867, allocations: 64.05 kB / 0.792 GB, free: 6.965 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.001522/0.4882, allocations: 1.012 MB / 0.793 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009263/0.4891, allocations: 442 kB / 0.7934 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4892, allocations: 5.094 kB / 0.7934 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003823/0.4895, allocations: 117.9 kB / 0.7935 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.4899, allocations: 32.84 kB / 0.7936 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004144/0.494, allocations: 2.669 MB / 0.7962 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.4944, allocations: 0.7464 MB / 0.7969 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001101/0.4945, allocations: 22.36 kB / 0.7969 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.4947, allocations: 78.48 kB / 0.797 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.4947, allocations: 0 / 0.797 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02704/0.5217, allocations: 5.739 MB / 0.8026 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/8.299, allocations: 12.75 kB / 0.8026 GB, free: 0.5352 MB / 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)