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.001173/0.001173, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.587/2.587, allocations: 437 MB / 0.7103 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.00144, allocations: 64.09 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8033/0.8048, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004087/0.8089, allocations: 2.268 MB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002234/0.8112, allocations: 1.263 MB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.8114, allocations: 4 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004992/0.812, allocations: 175.3 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004693/0.8124, allocations: 171.2 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006437/0.8131, allocations: 246.9 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005059/0.8136, allocations: 410.8 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.8139, allocations: 109.2 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002744/0.8142, allocations: 163.3 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.8144, allocations: 183.2 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.956e-05/0.8145, allocations: 24 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.8147, allocations: 83.97 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.8148, allocations: 111.6 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.815, allocations: 162.9 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005501/0.8155, allocations: 492.3 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8156, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.293e-06/0.8156, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.304e-05/0.8156, allocations: 0 / 1.023 GB, free: 12.66 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.0012/0.8168, allocations: 0.7118 MB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.8168, allocations: 11.98 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.8169, allocations: 44.38 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005737/0.8175, allocations: 410.2 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.8176, allocations: 12.38 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.8176, allocations: 15.94 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.818, allocations: 172.7 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.818, allocations: 4 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.818, allocations: 4 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.818, allocations: 4 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.8182, allocations: 91.89 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.8194, allocations: 0.7893 MB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003177/0.8197, allocations: 137.4 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.8199, allocations: 49.7 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.8199, allocations: 0 / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.8201, allocations: 137 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.8201, allocations: 0 / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005356/0.8207, allocations: 213.1 kB / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.8208, allocations: 106.8 kB / 1.026 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006695/0.8214, allocations: 0.572 MB / 1.026 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.8215, allocations: 37.69 kB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.8216, allocations: 196.5 kB / 1.027 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.361e-05/0.8217, allocations: 39.55 kB / 1.027 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.8218, allocations: 77.59 kB / 1.027 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.8219, allocations: 354.7 kB / 1.027 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.8221, allocations: 108 kB / 1.027 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.8224, allocations: 163.1 kB / 1.027 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.8227, allocations: 189.5 kB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.8227, allocations: 0.5 kB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005579/0.8233, allocations: 342.2 kB / 1.028 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.8233, allocations: 12.03 kB / 1.028 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.8233, allocations: 4 kB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.8233, allocations: 0 / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.8235, allocations: 55.91 kB / 1.028 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.8235, allocations: 0 / 1.028 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.8238, allocations: 39.81 kB / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-05/0.8238, allocations: 12 kB / 1.028 GB, free: 7.301 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 ($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.0001862/0.824, allocations: 207.5 kB / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.506e-05/0.8241, allocations: 39.44 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.316e-05/0.8242, allocations: 39.38 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.8242, allocations: 4.109 kB / 1.028 GB, free: 7.008 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8242, allocations: 3.938 kB / 1.028 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.8242, allocations: 3.984 kB / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002774/0.8245, allocations: 329.4 kB / 1.028 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.8245, allocations: 0 / 1.028 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.8245, allocations: 11.94 kB / 1.029 GB, free: 6.617 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/0.8245, allocations: 3.984 kB / 1.029 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.8246, allocations: 8 kB / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.8246, allocations: 0 / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8246, allocations: 0 / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003466/0.8249, allocations: 209.4 kB / 1.029 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.825, allocations: 124.6 kB / 1.029 GB, free: 6.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.8251, allocations: 8 kB / 1.029 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.8252, allocations: 15.98 kB / 1.029 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.345e-05/0.8253, allocations: 23.91 kB / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.8253, allocations: 11.98 kB / 1.029 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003887/0.8257, allocations: 359.1 kB / 1.029 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.383e-06/0.8257, allocations: 0 / 1.029 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003136/0.8261, allocations: 75.83 kB / 1.029 GB, free: 5.762 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 (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.0009496/0.827, allocations: 426.5 kB / 1.03 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000428/0.8274, allocations: 203.7 kB / 1.03 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8275, allocations: 0 / 1.03 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.8276, allocations: 59.91 kB / 1.03 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005024/0.8281, allocations: 105 kB / 1.03 GB, free: 5.145 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009287/0.8291, allocations: 0.617 MB / 1.031 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.8294, allocations: 0.8107 MB / 1.031 GB, free: 3.668 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001478/0.8296, allocations: 55.2 kB / 1.032 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.286e-05/0.8297, allocations: 35.36 kB / 1.032 GB, free: 3.574 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.8297, allocations: 3.938 kB / 1.032 GB, free: 3.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.009414/0.8391, allocations: 4.752 MB / 1.036 GB, free: 14.87 MB / 0.795 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=480 -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/jenkins/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