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) 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 12.0.0-master/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007317/0.007317, allocations: 170.7 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.913/2.913, allocations: 473.4 MB / 0.7469 GB, free: 6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003775, allocations: 6.062 kB / 0.9158 GB, free: 33.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3444, allocations: 162.2 MB / 1.074 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002557/0.347, allocations: 1.937 MB / 1.076 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001999/0.349, allocations: 1.236 MB / 1.077 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.3491, allocations: 11.94 kB / 1.077 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004565/0.3496, allocations: 151.5 kB / 1.077 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.3499, allocations: 151.5 kB / 1.078 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.3505, allocations: 225.6 kB / 1.078 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000401/0.3509, allocations: 374.9 kB / 1.078 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.3511, allocations: 105.2 kB / 1.078 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002605/0.3514, allocations: 147.3 kB / 1.078 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.3516, allocations: 159.3 kB / 1.079 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.3516, allocations: 12 kB / 1.079 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.3518, allocations: 59.97 kB / 1.079 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.3519, allocations: 91.59 kB / 1.079 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.3521, allocations: 164.7 kB / 1.079 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.3525, allocations: 462.5 kB / 1.079 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3526, allocations: 0 / 1.079 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.136e-06/0.3526, allocations: 3.984 kB / 1.079 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.3526, allocations: 0 / 1.079 GB, free: 2.211 MB / 0.8262 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.00111/0.3537, allocations: 0.6513 MB / 1.08 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3537, allocations: 12.03 kB / 1.08 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.295e-05/0.3538, allocations: 44.38 kB / 1.08 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.3544, allocations: 410.2 kB / 1.08 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.3544, allocations: 8.375 kB / 1.08 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.3545, allocations: 23.94 kB / 1.08 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000345/0.3548, allocations: 168.7 kB / 1.081 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3549, allocations: 3.984 kB / 1.081 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.3549, allocations: 4 kB / 1.081 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3549, allocations: 7.938 kB / 1.081 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.3551, allocations: 83.95 kB / 1.081 GB, free: 0.7148 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.3563, allocations: 0.8049 MB / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.3566, allocations: 133.3 kB / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.3568, allocations: 57.69 kB / 1.082 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.3568, allocations: 0 / 1.082 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.3571, allocations: 129 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.3571, allocations: 0 / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12): time 0.0005441/0.3576, allocations: 225.5 kB / 1.082 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.3577, allocations: 106.8 kB / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006914/0.3584, allocations: 0.5798 MB / 1.083 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.3584, allocations: 29.7 kB / 1.083 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.3586, allocations: 200.3 kB / 1.083 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.3587, allocations: 27.7 kB / 1.083 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.227e-05/0.3587, allocations: 45.69 kB / 1.083 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3589, allocations: 358.7 kB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.3591, allocations: 99.95 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/0.3593, allocations: 173.8 kB / 1.084 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.3597, allocations: 190 kB / 1.084 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3597, allocations: 0 / 1.084 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005459/0.3602, allocations: 346.7 kB / 1.084 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3603, allocations: 4 kB / 1.084 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3603, allocations: 0 / 1.084 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.3603, allocations: 4 kB / 1.084 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.3605, allocations: 52 kB / 1.084 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.3605, allocations: 4 kB / 1.084 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.3608, allocations: 43.92 kB / 1.084 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.3608, allocations: 19.94 kB / 1.084 GB, free: 12.93 MB / 0.8419 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.0002059/0.361, allocations: 199.5 kB / 1.084 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.357e-05/0.3611, allocations: 43.52 kB / 1.084 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.712e-05/0.3612, allocations: 39.38 kB / 1.084 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3612, allocations: 0 / 1.084 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3612, allocations: 4 kB / 1.084 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3612, allocations: 0 / 1.084 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003016/0.3615, allocations: 337.2 kB / 1.085 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3615, allocations: 0 / 1.085 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.732e-05/0.3615, allocations: 11.94 kB / 1.085 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3616, allocations: 0 / 1.085 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.3616, allocations: 11.98 kB / 1.085 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3616, allocations: 0 / 1.085 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3616, allocations: 0 / 1.085 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.3619, allocations: 209.4 kB / 1.085 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.362, allocations: 120.6 kB / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.3621, allocations: 8 kB / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3622, allocations: 23.92 kB / 1.085 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.716e-05/0.3623, allocations: 27.84 kB / 1.085 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.3623, allocations: 11.98 kB / 1.085 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003952/0.3627, allocations: 359.1 kB / 1.086 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3628, allocations: 0 / 1.086 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003281/0.3631, allocations: 67.92 kB / 1.086 GB, free: 11.38 MB / 0.8419 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 (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.001031/0.3641, allocations: 432.6 kB / 1.086 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004354/0.3646, allocations: 195.8 kB / 1.086 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3646, allocations: 0 / 1.086 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.3647, allocations: 55.97 kB / 1.086 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.3653, allocations: 98 kB / 1.086 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3663, allocations: 0.7055 MB / 1.087 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.3667, allocations: 0.8071 MB / 1.088 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000147/0.3669, allocations: 55.19 kB / 1.088 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.565e-05/0.367, allocations: 39.42 kB / 1.088 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.367, allocations: 4 kB / 1.088 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of Templates: time 0.008835/0.3758, allocations: 4.386 MB / 1.092 GB, free: 4.762 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches