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.004734/0.004734, allocations: 104.7 kB / 15.74 MB, free: 6.02 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.001201/0.001201, allocations: 191.2 kB / 16.68 MB, free: 5.938 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002372/0.002372, allocations: 293.9 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.153/1.153, allocations: 178.5 MB / 0.5074 GB, free: 12.69 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002584/0.002584, allocations: 99.84 kB / 0.6944 GB, free: 15.16 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3793, allocations: 89.13 MB / 0.7814 GB, free: 1.168 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002789/0.3821, allocations: 2.023 MB / 0.7834 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009946/0.3831, allocations: 0.5757 MB / 0.7839 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.862e-05/0.3832, allocations: 2.594 kB / 0.7839 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.3833, allocations: 25.02 kB / 0.784 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.3835, allocations: 43.42 kB / 0.784 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.3837, allocations: 86.73 kB / 0.7841 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.384, allocations: 300.4 kB / 0.7844 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.3843, allocations: 116.3 kB / 0.7845 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.3844, allocations: 124.2 kB / 0.7846 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.3846, allocations: 133.8 kB / 0.7847 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.3846, allocations: 27.56 kB / 0.7848 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.114e-05/0.3847, allocations: 29.78 kB / 0.7848 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.435e-05/0.3847, allocations: 59.86 kB / 0.7848 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.3849, allocations: 127.7 kB / 0.785 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003389/0.3852, allocations: 308 kB / 0.7853 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3852, allocations: 0 / 0.7853 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3852, allocations: 0 / 0.7853 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.3853, allocations: 0 / 0.7853 GB, free: 14.16 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.001213/0.3865, allocations: 0.66 MB / 0.7859 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3865, allocations: 9.375 kB / 0.7859 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.21e-05/0.3866, allocations: 58.09 kB / 0.786 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.619e-05/0.3867, allocations: 31.66 kB / 0.786 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003701/0.3871, allocations: 266.2 kB / 0.7862 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.3871, allocations: 19.81 kB / 0.7863 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.795e-05/0.3872, allocations: 27.81 kB / 0.7863 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006371/0.3878, allocations: 295.2 kB / 0.7866 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3878, allocations: 0 / 0.7866 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.3878, allocations: 10.25 kB / 0.7866 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.3879, allocations: 5.031 kB / 0.7866 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006927/0.3886, allocations: 212.3 kB / 0.7868 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.3898, allocations: 0.6448 MB / 0.7874 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006634/0.3904, allocations: 197.4 kB / 0.7876 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003134/0.3908, allocations: 91.91 kB / 0.7877 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.3908, allocations: 5.156 kB / 0.7877 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005091/0.3913, allocations: 206.8 kB / 0.7879 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=19): time 1.523e-06/0.3913, allocations: 0 / 0.7879 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19): time 0.001082/0.3924, allocations: 335.6 kB / 0.7882 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.3925, allocations: 136.9 kB / 0.7883 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.3927, allocations: 215.9 kB / 0.7886 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.3928, allocations: 38.73 kB / 0.7886 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3929, allocations: 169.9 kB / 0.7888 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.512e-05/0.3929, allocations: 47.45 kB / 0.7888 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.3931, allocations: 65.03 kB / 0.7889 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3932, allocations: 332 kB / 0.7892 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.3936, allocations: 113.6 kB / 0.7893 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.394, allocations: 192.7 kB / 0.7895 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006869/0.3947, allocations: 314.2 kB / 0.7898 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3947, allocations: 0 / 0.7898 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009213/0.3956, allocations: 428.1 kB / 0.7902 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.685e-05/0.3957, allocations: 92.77 kB / 0.7903 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3957, allocations: 5.172 kB / 0.7903 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3958, allocations: 2.562 kB / 0.7903 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.396, allocations: 48.84 kB / 0.7903 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.396, allocations: 3.656 kB / 0.7903 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.3964, allocations: 66.84 kB / 0.7904 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.3964, allocations: 16.11 kB / 0.7904 GB, free: 10.05 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.0001619/0.3966, allocations: 156 kB / 0.7905 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.3966, allocations: 29.52 kB / 0.7906 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.41e-05/0.3967, allocations: 26.27 kB / 0.7906 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3967, allocations: 2.812 kB / 0.7906 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3967, allocations: 0 / 0.7906 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.3967, allocations: 0 / 0.7906 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.3978, allocations: 0.6169 MB / 0.7912 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3978, allocations: 0 / 0.7912 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.398, allocations: 29.83 kB / 0.7912 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.398, allocations: 1.562 kB / 0.7912 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.398, allocations: 5.438 kB / 0.7912 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.398, allocations: 1.312 kB / 0.7912 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.3981, allocations: 3.984 kB / 0.7912 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007998/0.3989, allocations: 357.5 kB / 0.7916 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.005e-05/0.3989, allocations: 94.58 kB / 0.7917 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.547e-05/0.399, allocations: 7.844 kB / 0.7917 GB, free: 9.004 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003266/0.3993, allocations: 49.62 kB / 0.7917 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3995, allocations: 52.73 kB / 0.7918 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.3995, allocations: 8.719 kB / 0.7918 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001506/0.3997, allocations: 148.3 kB / 0.7919 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.3997, allocations: 0 / 0.7919 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00033/0.4, allocations: 62.97 kB / 0.792 GB, free: 8.82 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.001547/0.4016, allocations: 1.014 MB / 0.793 GB, free: 7.992 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009225/0.4025, allocations: 433.1 kB / 0.7934 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.4025, allocations: 4 kB / 0.7934 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003894/0.4029, allocations: 121 kB / 0.7935 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.4033, allocations: 37.33 kB / 0.7936 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004187/0.4075, allocations: 2.673 MB / 0.7962 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.4078, allocations: 0.7402 MB / 0.7969 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001211/0.408, allocations: 26.28 kB / 0.7969 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.4081, allocations: 78.03 kB / 0.797 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of SimCode: time 4.91e-07/0.4081, allocations: 0 / 0.797 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.4346, allocations: 5.729 MB / 0.8026 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.417/7.851, allocations: 11.3 kB / 0.8026 GB, free: 1.918 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)