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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008097/0.008097, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001621/0.001622, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.549/1.549, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.785/2.785, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 68.12 kB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3595, allocations: 157.4 MB / 1.208 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003547/0.3631, allocations: 2.256 MB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001956/0.3651, allocations: 1.274 MB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.3652, allocations: 7.938 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004639/0.3657, allocations: 167.3 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003576/0.3661, allocations: 175.2 kB / 1.212 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.3666, allocations: 242 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.367, allocations: 410.9 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.3673, allocations: 109.2 kB / 1.212 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.3675, allocations: 183.3 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.3677, allocations: 175.3 kB / 1.213 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.053e-05/0.3677, allocations: 24 kB / 1.213 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.3679, allocations: 79.97 kB / 1.213 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.368, allocations: 115.6 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.3682, allocations: 159 kB / 1.213 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004736/0.3687, allocations: 494.3 kB / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3687, allocations: 0 / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3687, allocations: 4 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.3687, allocations: 0 / 1.213 GB, free: 3.797 MB / 0.9669 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.001067/0.3698, allocations: 0.7117 MB / 1.214 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.3698, allocations: 8.625 kB / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.522e-05/0.3699, allocations: 40.47 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005775/0.3705, allocations: 414.2 kB / 1.215 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.3705, allocations: 16.31 kB / 1.215 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.3706, allocations: 19.94 kB / 1.215 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.3709, allocations: 169.9 kB / 1.215 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3709, allocations: 4 kB / 1.215 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.371, allocations: 7.984 kB / 1.215 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.371, allocations: 4 kB / 1.215 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3712, allocations: 91.83 kB / 1.215 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.3723, allocations: 0.7815 MB / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/0.3726, allocations: 137.4 kB / 1.216 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.3727, allocations: 49.69 kB / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.3728, allocations: 8 kB / 1.216 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.373, allocations: 125 kB / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 4.389e-06/0.373, allocations: 4.047 kB / 1.216 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005475/0.3736, allocations: 217.1 kB / 1.216 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.3737, allocations: 110.7 kB / 1.216 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006169/0.3743, allocations: 0.5798 MB / 1.217 GB, free: 92 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3743, allocations: 37.7 kB / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.3745, allocations: 196.4 kB / 1.217 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.3745, allocations: 31.61 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.3747, allocations: 69.69 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3748, allocations: 362.7 kB / 1.217 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.375, allocations: 104.5 kB / 1.218 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.3753, allocations: 170.3 kB / 1.218 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.3756, allocations: 186.8 kB / 1.218 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3756, allocations: 0 / 1.218 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005373/0.3761, allocations: 348.9 kB / 1.218 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3762, allocations: 13.7 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.3762, allocations: 0 / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.3762, allocations: 4 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.3764, allocations: 47.92 kB / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.3764, allocations: 0 / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.3766, allocations: 39.81 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.3766, allocations: 16.08 kB / 1.218 GB, free: 14.43 MB / 0.9825 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.0001939/0.3768, allocations: 199.5 kB / 1.219 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.3769, allocations: 35.53 kB / 1.219 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.464e-05/0.377, allocations: 47.36 kB / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.377, allocations: 0 / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.377, allocations: 0 / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.377, allocations: 0 / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.3773, allocations: 337.2 kB / 1.219 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3773, allocations: 7.984 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.236e-05/0.3774, allocations: 8 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.3774, allocations: 4 kB / 1.219 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.3774, allocations: 7.938 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3774, allocations: 0 / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3774, allocations: 4 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003405/0.3778, allocations: 209.3 kB / 1.219 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.687e-05/0.3779, allocations: 124.6 kB / 1.219 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.081e-05/0.3779, allocations: 8 kB / 1.219 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.3781, allocations: 15.97 kB / 1.219 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.3781, allocations: 23.97 kB / 1.219 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.3782, allocations: 8 kB / 1.219 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003901/0.3786, allocations: 355.1 kB / 1.22 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3786, allocations: 0 / 1.22 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002975/0.3789, allocations: 71.92 kB / 1.22 GB, free: 12.89 MB / 0.9825 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.0009708/0.3798, allocations: 427.8 kB / 1.22 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004381/0.3803, allocations: 194.1 kB / 1.22 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3803, allocations: 3.938 kB / 1.22 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.3804, allocations: 55.97 kB / 1.22 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.381, allocations: 114.9 kB / 1.221 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000938/0.3819, allocations: 0.6113 MB / 1.221 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.3824, allocations: 0.8107 MB / 1.222 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001289/0.3825, allocations: 50.94 kB / 1.222 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.736e-05/0.3826, allocations: 35.42 kB / 1.222 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of SimCode: time 9.51e-07/0.3826, allocations: 4 kB / 1.222 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of Templates: time 0.009726/0.3923, allocations: 4.754 MB / 1.227 GB, free: 5.996 MB / 0.9825 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