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.001477/0.001477, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001709/0.001709, allocations: 214.2 kB / 23.01 MB, free: 4.566 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.341/1.341, allocations: 230.6 MB / 256.8 MB, free: 8.035 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 2.972/2.972, allocations: 0.505 GB / 0.8108 GB, free: 22.07 MB / 0.6231 GB " [Timeout remaining time 177] 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.001921/0.001921, allocations: 70.47 kB / 1.178 GB, free: 16.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2925, allocations: 180.2 MB / 1.354 GB, free: 7.93 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003223/0.2957, allocations: 2.122 MB / 1.356 GB, free: 5.797 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.2968, allocations: 0.635 MB / 1.357 GB, free: 5.156 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.857e-05/0.2969, allocations: 7.938 kB / 1.357 GB, free: 5.148 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.297, allocations: 23.67 kB / 1.357 GB, free: 5.125 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.2971, allocations: 47.59 kB / 1.357 GB, free: 5.078 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.2974, allocations: 103.8 kB / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.2977, allocations: 303.3 kB / 1.357 GB, free: 4.68 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.2979, allocations: 108.3 kB / 1.357 GB, free: 4.57 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.2981, allocations: 131.6 kB / 1.358 GB, free: 4.441 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.2983, allocations: 147.3 kB / 1.358 GB, free: 4.297 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.149e-05/0.2983, allocations: 32 kB / 1.358 GB, free: 4.266 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.133e-05/0.2983, allocations: 28 kB / 1.358 GB, free: 4.238 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.586e-05/0.2984, allocations: 67.81 kB / 1.358 GB, free: 4.172 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.2985, allocations: 135.3 kB / 1.358 GB, free: 4.039 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.2989, allocations: 330.6 kB / 1.358 GB, free: 3.715 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2989, allocations: 0 / 1.358 GB, free: 3.715 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2989, allocations: 0 / 1.358 GB, free: 3.715 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.789e-06/0.2989, allocations: 0 / 1.358 GB, free: 3.715 MB / 1.045 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.001174/0.3001, allocations: 0.6202 MB / 1.359 GB, free: 3.047 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.3001, allocations: 8.031 kB / 1.359 GB, free: 3.039 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.084e-05/0.3002, allocations: 32.75 kB / 1.359 GB, free: 3.008 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003833/0.3006, allocations: 218.6 kB / 1.359 GB, free: 2.77 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.3006, allocations: 20.81 kB / 1.359 GB, free: 2.75 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.3006, allocations: 24.38 kB / 1.359 GB, free: 2.727 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006401/0.3013, allocations: 316.4 kB / 1.359 GB, free: 2.395 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.3013, allocations: 0 / 1.359 GB, free: 2.395 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.3013, allocations: 4 kB / 1.359 GB, free: 2.391 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.3013, allocations: 8 kB / 1.359 GB, free: 2.383 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006566/0.302, allocations: 221.5 kB / 1.36 GB, free: 2.164 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.3031, allocations: 0.6378 MB / 1.36 GB, free: 1.484 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/0.3038, allocations: 203.7 kB / 1.36 GB, free: 1.277 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.3041, allocations: 101 kB / 1.361 GB, free: 1.176 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.3041, allocations: 0 / 1.361 GB, free: 1.176 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004911/0.3046, allocations: 215 kB / 1.361 GB, free: 0.9531 MB / 1.045 GB Notification: Performance of pre-optimization done (n=21): time 1.393e-06/0.3046, allocations: 0 / 1.361 GB, free: 0.9531 MB / 1.045 GB Notification: Performance of matching and sorting (n=21): time 0.001058/0.3057, allocations: 351.6 kB / 1.361 GB, free: 0.6055 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.924e-05/0.3057, allocations: 144.5 kB / 1.361 GB, free: 444 kB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.306, allocations: 219.8 kB / 1.361 GB, free: 216 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.306, allocations: 41.69 kB / 1.361 GB, free: 168 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3061, allocations: 160.8 kB / 1.362 GB, free: 0 / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.3062, allocations: 67.69 kB / 1.362 GB, free: 15.93 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.3063, allocations: 73.69 kB / 1.362 GB, free: 15.85 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3065, allocations: 334.6 kB / 1.362 GB, free: 15.52 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.3068, allocations: 124.2 kB / 1.362 GB, free: 15.39 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004081/0.3072, allocations: 192.2 kB / 1.362 GB, free: 15.18 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006851/0.3079, allocations: 327.1 kB / 1.363 GB, free: 14.82 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3079, allocations: 0 / 1.363 GB, free: 14.82 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009202/0.3088, allocations: 437.2 kB / 1.363 GB, free: 14.37 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.644e-05/0.3089, allocations: 97.09 kB / 1.363 GB, free: 14.26 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3089, allocations: 0 / 1.363 GB, free: 14.26 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.3089, allocations: 4 kB / 1.363 GB, free: 14.25 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.3092, allocations: 47.89 kB / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.3092, allocations: 8 kB / 1.363 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.3095, allocations: 71.78 kB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.19e-05/0.3095, allocations: 19.92 kB / 1.363 GB, free: 14.11 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.000152/0.3097, allocations: 148.4 kB / 1.364 GB, free: 13.95 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.311e-05/0.3097, allocations: 23.86 kB / 1.364 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.687e-05/0.3098, allocations: 29.95 kB / 1.364 GB, free: 13.9 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3098, allocations: 0 / 1.364 GB, free: 13.9 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3098, allocations: 0 / 1.364 GB, free: 13.9 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3098, allocations: 4 kB / 1.364 GB, free: 13.9 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.3109, allocations: 0.6068 MB / 1.364 GB, free: 13.24 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3109, allocations: 0 / 1.364 GB, free: 13.24 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.311, allocations: 35.83 kB / 1.364 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.311, allocations: 8 kB / 1.364 GB, free: 13.2 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.3111, allocations: 7.984 kB / 1.364 GB, free: 13.19 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.3111, allocations: 0 / 1.364 GB, free: 13.19 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.3111, allocations: 7.938 kB / 1.364 GB, free: 13.18 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007397/0.3118, allocations: 361.9 kB / 1.365 GB, free: 12.82 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.31e-05/0.3118, allocations: 23.8 kB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.902e-05/0.3119, allocations: 12 kB / 1.365 GB, free: 12.78 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.3122, allocations: 47.92 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.3123, allocations: 59.88 kB / 1.365 GB, free: 12.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.3124, allocations: 15.98 kB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001334/0.3125, allocations: 152.6 kB / 1.365 GB, free: 12.51 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3125, allocations: 0 / 1.365 GB, free: 12.51 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003119/0.3128, allocations: 67.83 kB / 1.365 GB, free: 12.45 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.000133/0.313, allocations: 118.9 kB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008866/0.3138, allocations: 429.9 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3138, allocations: 4 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003518/0.3142, allocations: 117.8 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.3145, allocations: 36.91 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008599/0.3154, allocations: 436.2 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.3158, allocations: 0.7479 MB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.3159, allocations: 31.42 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.3159, allocations: 0 / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of Templates: time 0.005343/0.3212, allocations: 3.301 MB / 1.37 GB, free: 7.164 MB / 1.061 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: 10.26890768200974]