Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.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/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_11_Buildings_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.001517/0.001517, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.0015, allocations: 189.9 kB / 16.67 MB, free: 6.582 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.825/2.825, allocations: 469.8 MB / 0.7425 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.91 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2774, allocations: 159.1 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003183/0.2807, allocations: 2.045 MB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009591/0.2816, allocations: 0.5689 MB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.573e-05/0.2817, allocations: 7.938 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.2819, allocations: 19.73 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.282, allocations: 43.59 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.2822, allocations: 95.88 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003219/0.2826, allocations: 287.3 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.2828, allocations: 119.4 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.283, allocations: 115.5 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.2831, allocations: 131.4 kB / 1.224 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.258e-05/0.2832, allocations: 32 kB / 1.224 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.681e-05/0.2833, allocations: 28 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.06e-05/0.2833, allocations: 63.81 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.2835, allocations: 119.4 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.2838, allocations: 306.7 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2838, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.093e-06/0.2838, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.2838, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 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.2851, allocations: 0.6622 MB / 1.225 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2851, allocations: 12.02 kB / 1.225 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.232e-05/0.2852, allocations: 55.17 kB / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.525e-05/0.2853, allocations: 32.75 kB / 1.225 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.2856, allocations: 273.2 kB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.2857, allocations: 16.81 kB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.2857, allocations: 28.38 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006471/0.2864, allocations: 287.4 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.2864, allocations: 11.97 kB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.2864, allocations: 7.938 kB / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2864, allocations: 4 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007231/0.2872, allocations: 209.5 kB / 1.226 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.2884, allocations: 0.6545 MB / 1.226 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006847/0.289, allocations: 194.4 kB / 1.226 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.2894, allocations: 92.78 kB / 1.227 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.2894, allocations: 0 / 1.227 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005115/0.2899, allocations: 199 kB / 1.227 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.2899, allocations: 0 / 1.227 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.001132/0.2911, allocations: 335 kB / 1.227 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.043e-05/0.2912, allocations: 140.5 kB / 1.227 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.2914, allocations: 218.9 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.2914, allocations: 37.7 kB / 1.227 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.2916, allocations: 164.6 kB / 1.228 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.2916, allocations: 51.62 kB / 1.228 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.2917, allocations: 69.97 kB / 1.228 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2919, allocations: 330.8 kB / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.2923, allocations: 124.2 kB / 1.228 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.2927, allocations: 184.4 kB / 1.228 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007125/0.2934, allocations: 315.4 kB / 1.229 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.2934, allocations: 3.984 kB / 1.229 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009556/0.2944, allocations: 423.5 kB / 1.229 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.932e-05/0.2945, allocations: 97.19 kB / 1.229 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2945, allocations: 4 kB / 1.229 GB, free: 4.746 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.2945, allocations: 4 kB / 1.229 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/0.2948, allocations: 43.89 kB / 1.229 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2948, allocations: 4 kB / 1.229 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/0.2952, allocations: 67.72 kB / 1.229 GB, free: 4.629 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.2952, allocations: 12 kB / 1.229 GB, free: 4.617 MB / 0.9825 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.0001541/0.2954, allocations: 157 kB / 1.229 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.182e-05/0.2954, allocations: 27.8 kB / 1.229 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.57e-05/0.2955, allocations: 25.88 kB / 1.229 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2955, allocations: 0 / 1.229 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.2955, allocations: 4 kB / 1.229 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2955, allocations: 3.984 kB / 1.229 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.2966, allocations: 0.6114 MB / 1.23 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2966, allocations: 0 / 1.23 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.2968, allocations: 31.97 kB / 1.23 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2968, allocations: 0 / 1.23 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.2968, allocations: 3.984 kB / 1.23 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2969, allocations: 11.88 kB / 1.23 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2969, allocations: 4 kB / 1.23 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007939/0.2977, allocations: 348.9 kB / 1.23 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.314e-05/0.2977, allocations: 100.9 kB / 1.231 GB, free: 3.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.2978, allocations: 12 kB / 1.231 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.2981, allocations: 47.94 kB / 1.231 GB, free: 3.145 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.2983, allocations: 47.94 kB / 1.231 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.2983, allocations: 11.92 kB / 1.231 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001322/0.2985, allocations: 144.6 kB / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2985, allocations: 0 / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003218/0.2988, allocations: 59.89 kB / 1.231 GB, free: 2.887 MB / 0.9825 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.001515/0.3003, allocations: 1.017 MB / 1.232 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009305/0.3013, allocations: 435.3 kB / 1.232 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3013, allocations: 0 / 1.232 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.3017, allocations: 117.2 kB / 1.232 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.302, allocations: 35.75 kB / 1.232 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004232/0.3063, allocations: 2.69 MB / 1.235 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.3066, allocations: 0.7437 MB / 1.236 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001036/0.3067, allocations: 17.95 kB / 1.236 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.3069, allocations: 79.41 kB / 1.236 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of SimCode: time 3.4e-07/0.3069, allocations: 4 kB / 1.236 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3335, allocations: 5.731 MB / 1.241 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/8.118, allocations: 7.625 kB / 1.241 GB, free: 8.027 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv --start-time 0 --stop-time 100 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches