Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.001361/0.001361, allocations: 100.8 kB / 19.74 MB, free: 2.066 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.002119/0.002119, allocations: 215.7 kB / 23.04 MB, free: 4.844 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.271/3.271, allocations: 0.49 GB / 0.7959 GB, free: 35.36 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.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [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.002063/0.002063, allocations: 66.98 kB / 1.155 GB, free: 25.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3875, allocations: 176.1 MB / 1.327 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004104/0.3916, allocations: 2.176 MB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002771/0.3944, allocations: 1.363 MB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.3946, allocations: 11.94 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005505/0.3951, allocations: 175.3 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000549/0.3957, allocations: 223 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.3961, allocations: 179.5 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.3966, allocations: 438.8 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.3968, allocations: 57.5 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.3971, allocations: 187.3 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002769/0.3974, allocations: 187.2 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.094e-05/0.3974, allocations: 24 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.3976, allocations: 75.97 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001524/0.3978, allocations: 127.5 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.3979, allocations: 123.2 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006284/0.3985, allocations: 0.4941 MB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3985, allocations: 4 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3985, allocations: 0 / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.697e-06/0.3985, allocations: 0 / 1.333 GB, free: 11.13 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001285/0.3998, allocations: 0.6711 MB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3999, allocations: 8.031 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.4, allocations: 48.61 kB / 1.334 GB, free: 10.37 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006753/0.4007, allocations: 360.7 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.4007, allocations: 8.375 kB / 1.334 GB, free: 9.992 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.4007, allocations: 23.92 kB / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003859/0.4011, allocations: 201.8 kB / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4011, allocations: 0 / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.4011, allocations: 7.984 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.4011, allocations: 4 kB / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.4014, allocations: 91.89 kB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.4025, allocations: 0.6838 MB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.4029, allocations: 145.3 kB / 1.335 GB, free: 8.766 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.403, allocations: 49.7 kB / 1.335 GB, free: 8.711 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.403, allocations: 7.938 kB / 1.335 GB, free: 8.703 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.4033, allocations: 125.2 kB / 1.335 GB, free: 8.562 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.933e-06/0.4033, allocations: 3.938 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005792/0.4039, allocations: 237.7 kB / 1.335 GB, free: 8.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.404, allocations: 102.8 kB / 1.335 GB, free: 8.195 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006851/0.4046, allocations: 0.5799 MB / 1.336 GB, free: 7.605 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.4047, allocations: 37.69 kB / 1.336 GB, free: 7.562 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.4048, allocations: 204.5 kB / 1.336 GB, free: 7.359 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.22e-05/0.4049, allocations: 35.73 kB / 1.336 GB, free: 7.324 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.405, allocations: 77.64 kB / 1.336 GB, free: 7.242 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000189/0.4052, allocations: 354.8 kB / 1.337 GB, free: 6.887 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.4054, allocations: 108 kB / 1.337 GB, free: 6.781 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.4057, allocations: 254.8 kB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003602/0.4061, allocations: 202.4 kB / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4061, allocations: 0 / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006072/0.4067, allocations: 355.5 kB / 1.338 GB, free: 5.93 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.4067, allocations: 7.938 kB / 1.338 GB, free: 5.922 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.4067, allocations: 0 / 1.338 GB, free: 5.922 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.4067, allocations: 4 kB / 1.338 GB, free: 5.918 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002086/0.4069, allocations: 43.98 kB / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.4069, allocations: 16.02 kB / 1.338 GB, free: 5.859 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.4072, allocations: 35.86 kB / 1.338 GB, free: 5.824 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.4072, allocations: 12 kB / 1.338 GB, free: 5.812 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * 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.0002264/0.4074, allocations: 196 kB / 1.338 GB, free: 5.609 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.4075, allocations: 39.77 kB / 1.338 GB, free: 5.57 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004488/0.4079, allocations: 208.9 kB / 1.338 GB, free: 5.355 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4079, allocations: 0 / 1.338 GB, free: 5.355 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4079, allocations: 4 kB / 1.338 GB, free: 5.352 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4079, allocations: 4 kB / 1.338 GB, free: 5.348 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003004/0.4082, allocations: 257.1 kB / 1.338 GB, free: 5.066 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4082, allocations: 0 / 1.338 GB, free: 5.066 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.987e-05/0.4083, allocations: 11.98 kB / 1.338 GB, free: 5.055 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.4083, allocations: 0 / 1.338 GB, free: 5.055 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.4083, allocations: 4 kB / 1.338 GB, free: 5.051 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4083, allocations: 0 / 1.338 GB, free: 5.051 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4083, allocations: 0 / 1.338 GB, free: 5.051 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.4087, allocations: 242.4 kB / 1.339 GB, free: 4.793 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.447e-05/0.4088, allocations: 47.7 kB / 1.339 GB, free: 4.746 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.208e-05/0.4089, allocations: 15.92 kB / 1.339 GB, free: 4.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.409, allocations: 11.98 kB / 1.339 GB, free: 4.719 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.274e-05/0.4091, allocations: 19.97 kB / 1.339 GB, free: 4.699 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.4091, allocations: 11.98 kB / 1.339 GB, free: 4.688 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004254/0.4095, allocations: 355.1 kB / 1.339 GB, free: 4.34 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4095, allocations: 0 / 1.339 GB, free: 4.34 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000336/0.4099, allocations: 75.88 kB / 1.339 GB, free: 4.266 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001744/0.4116, allocations: 457.8 kB / 1.34 GB, free: 4 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004803/0.4121, allocations: 199.8 kB / 1.34 GB, free: 3.805 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4121, allocations: 0 / 1.34 GB, free: 3.805 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.4122, allocations: 59.91 kB / 1.34 GB, free: 3.746 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.4128, allocations: 109 kB / 1.34 GB, free: 3.652 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.4141, allocations: 0.6636 MB / 1.341 GB, free: 2.945 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.4144, allocations: 212.5 kB / 1.341 GB, free: 2.715 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.4145, allocations: 35.42 kB / 1.341 GB, free: 2.684 MB / 1.029 GB Notification: Performance of SimCode: time 1.132e-06/0.4145, allocations: 0 / 1.341 GB, free: 2.684 MB / 1.029 GB Notification: Performance of Templates: time 0.00936/0.4239, allocations: 5.342 MB / 1.346 GB, free: 13.36 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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: 12.616213917033747]