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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 115.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002918/0.002918, allocations: 194.3 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.328/3.328, allocations: 497.2 MB / 0.7845 GB, free: 33.66 MB / 0.6231 GB " [Timeout remaining time 176] 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=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: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 73.66 kB / 1.139 GB, free: 33.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.362, allocations: 173.9 MB / 1.309 GB, free: 8 kB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004065/0.366, allocations: 2.275 MB / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002404/0.3684, allocations: 1.294 MB / 1.313 GB, free: 12.41 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.3686, allocations: 7.938 kB / 1.313 GB, free: 12.41 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005157/0.3691, allocations: 167.3 kB / 1.313 GB, free: 12.24 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0004125/0.3695, allocations: 167.2 kB / 1.313 GB, free: 12.08 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.3701, allocations: 253.8 kB / 1.313 GB, free: 11.83 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0005174/0.3707, allocations: 414.9 kB / 1.314 GB, free: 11.43 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.3709, allocations: 73.19 kB / 1.314 GB, free: 11.35 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.3711, allocations: 175.3 kB / 1.314 GB, free: 11.18 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.3714, allocations: 195.2 kB / 1.314 GB, free: 10.99 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.744e-05/0.3715, allocations: 24 kB / 1.314 GB, free: 10.96 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.3716, allocations: 75.97 kB / 1.314 GB, free: 10.89 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.3718, allocations: 115.6 kB / 1.314 GB, free: 10.78 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.372, allocations: 166.9 kB / 1.314 GB, free: 10.61 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000632/0.3726, allocations: 482 kB / 1.315 GB, free: 10.14 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3726, allocations: 0 / 1.315 GB, free: 10.14 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3726, allocations: 7.938 kB / 1.315 GB, free: 10.13 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.269e-05/0.3726, allocations: 3.938 kB / 1.315 GB, free: 10.13 MB / 1.014 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.001306/0.3739, allocations: 0.7232 MB / 1.316 GB, free: 9.355 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.374, allocations: 12.62 kB / 1.316 GB, free: 9.344 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.3741, allocations: 48.59 kB / 1.316 GB, free: 9.297 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006442/0.3747, allocations: 418.6 kB / 1.316 GB, free: 8.852 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.3748, allocations: 12.38 kB / 1.316 GB, free: 8.84 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.922e-05/0.3748, allocations: 15.94 kB / 1.316 GB, free: 8.824 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.3752, allocations: 181.7 kB / 1.316 GB, free: 8.633 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.3752, allocations: 3.938 kB / 1.316 GB, free: 8.629 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.3752, allocations: 4 kB / 1.316 GB, free: 8.625 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.3752, allocations: 4 kB / 1.316 GB, free: 8.621 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.3754, allocations: 87.95 kB / 1.316 GB, free: 8.535 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.3767, allocations: 0.7816 MB / 1.317 GB, free: 7.695 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003328/0.377, allocations: 133.4 kB / 1.317 GB, free: 7.547 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.3771, allocations: 49.69 kB / 1.317 GB, free: 7.492 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.3771, allocations: 0 / 1.317 GB, free: 7.492 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002583/0.3774, allocations: 137 kB / 1.317 GB, free: 7.34 MB / 1.014 GB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.3774, allocations: 0 / 1.317 GB, free: 7.34 MB / 1.014 GB Notification: Performance of matching and sorting (n=12): time 0.0005792/0.378, allocations: 221.3 kB / 1.318 GB, free: 7.117 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.3781, allocations: 106.8 kB / 1.318 GB, free: 6.988 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007577/0.3788, allocations: 0.576 MB / 1.318 GB, free: 6.406 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.3789, allocations: 33.7 kB / 1.318 GB, free: 6.367 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.3791, allocations: 204.4 kB / 1.319 GB, free: 6.164 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.018e-05/0.3791, allocations: 35.73 kB / 1.319 GB, free: 6.129 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.3792, allocations: 77.67 kB / 1.319 GB, free: 6.047 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002104/0.3794, allocations: 354.7 kB / 1.319 GB, free: 5.691 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.3797, allocations: 107.8 kB / 1.319 GB, free: 5.586 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002602/0.38, allocations: 163.4 kB / 1.319 GB, free: 5.406 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.3803, allocations: 191.1 kB / 1.319 GB, free: 5.207 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3803, allocations: 0 / 1.319 GB, free: 5.207 MB / 1.014 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006175/0.381, allocations: 348 kB / 1.32 GB, free: 4.863 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.381, allocations: 8 kB / 1.32 GB, free: 4.855 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.381, allocations: 0 / 1.32 GB, free: 4.855 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.381, allocations: 4 kB / 1.32 GB, free: 4.852 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.3812, allocations: 47.92 kB / 1.32 GB, free: 4.805 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.3812, allocations: 3.984 kB / 1.32 GB, free: 4.801 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.3815, allocations: 43.91 kB / 1.32 GB, free: 4.758 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.569e-05/0.3815, allocations: 16 kB / 1.32 GB, free: 4.742 MB / 1.014 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.0002341/0.3817, allocations: 199.4 kB / 1.32 GB, free: 4.539 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/0.3818, allocations: 35.77 kB / 1.32 GB, free: 4.504 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004507/0.3822, allocations: 200.9 kB / 1.32 GB, free: 4.301 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3823, allocations: 0 / 1.32 GB, free: 4.301 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.3823, allocations: 4 kB / 1.32 GB, free: 4.297 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.3823, allocations: 3.984 kB / 1.32 GB, free: 4.293 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003697/0.3826, allocations: 338 kB / 1.321 GB, free: 3.914 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3826, allocations: 0 / 1.321 GB, free: 3.914 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.3827, allocations: 15.92 kB / 1.321 GB, free: 3.898 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3827, allocations: 0 / 1.321 GB, free: 3.898 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.3827, allocations: 8 kB / 1.321 GB, free: 3.891 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3827, allocations: 0 / 1.321 GB, free: 3.891 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3827, allocations: 0 / 1.321 GB, free: 3.891 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000403/0.3831, allocations: 217.6 kB / 1.321 GB, free: 3.656 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.3832, allocations: 128.8 kB / 1.321 GB, free: 3.512 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.197e-05/0.3833, allocations: 4 kB / 1.321 GB, free: 3.508 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.3834, allocations: 15.98 kB / 1.321 GB, free: 3.492 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/0.3835, allocations: 23.91 kB / 1.321 GB, free: 3.469 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.3835, allocations: 7.984 kB / 1.321 GB, free: 3.461 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004339/0.384, allocations: 359.1 kB / 1.321 GB, free: 3.109 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.1e-08/0.384, allocations: 0 / 1.321 GB, free: 3.109 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003573/0.3843, allocations: 75.92 kB / 1.321 GB, free: 3.035 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.001576/0.3859, allocations: 417.6 kB / 1.322 GB, free: 2.785 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004905/0.3864, allocations: 187.8 kB / 1.322 GB, free: 2.602 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3864, allocations: 0 / 1.322 GB, free: 2.602 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.3865, allocations: 51.95 kB / 1.322 GB, free: 2.551 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005397/0.3871, allocations: 116.8 kB / 1.322 GB, free: 2.453 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.3882, allocations: 0.6069 MB / 1.323 GB, free: 1.816 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/0.3888, allocations: 0.8146 MB / 1.324 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.000143/0.3889, allocations: 55.17 kB / 1.324 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.833e-05/0.389, allocations: 35.44 kB / 1.324 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of SimCode: time 3.91e-07/0.389, allocations: 0 / 1.324 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of Templates: time 0.01094/0.3999, allocations: 4.823 MB / 1.328 GB, free: 12.1 MB / 1.029 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 -s cvode -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_2/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.504014438949525]