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.001693/0.001693, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001769/0.001769, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.632/2.632, allocations: 469.4 MB / 0.7428 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 67.91 kB / 1.065 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9273/0.9288, allocations: 159.1 MB / 1.221 GB, free: 2.309 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004313/0.9332, allocations: 2.255 MB / 1.223 GB, free: 40 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002441/0.9357, allocations: 1.263 MB / 1.224 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003333/0.936, allocations: 7.938 kB / 1.224 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.000624/0.9367, allocations: 175.3 kB / 1.224 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0005869/0.9373, allocations: 175.2 kB / 1.225 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007505/0.9381, allocations: 243.4 kB / 1.225 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006783/0.9388, allocations: 414.8 kB / 1.225 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.939, allocations: 101.2 kB / 1.225 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.9394, allocations: 175.4 kB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003152/0.9398, allocations: 183.2 kB / 1.226 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.35e-05/0.9398, allocations: 24 kB / 1.226 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002386/0.9401, allocations: 83.95 kB / 1.226 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.9403, allocations: 107.6 kB / 1.226 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.9405, allocations: 167 kB / 1.226 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008528/0.9413, allocations: 488 kB / 1.227 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.067e-05/0.9413, allocations: 4 kB / 1.227 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.665e-06/0.9414, allocations: 0 / 1.227 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.243e-05/0.9414, allocations: 0 / 1.227 GB, free: 12.47 MB / 0.9512 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.001737/0.9431, allocations: 0.7079 MB / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.9432, allocations: 12.62 kB / 1.227 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.9434, allocations: 44.45 kB / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006934/0.9441, allocations: 418.1 kB / 1.228 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.9441, allocations: 16.38 kB / 1.228 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/0.9441, allocations: 15.94 kB / 1.228 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003776/0.9445, allocations: 180.1 kB / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.9446, allocations: 0 / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.9446, allocations: 4 kB / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.9446, allocations: 4 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002198/0.9448, allocations: 91.89 kB / 1.228 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.9461, allocations: 0.7853 MB / 1.229 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/0.9464, allocations: 137.4 kB / 1.229 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.9465, allocations: 49.64 kB / 1.229 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.9466, allocations: 4 kB / 1.229 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.9468, allocations: 141 kB / 1.229 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.9468, allocations: 0 / 1.229 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0005515/0.9474, allocations: 213.5 kB / 1.229 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/0.9475, allocations: 106.8 kB / 1.229 GB, free: 9.34 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006867/0.9482, allocations: 0.5759 MB / 1.23 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.9482, allocations: 33.7 kB / 1.23 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.9484, allocations: 196.4 kB / 1.23 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.103e-05/0.9485, allocations: 39.66 kB / 1.23 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.9487, allocations: 77.62 kB / 1.23 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.9488, allocations: 354.7 kB / 1.231 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.949, allocations: 108 kB / 1.231 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.9492, allocations: 178.9 kB / 1.231 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.9496, allocations: 183.1 kB / 1.231 GB, free: 7.551 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.9496, allocations: 7.938 kB / 1.231 GB, free: 7.543 MB / 0.9512 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005687/0.9502, allocations: 348.8 kB / 1.231 GB, free: 7.195 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.9502, allocations: 4 kB / 1.231 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.9502, allocations: 0 / 1.231 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.9502, allocations: 4 kB / 1.231 GB, free: 7.188 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.9504, allocations: 47.91 kB / 1.231 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.9505, allocations: 4 kB / 1.231 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.9507, allocations: 39.91 kB / 1.231 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.9507, allocations: 12 kB / 1.232 GB, free: 7.086 MB / 0.9512 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.0002232/0.951, allocations: 200 kB / 1.232 GB, free: 6.883 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.057e-05/0.9511, allocations: 43.52 kB / 1.232 GB, free: 6.84 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.03e-05/0.9511, allocations: 39.38 kB / 1.232 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.9512, allocations: 0 / 1.232 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.9512, allocations: 4 kB / 1.232 GB, free: 6.793 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.9512, allocations: 0 / 1.232 GB, free: 6.793 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003209/0.9515, allocations: 341.3 kB / 1.232 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.9515, allocations: 0 / 1.232 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.954e-05/0.9516, allocations: 8 kB / 1.232 GB, free: 6.402 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.9516, allocations: 0 / 1.232 GB, free: 6.402 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.9516, allocations: 11.98 kB / 1.232 GB, free: 6.391 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.9516, allocations: 0 / 1.232 GB, free: 6.391 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.9516, allocations: 0 / 1.232 GB, free: 6.391 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003509/0.952, allocations: 217.3 kB / 1.232 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.9521, allocations: 124.6 kB / 1.232 GB, free: 6.016 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.9521, allocations: 4 kB / 1.232 GB, free: 6.012 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.9523, allocations: 15.98 kB / 1.232 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.886e-05/0.9524, allocations: 19.97 kB / 1.232 GB, free: 5.977 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.9524, allocations: 7.984 kB / 1.232 GB, free: 5.969 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003987/0.9528, allocations: 359.1 kB / 1.233 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9528, allocations: 0 / 1.233 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003344/0.9531, allocations: 68 kB / 1.233 GB, free: 5.551 MB / 0.9512 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.001071/0.9542, allocations: 442.2 kB / 1.233 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004384/0.9547, allocations: 198.8 kB / 1.234 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.9547, allocations: 0 / 1.234 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.9548, allocations: 63.91 kB / 1.234 GB, free: 5.023 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.9554, allocations: 101.1 kB / 1.234 GB, free: 4.93 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.9565, allocations: 0.6367 MB / 1.234 GB, free: 4.254 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.9569, allocations: 0.8145 MB / 1.235 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.78e-05/0.957, allocations: 35.42 kB / 1.235 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.957, allocations: 3.938 kB / 1.235 GB, free: 3.375 MB / 0.9512 GB Notification: Performance of Templates: time 0.00949/0.9665, allocations: 5.103 MB / 1.24 GB, free: 14.29 MB / 0.9669 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/jenkins1/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