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.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.001648/0.001648, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001768/0.001768, allocations: 215.6 kB / 22.99 MB, free: 4.945 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.362/3.362, allocations: 0.5107 GB / 0.8166 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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: 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.002136/0.002136, allocations: 73.47 kB / 1.187 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.382, allocations: 181.9 MB / 1.365 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.004018/0.386, allocations: 2.056 MB / 1.367 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001514/0.3875, allocations: 0.5883 MB / 1.367 GB, free: 10.95 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001864/0.3877, allocations: 4 kB / 1.367 GB, free: 10.94 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.3879, allocations: 23.67 kB / 1.367 GB, free: 10.92 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.3881, allocations: 51.52 kB / 1.367 GB, free: 10.87 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.3885, allocations: 103.9 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004374/0.3889, allocations: 307.3 kB / 1.368 GB, free: 10.46 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002777/0.3892, allocations: 97.55 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.3894, allocations: 131.5 kB / 1.368 GB, free: 10.23 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.3896, allocations: 131.3 kB / 1.368 GB, free: 10.1 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.68e-05/0.3897, allocations: 28 kB / 1.368 GB, free: 10.07 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.785e-05/0.3898, allocations: 32 kB / 1.368 GB, free: 10.04 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.737e-05/0.3898, allocations: 71.81 kB / 1.368 GB, free: 9.973 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.39, allocations: 111.4 kB / 1.368 GB, free: 9.863 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004888/0.3905, allocations: 322.7 kB / 1.369 GB, free: 9.547 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3905, allocations: 0 / 1.369 GB, free: 9.547 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3905, allocations: 0 / 1.369 GB, free: 9.547 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.873e-05/0.3905, allocations: 0 / 1.369 GB, free: 9.547 MB / 1.061 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.001456/0.392, allocations: 0.628 MB / 1.369 GB, free: 8.871 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.392, allocations: 12.03 kB / 1.369 GB, free: 8.859 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.3921, allocations: 32.75 kB / 1.369 GB, free: 8.828 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.3926, allocations: 214.4 kB / 1.369 GB, free: 8.594 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.3927, allocations: 28.8 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.221e-05/0.3927, allocations: 24.38 kB / 1.37 GB, free: 8.543 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008045/0.3935, allocations: 423.2 kB / 1.37 GB, free: 8.082 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3935, allocations: 0 / 1.37 GB, free: 8.082 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.3936, allocations: 8 kB / 1.37 GB, free: 8.074 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3936, allocations: 11.98 kB / 1.37 GB, free: 8.062 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007177/0.3943, allocations: 213.6 kB / 1.37 GB, free: 7.855 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.3956, allocations: 0.533 MB / 1.371 GB, free: 7.289 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007166/0.3963, allocations: 210.3 kB / 1.371 GB, free: 7.074 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.3966, allocations: 87.44 kB / 1.371 GB, free: 6.988 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.3967, allocations: 7.938 kB / 1.371 GB, free: 6.98 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005394/0.3972, allocations: 212.1 kB / 1.371 GB, free: 6.762 MB / 1.061 GB Notification: Performance of pre-optimization done (n=21): time 2.615e-06/0.3972, allocations: 4 kB / 1.371 GB, free: 6.758 MB / 1.061 GB Notification: Performance of matching and sorting (n=21): time 0.001182/0.3984, allocations: 353 kB / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.3985, allocations: 132.5 kB / 1.372 GB, free: 6.25 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.3988, allocations: 231.8 kB / 1.372 GB, free: 6.016 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.3988, allocations: 41.64 kB / 1.372 GB, free: 5.969 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.399, allocations: 172.6 kB / 1.372 GB, free: 5.797 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.399, allocations: 47.64 kB / 1.372 GB, free: 5.75 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3992, allocations: 81.67 kB / 1.372 GB, free: 5.664 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3993, allocations: 330.8 kB / 1.372 GB, free: 5.332 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.3998, allocations: 205.3 kB / 1.373 GB, free: 5.109 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005608/0.4004, allocations: 358.5 kB / 1.373 GB, free: 4.695 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007315/0.4011, allocations: 319.1 kB / 1.373 GB, free: 4.344 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4011, allocations: 0 / 1.373 GB, free: 4.344 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00112/0.4022, allocations: 0.5217 MB / 1.374 GB, free: 3.781 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.333e-05/0.4023, allocations: 97.12 kB / 1.374 GB, free: 3.668 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.4023, allocations: 0 / 1.374 GB, free: 3.668 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.4023, allocations: 4 kB / 1.374 GB, free: 3.664 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.4026, allocations: 47.89 kB / 1.374 GB, free: 3.617 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.4026, allocations: 7.938 kB / 1.374 GB, free: 3.609 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.403, allocations: 63.78 kB / 1.374 GB, free: 3.547 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/0.403, allocations: 16 kB / 1.374 GB, free: 3.531 MB / 1.061 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,ySetOn.y,$PRE.ySetOn.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.canOpe,minFloRatSaf.errAndSetOn.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.0002185/0.4032, allocations: 168.3 kB / 1.374 GB, free: 3.359 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.379e-05/0.4033, allocations: 19.86 kB / 1.374 GB, free: 3.34 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.61e-05/0.4034, allocations: 29.95 kB / 1.374 GB, free: 3.309 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.4034, allocations: 4 kB / 1.374 GB, free: 3.305 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.4034, allocations: 0 / 1.374 GB, free: 3.305 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.4034, allocations: 0 / 1.374 GB, free: 3.305 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.4047, allocations: 0.545 MB / 1.375 GB, free: 2.723 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.4047, allocations: 0 / 1.375 GB, free: 2.723 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.4048, allocations: 27.91 kB / 1.375 GB, free: 2.695 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.655e-05/0.4048, allocations: 4 kB / 1.375 GB, free: 2.691 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.4049, allocations: 11.98 kB / 1.375 GB, free: 2.68 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4049, allocations: 0 / 1.375 GB, free: 2.68 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4049, allocations: 4 kB / 1.375 GB, free: 2.676 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008231/0.4057, allocations: 365.9 kB / 1.375 GB, free: 2.305 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.386e-05/0.4057, allocations: 19.8 kB / 1.375 GB, free: 2.285 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.274e-05/0.4058, allocations: 8 kB / 1.375 GB, free: 2.277 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000343/0.4061, allocations: 55.92 kB / 1.375 GB, free: 2.223 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.4063, allocations: 63.78 kB / 1.375 GB, free: 2.16 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.4063, allocations: 11.98 kB / 1.375 GB, free: 2.148 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001597/0.4065, allocations: 152.6 kB / 1.375 GB, free: 2 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4065, allocations: 0 / 1.375 GB, free: 2 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003607/0.4068, allocations: 63.89 kB / 1.376 GB, free: 1.938 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (minFloRatSaf.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.canOpe,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,ySetOn.y) * Number of discrete states: 8 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,ySetOn.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * 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.0001755/0.407, allocations: 119.2 kB / 1.376 GB, free: 1.809 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001071/0.4081, allocations: 0.4995 MB / 1.376 GB, free: 1.254 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4081, allocations: 0 / 1.376 GB, free: 1.254 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003777/0.4084, allocations: 116.2 kB / 1.376 GB, free: 1.141 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.4088, allocations: 44.52 kB / 1.376 GB, free: 1.094 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.4099, allocations: 430.3 kB / 1.377 GB, free: 0.6445 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.41, allocations: 142.1 kB / 1.377 GB, free: 500 kB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.4101, allocations: 31.42 kB / 1.377 GB, free: 468 kB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.4101, allocations: 0 / 1.377 GB, free: 468 kB / 1.061 GB Notification: Performance of Templates: time 0.007079/0.4172, allocations: 3.371 MB / 1.38 GB, free: 13.11 MB / 1.076 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 -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/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: 11.644275841768831]