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.001933/0.001933, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002383/0.002383, allocations: 209.9 kB / 22.99 MB, free: 4.957 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.529/1.529, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.304/3.304, allocations: 0.49 GB / 0.7959 GB, free: 35.59 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.002078/0.002078, allocations: 63.05 kB / 1.155 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3687, allocations: 176.1 MB / 1.327 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004076/0.3727, allocations: 2.176 MB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00268/0.3754, allocations: 1.355 MB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002129/0.3756, allocations: 11.94 kB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005342/0.3762, allocations: 175.3 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005565/0.3767, allocations: 219.1 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000426/0.3772, allocations: 191.5 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005188/0.3777, allocations: 430.8 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.3779, allocations: 65.5 kB / 1.332 GB, free: 12.56 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002361/0.3781, allocations: 187.2 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002691/0.3784, allocations: 191.2 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.579e-05/0.3784, allocations: 28 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001757/0.3786, allocations: 79.91 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.3788, allocations: 115.7 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.3789, allocations: 131.1 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000647/0.3796, allocations: 0.5018 MB / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3796, allocations: 0 / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3796, allocations: 0 / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.156e-06/0.3796, allocations: 0 / 1.333 GB, free: 11.34 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.001302/0.3809, allocations: 0.6673 MB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3809, allocations: 8.031 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.381, allocations: 52.61 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006619/0.3817, allocations: 352.8 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.3817, allocations: 12.38 kB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/0.3818, allocations: 15.94 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004281/0.3822, allocations: 205.9 kB / 1.334 GB, free: 9.961 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.3822, allocations: 4 kB / 1.334 GB, free: 9.957 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.3822, allocations: 4 kB / 1.334 GB, free: 9.953 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3822, allocations: 4 kB / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.3825, allocations: 99.81 kB / 1.334 GB, free: 9.852 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.3837, allocations: 0.6876 MB / 1.335 GB, free: 9.125 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003772/0.3841, allocations: 141.3 kB / 1.335 GB, free: 8.969 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.3842, allocations: 53.69 kB / 1.335 GB, free: 8.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.3842, allocations: 0 / 1.335 GB, free: 8.91 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002803/0.3845, allocations: 136.9 kB / 1.335 GB, free: 8.758 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.3845, allocations: 0 / 1.335 GB, free: 8.758 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005871/0.3851, allocations: 225.3 kB / 1.335 GB, free: 8.531 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.97e-05/0.3851, allocations: 118.7 kB / 1.335 GB, free: 8.391 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007144/0.3859, allocations: 0.576 MB / 1.336 GB, free: 7.805 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.3859, allocations: 29.7 kB / 1.336 GB, free: 7.77 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.3861, allocations: 208.5 kB / 1.336 GB, free: 7.562 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.537e-05/0.3861, allocations: 39.73 kB / 1.336 GB, free: 7.523 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.3863, allocations: 73.64 kB / 1.336 GB, free: 7.445 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.3864, allocations: 354.8 kB / 1.337 GB, free: 7.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.3867, allocations: 111.9 kB / 1.337 GB, free: 6.98 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.387, allocations: 242.9 kB / 1.337 GB, free: 6.703 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.3873, allocations: 202.1 kB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3873, allocations: 0 / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006592/0.388, allocations: 355.3 kB / 1.338 GB, free: 6.141 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.388, allocations: 8 kB / 1.338 GB, free: 6.133 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.388, allocations: 0.5 kB / 1.338 GB, free: 6.133 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.3881, allocations: 4 kB / 1.338 GB, free: 6.129 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.3883, allocations: 51.91 kB / 1.338 GB, free: 6.078 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.3883, allocations: 4.094 kB / 1.338 GB, free: 6.074 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.3885, allocations: 43.86 kB / 1.338 GB, free: 6.031 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-05/0.3886, allocations: 8 kB / 1.338 GB, free: 6.023 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.0002448/0.3888, allocations: 204 kB / 1.338 GB, free: 5.812 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.255e-05/0.3889, allocations: 35.88 kB / 1.338 GB, free: 5.777 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004779/0.3893, allocations: 216.8 kB / 1.338 GB, free: 5.555 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3893, allocations: 8 kB / 1.338 GB, free: 5.547 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3893, allocations: 0 / 1.338 GB, free: 5.547 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3894, allocations: 0 / 1.338 GB, free: 5.547 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003043/0.3897, allocations: 253.1 kB / 1.338 GB, free: 5.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3897, allocations: 0 / 1.338 GB, free: 5.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.699e-05/0.3897, allocations: 16 kB / 1.338 GB, free: 5.254 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3897, allocations: 0 / 1.338 GB, free: 5.254 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.3897, allocations: 7.922 kB / 1.338 GB, free: 5.246 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3897, allocations: 4 kB / 1.338 GB, free: 5.242 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3898, allocations: 0 / 1.338 GB, free: 5.242 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004146/0.3902, allocations: 233 kB / 1.339 GB, free: 4.996 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.998e-05/0.3903, allocations: 55.69 kB / 1.339 GB, free: 4.941 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.09e-05/0.3903, allocations: 3.938 kB / 1.339 GB, free: 4.938 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.3905, allocations: 19.98 kB / 1.339 GB, free: 4.918 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.732e-05/0.3905, allocations: 23.95 kB / 1.339 GB, free: 4.895 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.3906, allocations: 4 kB / 1.339 GB, free: 4.891 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000433/0.391, allocations: 363.1 kB / 1.339 GB, free: 4.539 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.391, allocations: 0 / 1.339 GB, free: 4.539 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003381/0.3913, allocations: 67.89 kB / 1.339 GB, free: 4.473 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.001758/0.3931, allocations: 464 kB / 1.34 GB, free: 4.199 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004843/0.3936, allocations: 195.8 kB / 1.34 GB, free: 4.008 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3936, allocations: 0 / 1.34 GB, free: 4.008 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.3937, allocations: 55.97 kB / 1.34 GB, free: 3.953 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005434/0.3943, allocations: 114.9 kB / 1.34 GB, free: 3.852 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.3954, allocations: 0.6346 MB / 1.341 GB, free: 3.18 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.3956, allocations: 208.5 kB / 1.341 GB, free: 2.953 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001533/0.3958, allocations: 58.94 kB / 1.341 GB, free: 2.895 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.586e-05/0.3959, allocations: 35.42 kB / 1.341 GB, free: 2.863 MB / 1.029 GB Notification: Performance of SimCode: time 8.42e-07/0.3959, allocations: 0 / 1.341 GB, free: 2.863 MB / 1.029 GB Notification: Performance of Templates: time 0.01104/0.4069, allocations: 5.4 MB / 1.346 GB, free: 13.54 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 -s cvode -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: 9.482941848007613]