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.001317/0.001317, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001266/0.001266, allocations: 187 kB / 17.34 MB, free: 5.762 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.713/2.713, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 59.91 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9003/0.9019, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003716/0.9057, allocations: 2.251 MB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002137/0.9078, allocations: 1.267 MB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.908, allocations: 11.88 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0004698/0.9085, allocations: 175.3 kB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.9088, allocations: 167.2 kB / 1.212 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005527/0.9094, allocations: 246.6 kB / 1.212 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004265/0.9098, allocations: 407 kB / 1.213 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.9101, allocations: 105.2 kB / 1.213 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.9103, allocations: 179.3 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.9106, allocations: 175.3 kB / 1.213 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.9106, allocations: 24 kB / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.9108, allocations: 79.91 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.9109, allocations: 111.6 kB / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.9111, allocations: 163 kB / 1.214 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005109/0.9116, allocations: 488 kB / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.9116, allocations: 4 kB / 1.214 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.853e-06/0.9116, allocations: 0 / 1.214 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.9117, allocations: 4 kB / 1.214 GB, free: 7.824 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.001121/0.9128, allocations: 0.7079 MB / 1.215 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.9128, allocations: 12.03 kB / 1.215 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.9129, allocations: 40.47 kB / 1.215 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005547/0.9135, allocations: 422.1 kB / 1.215 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.9135, allocations: 16.38 kB / 1.215 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.9136, allocations: 19.88 kB / 1.215 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003378/0.9139, allocations: 181.3 kB / 1.215 GB, free: 6.34 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.9139, allocations: 0 / 1.215 GB, free: 6.34 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.914, allocations: 4 kB / 1.215 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.914, allocations: 4 kB / 1.215 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.9142, allocations: 95.89 kB / 1.216 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.9152, allocations: 0.7776 MB / 1.216 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.9156, allocations: 133.4 kB / 1.216 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.9157, allocations: 57.69 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.9157, allocations: 4 kB / 1.216 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.9159, allocations: 129 kB / 1.217 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.9159, allocations: 0 / 1.217 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0004997/0.9165, allocations: 221 kB / 1.217 GB, free: 4.82 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.9165, allocations: 106.8 kB / 1.217 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006038/0.9171, allocations: 0.5798 MB / 1.217 GB, free: 4.105 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.9172, allocations: 33.7 kB / 1.218 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.9173, allocations: 196.5 kB / 1.218 GB, free: 3.871 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.9174, allocations: 31.66 kB / 1.218 GB, free: 3.84 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.712e-05/0.9175, allocations: 81.61 kB / 1.218 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.9176, allocations: 358.7 kB / 1.218 GB, free: 3.395 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.9178, allocations: 100.5 kB / 1.218 GB, free: 3.297 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.918, allocations: 173.8 kB / 1.218 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.9183, allocations: 182.7 kB / 1.219 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.9183, allocations: 4 kB / 1.219 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005349/0.9189, allocations: 351.2 kB / 1.219 GB, free: 2.562 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.9189, allocations: 4 kB / 1.219 GB, free: 2.559 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.9189, allocations: 4 kB / 1.219 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.9189, allocations: 0 / 1.219 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.9191, allocations: 47.92 kB / 1.219 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.9191, allocations: 11.92 kB / 1.219 GB, free: 2.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.9194, allocations: 39.91 kB / 1.219 GB, free: 2.457 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.9194, allocations: 12 kB / 1.219 GB, free: 2.445 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.0001934/0.9196, allocations: 191.4 kB / 1.219 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.9196, allocations: 39.53 kB / 1.219 GB, free: 2.211 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.929e-05/0.9197, allocations: 43.36 kB / 1.219 GB, free: 2.16 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.9197, allocations: 4 kB / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.9198, allocations: 0 / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.9198, allocations: 0 / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.9201, allocations: 337.4 kB / 1.22 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.9201, allocations: 0 / 1.22 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.644e-05/0.9201, allocations: 15.94 kB / 1.22 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.9201, allocations: 0 / 1.22 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.9201, allocations: 4 kB / 1.22 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.9201, allocations: 7.969 kB / 1.22 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.9201, allocations: 0 / 1.22 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003523/0.9205, allocations: 221.2 kB / 1.22 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.9206, allocations: 120.6 kB / 1.22 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.359e-05/0.9207, allocations: 11.98 kB / 1.22 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.9208, allocations: 11.98 kB / 1.22 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.9209, allocations: 19.97 kB / 1.22 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.9209, allocations: 8 kB / 1.22 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003701/0.9213, allocations: 359.1 kB / 1.22 GB, free: 0.9766 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9213, allocations: 0 / 1.22 GB, free: 0.9766 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003002/0.9216, allocations: 68 kB / 1.22 GB, free: 0.9102 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.001011/0.9226, allocations: 429.4 kB / 1.221 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00041/0.923, allocations: 207.7 kB / 1.221 GB, free: 452 kB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.923, allocations: 0 / 1.221 GB, free: 452 kB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.9232, allocations: 55.92 kB / 1.221 GB, free: 396 kB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.9237, allocations: 103 kB / 1.221 GB, free: 304 kB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009918/0.9247, allocations: 0.6406 MB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.9251, allocations: 0.8029 MB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/0.9252, allocations: 39.42 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of SimCode: time 3.11e-07/0.9252, allocations: 0 / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of Templates: time 0.008381/0.9336, allocations: 5.096 MB / 1.228 GB, free: 9.676 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/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