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: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|minFloRatSaf.sigBus.mEvaMea_flow|minFloRatSaf.sigBus.mConMea_flow|minFloRatSaf.mEvaMin_flow|minFloRatSaf.mConMin_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|minFloRatSaf.sigBus.mEvaMea_flow|minFloRatSaf.sigBus.mConMea_flow|minFloRatSaf.mEvaMin_flow|minFloRatSaf.mConMin_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006102/0.006102, allocations: 101.7 kB / 15.73 MB, free: 6.062 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.001293/0.001293, allocations: 194.5 kB / 16.67 MB, free: 5.969 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.875/2.875, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.89 kB / 1.065 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8646/0.8666, allocations: 159.1 MB / 1.221 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003005/0.8696, allocations: 2.035 MB / 1.223 GB, free: 0 / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.8706, allocations: 0.5688 MB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.8707, allocations: 4 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.8709, allocations: 23.67 kB / 1.223 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.871, allocations: 47.64 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.8712, allocations: 99.81 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.8715, allocations: 283.3 kB / 1.224 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.8717, allocations: 87.48 kB / 1.224 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.8719, allocations: 119.6 kB / 1.224 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.872, allocations: 131.4 kB / 1.224 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.778e-05/0.8721, allocations: 28 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.123e-05/0.8721, allocations: 28 kB / 1.224 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.902e-05/0.8722, allocations: 71.7 kB / 1.224 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.8723, allocations: 127.4 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003539/0.8727, allocations: 299.4 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.8727, allocations: 3.938 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.102e-06/0.8727, allocations: 0 / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.8727, allocations: 0 / 1.224 GB, free: 14.09 MB / 0.9512 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.001163/0.8738, allocations: 0.6642 MB / 1.225 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.8739, allocations: 8.031 kB / 1.225 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.8739, allocations: 28.8 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.8743, allocations: 273.2 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.8743, allocations: 16.81 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.8743, allocations: 20.38 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006181/0.875, allocations: 291.5 kB / 1.226 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.875, allocations: 0 / 1.226 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.875, allocations: 8 kB / 1.226 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.875, allocations: 4 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006765/0.8757, allocations: 209.6 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.8768, allocations: 0.6349 MB / 1.227 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006663/0.8775, allocations: 194.4 kB / 1.227 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.8778, allocations: 83.45 kB / 1.227 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.8778, allocations: 8 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004913/0.8783, allocations: 197.5 kB / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=19): time 1.623e-06/0.8783, allocations: 0 / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001052/0.8794, allocations: 341.2 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.8794, allocations: 136.5 kB / 1.228 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.8796, allocations: 214.9 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.8797, allocations: 37.7 kB / 1.228 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.8798, allocations: 164.7 kB / 1.228 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.354e-05/0.8798, allocations: 51.58 kB / 1.228 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.8799, allocations: 61.97 kB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.88, allocations: 338.8 kB / 1.228 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.8804, allocations: 116.2 kB / 1.228 GB, free: 9.777 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.8808, allocations: 185.5 kB / 1.229 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000677/0.8815, allocations: 311 kB / 1.229 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.8815, allocations: 0 / 1.229 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000916/0.8824, allocations: 427.5 kB / 1.229 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.492e-05/0.8825, allocations: 89.09 kB / 1.229 GB, free: 8.684 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.8825, allocations: 7.922 kB / 1.229 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.8825, allocations: 7.938 kB / 1.229 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.8828, allocations: 52.05 kB / 1.229 GB, free: 8.617 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.8828, allocations: 4 kB / 1.229 GB, free: 8.613 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.8831, allocations: 63.78 kB / 1.23 GB, free: 8.551 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.8831, allocations: 12 kB / 1.23 GB, free: 8.539 MB / 0.9512 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.0001638/0.8833, allocations: 157 kB / 1.23 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/0.8833, allocations: 23.86 kB / 1.23 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.8834, allocations: 25.81 kB / 1.23 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.8834, allocations: 4 kB / 1.23 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.8834, allocations: 0 / 1.23 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.8834, allocations: 3.984 kB / 1.23 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.8845, allocations: 0.6211 MB / 1.23 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.8845, allocations: 0 / 1.23 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.8846, allocations: 27.97 kB / 1.23 GB, free: 7.617 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.8846, allocations: 0 / 1.23 GB, free: 7.617 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.8847, allocations: 11.92 kB / 1.23 GB, free: 7.605 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.8847, allocations: 4 kB / 1.23 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8847, allocations: 0 / 1.23 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007352/0.8854, allocations: 347.2 kB / 1.231 GB, free: 7.246 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.951e-05/0.8854, allocations: 89.02 kB / 1.231 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.8855, allocations: 11.98 kB / 1.231 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/0.8859, allocations: 51.94 kB / 1.231 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.886, allocations: 51.89 kB / 1.231 GB, free: 7.027 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.886, allocations: 11.98 kB / 1.231 GB, free: 7.016 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001228/0.8861, allocations: 148.4 kB / 1.231 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.8861, allocations: 0 / 1.231 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003129/0.8864, allocations: 59.89 kB / 1.231 GB, free: 6.812 MB / 0.9512 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.0001537/0.8866, allocations: 124 kB / 1.231 GB, free: 6.68 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008645/0.8875, allocations: 413 kB / 1.232 GB, free: 6.242 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8875, allocations: 0 / 1.232 GB, free: 6.242 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.8878, allocations: 120.1 kB / 1.232 GB, free: 6.125 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.8882, allocations: 35.92 kB / 1.232 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008451/0.889, allocations: 398.1 kB / 1.232 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.8893, allocations: 0.7398 MB / 1.233 GB, free: 4.914 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.86e-05/0.8894, allocations: 29.94 kB / 1.233 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.559e-05/0.8895, allocations: 31.36 kB / 1.233 GB, free: 4.855 MB / 0.9512 GB Notification: Performance of SimCode: time 4.51e-07/0.8895, allocations: 0 / 1.233 GB, free: 4.855 MB / 0.9512 GB Notification: Performance of Templates: time 0.006695/0.8962, allocations: 3.527 MB / 1.236 GB, free: 1.379 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (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 & ./Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins/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