Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 86.64 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.962/2.962, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005058/0.0005061, allocations: 12.2 kB / 0.9021 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3894, allocations: 159.6 MB / 1.058 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.00338/0.3928, allocations: 1.893 MB / 1.06 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002249/0.3951, allocations: 1.186 MB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002747/0.3954, allocations: 7.938 kB / 1.061 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005658/0.396, allocations: 147.5 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004398/0.3965, allocations: 135.5 kB / 1.061 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006981/0.3972, allocations: 197.6 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005679/0.3978, allocations: 350.9 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.398, allocations: 72.67 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003775/0.3984, allocations: 131.4 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.3987, allocations: 147.3 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.896e-05/0.3987, allocations: 8 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002679/0.399, allocations: 63.89 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.3992, allocations: 83.67 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.3993, allocations: 77.52 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006665/0.4, allocations: 391.3 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4, allocations: 0 / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of FrontEnd: time 2.966e-06/0.4, allocations: 0 / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.998e-05/0.4001, allocations: 0 / 1.063 GB, free: 436 kB / 0.8106 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.002096/0.4022, allocations: 0.6612 MB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.758e-05/0.4022, allocations: 8.031 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002366/0.4025, allocations: 43.44 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.4035, allocations: 385.2 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.365e-05/0.4036, allocations: 19.89 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.4036, allocations: 15.98 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004569/0.4041, allocations: 168.2 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.4041, allocations: 8 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.4042, allocations: 0 / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.4042, allocations: 4 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002434/0.4044, allocations: 95.81 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.406, allocations: 0.7933 MB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.4063, allocations: 141.3 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.4064, allocations: 45.7 kB / 1.065 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.4065, allocations: 7.984 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002982/0.4068, allocations: 136.8 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.673e-06/0.4068, allocations: 0 / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005779/0.4074, allocations: 213.5 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.86e-05/0.4075, allocations: 106.8 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007655/0.4083, allocations: 0.5798 MB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.4083, allocations: 33.7 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.4085, allocations: 196.5 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.4086, allocations: 39.53 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.909e-05/0.4086, allocations: 4.109 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000218/0.4088, allocations: 358.7 kB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.409, allocations: 99.95 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.4093, allocations: 165.8 kB / 1.067 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.4095, allocations: 110.7 kB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4096, allocations: 0 / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006145/0.4102, allocations: 345.1 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.4102, allocations: 8 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4102, allocations: 7.984 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.4103, allocations: 4 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002011/0.4105, allocations: 43.92 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.4105, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.4107, allocations: 51.84 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.4107, allocations: 15.98 kB / 1.068 GB, free: 11.28 MB / 0.8262 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 ($whenCondition2,$PRE.TTanBot.tab.nextTimeEvent,$whenCondition1,$PRE.TTanTop.tab.nextTimeEvent,$PRE.tanSta.hysCha.y,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEventScaled,$PRE.tanSta.hysEmp.y,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002405/0.411, allocations: 191.5 kB / 1.068 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.4111, allocations: 43.39 kB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.4112, allocations: 47.36 kB / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4112, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.4112, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4112, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003606/0.4116, allocations: 337.4 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4116, allocations: 3.938 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.416e-05/0.4116, allocations: 7.984 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.4116, allocations: 7.953 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.4117, allocations: 0 / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.4117, allocations: 4 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4117, allocations: 0 / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004104/0.4121, allocations: 209.4 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.4123, allocations: 120.6 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.986e-05/0.4124, allocations: 19.88 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.4125, allocations: 23.92 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.4126, allocations: 19.97 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.4126, allocations: 7.984 kB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004992/0.4131, allocations: 363.1 kB / 1.069 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4131, allocations: 0 / 1.069 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003414/0.4135, allocations: 67.91 kB / 1.069 GB, free: 9.734 MB / 0.8262 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 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001268/0.4148, allocations: 435.2 kB / 1.069 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004311/0.4152, allocations: 191.8 kB / 1.07 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4152, allocations: 192 / 1.07 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.4153, allocations: 63.91 kB / 1.07 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.4159, allocations: 93.11 kB / 1.07 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.4169, allocations: 0.6686 MB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005208/0.4175, allocations: 0.8071 MB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001688/0.4177, allocations: 59.19 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.4177, allocations: 31.42 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.4177, allocations: 0 / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of Templates: time 0.009447/0.4272, allocations: 4.285 MB / 1.075 GB, free: 3.273 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches