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.001199/0.001199, allocations: 115.7 kB / 18.89 MB, free: 2.898 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.001271/0.001271, allocations: 199.5 kB / 22.17 MB, free: 5.211 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.285/1.285, allocations: 225.6 MB / 250.9 MB, free: 13.25 MB / 206.1 MB " [Timeout remaining time 179] 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 2.84/2.84, allocations: 497.2 MB / 0.7845 GB, free: 33.66 MB / 0.6231 GB " [Timeout remaining time 177] 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.001791/0.001791, allocations: 65.8 kB / 1.139 GB, free: 33.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.278, allocations: 173.9 MB / 1.309 GB, free: 15.88 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003292/0.2813, allocations: 2.062 MB / 1.311 GB, free: 13.8 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009245/0.2823, allocations: 0.5806 MB / 1.312 GB, free: 13.22 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.555e-05/0.2823, allocations: 7.938 kB / 1.312 GB, free: 13.21 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.2825, allocations: 19.73 kB / 1.312 GB, free: 13.19 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.2826, allocations: 43.59 kB / 1.312 GB, free: 13.15 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.2828, allocations: 103.7 kB / 1.312 GB, free: 13.05 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003183/0.2832, allocations: 279.3 kB / 1.312 GB, free: 12.77 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.2834, allocations: 100.8 kB / 1.312 GB, free: 12.67 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.2835, allocations: 115.6 kB / 1.313 GB, free: 12.55 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.2837, allocations: 131.4 kB / 1.313 GB, free: 12.43 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.75e-05/0.2837, allocations: 28 kB / 1.313 GB, free: 12.4 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.849e-05/0.2837, allocations: 28 kB / 1.313 GB, free: 12.37 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.103e-05/0.2838, allocations: 67.75 kB / 1.313 GB, free: 12.3 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.2839, allocations: 127.3 kB / 1.313 GB, free: 12.18 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.2842, allocations: 290.9 kB / 1.313 GB, free: 11.89 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2842, allocations: 0 / 1.313 GB, free: 11.89 MB / 1.014 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2842, allocations: 0 / 1.313 GB, free: 11.89 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.2843, allocations: 0 / 1.313 GB, free: 11.89 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.001206/0.2855, allocations: 0.6719 MB / 1.314 GB, free: 11.16 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.2855, allocations: 12.56 kB / 1.314 GB, free: 11.14 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.023e-05/0.2856, allocations: 32.75 kB / 1.314 GB, free: 11.11 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.2859, allocations: 257.4 kB / 1.314 GB, free: 10.82 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.2859, allocations: 24.8 kB / 1.314 GB, free: 10.8 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.286, allocations: 20.38 kB / 1.314 GB, free: 10.78 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.2866, allocations: 283.6 kB / 1.314 GB, free: 10.48 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2866, allocations: 4 kB / 1.314 GB, free: 10.48 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.2866, allocations: 7.938 kB / 1.314 GB, free: 10.47 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2866, allocations: 8 kB / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006709/0.2873, allocations: 201.6 kB / 1.315 GB, free: 10.26 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.2884, allocations: 0.6543 MB / 1.315 GB, free: 9.559 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/0.2891, allocations: 194.4 kB / 1.315 GB, free: 9.359 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003124/0.2894, allocations: 84.78 kB / 1.316 GB, free: 9.273 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.2894, allocations: 0 / 1.316 GB, free: 9.273 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000482/0.2899, allocations: 199.1 kB / 1.316 GB, free: 9.066 MB / 1.014 GB Notification: Performance of pre-optimization done (n=19): time 1.453e-06/0.2899, allocations: 0 / 1.316 GB, free: 9.066 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.001066/0.291, allocations: 338.7 kB / 1.316 GB, free: 8.73 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.389e-05/0.291, allocations: 136.5 kB / 1.316 GB, free: 8.566 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.2913, allocations: 219.1 kB / 1.316 GB, free: 8.344 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.2913, allocations: 45.69 kB / 1.316 GB, free: 8.293 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.2914, allocations: 144.5 kB / 1.317 GB, free: 8.148 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.2915, allocations: 55.62 kB / 1.317 GB, free: 8.094 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.2916, allocations: 69.92 kB / 1.317 GB, free: 8.02 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2917, allocations: 334.8 kB / 1.317 GB, free: 7.684 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.2921, allocations: 116.2 kB / 1.317 GB, free: 7.57 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.2925, allocations: 185.2 kB / 1.317 GB, free: 7.363 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006842/0.2932, allocations: 316 kB / 1.318 GB, free: 7.02 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2932, allocations: 0 / 1.318 GB, free: 7.02 MB / 1.014 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009142/0.2941, allocations: 432.2 kB / 1.318 GB, free: 6.574 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.337e-05/0.2942, allocations: 89.09 kB / 1.318 GB, free: 6.469 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2942, allocations: 4 kB / 1.318 GB, free: 6.465 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.2942, allocations: 3.938 kB / 1.318 GB, free: 6.461 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.2944, allocations: 47.89 kB / 1.318 GB, free: 6.414 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.2944, allocations: 4 kB / 1.318 GB, free: 6.41 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.2948, allocations: 67.89 kB / 1.318 GB, free: 6.344 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.2948, allocations: 12 kB / 1.318 GB, free: 6.332 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.0001528/0.2949, allocations: 152.4 kB / 1.318 GB, free: 6.172 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.295, allocations: 19.86 kB / 1.318 GB, free: 6.152 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.978e-05/0.295, allocations: 29.8 kB / 1.318 GB, free: 6.125 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.295, allocations: 4 kB / 1.318 GB, free: 6.121 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.295, allocations: 0 / 1.318 GB, free: 6.121 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2951, allocations: 0 / 1.318 GB, free: 6.121 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.2961, allocations: 0.6205 MB / 1.319 GB, free: 5.445 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2961, allocations: 3.984 kB / 1.319 GB, free: 5.441 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.2963, allocations: 27.97 kB / 1.319 GB, free: 5.414 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2963, allocations: 4 kB / 1.319 GB, free: 5.41 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.2963, allocations: 11.98 kB / 1.319 GB, free: 5.398 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2963, allocations: 0 / 1.319 GB, free: 5.398 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2963, allocations: 0 / 1.319 GB, free: 5.398 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007547/0.2971, allocations: 356.5 kB / 1.319 GB, free: 5.035 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/0.2971, allocations: 96.91 kB / 1.32 GB, free: 4.922 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.2972, allocations: 8 kB / 1.32 GB, free: 4.914 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.2975, allocations: 51.92 kB / 1.32 GB, free: 4.863 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.2977, allocations: 51.94 kB / 1.32 GB, free: 4.812 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.2977, allocations: 11.98 kB / 1.32 GB, free: 4.801 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001272/0.2978, allocations: 152.2 kB / 1.32 GB, free: 4.652 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.1e-08/0.2978, allocations: 4 kB / 1.32 GB, free: 4.648 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002943/0.2981, allocations: 59.89 kB / 1.32 GB, free: 4.59 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.0001474/0.2982, allocations: 112.4 kB / 1.32 GB, free: 4.473 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0008992/0.2991, allocations: 419.6 kB / 1.32 GB, free: 4.027 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2992, allocations: 0 / 1.32 GB, free: 4.027 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003655/0.2995, allocations: 113.5 kB / 1.32 GB, free: 3.918 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.2999, allocations: 43.89 kB / 1.321 GB, free: 3.875 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008076/0.3007, allocations: 388.6 kB / 1.321 GB, free: 3.465 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.301, allocations: 0.7475 MB / 1.322 GB, free: 2.691 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 9.163e-05/0.3011, allocations: 21.95 kB / 1.322 GB, free: 2.668 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.025e-05/0.3012, allocations: 27.42 kB / 1.322 GB, free: 2.641 MB / 1.014 GB Notification: Performance of SimCode: time 2.9e-07/0.3012, allocations: 4 kB / 1.322 GB, free: 2.637 MB / 1.014 GB Notification: Performance of Templates: time 0.00691/0.3081, allocations: 3.617 MB / 1.325 GB, free: 15.07 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 gbode -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: 7.73404657933861]