Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_latest_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_latest_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.001291/0.001291, allocations: 108 kB / 15.6 MB, free: 132 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.001323/0.001323, allocations: 193.4 kB / 16.53 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.867/2.867, allocations: 482.6 MB / 0.7549 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 67.95 kB / 0.9243 GB, free: 29.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2794, allocations: 162.3 MB / 1.083 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.00346/0.2829, allocations: 2.027 MB / 1.085 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009986/0.284, allocations: 0.5845 MB / 1.085 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.356e-05/0.2841, allocations: 4 kB / 1.085 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.2842, allocations: 23.67 kB / 1.085 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.2843, allocations: 39.59 kB / 1.085 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.2846, allocations: 95.86 kB / 1.085 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.2849, allocations: 283.4 kB / 1.086 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.2851, allocations: 123.7 kB / 1.086 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.2853, allocations: 119.6 kB / 1.086 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.2855, allocations: 131.4 kB / 1.086 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.781e-05/0.2855, allocations: 28 kB / 1.086 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.353e-05/0.2856, allocations: 31.94 kB / 1.086 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.597e-05/0.2857, allocations: 59.83 kB / 1.086 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.2858, allocations: 127.4 kB / 1.086 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.2861, allocations: 295 kB / 1.087 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2861, allocations: 0 / 1.087 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2861, allocations: 0 / 1.087 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.2861, allocations: 0 / 1.087 GB, free: 8.859 MB / 0.8419 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.001253/0.2874, allocations: 0.6604 MB / 1.087 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2874, allocations: 12.02 kB / 1.087 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.057e-05/0.2875, allocations: 55.17 kB / 1.087 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.257e-05/0.2876, allocations: 32.56 kB / 1.087 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003156/0.2879, allocations: 265.2 kB / 1.088 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.288, allocations: 16.81 kB / 1.088 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.123e-05/0.288, allocations: 20.38 kB / 1.088 GB, free: 7.688 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006627/0.2887, allocations: 291.4 kB / 1.088 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.2887, allocations: 0 / 1.088 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.2887, allocations: 15.98 kB / 1.088 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2888, allocations: 4 kB / 1.088 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007216/0.2895, allocations: 209.5 kB / 1.088 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.2907, allocations: 0.6582 MB / 1.089 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00071/0.2915, allocations: 198.4 kB / 1.089 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.2918, allocations: 88.78 kB / 1.089 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.2918, allocations: 4 kB / 1.089 GB, free: 6.152 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005601/0.2924, allocations: 199.1 kB / 1.089 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.763e-06/0.2924, allocations: 0 / 1.089 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001144/0.2936, allocations: 338.5 kB / 1.09 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.2937, allocations: 132.5 kB / 1.09 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.2939, allocations: 218.6 kB / 1.09 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.2939, allocations: 41.69 kB / 1.09 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.2941, allocations: 164.3 kB / 1.09 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.2941, allocations: 43.45 kB / 1.09 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.2942, allocations: 65.88 kB / 1.09 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.2944, allocations: 342.8 kB / 1.091 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003943/0.2948, allocations: 112.2 kB / 1.091 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004453/0.2953, allocations: 192.4 kB / 1.091 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007257/0.296, allocations: 306.5 kB / 1.091 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.296, allocations: 0 / 1.091 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009779/0.297, allocations: 423.5 kB / 1.091 GB, free: 3.461 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.61e-05/0.2971, allocations: 97.03 kB / 1.092 GB, free: 3.348 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.2971, allocations: 4 kB / 1.092 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.2971, allocations: 4 kB / 1.092 GB, free: 3.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.2974, allocations: 43.89 kB / 1.092 GB, free: 3.297 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.2974, allocations: 4 kB / 1.092 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003757/0.2978, allocations: 67.81 kB / 1.092 GB, free: 3.227 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.2978, allocations: 12 kB / 1.092 GB, free: 3.215 MB / 0.8419 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.0001721/0.298, allocations: 156.4 kB / 1.092 GB, free: 3.051 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.298, allocations: 23.73 kB / 1.092 GB, free: 3.027 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.9e-05/0.2981, allocations: 25.81 kB / 1.092 GB, free: 3.004 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2981, allocations: 4 kB / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2981, allocations: 0 / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2981, allocations: 7.984 kB / 1.092 GB, free: 2.992 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.2993, allocations: 0.6215 MB / 1.093 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2993, allocations: 0 / 1.093 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.2995, allocations: 31.97 kB / 1.093 GB, free: 2.285 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2995, allocations: 0 / 1.093 GB, free: 2.285 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.2995, allocations: 11.98 kB / 1.093 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2995, allocations: 0 / 1.093 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2995, allocations: 3.938 kB / 1.093 GB, free: 2.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007963/0.3003, allocations: 347.1 kB / 1.093 GB, free: 1.914 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.19e-05/0.3004, allocations: 96.8 kB / 1.093 GB, free: 1.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.3004, allocations: 15.98 kB / 1.093 GB, free: 1.785 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.3008, allocations: 43.94 kB / 1.093 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.3009, allocations: 51.94 kB / 1.093 GB, free: 1.691 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.301, allocations: 7.984 kB / 1.093 GB, free: 1.684 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001332/0.3011, allocations: 148.6 kB / 1.093 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3011, allocations: 0 / 1.093 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003262/0.3014, allocations: 59.84 kB / 1.093 GB, free: 1.48 MB / 0.8419 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.001563/0.303, allocations: 1.014 MB / 1.094 GB, free: 448 kB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009751/0.304, allocations: 438.3 kB / 1.095 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.304, allocations: 0 / 1.095 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.3044, allocations: 115.9 kB / 1.095 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.3048, allocations: 36.28 kB / 1.095 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.3091, allocations: 2.665 MB / 1.097 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.3094, allocations: 0.7514 MB / 1.098 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001125/0.3096, allocations: 21.95 kB / 1.098 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.3097, allocations: 79.41 kB / 1.098 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3097, allocations: 0 / 1.098 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/0.3358, allocations: 5.657 MB / 1.104 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.596/7.932, allocations: 10.19 kB / 1.104 GB, free: 6.676 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches