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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 114.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 195.5 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.268/3.268, allocations: 497.2 MB / 0.7845 GB, free: 33.62 MB / 0.6231 GB " [Timeout remaining time 176] 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=100,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=100,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 73.67 kB / 1.139 GB, free: 33.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3118, allocations: 173.9 MB / 1.309 GB, free: 15.95 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003722/0.3155, allocations: 2.057 MB / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.3167, allocations: 0.5883 MB / 1.312 GB, free: 13.29 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.3168, allocations: 4 kB / 1.312 GB, free: 13.29 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.317, allocations: 23.67 kB / 1.312 GB, free: 13.27 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.3171, allocations: 43.59 kB / 1.312 GB, free: 13.22 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002902/0.3174, allocations: 91.88 kB / 1.312 GB, free: 13.13 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004024/0.3178, allocations: 287.3 kB / 1.312 GB, free: 12.85 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.3181, allocations: 101.5 kB / 1.312 GB, free: 12.75 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.3183, allocations: 119.6 kB / 1.313 GB, free: 12.63 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.3185, allocations: 127.4 kB / 1.313 GB, free: 12.5 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.277e-05/0.3185, allocations: 28 kB / 1.313 GB, free: 12.48 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.178e-05/0.3186, allocations: 32 kB / 1.313 GB, free: 12.45 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.179e-05/0.3187, allocations: 59.81 kB / 1.313 GB, free: 12.39 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.3188, allocations: 119.4 kB / 1.313 GB, free: 12.27 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.3192, allocations: 302.8 kB / 1.313 GB, free: 11.97 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3192, allocations: 3.938 kB / 1.313 GB, free: 11.97 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3192, allocations: 4 kB / 1.313 GB, free: 11.96 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.3193, allocations: 0 / 1.313 GB, free: 11.96 MB / 1.014 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.001433/0.3207, allocations: 0.6642 MB / 1.314 GB, free: 11.23 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3207, allocations: 8.922 kB / 1.314 GB, free: 11.23 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.667e-05/0.3208, allocations: 36.73 kB / 1.314 GB, free: 11.19 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.3213, allocations: 257.5 kB / 1.314 GB, free: 10.9 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.3213, allocations: 20.8 kB / 1.314 GB, free: 10.88 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.606e-05/0.3213, allocations: 28.3 kB / 1.314 GB, free: 10.85 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.3221, allocations: 291.5 kB / 1.314 GB, free: 10.55 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3221, allocations: 4 kB / 1.314 GB, free: 10.54 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.3221, allocations: 4 kB / 1.314 GB, free: 10.54 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3221, allocations: 8 kB / 1.314 GB, free: 10.53 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007762/0.3229, allocations: 197.6 kB / 1.315 GB, free: 10.34 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.3242, allocations: 0.6465 MB / 1.315 GB, free: 9.641 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/0.3249, allocations: 198.4 kB / 1.315 GB, free: 9.438 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000336/0.3253, allocations: 84.78 kB / 1.316 GB, free: 9.352 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.3253, allocations: 0 / 1.316 GB, free: 9.352 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005232/0.3258, allocations: 191.2 kB / 1.316 GB, free: 9.152 MB / 1.014 GB Notification: Performance of pre-optimization done (n=19): time 1.653e-06/0.3258, allocations: 0 / 1.316 GB, free: 9.152 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.001204/0.327, allocations: 346.7 kB / 1.316 GB, free: 8.809 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.918e-05/0.3271, allocations: 136.5 kB / 1.316 GB, free: 8.645 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.3273, allocations: 219.1 kB / 1.316 GB, free: 8.422 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.3274, allocations: 37.7 kB / 1.316 GB, free: 8.379 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.3275, allocations: 152.5 kB / 1.317 GB, free: 8.227 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.969e-05/0.3276, allocations: 55.62 kB / 1.317 GB, free: 8.172 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.3277, allocations: 69.92 kB / 1.317 GB, free: 8.098 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3279, allocations: 334.8 kB / 1.317 GB, free: 7.762 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.3283, allocations: 108.2 kB / 1.317 GB, free: 7.656 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/0.3287, allocations: 193 kB / 1.317 GB, free: 7.441 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/0.3295, allocations: 312 kB / 1.318 GB, free: 7.102 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3295, allocations: 0 / 1.318 GB, free: 7.102 MB / 1.014 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001026/0.3305, allocations: 428.2 kB / 1.318 GB, free: 6.66 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.075e-05/0.3306, allocations: 89.09 kB / 1.318 GB, free: 6.555 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.3306, allocations: 4 kB / 1.318 GB, free: 6.551 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.3306, allocations: 3.938 kB / 1.318 GB, free: 6.547 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.3309, allocations: 47.91 kB / 1.318 GB, free: 6.5 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.3309, allocations: 3.984 kB / 1.318 GB, free: 6.496 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/0.3313, allocations: 67.89 kB / 1.318 GB, free: 6.43 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.3313, allocations: 15.98 kB / 1.318 GB, free: 6.414 MB / 1.014 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.0001778/0.3315, allocations: 164.3 kB / 1.318 GB, free: 6.242 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/0.3315, allocations: 23.86 kB / 1.318 GB, free: 6.219 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.567e-05/0.3316, allocations: 29.8 kB / 1.318 GB, free: 6.191 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3316, allocations: 0 / 1.318 GB, free: 6.191 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3316, allocations: 0 / 1.318 GB, free: 6.191 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3316, allocations: 4 kB / 1.318 GB, free: 6.188 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.3328, allocations: 0.6166 MB / 1.319 GB, free: 5.516 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3328, allocations: 0 / 1.319 GB, free: 5.516 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.333, allocations: 35.95 kB / 1.319 GB, free: 5.48 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.333, allocations: 0 / 1.319 GB, free: 5.48 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.333, allocations: 4 kB / 1.319 GB, free: 5.477 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.333, allocations: 0 / 1.319 GB, free: 5.477 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.333, allocations: 0 / 1.319 GB, free: 5.477 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008546/0.3339, allocations: 360.6 kB / 1.319 GB, free: 5.109 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.944e-05/0.334, allocations: 100.9 kB / 1.32 GB, free: 4.992 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.334, allocations: 11.94 kB / 1.32 GB, free: 4.98 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/0.3344, allocations: 43.94 kB / 1.32 GB, free: 4.938 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.3345, allocations: 51.92 kB / 1.32 GB, free: 4.887 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.3346, allocations: 4 kB / 1.32 GB, free: 4.883 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001392/0.3347, allocations: 156.2 kB / 1.32 GB, free: 4.73 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.3347, allocations: 0 / 1.32 GB, free: 4.73 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003453/0.335, allocations: 67.88 kB / 1.32 GB, free: 4.664 MB / 1.014 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.0001646/0.3352, allocations: 112.4 kB / 1.32 GB, free: 4.547 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001001/0.3362, allocations: 419.4 kB / 1.32 GB, free: 4.102 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3362, allocations: 0 / 1.32 GB, free: 4.102 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.3366, allocations: 117.5 kB / 1.32 GB, free: 3.988 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.337, allocations: 36.09 kB / 1.321 GB, free: 3.953 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009497/0.338, allocations: 382.2 kB / 1.321 GB, free: 3.551 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004239/0.3384, allocations: 0.7437 MB / 1.322 GB, free: 2.781 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001079/0.3385, allocations: 25.92 kB / 1.322 GB, free: 2.754 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.678e-05/0.3386, allocations: 31.38 kB / 1.322 GB, free: 2.723 MB / 1.014 GB Notification: Performance of SimCode: time 4.51e-07/0.3386, allocations: 0 / 1.322 GB, free: 2.723 MB / 1.014 GB Notification: Performance of Templates: time 0.008209/0.3468, allocations: 3.615 MB / 1.325 GB, free: 15.16 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile [Timeout 300] (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=800 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 800] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.746470354031771]