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: 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_latest_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_latest_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.001136/0.001136, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001198/0.001198, allocations: 198.1 kB / 16.14 MB, free: 6.715 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.885/2.885, allocations: 474.4 MB / 0.7465 GB, free: 3.207 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 68.52 kB / 0.9135 GB, free: 32.88 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3027, allocations: 160.3 MB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003248/0.306, allocations: 2.068 MB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009949/0.3071, allocations: 0.5806 MB / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.3072, allocations: 0 / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.3073, allocations: 15.86 kB / 1.073 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.3075, allocations: 31.72 kB / 1.073 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.3077, allocations: 87.91 kB / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.3079, allocations: 255.4 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.3082, allocations: 123.2 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.3083, allocations: 111.5 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.3085, allocations: 119.4 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.076e-05/0.3085, allocations: 16 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.763e-05/0.3086, allocations: 16 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.757e-05/0.3086, allocations: 55.81 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.3088, allocations: 111.4 kB / 1.074 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.309, allocations: 279.3 kB / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.309, allocations: 4 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3091, allocations: 0 / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.3091, allocations: 3.938 kB / 1.074 GB, free: 4.676 MB / 0.8262 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.001212/0.3103, allocations: 0.6566 MB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.3103, allocations: 12.03 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.204e-05/0.3104, allocations: 24.66 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.3107, allocations: 265.2 kB / 1.075 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3107, allocations: 20.8 kB / 1.075 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.3108, allocations: 24.38 kB / 1.075 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006566/0.3115, allocations: 287.5 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.3115, allocations: 0 / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.3115, allocations: 8 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3115, allocations: 8 kB / 1.075 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007134/0.3123, allocations: 201.6 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.3135, allocations: 0.6425 MB / 1.076 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007521/0.3142, allocations: 202.3 kB / 1.076 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003308/0.3146, allocations: 96.78 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.3146, allocations: 0 / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006223/0.3152, allocations: 196.9 kB / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.3152, allocations: 0 / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001133/0.3164, allocations: 338.9 kB / 1.077 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.3165, allocations: 140.5 kB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.3167, allocations: 218.6 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.606e-05/0.3168, allocations: 41.69 kB / 1.077 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3169, allocations: 152.1 kB / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.583e-05/0.3169, allocations: 51.44 kB / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3171, allocations: 65.97 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3172, allocations: 334.8 kB / 1.078 GB, free: 484 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004231/0.3176, allocations: 112.2 kB / 1.078 GB, free: 372 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004305/0.3181, allocations: 184.4 kB / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000765/0.3189, allocations: 311.7 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3189, allocations: 0 / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009484/0.3198, allocations: 432 kB / 1.079 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.729e-05/0.3199, allocations: 93.03 kB / 1.079 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3199, allocations: 4 kB / 1.079 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3199, allocations: 3.938 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.3202, allocations: 47.89 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3202, allocations: 4 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.3206, allocations: 75.72 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.952e-05/0.3206, allocations: 12 kB / 1.079 GB, free: 15.12 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.0001578/0.3208, allocations: 148.4 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.3208, allocations: 15.81 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.004e-05/0.3209, allocations: 33.8 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3209, allocations: 48 / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.3209, allocations: 3.984 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3209, allocations: 0 / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.322, allocations: 0.6191 MB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.3221, allocations: 7.922 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.3222, allocations: 27.97 kB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3222, allocations: 4 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.3223, allocations: 11.98 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3223, allocations: 3.938 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3223, allocations: 0 / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007936/0.3231, allocations: 352.5 kB / 1.08 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.3231, allocations: 88.92 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.3232, allocations: 8 kB / 1.08 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.3235, allocations: 47.94 kB / 1.08 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.3237, allocations: 51.91 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.3238, allocations: 8 kB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001208/0.3239, allocations: 144.6 kB / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3239, allocations: 4 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003268/0.3242, allocations: 59.84 kB / 1.08 GB, free: 13.41 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.0001574/0.3244, allocations: 119.2 kB / 1.081 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000902/0.3253, allocations: 430 kB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3253, allocations: 4 kB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003814/0.3257, allocations: 119.8 kB / 1.081 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.3261, allocations: 34.42 kB / 1.081 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008996/0.327, allocations: 446.7 kB / 1.082 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3273, allocations: 0.7442 MB / 1.082 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001164/0.3274, allocations: 25.94 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.535e-05/0.3275, allocations: 19.44 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of SimCode: time 3.8e-07/0.3275, allocations: 3.938 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of Templates: time 0.006368/0.3339, allocations: 3.1 MB / 1.085 GB, free: 8.344 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (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 & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins/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