Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dH.y|tanSim.m_flow|tanSim.vol.1..T|tanSim.vol.2..T|tanSim.vol.3..T|tanSim.vol.4..T|tanSim.vol.5..T|tanSim.vol.6..T|tanSim.vol.7..T|tanSim.vol.8..T|tanSim.vol.9..T|tanSim.vol.10..T|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|tanEnh.vol.8..T|tanEnh.vol.9..T|tanEnh.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dH.y|tanSim.m_flow|tanSim.vol.1..T|tanSim.vol.2..T|tanSim.vol.3..T|tanSim.vol.4..T|tanSim.vol.5..T|tanSim.vol.6..T|tanSim.vol.7..T|tanSim.vol.8..T|tanSim.vol.9..T|tanSim.vol.10..T|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|tanEnh.vol.8..T|tanEnh.vol.9..T|tanEnh.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.029/2.029, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 184.6 kB / 487.4 MB, free: 5.074 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009522/0.0009524, allocations: 99.7 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.777e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2593, allocations: 142.3 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/1.267, allocations: 422.7 MB / 1.619 GB, free: 15.93 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/1.267, allocations: 89 kB / 1.619 GB, free: 15.88 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 10/11.27, allocations: 2.998 GB / 4.617 GB, free: 208.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.504e-06/11.27, allocations: 2.844 kB / 4.617 GB, free: 208.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.001728/11.27, allocations: 263.1 kB / 4.617 GB, free: 208.1 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.0286/11.3, allocations: 8.333 MB / 4.625 GB, free: 203.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/11.3, allocations: 7.188 kB / 4.625 GB, free: 203.9 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007269/11.31, allocations: 1.176 MB / 4.626 GB, free: 203.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02675/11.33, allocations: 11.05 MB / 4.637 GB, free: 196.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00052/11.33, allocations: 268 kB / 4.637 GB, free: 196.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003564/11.34, allocations: 490.2 kB / 4.638 GB, free: 196.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0222/11.36, allocations: 8.904 MB / 4.647 GB, free: 192.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03119/11.39, allocations: 10.35 MB / 4.657 GB, free: 186.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000679/11.39, allocations: 26.81 kB / 4.657 GB, free: 186.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004455/11.4, allocations: 14.69 kB / 4.657 GB, free: 186.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003669/11.4, allocations: 253.4 kB / 4.657 GB, free: 186.5 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07744/11.47, allocations: 45.01 MB / 4.701 GB, free: 140.4 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00926/11.48, allocations: 5.99 MB / 4.707 GB, free: 134.5 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006516/11.49, allocations: 4.651 MB / 4.711 GB, free: 129.8 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001204/11.49, allocations: 0.8196 MB / 4.712 GB, free: 128.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005444/11.5, allocations: 3.176 MB / 4.715 GB, free: 125.7 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005023/11.5, allocations: 399.1 kB / 4.716 GB, free: 125.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=449): time 1.93e-05/11.5, allocations: 3.938 kB / 4.716 GB, free: 125.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=449): time 0.01122/11.51, allocations: 6.121 MB / 4.722 GB, free: 119.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/11.51, allocations: 158.2 kB / 4.722 GB, free: 118.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/11.52, allocations: 5.927 MB / 4.728 GB, free: 113 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.00123/11.53, allocations: 33.7 kB / 4.728 GB, free: 113 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.003716/11.53, allocations: 4.292 MB / 4.732 GB, free: 108.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.002221/11.53, allocations: 1.513 MB / 4.733 GB, free: 107.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/11.53, allocations: 0 / 4.733 GB, free: 107.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0002855/11.53, allocations: 0.542 MB / 4.734 GB, free: 106.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00319/11.54, allocations: 2.783 MB / 4.737 GB, free: 103.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003868/11.54, allocations: 4.619 MB / 4.741 GB, free: 98.31 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005334/11.54, allocations: 4.067 MB / 4.745 GB, free: 94.24 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.258e-05/11.54, allocations: 16 kB / 4.745 GB, free: 94.22 MB / 1.167 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01287/11.56, allocations: 8.236 MB / 4.753 GB, free: 85.97 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.005499/11.56, allocations: 28.12 MB / 4.781 GB, free: 55.95 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/11.56, allocations: 60 kB / 4.781 GB, free: 55.89 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/11.56, allocations: 99.95 kB / 4.781 GB, free: 55.79 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00661/11.57, allocations: 1.447 MB / 4.782 GB, free: 54.35 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000137/11.57, allocations: 131.4 kB / 4.782 GB, free: 54.22 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009212/11.58, allocations: 0.5162 MB / 4.783 GB, free: 53.71 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001901/11.58, allocations: 280 kB / 4.783 GB, free: 53.43 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/11.58, allocations: 4 kB / 4.783 GB, free: 53.43 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01706/11.6, allocations: 7.6 MB / 4.79 GB, free: 45.83 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002012/11.6, allocations: 60.19 kB / 4.79 GB, free: 45.77 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001196/11.6, allocations: 100 kB / 4.791 GB, free: 45.67 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006071/11.6, allocations: 1.439 MB / 4.792 GB, free: 44.23 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001454/11.6, allocations: 131.6 kB / 4.792 GB, free: 44.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008331/11.61, allocations: 494.5 kB / 4.793 GB, free: 43.62 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001645/11.61, allocations: 280 kB / 4.793 GB, free: 43.34 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * 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.002945/11.62, allocations: 354.3 kB / 4.793 GB, free: 42.98 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003104/11.62, allocations: 0.6407 MB / 4.794 GB, free: 42.33 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01568/11.64, allocations: 6.768 MB / 4.8 GB, free: 35.55 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-05/11.64, allocations: 42.16 kB / 4.8 GB, free: 35.51 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.622e-05/11.64, allocations: 0 / 4.8 GB, free: 35.51 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009414/11.65, allocations: 5.644 MB / 4.806 GB, free: 29.84 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03886/11.69, allocations: 15.4 MB / 4.821 GB, free: 14.43 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/11.69, allocations: 4.094 kB / 4.821 GB, free: 14.43 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004608/11.69, allocations: 0.9166 MB / 4.822 GB, free: 13.51 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.896e-05/11.69, allocations: 16 kB / 4.822 GB, free: 13.49 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001/11.69, allocations: 63.94 kB / 4.822 GB, free: 13.43 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.001e-05/11.69, allocations: 16 kB / 4.822 GB, free: 13.41 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.473e-06/11.69, allocations: 0 / 4.822 GB, free: 13.41 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/11.71, allocations: 10.33 MB / 4.832 GB, free: 3.008 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007557/11.72, allocations: 1.668 MB / 4.834 GB, free: 1.312 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003752/11.72, allocations: 27.98 kB / 4.834 GB, free: 1.285 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007888/11.73, allocations: 0.4909 MB / 4.834 GB, free: 0.793 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009378/11.73, allocations: 255 kB / 4.834 GB, free: 0.543 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001394/11.73, allocations: 203.8 kB / 4.835 GB, free: 352 kB / 1.167 GB Notification: Performance of sorting global known variables: time 0.01269/11.74, allocations: 4.518 MB / 4.839 GB, free: 11.84 MB / 1.182 GB Notification: Performance of sort global known variables: time 5.61e-07/11.74, allocations: 0 / 4.839 GB, free: 11.84 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02267/11.77, allocations: 4.776 MB / 4.844 GB, free: 7.047 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.003261/11.77, allocations: 0.8739 MB / 4.845 GB, free: 6.281 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.7752/12.54, allocations: 10.86 MB / 4.855 GB, free: 220.5 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-05/12.54, allocations: 5.125 kB / 4.855 GB, free: 220.5 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.006251/12.55, allocations: 3.031 MB / 4.858 GB, free: 220.3 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02163/12.57, allocations: 3.474 MB / 4.862 GB, free: 220.3 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03647/12.61, allocations: 16.25 MB / 4.877 GB, free: 217.5 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008389/12.62, allocations: 6.303 MB / 4.884 GB, free: 216.6 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02643/12.64, allocations: 5.983 MB / 4.889 GB, free: 216.5 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003123/12.65, allocations: 475.5 kB / 4.89 GB, free: 216.5 MB / 1.182 GB Notification: Performance of SimCode: time 1.172e-06/12.65, allocations: 0 / 4.89 GB, free: 216.5 MB / 1.182 GB Notification: Performance of Templates: time 0.2124/12.86, allocations: 130.1 MB / 5.017 GB, free: 209.4 MB / 1.182 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_Stratified.csv","../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches