Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 97.11 kB / 19.7 MB, free: 2.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002819/0.002819, allocations: 205.7 kB / 23 MB, free: 4.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.573/1.573, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.27/3.27, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_12_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_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 62.84 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4526/0.4547, allocations: 176.1 MB / 1.327 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.005173/0.4598, allocations: 2.059 MB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001811/0.4616, allocations: 0.608 MB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.4618, allocations: 4 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.462, allocations: 23.67 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.4623, allocations: 51.52 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.4627, allocations: 103.9 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005153/0.4632, allocations: 319.7 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003852/0.4636, allocations: 108.4 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.4638, allocations: 135.5 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.464, allocations: 147.3 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.877e-05/0.4641, allocations: 36 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.289e-05/0.4641, allocations: 32 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.4643, allocations: 71.8 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001763/0.4644, allocations: 115.4 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005737/0.465, allocations: 346.6 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.465, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.104e-06/0.465, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.857e-06/0.465, allocations: 3.938 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001745/0.4668, allocations: 0.6327 MB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.4668, allocations: 12.03 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.4669, allocations: 32.75 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005621/0.4675, allocations: 215.6 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.322e-05/0.4675, allocations: 24.81 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.717e-05/0.4676, allocations: 36.06 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009944/0.4686, allocations: 411.1 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4686, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.4687, allocations: 15.98 kB / 1.333 GB, free: 11.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.4687, allocations: 4 kB / 1.333 GB, free: 11.3 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009569/0.4696, allocations: 217.5 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.4713, allocations: 0.5564 MB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009336/0.4723, allocations: 206.3 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.4727, allocations: 92.77 kB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.4727, allocations: 0 / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007297/0.4735, allocations: 215 kB / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of pre-optimization done (n=21): time 2.745e-06/0.4735, allocations: 0 / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of matching and sorting (n=21): time 0.001615/0.4751, allocations: 358.9 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.4752, allocations: 166.2 kB / 1.334 GB, free: 9.422 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.4756, allocations: 232 kB / 1.334 GB, free: 9.188 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.5e-05/0.4757, allocations: 41.7 kB / 1.335 GB, free: 9.141 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.4758, allocations: 164.7 kB / 1.335 GB, free: 8.977 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.416e-05/0.4759, allocations: 51.62 kB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.4761, allocations: 77.64 kB / 1.335 GB, free: 8.844 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4763, allocations: 338.8 kB / 1.335 GB, free: 8.504 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006067/0.4769, allocations: 217.3 kB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007476/0.4776, allocations: 392.9 kB / 1.336 GB, free: 7.816 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009865/0.4786, allocations: 319.1 kB / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4786, allocations: 0 / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001398/0.48, allocations: 0.5256 MB / 1.337 GB, free: 6.898 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.4801, allocations: 89.09 kB / 1.337 GB, free: 6.793 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.4801, allocations: 0 / 1.337 GB, free: 6.793 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.4802, allocations: 4 kB / 1.337 GB, free: 6.789 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.4805, allocations: 47.89 kB / 1.337 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/0.4805, allocations: 4 kB / 1.337 GB, free: 6.738 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005125/0.481, allocations: 75.84 kB / 1.337 GB, free: 6.664 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.4811, allocations: 19.98 kB / 1.337 GB, free: 6.645 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 31 (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.errAndSetOn.y,minFloRatSaf.ySetOn.y,$PRE.minFloRatSaf.ySetOn.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 (36): * Single equations (assignments): 33 * 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.0002612/0.4813, allocations: 161.1 kB / 1.337 GB, free: 6.48 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.547e-05/0.4814, allocations: 23.86 kB / 1.337 GB, free: 6.457 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.515e-05/0.4815, allocations: 29.95 kB / 1.337 GB, free: 6.426 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.4815, allocations: 4 kB / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4815, allocations: 0 / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.4816, allocations: 27.78 kB / 1.337 GB, free: 6.395 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.424e-05/0.4816, allocations: 19.81 kB / 1.337 GB, free: 6.375 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/0.4821, allocations: 55.92 kB / 1.337 GB, free: 6.32 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.4823, allocations: 55.91 kB / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001374/0.4836, allocations: 378.7 kB / 1.337 GB, free: 5.891 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001187/0.4848, allocations: 452.3 kB / 1.338 GB, free: 5.434 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005162/0.4853, allocations: 119.8 kB / 1.338 GB, free: 5.316 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000214/0.4856, allocations: 157.6 kB / 1.338 GB, free: 5.164 MB / 1.029 GB Notification: Performance of Backend: time 5.01e-07/0.4856, allocations: 0 / 1.338 GB, free: 5.164 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.487, allocations: 0.5044 MB / 1.339 GB, free: 4.598 MB / 1.029 GB Notification: Performance of SimCode: time 0.001223/0.4882, allocations: 0.8223 MB / 1.339 GB, free: 3.73 MB / 1.029 GB Notification: Performance of Templates: time 0.01285/0.5011, allocations: 5.057 MB / 1.344 GB, free: 14.77 MB / 1.045 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.800137245001679]