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.001617/0.001617, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001874/0.001874, allocations: 215.9 kB / 22.99 MB, free: 4.945 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.472/1.472, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.191/3.191, allocations: 0.4892 GB / 0.7951 GB, free: 35.54 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.002091/0.002091, allocations: 63.86 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3662, allocations: 176.1 MB / 1.326 GB, free: 1.895 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004521/0.3707, allocations: 2.165 MB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002742/0.3734, allocations: 1.357 MB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.3736, allocations: 15.88 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005222/0.3741, allocations: 171.3 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005171/0.3747, allocations: 219 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.3751, allocations: 179.6 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005362/0.3756, allocations: 438.8 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.3758, allocations: 57.5 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002503/0.3761, allocations: 183.3 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002786/0.3763, allocations: 191.2 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.257e-05/0.3764, allocations: 24 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.3766, allocations: 79.91 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.3767, allocations: 123.6 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.3769, allocations: 123.2 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006604/0.3775, allocations: 0.5018 MB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3775, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3775, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.3775, allocations: 0 / 1.332 GB, free: 12.07 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.00125/0.3788, allocations: 0.6711 MB / 1.333 GB, free: 11.37 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3788, allocations: 8.031 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.595e-05/0.3789, allocations: 48.61 kB / 1.333 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005922/0.3795, allocations: 352.8 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.3796, allocations: 12.36 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.3796, allocations: 23.88 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.38, allocations: 205.9 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.38, allocations: 7.922 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.38, allocations: 8 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.38, allocations: 0 / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.3802, allocations: 91.89 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.3814, allocations: 0.6838 MB / 1.334 GB, free: 9.867 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.3818, allocations: 145.3 kB / 1.334 GB, free: 9.707 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.3819, allocations: 45.7 kB / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.3819, allocations: 7.984 kB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000258/0.3822, allocations: 125.1 kB / 1.334 GB, free: 9.508 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.3822, allocations: 0 / 1.334 GB, free: 9.508 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005828/0.3827, allocations: 237.8 kB / 1.335 GB, free: 9.27 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/0.3828, allocations: 110.8 kB / 1.335 GB, free: 9.137 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007469/0.3836, allocations: 0.5838 MB / 1.335 GB, free: 8.539 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.3836, allocations: 33.7 kB / 1.335 GB, free: 8.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.3838, allocations: 204.5 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.736e-05/0.3839, allocations: 35.73 kB / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.384, allocations: 81.62 kB / 1.336 GB, free: 8.176 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000172/0.3842, allocations: 350.8 kB / 1.336 GB, free: 7.824 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.3844, allocations: 108 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.3847, allocations: 246.9 kB / 1.336 GB, free: 7.438 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.385, allocations: 200.6 kB / 1.336 GB, free: 7.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.385, allocations: 0 / 1.336 GB, free: 7.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006099/0.3856, allocations: 361.1 kB / 1.337 GB, free: 6.871 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3857, allocations: 4 kB / 1.337 GB, free: 6.867 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.3857, allocations: 4 kB / 1.337 GB, free: 6.863 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3857, allocations: 0 / 1.337 GB, free: 6.863 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.3859, allocations: 51.91 kB / 1.337 GB, free: 6.812 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.3859, allocations: 12.08 kB / 1.337 GB, free: 6.801 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.3861, allocations: 35.86 kB / 1.337 GB, free: 6.766 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.3862, allocations: 12 kB / 1.337 GB, free: 6.754 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.3864, allocations: 200 kB / 1.337 GB, free: 6.547 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.426e-05/0.3864, allocations: 39.75 kB / 1.337 GB, free: 6.508 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000431/0.3869, allocations: 204.9 kB / 1.337 GB, free: 6.297 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3869, allocations: 4 kB / 1.337 GB, free: 6.293 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.3869, allocations: 4 kB / 1.337 GB, free: 6.289 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3869, allocations: 0 / 1.337 GB, free: 6.289 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.3872, allocations: 253.1 kB / 1.338 GB, free: 6.012 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3872, allocations: 0 / 1.338 GB, free: 6.012 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.106e-05/0.3872, allocations: 15.98 kB / 1.338 GB, free: 5.996 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3873, allocations: 0 / 1.338 GB, free: 5.996 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.3873, allocations: 7.938 kB / 1.338 GB, free: 5.988 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3873, allocations: 0 / 1.338 GB, free: 5.988 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3873, allocations: 3.938 kB / 1.338 GB, free: 5.984 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003987/0.3877, allocations: 237.6 kB / 1.338 GB, free: 5.73 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.703e-05/0.3878, allocations: 51.73 kB / 1.338 GB, free: 5.68 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/0.3878, allocations: 7.984 kB / 1.338 GB, free: 5.672 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3879, allocations: 15.98 kB / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.388, allocations: 27.89 kB / 1.338 GB, free: 5.629 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.388, allocations: 8 kB / 1.338 GB, free: 5.621 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004175/0.3885, allocations: 355.1 kB / 1.338 GB, free: 5.277 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3885, allocations: 4 kB / 1.338 GB, free: 5.273 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00033/0.3888, allocations: 67.88 kB / 1.338 GB, free: 5.207 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.001737/0.3905, allocations: 474 kB / 1.339 GB, free: 4.93 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004472/0.391, allocations: 187.8 kB / 1.339 GB, free: 4.746 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.391, allocations: 0 / 1.339 GB, free: 4.746 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.3911, allocations: 63.91 kB / 1.339 GB, free: 4.684 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.3916, allocations: 99.77 kB / 1.339 GB, free: 4.594 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.3928, allocations: 0.6714 MB / 1.34 GB, free: 3.879 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.393, allocations: 208.5 kB / 1.34 GB, free: 3.652 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.1e-05/0.3931, allocations: 31.42 kB / 1.34 GB, free: 3.625 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.3931, allocations: 4 kB / 1.34 GB, free: 3.621 MB / 1.029 GB Notification: Performance of Templates: time 0.00873/0.4018, allocations: 5.325 MB / 1.345 GB, free: 14.31 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.34315762296319]