Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001619/0.001619, allocations: 109.3 kB / 15.99 MB, free: 5.914 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.00175/0.00175, allocations: 198.6 kB / 16.91 MB, free: 5.754 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.424/1.424, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 437 MB / 0.7107 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 65.19 kB / 0.8694 GB, free: 2.523 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3233, allocations: 151.6 MB / 1.017 GB, free: 10.97 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004009/0.3274, allocations: 2.31 MB / 1.02 GB, free: 8.641 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002094/0.3295, allocations: 1.26 MB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.3297, allocations: 7.938 kB / 1.021 GB, free: 7.363 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0004676/0.3302, allocations: 163.5 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003525/0.3305, allocations: 155.4 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.3311, allocations: 221.6 kB / 1.022 GB, free: 6.84 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004533/0.3315, allocations: 406.8 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.3318, allocations: 97.27 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.332, allocations: 179.2 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.3322, allocations: 179.3 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.414e-05/0.3323, allocations: 24 kB / 1.022 GB, free: 5.969 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.3325, allocations: 79.97 kB / 1.022 GB, free: 5.891 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.3326, allocations: 115.6 kB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001654/0.3328, allocations: 162.9 kB / 1.023 GB, free: 5.617 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004653/0.3332, allocations: 403.4 kB / 1.023 GB, free: 5.223 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3333, allocations: 4 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.303e-06/0.3333, allocations: 0 / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.3333, allocations: 0 / 1.023 GB, free: 5.219 MB / 0.795 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.001159/0.3344, allocations: 0.7002 MB / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3345, allocations: 16.86 kB / 1.024 GB, free: 4.453 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.39e-05/0.3346, allocations: 44.38 kB / 1.024 GB, free: 4.41 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.3352, allocations: 406.2 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.3352, allocations: 20.31 kB / 1.024 GB, free: 3.953 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.3352, allocations: 15.94 kB / 1.024 GB, free: 3.938 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003767/0.3356, allocations: 184.6 kB / 1.024 GB, free: 3.742 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.3356, allocations: 3.984 kB / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.3357, allocations: 8 kB / 1.024 GB, free: 3.73 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.3357, allocations: 0 / 1.024 GB, free: 3.73 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.3359, allocations: 91.89 kB / 1.025 GB, free: 3.641 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.3371, allocations: 0.7855 MB / 1.025 GB, free: 2.797 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.3375, allocations: 137.4 kB / 1.025 GB, free: 2.645 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.3376, allocations: 49.7 kB / 1.025 GB, free: 2.59 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.3376, allocations: 11.88 kB / 1.025 GB, free: 2.578 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.3379, allocations: 129 kB / 1.026 GB, free: 2.434 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.3379, allocations: 0 / 1.026 GB, free: 2.434 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.000532/0.3385, allocations: 217.5 kB / 1.026 GB, free: 2.215 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.434e-05/0.3386, allocations: 106.8 kB / 1.026 GB, free: 2.086 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006598/0.3392, allocations: 0.5759 MB / 1.026 GB, free: 1.504 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.3393, allocations: 29.7 kB / 1.026 GB, free: 1.469 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.3394, allocations: 212.3 kB / 1.027 GB, free: 1.258 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.3395, allocations: 27.7 kB / 1.027 GB, free: 1.23 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.3396, allocations: 73.7 kB / 1.027 GB, free: 1.152 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3398, allocations: 358.7 kB / 1.027 GB, free: 0.793 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.34, allocations: 112.1 kB / 1.027 GB, free: 0.6836 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.3402, allocations: 167.1 kB / 1.027 GB, free: 0.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.3405, allocations: 194.1 kB / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3406, allocations: 0 / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005764/0.3411, allocations: 335.1 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.3412, allocations: 10.81 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3412, allocations: 3.938 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3412, allocations: 4 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.3414, allocations: 43.97 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3414, allocations: 8.031 kB / 1.028 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.3416, allocations: 47.72 kB / 1.028 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.3417, allocations: 8 kB / 1.028 GB, free: 15.84 MB / 0.8106 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.0002158/0.3419, allocations: 195.4 kB / 1.028 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.706e-05/0.342, allocations: 39.52 kB / 1.028 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.09e-05/0.3421, allocations: 43.38 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3421, allocations: 0 / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3421, allocations: 4 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.3421, allocations: 0 / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003399/0.3424, allocations: 337.3 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3424, allocations: 4 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.229e-05/0.3425, allocations: 4 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3425, allocations: 4 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.3425, allocations: 7.984 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3425, allocations: 0 / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3425, allocations: 4 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.3429, allocations: 217.3 kB / 1.029 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.343, allocations: 116.6 kB / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.224e-05/0.3431, allocations: 11.98 kB / 1.029 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.3432, allocations: 11.98 kB / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/0.3433, allocations: 23.97 kB / 1.029 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.3433, allocations: 4 kB / 1.029 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003969/0.3437, allocations: 371 kB / 1.029 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3437, allocations: 0 / 1.029 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003149/0.344, allocations: 71.84 kB / 1.029 GB, free: 14.31 MB / 0.8106 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.001489/0.3455, allocations: 427.5 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004633/0.346, allocations: 199.8 kB / 1.03 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.346, allocations: 4.188 kB / 1.03 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.3461, allocations: 55.92 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.3467, allocations: 116 kB / 1.03 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3478, allocations: 0.7401 MB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.3482, allocations: 0.8028 MB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.09e-05/0.3483, allocations: 43.42 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3483, allocations: 0 / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of Templates: time 0.008157/0.3565, allocations: 5.055 MB / 1.037 GB, free: 7.008 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches