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.007198/0.007198, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001553/0.001553, allocations: 193.5 kB / 16.67 MB, free: 5.977 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.47/1.47, allocations: 222.9 MB / 240.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.659/2.659, allocations: 461.9 MB / 0.7347 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 63.89 kB / 1.054 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9386/0.9398, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004082/0.9439, allocations: 2.248 MB / 1.21 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002118/0.9461, allocations: 1.267 MB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.9462, allocations: 4 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005224/0.9468, allocations: 175.3 kB / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003817/0.9472, allocations: 175.2 kB / 1.211 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.9478, allocations: 250.4 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004331/0.9482, allocations: 406.9 kB / 1.212 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.9484, allocations: 105.2 kB / 1.212 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.9487, allocations: 179.3 kB / 1.212 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.9489, allocations: 175.3 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.162e-05/0.9489, allocations: 24 kB / 1.213 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.9491, allocations: 75.97 kB / 1.213 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.9492, allocations: 111.7 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.9494, allocations: 170.9 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000483/0.9499, allocations: 492 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.9499, allocations: 0 / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9499, allocations: 4 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.194e-06/0.9499, allocations: 0 / 1.213 GB, free: 7.793 MB / 0.9356 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.001043/0.951, allocations: 0.7118 MB / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.951, allocations: 8.031 kB / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.838e-05/0.9511, allocations: 40.47 kB / 1.214 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.9517, allocations: 414.2 kB / 1.215 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.9517, allocations: 24.38 kB / 1.215 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.9517, allocations: 23.92 kB / 1.215 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.9521, allocations: 169.4 kB / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.9521, allocations: 0 / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.9521, allocations: 8 kB / 1.215 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.9521, allocations: 4 kB / 1.215 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.9523, allocations: 91.83 kB / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.9536, allocations: 0.7816 MB / 1.216 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.9539, allocations: 141.3 kB / 1.216 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.954, allocations: 53.64 kB / 1.216 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.9541, allocations: 3.984 kB / 1.216 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/0.9543, allocations: 129.1 kB / 1.216 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.9543, allocations: 0 / 1.216 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005249/0.9549, allocations: 221 kB / 1.216 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.553e-05/0.9549, allocations: 102.8 kB / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006573/0.9556, allocations: 0.5837 MB / 1.217 GB, free: 4.074 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.9556, allocations: 33.7 kB / 1.217 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.9558, allocations: 196.5 kB / 1.217 GB, free: 3.84 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.9558, allocations: 35.55 kB / 1.217 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.956, allocations: 69.69 kB / 1.217 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.9561, allocations: 362.7 kB / 1.217 GB, free: 3.367 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.9563, allocations: 104 kB / 1.218 GB, free: 3.266 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.9565, allocations: 169.8 kB / 1.218 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.9568, allocations: 182.9 kB / 1.218 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.9568, allocations: 0 / 1.218 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005942/0.9574, allocations: 351 kB / 1.218 GB, free: 2.539 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.9575, allocations: 8 kB / 1.218 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.9575, allocations: 0 / 1.218 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.9575, allocations: 4 kB / 1.218 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.9577, allocations: 51.91 kB / 1.218 GB, free: 2.477 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.9577, allocations: 0 / 1.218 GB, free: 2.477 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.9579, allocations: 39.81 kB / 1.218 GB, free: 2.438 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.958, allocations: 12.09 kB / 1.218 GB, free: 2.426 MB / 0.9356 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.0001859/0.9582, allocations: 199.9 kB / 1.219 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.259e-05/0.9582, allocations: 35.53 kB / 1.219 GB, free: 2.188 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.216e-05/0.9583, allocations: 39.38 kB / 1.219 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.9583, allocations: 8.141 kB / 1.219 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.9583, allocations: 3.938 kB / 1.219 GB, free: 2.129 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.9583, allocations: 7.984 kB / 1.219 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002903/0.9586, allocations: 329.4 kB / 1.219 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.9586, allocations: 0 / 1.219 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.762e-05/0.9587, allocations: 19.98 kB / 1.219 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.9587, allocations: 0 / 1.219 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.9587, allocations: 4 kB / 1.219 GB, free: 1.727 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.9587, allocations: 0 / 1.219 GB, free: 1.727 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.9587, allocations: 0 / 1.219 GB, free: 1.727 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003906/0.9591, allocations: 217.2 kB / 1.219 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.9593, allocations: 128.6 kB / 1.219 GB, free: 1.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.756e-05/0.9594, allocations: 11.94 kB / 1.219 GB, free: 1.336 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.9595, allocations: 11.98 kB / 1.219 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.495e-05/0.9596, allocations: 23.97 kB / 1.219 GB, free: 1.301 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.9596, allocations: 11.98 kB / 1.219 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003855/0.96, allocations: 355.1 kB / 1.22 GB, free: 0.9453 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.463e-06/0.96, allocations: 0 / 1.22 GB, free: 0.9453 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003062/0.9603, allocations: 67.92 kB / 1.22 GB, free: 0.8789 MB / 0.9356 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.0009474/0.9613, allocations: 420.4 kB / 1.22 GB, free: 0.625 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000418/0.9617, allocations: 203.7 kB / 1.22 GB, free: 436 kB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9617, allocations: 0 / 1.22 GB, free: 436 kB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.9618, allocations: 63.89 kB / 1.22 GB, free: 372 kB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.9623, allocations: 110.3 kB / 1.22 GB, free: 268 kB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009704/0.9633, allocations: 0.5919 MB / 1.221 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.9637, allocations: 0.8146 MB / 1.222 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001347/0.9639, allocations: 55.19 kB / 1.222 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.215e-05/0.964, allocations: 31.42 kB / 1.222 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of SimCode: time 3.61e-07/0.964, allocations: 3.938 kB / 1.222 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of Templates: time 0.009341/0.9733, allocations: 4.767 MB / 1.227 GB, free: 9.988 MB / 0.9512 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