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.001429/0.001429, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001489/0.001489, allocations: 177.3 kB / 15.95 MB, free: 216 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.521/1.521, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.66/2.66, allocations: 436.5 MB / 0.7104 GB, free: 7.824 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004352/0.0004358, allocations: 8 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8235/0.824, allocations: 153.7 MB / 1.021 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002875/0.8269, allocations: 1.876 MB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002171/0.8291, allocations: 1.167 MB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.8293, allocations: 11.94 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004677/0.8298, allocations: 151.5 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003696/0.8302, allocations: 139.7 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005796/0.8308, allocations: 198.4 kB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.8311, allocations: 251.4 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.8314, allocations: 68.7 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002333/0.8316, allocations: 147.4 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.8318, allocations: 139.4 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.8318, allocations: 4 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.832, allocations: 43.98 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.8321, allocations: 99.56 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.8322, allocations: 77.52 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.8326, allocations: 381.2 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.8327, allocations: 0 / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.934e-06/0.8327, allocations: 0 / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.8327, allocations: 0 / 1.025 GB, free: 12.5 MB / 0.7794 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.001126/0.8338, allocations: 0.6651 MB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.8339, allocations: 11.98 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.014e-05/0.834, allocations: 39.53 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006465/0.8346, allocations: 397 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.8347, allocations: 12 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.8347, allocations: 15.95 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.835, allocations: 176.1 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.8351, allocations: 0 / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.8351, allocations: 11.94 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.8351, allocations: 4 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.8353, allocations: 91.89 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.8366, allocations: 0.7855 MB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.837, allocations: 141.5 kB / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.837, allocations: 3.953 kB / 1.028 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.8372, allocations: 125.1 kB / 1.028 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.8373, allocations: 0 / 1.028 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005171/0.8378, allocations: 221.4 kB / 1.028 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.656e-05/0.8379, allocations: 114.8 kB / 1.028 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006555/0.8385, allocations: 0.5643 MB / 1.029 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.8386, allocations: 37.69 kB / 1.029 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.8388, allocations: 200.4 kB / 1.029 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.8388, allocations: 35.55 kB / 1.029 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/0.8388, allocations: 4 kB / 1.029 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.839, allocations: 354.8 kB / 1.029 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.8392, allocations: 108 kB / 1.029 GB, free: 8.172 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.8394, allocations: 158 kB / 1.03 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.8396, allocations: 118.3 kB / 1.03 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.8396, allocations: 0 / 1.03 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005405/0.8402, allocations: 339.2 kB / 1.03 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.8402, allocations: 5.672 kB / 1.03 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.8402, allocations: 7.922 kB / 1.03 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.8403, allocations: 4 kB / 1.03 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.8405, allocations: 51.98 kB / 1.03 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.8405, allocations: 7.984 kB / 1.03 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.8407, allocations: 47.91 kB / 1.03 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/0.8408, allocations: 15.94 kB / 1.03 GB, free: 7.41 MB / 0.7794 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.0002231/0.841, allocations: 187.6 kB / 1.03 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.257e-05/0.8411, allocations: 47.42 kB / 1.03 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.462e-05/0.8412, allocations: 47.36 kB / 1.03 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.8412, allocations: 0 / 1.03 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.8412, allocations: 4 kB / 1.03 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.8412, allocations: 0 / 1.03 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.8415, allocations: 333.3 kB / 1.031 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.8415, allocations: 0 / 1.031 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.498e-05/0.8416, allocations: 8 kB / 1.031 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.8416, allocations: 0 / 1.031 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.8416, allocations: 11.88 kB / 1.031 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.8416, allocations: 4 kB / 1.031 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8416, allocations: 0 / 1.031 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003524/0.842, allocations: 231 kB / 1.031 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.8421, allocations: 120.6 kB / 1.031 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.937e-05/0.8422, allocations: 7.953 kB / 1.031 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.8423, allocations: 23.98 kB / 1.031 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.834e-05/0.8424, allocations: 23.95 kB / 1.031 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.8424, allocations: 4 kB / 1.031 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000394/0.8428, allocations: 359.1 kB / 1.031 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8428, allocations: 0 / 1.031 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003195/0.8431, allocations: 71.84 kB / 1.032 GB, free: 5.852 MB / 0.7794 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.001101/0.8442, allocations: 426.1 kB / 1.032 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004499/0.8447, allocations: 198.3 kB / 1.032 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.8447, allocations: 0 / 1.032 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.8449, allocations: 59.92 kB / 1.032 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.8453, allocations: 90.89 kB / 1.032 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.8466, allocations: 0.6688 MB / 1.033 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.8471, allocations: 0.8148 MB / 1.034 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001773/0.8473, allocations: 55.19 kB / 1.034 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.598e-05/0.8474, allocations: 35.42 kB / 1.034 GB, free: 3.621 MB / 0.7794 GB Notification: Performance of SimCode: time 1.243e-06/0.8474, allocations: 0 / 1.034 GB, free: 3.621 MB / 0.7794 GB Notification: Performance of Templates: time 0.009258/0.8566, allocations: 4.276 MB / 1.038 GB, free: 15.39 MB / 0.795 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","../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches