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.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 107.3 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 225.6 MB / 249.9 MB, free: 13.43 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.105/3.105, allocations: 489.7 MB / 0.7761 GB, free: 33.66 MB / 0.6231 GB [Timeout remaining time 87] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=509,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=509,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: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.61 kB / 1.127 GB, free: 36.91 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.373, allocations: 172.1 MB / 1.295 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004146/0.3771, allocations: 2.27 MB / 1.297 GB, free: 9.441 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002489/0.3796, allocations: 1.274 MB / 1.298 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002347/0.3798, allocations: 7.938 kB / 1.298 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005332/0.3804, allocations: 179.2 kB / 1.298 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004442/0.3808, allocations: 175.2 kB / 1.299 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006825/0.3815, allocations: 250.5 kB / 1.299 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.382, allocations: 399 kB / 1.299 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.3822, allocations: 77.2 kB / 1.299 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002717/0.3825, allocations: 191.2 kB / 1.3 GB, free: 6.91 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.3827, allocations: 191.2 kB / 1.3 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.16e-05/0.3828, allocations: 24 kB / 1.3 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.383, allocations: 75.97 kB / 1.3 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.3831, allocations: 119.6 kB / 1.3 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.3833, allocations: 159 kB / 1.3 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000619/0.3839, allocations: 497.9 kB / 1.301 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3839, allocations: 7.984 kB / 1.301 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.834e-06/0.3839, allocations: 0 / 1.301 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.3839, allocations: 0 / 1.301 GB, free: 5.855 MB / 0.9981 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.00123/0.3851, allocations: 0.7232 MB / 1.301 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3852, allocations: 8.031 kB / 1.301 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.616e-05/0.3853, allocations: 44.66 kB / 1.301 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006189/0.3859, allocations: 422.5 kB / 1.302 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.3859, allocations: 16.36 kB / 1.302 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.378e-05/0.386, allocations: 15.94 kB / 1.302 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.3863, allocations: 172.1 kB / 1.302 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3863, allocations: 0 / 1.302 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/0.3863, allocations: 8 kB / 1.302 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3863, allocations: 4 kB / 1.302 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002272/0.3866, allocations: 95.88 kB / 1.302 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.3878, allocations: 0.7855 MB / 1.303 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.3881, allocations: 129.4 kB / 1.303 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.3882, allocations: 53.73 kB / 1.303 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.3883, allocations: 11.94 kB / 1.303 GB, free: 3.203 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.3885, allocations: 117.1 kB / 1.303 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.3885, allocations: 0 / 1.303 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12): time 0.0005772/0.3891, allocations: 221.5 kB / 1.303 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.759e-05/0.3892, allocations: 106.8 kB / 1.303 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007077/0.3899, allocations: 0.5838 MB / 1.304 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.3899, allocations: 33.7 kB / 1.304 GB, free: 2.086 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3901, allocations: 192.5 kB / 1.304 GB, free: 1.891 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.501e-05/0.3901, allocations: 43.72 kB / 1.304 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.3903, allocations: 73.64 kB / 1.304 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3904, allocations: 358.7 kB / 1.305 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.3906, allocations: 107.9 kB / 1.305 GB, free: 1.305 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.3909, allocations: 174.4 kB / 1.305 GB, free: 1.113 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.3912, allocations: 177.6 kB / 1.305 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3912, allocations: 4 kB / 1.305 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006009/0.3918, allocations: 350.8 kB / 1.305 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3918, allocations: 4 kB / 1.305 GB, free: 0.5703 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3918, allocations: 0 / 1.305 GB, free: 0.5703 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.649e-05/0.3919, allocations: 7.984 kB / 1.305 GB, free: 0.5625 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.3921, allocations: 43.92 kB / 1.305 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.3921, allocations: 4 kB / 1.305 GB, free: 0.5156 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.3923, allocations: 39.95 kB / 1.306 GB, free: 488 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.3923, allocations: 15.98 kB / 1.306 GB, free: 472 kB / 0.9981 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.000221/0.3926, allocations: 195.4 kB / 1.306 GB, free: 268 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.058e-05/0.3926, allocations: 39.77 kB / 1.306 GB, free: 228 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004508/0.3931, allocations: 188.9 kB / 1.306 GB, free: 32 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.3931, allocations: 4 kB / 1.306 GB, free: 28 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.3931, allocations: 4 kB / 1.306 GB, free: 24 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3931, allocations: 0 / 1.306 GB, free: 24 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003587/0.3935, allocations: 337.3 kB / 1.306 GB, free: 15.64 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3935, allocations: 0 / 1.306 GB, free: 15.64 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.121e-05/0.3935, allocations: 8 kB / 1.306 GB, free: 15.64 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3935, allocations: 0 / 1.306 GB, free: 15.64 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.3935, allocations: 12.42 kB / 1.306 GB, free: 15.62 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3935, allocations: 0 / 1.306 GB, free: 15.62 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3935, allocations: 0 / 1.306 GB, free: 15.62 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.3939, allocations: 225.5 kB / 1.306 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.394, allocations: 124.8 kB / 1.307 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.3941, allocations: 8 kB / 1.307 GB, free: 15.23 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.3942, allocations: 11.98 kB / 1.307 GB, free: 15.22 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.807e-05/0.3943, allocations: 19.97 kB / 1.307 GB, free: 15.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.3943, allocations: 15.92 kB / 1.307 GB, free: 15.19 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000438/0.3947, allocations: 363.1 kB / 1.307 GB, free: 14.84 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3947, allocations: 0 / 1.307 GB, free: 14.84 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003306/0.3951, allocations: 67.89 kB / 1.307 GB, free: 14.77 MB / 1.014 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.001595/0.3967, allocations: 419.8 kB / 1.307 GB, free: 14.51 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004796/0.3971, allocations: 187.7 kB / 1.308 GB, free: 14.33 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3971, allocations: 192 / 1.308 GB, free: 14.33 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.3973, allocations: 67.91 kB / 1.308 GB, free: 14.26 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005356/0.3978, allocations: 103.4 kB / 1.308 GB, free: 14.18 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.399, allocations: 0.6553 MB / 1.308 GB, free: 13.48 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.3994, allocations: 0.8068 MB / 1.309 GB, free: 12.64 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3995, allocations: 35.42 kB / 1.309 GB, free: 12.61 MB / 1.014 GB Notification: Performance of SimCode: time 1.193e-06/0.3995, allocations: 0 / 1.309 GB, free: 12.61 MB / 1.014 GB Notification: Performance of Templates: time 0.009023/0.4085, allocations: 5.119 MB / 1.314 GB, free: 7.512 MB / 1.014 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 400] 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