Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001821/0.001821, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002593/0.002593, allocations: 216.8 kB / 22.25 MB, free: 4.855 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.789 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.485/3.485, allocations: 0.5107 GB / 0.8158 GB, free: 17.75 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.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_latest_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_latest_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.002132/0.002132, allocations: 61.69 kB / 1.186 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4337/0.4358, allocations: 181.9 MB / 1.364 GB, free: 13.52 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004156/0.44, allocations: 2.178 MB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002681/0.4427, allocations: 1.351 MB / 1.367 GB, free: 9.961 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.4429, allocations: 11.94 kB / 1.367 GB, free: 9.949 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005373/0.4434, allocations: 171.3 kB / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005326/0.4439, allocations: 223 kB / 1.368 GB, free: 9.562 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.4443, allocations: 187.6 kB / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005486/0.4449, allocations: 430.8 kB / 1.368 GB, free: 8.957 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.4451, allocations: 65.5 kB / 1.368 GB, free: 8.887 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.4453, allocations: 179.3 kB / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002642/0.4456, allocations: 187.2 kB / 1.369 GB, free: 8.527 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.017e-05/0.4456, allocations: 24 kB / 1.369 GB, free: 8.504 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.4458, allocations: 83.95 kB / 1.369 GB, free: 8.422 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.446, allocations: 111.6 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.4461, allocations: 131.1 kB / 1.369 GB, free: 8.184 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006352/0.4468, allocations: 0.5057 MB / 1.369 GB, free: 7.676 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.4468, allocations: 0 / 1.369 GB, free: 7.676 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4468, allocations: 0 / 1.369 GB, free: 7.676 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.4468, allocations: 0 / 1.369 GB, free: 7.676 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001246/0.448, allocations: 0.6595 MB / 1.37 GB, free: 6.984 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.4481, allocations: 8.031 kB / 1.37 GB, free: 6.977 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.263e-05/0.4482, allocations: 44.66 kB / 1.37 GB, free: 6.934 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006508/0.4488, allocations: 364.7 kB / 1.371 GB, free: 6.559 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.4488, allocations: 12.38 kB / 1.371 GB, free: 6.547 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.4489, allocations: 15.94 kB / 1.371 GB, free: 6.531 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.4493, allocations: 214.3 kB / 1.371 GB, free: 6.301 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.4493, allocations: 4 kB / 1.371 GB, free: 6.297 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.4493, allocations: 8 kB / 1.371 GB, free: 6.289 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.4493, allocations: 4 kB / 1.371 GB, free: 6.285 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.4495, allocations: 99.88 kB / 1.371 GB, free: 6.188 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.4507, allocations: 0.6759 MB / 1.372 GB, free: 5.473 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.4511, allocations: 149.3 kB / 1.372 GB, free: 5.309 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.4512, allocations: 57.69 kB / 1.372 GB, free: 5.246 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.4512, allocations: 0 / 1.372 GB, free: 5.246 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.4515, allocations: 125 kB / 1.372 GB, free: 5.105 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.223e-06/0.4515, allocations: 0 / 1.372 GB, free: 5.105 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005692/0.452, allocations: 229.3 kB / 1.372 GB, free: 4.875 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.226e-05/0.4521, allocations: 114.7 kB / 1.372 GB, free: 4.738 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.4529, allocations: 0.5799 MB / 1.373 GB, free: 4.148 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.943e-05/0.4529, allocations: 29.7 kB / 1.373 GB, free: 4.113 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.4531, allocations: 216.5 kB / 1.373 GB, free: 3.898 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.358e-05/0.4531, allocations: 35.73 kB / 1.373 GB, free: 3.863 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.4532, allocations: 69.69 kB / 1.373 GB, free: 3.789 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001889/0.4534, allocations: 354.7 kB / 1.373 GB, free: 3.434 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.4536, allocations: 115.9 kB / 1.374 GB, free: 3.32 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003079/0.454, allocations: 246.9 kB / 1.374 GB, free: 3.039 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.4543, allocations: 198.4 kB / 1.374 GB, free: 2.832 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.4543, allocations: 4 kB / 1.374 GB, free: 2.828 MB / 1.061 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000632/0.4549, allocations: 355.6 kB / 1.374 GB, free: 2.477 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.455, allocations: 8 kB / 1.374 GB, free: 2.469 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.455, allocations: 0 / 1.374 GB, free: 2.469 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.455, allocations: 4 kB / 1.374 GB, free: 2.465 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/0.4552, allocations: 47.91 kB / 1.374 GB, free: 2.418 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.4552, allocations: 96 / 1.374 GB, free: 2.418 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.4554, allocations: 43.86 kB / 1.374 GB, free: 2.375 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.4554, allocations: 12 kB / 1.374 GB, free: 2.363 MB / 1.061 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.0002313/0.4557, allocations: 199.4 kB / 1.375 GB, free: 2.16 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/0.4557, allocations: 39.72 kB / 1.375 GB, free: 2.121 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004507/0.4562, allocations: 213 kB / 1.375 GB, free: 1.906 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.4562, allocations: 7.938 kB / 1.375 GB, free: 1.898 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4562, allocations: 4 kB / 1.375 GB, free: 1.895 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.4562, allocations: 0 / 1.375 GB, free: 1.895 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.4565, allocations: 253.6 kB / 1.375 GB, free: 1.617 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.4565, allocations: 0 / 1.375 GB, free: 1.617 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.795e-05/0.4565, allocations: 8 kB / 1.375 GB, free: 1.609 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.4565, allocations: 8 kB / 1.375 GB, free: 1.602 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.4566, allocations: 4.031 kB / 1.375 GB, free: 1.598 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.4566, allocations: 4 kB / 1.375 GB, free: 1.594 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4566, allocations: 3.984 kB / 1.375 GB, free: 1.59 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004163/0.457, allocations: 235.3 kB / 1.375 GB, free: 1.34 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.971e-05/0.4571, allocations: 55.64 kB / 1.375 GB, free: 1.285 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.308e-05/0.4571, allocations: 8 kB / 1.375 GB, free: 1.277 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.4573, allocations: 15.98 kB / 1.375 GB, free: 1.262 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.526e-05/0.4573, allocations: 23.95 kB / 1.375 GB, free: 1.238 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.4574, allocations: 8 kB / 1.375 GB, free: 1.23 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004362/0.4578, allocations: 359.1 kB / 1.376 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4578, allocations: 0 / 1.376 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000324/0.4581, allocations: 67.94 kB / 1.376 GB, free: 0.8125 MB / 1.061 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.001709/0.4598, allocations: 460.1 kB / 1.376 GB, free: 0.543 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004673/0.4603, allocations: 191.8 kB / 1.376 GB, free: 364 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4603, allocations: 0 / 1.376 GB, free: 364 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.4605, allocations: 63.91 kB / 1.377 GB, free: 300 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005157/0.461, allocations: 99.67 kB / 1.377 GB, free: 208 kB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.4621, allocations: 0.6387 MB / 1.377 GB, free: 15.52 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.4623, allocations: 208.4 kB / 1.377 GB, free: 15.3 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001499/0.4625, allocations: 59.23 kB / 1.378 GB, free: 15.24 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.4626, allocations: 39.42 kB / 1.378 GB, free: 15.2 MB / 1.076 GB Notification: Performance of SimCode: time 4.01e-07/0.4626, allocations: 0 / 1.378 GB, free: 15.2 MB / 1.076 GB Notification: Performance of Templates: time 0.0111/0.4737, allocations: 5.378 MB / 1.383 GB, free: 9.895 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 9.74405750632286]