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.001663/0.001663, allocations: 102.1 kB / 19.7 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.001914/0.001914, allocations: 215.2 kB / 23.01 MB, free: 4.609 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 8.059 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.293/3.293, allocations: 0.505 GB / 0.8108 GB, free: 22.07 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.002196/0.002196, allocations: 63.31 kB / 1.178 GB, free: 16.9 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.3772, allocations: 180.2 MB / 1.354 GB, free: 8.016 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.00406/0.3812, allocations: 2.277 MB / 1.356 GB, free: 5.727 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002688/0.3839, allocations: 1.442 MB / 1.358 GB, free: 4.277 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002351/0.3841, allocations: 15.88 kB / 1.358 GB, free: 4.262 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0005191/0.3847, allocations: 167.3 kB / 1.358 GB, free: 4.098 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005257/0.3852, allocations: 215 kB / 1.358 GB, free: 3.887 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004205/0.3856, allocations: 191.5 kB / 1.358 GB, free: 3.699 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005427/0.3861, allocations: 430.8 kB / 1.359 GB, free: 3.277 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.3863, allocations: 65.48 kB / 1.359 GB, free: 3.215 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.3866, allocations: 195.3 kB / 1.359 GB, free: 3.023 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.3869, allocations: 195.2 kB / 1.359 GB, free: 2.832 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.387, allocations: 24 kB / 1.359 GB, free: 2.809 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.3871, allocations: 79.97 kB / 1.359 GB, free: 2.73 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.3873, allocations: 115.5 kB / 1.359 GB, free: 2.617 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.3875, allocations: 170.9 kB / 1.359 GB, free: 2.449 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006128/0.3881, allocations: 498 kB / 1.36 GB, free: 1.961 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3881, allocations: 4 kB / 1.36 GB, free: 1.957 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.687e-06/0.3881, allocations: 3.984 kB / 1.36 GB, free: 1.953 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.3881, allocations: 7.875 kB / 1.36 GB, free: 1.945 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001226/0.3893, allocations: 0.6595 MB / 1.361 GB, free: 1.254 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3894, allocations: 12.03 kB / 1.361 GB, free: 1.242 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.3895, allocations: 48.66 kB / 1.361 GB, free: 1.195 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006118/0.3901, allocations: 360.6 kB / 1.361 GB, free: 0.8203 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.3901, allocations: 12.38 kB / 1.361 GB, free: 0.8086 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.3901, allocations: 19.94 kB / 1.361 GB, free: 0.7891 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.3905, allocations: 180.2 kB / 1.361 GB, free: 0.5977 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3905, allocations: 3.938 kB / 1.361 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.3905, allocations: 0 / 1.361 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3905, allocations: 4 kB / 1.361 GB, free: 0.5898 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002151/0.3908, allocations: 87.95 kB / 1.361 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.392, allocations: 0.7651 MB / 1.362 GB, free: 15.69 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.3923, allocations: 133.4 kB / 1.362 GB, free: 15.54 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.3924, allocations: 45.7 kB / 1.362 GB, free: 15.49 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.3925, allocations: 7.984 kB / 1.362 GB, free: 15.48 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.3927, allocations: 141 kB / 1.362 GB, free: 15.32 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.3927, allocations: 0 / 1.362 GB, free: 15.32 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005439/0.3933, allocations: 221.3 kB / 1.363 GB, free: 15.1 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.3933, allocations: 102.8 kB / 1.363 GB, free: 14.98 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007277/0.3941, allocations: 0.5955 MB / 1.363 GB, free: 14.37 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.3941, allocations: 33.7 kB / 1.363 GB, free: 14.33 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.3943, allocations: 216.4 kB / 1.364 GB, free: 14.11 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.555e-05/0.3943, allocations: 31.78 kB / 1.364 GB, free: 14.08 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.3945, allocations: 77.64 kB / 1.364 GB, free: 14 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.3946, allocations: 358.7 kB / 1.364 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.3948, allocations: 104 kB / 1.364 GB, free: 13.54 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.3951, allocations: 177.8 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.3954, allocations: 184.5 kB / 1.364 GB, free: 13.15 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3954, allocations: 7.938 kB / 1.364 GB, free: 13.14 MB / 1.061 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005991/0.396, allocations: 345.2 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.396, allocations: 4 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.396, allocations: 0 / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.3961, allocations: 4 kB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.3963, allocations: 51.91 kB / 1.365 GB, free: 12.74 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.3963, allocations: 4 kB / 1.365 GB, free: 12.74 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.3965, allocations: 36.36 kB / 1.365 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.522e-05/0.3965, allocations: 12 kB / 1.365 GB, free: 12.69 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.0002304/0.3968, allocations: 204.1 kB / 1.365 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.062e-05/0.3968, allocations: 43.72 kB / 1.365 GB, free: 12.44 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004131/0.3972, allocations: 197 kB / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3972, allocations: 0 / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3973, allocations: 0 / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3973, allocations: 4 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/0.3976, allocations: 308.4 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3976, allocations: 4 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.637e-05/0.3976, allocations: 11.94 kB / 1.366 GB, free: 11.88 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3976, allocations: 0 / 1.366 GB, free: 11.88 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.3976, allocations: 7.984 kB / 1.366 GB, free: 11.87 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3976, allocations: 0 / 1.366 GB, free: 11.87 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3976, allocations: 0 / 1.366 GB, free: 11.87 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003709/0.398, allocations: 213.5 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.203e-05/0.3981, allocations: 51.75 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.3982, allocations: 4 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3983, allocations: 19.98 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.69e-05/0.3984, allocations: 27.89 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.3984, allocations: 4 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000447/0.3988, allocations: 367.1 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3988, allocations: 0 / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003441/0.3992, allocations: 67.89 kB / 1.366 GB, free: 11.11 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 (12): * Single equations (assignments): 8 * 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.001589/0.4008, allocations: 444.2 kB / 1.367 GB, free: 10.83 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004604/0.4012, allocations: 191.8 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4012, allocations: 0 / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.4014, allocations: 47.92 kB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.4019, allocations: 111.9 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.4031, allocations: 0.6673 MB / 1.368 GB, free: 9.793 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004748/0.4035, allocations: 0.8184 MB / 1.369 GB, free: 8.945 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.4036, allocations: 31.44 kB / 1.369 GB, free: 8.914 MB / 1.061 GB Notification: Performance of SimCode: time 6.41e-07/0.4036, allocations: 0 / 1.369 GB, free: 8.914 MB / 1.061 GB Notification: Performance of Templates: time 0.009341/0.413, allocations: 5.202 MB / 1.374 GB, free: 3.715 MB / 1.061 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/jenkins1/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: 12.693814819009276]