Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.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.StratifiedEnhancedInternalHex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSte.vol.1..T|tanSte.vol.2..T|tanSte.vol.3..T|tanSte.vol.4..T|tanDyn.vol.1..T|tanDyn.vol.2..T|tanDyn.vol.3..T|tanDyn.vol.4..T|tanDynSol.vol.1..T|tanDynSol.vol.2..T|tanDynSol.vol.3..T|tanDynSol.vol.4..T|senTemSte.T|senTemDyn.T|senTemDynSol.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex") translateModel(Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSte.vol.1..T|tanSte.vol.2..T|tanSte.vol.3..T|tanSte.vol.4..T|tanDyn.vol.1..T|tanDyn.vol.2..T|tanDyn.vol.3..T|tanDyn.vol.4..T|tanDynSol.vol.1..T|tanDynSol.vol.2..T|tanDynSol.vol.3..T|tanDynSol.vol.4..T|senTemSte.T|senTemDyn.T|senTemDynSol.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.303/2.303, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001245/0.001245, allocations: 176.2 kB / 492.3 MB, free: 0.6172 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.67/1.67, allocations: 221.3 MB / 0.7871 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 87.56 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.161e-05/3.175e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3055, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.306/1.612, allocations: 432.5 MB / 1.635 GB, free: 14.33 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/1.612, allocations: 88.73 kB / 1.635 GB, free: 14.29 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 20.83/22.44, allocations: 4.699 GB / 6.334 GB, free: 90.62 MB / 1.276 GB Notification: Performance of FrontEnd: time 2.685e-06/22.44, allocations: 0 / 6.334 GB, free: 90.62 MB / 1.276 GB Notification: Performance of Transformations before backend: time 0.003977/22.44, allocations: 412.3 kB / 6.334 GB, free: 90.56 MB / 1.276 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3221 * Number of variables: 3221 Notification: Performance of Generate backend data structure: time 0.06525/22.51, allocations: 13.69 MB / 6.348 GB, free: 86.1 MB / 1.276 GB Notification: Performance of prepare preOptimizeDAE: time 6.552e-05/22.51, allocations: 10.39 kB / 6.348 GB, free: 86.1 MB / 1.276 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01836/22.53, allocations: 1.89 MB / 6.35 GB, free: 85.2 MB / 1.276 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06177/22.59, allocations: 18.15 MB / 6.367 GB, free: 83.5 MB / 1.276 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001709/22.59, allocations: 0.9773 MB / 6.368 GB, free: 83.48 MB / 1.276 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008077/22.6, allocations: 1.3 MB / 6.37 GB, free: 83.47 MB / 1.276 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07081/22.67, allocations: 18.06 MB / 6.387 GB, free: 81.28 MB / 1.276 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001325/22.67, allocations: 40.88 kB / 6.387 GB, free: 81.28 MB / 1.276 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007164/22.68, allocations: 0.5349 MB / 6.388 GB, free: 81.28 MB / 1.276 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005284/22.68, allocations: 356.6 kB / 6.388 GB, free: 81.28 MB / 1.276 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05212/22.73, allocations: 15.33 MB / 6.403 GB, free: 81.18 MB / 1.276 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.1785/22.91, allocations: 80.85 MB / 6.482 GB, free: 47.71 MB / 1.276 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02132/22.93, allocations: 11.87 MB / 6.494 GB, free: 47.23 MB / 1.276 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0104/22.94, allocations: 6.034 MB / 6.5 GB, free: 47.15 MB / 1.276 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07306/23.01, allocations: 28.77 MB / 6.528 GB, free: 56.53 MB / 1.292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001357/23.01, allocations: 123.1 kB / 6.528 GB, free: 56.48 MB / 1.292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00992/23.02, allocations: 0.7759 MB / 6.529 GB, free: 55.98 MB / 1.292 GB Notification: Performance of pre-optimization done (n=651): time 2.888e-05/23.02, allocations: 0 / 6.529 GB, free: 55.98 MB / 1.292 GB Notification: Performance of matching and sorting (n=651): time 0.02901/23.05, allocations: 10.16 MB / 6.538 GB, free: 55.02 MB / 1.292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/23.05, allocations: 118.7 kB / 6.539 GB, free: 54.95 MB / 1.292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0334/23.09, allocations: 12.04 MB / 6.55 GB, free: 54.12 MB / 1.292 GB Notification: Performance of collectPreVariables (initialization): time 0.002528/23.09, allocations: 184 kB / 6.55 GB, free: 54.09 MB / 1.292 GB Notification: Performance of collectInitialEqns (initialization): time 0.008733/23.1, allocations: 7.171 MB / 6.558 GB, free: 51.3 MB / 1.292 GB Notification: Performance of collectInitialBindings (initialization): time 0.004098/23.1, allocations: 2.298 MB / 6.56 GB, free: 49.86 MB / 1.292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00258/23.11, allocations: 226.4 kB / 6.56 GB, free: 49.86 MB / 1.292 GB Notification: Performance of setup shared object (initialization): time 0.00151/23.11, allocations: 0.771 MB / 6.561 GB, free: 49.54 MB / 1.292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01128/23.12, allocations: 5.574 MB / 6.566 GB, free: 49.51 MB / 1.292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01475/23.13, allocations: 9.457 MB / 6.575 GB, free: 44.93 MB / 1.292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01491/23.15, allocations: 7.51 MB / 6.583 GB, free: 44.81 MB / 1.292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002439/23.15, allocations: 34.62 kB / 6.583 GB, free: 44.81 MB / 1.292 GB Notification: Performance of matching and sorting (n=1467) (initialization): time 0.04275/23.19, allocations: 18.2 MB / 6.601 GB, free: 43.86 MB / 1.292 GB Notification: Performance of prepare postOptimizeDAE: time 0.03256/23.22, allocations: 69.06 MB / 6.668 GB, free: 36.47 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00052/23.22, allocations: 121.4 kB / 6.668 GB, free: 36.47 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09184/23.32, allocations: 11.87 MB / 6.68 GB, free: 35.83 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01082/23.33, allocations: 2.393 MB / 6.682 GB, free: 35.82 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02308/23.35, allocations: 20.17 MB / 6.702 GB, free: 23.71 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02029/23.37, allocations: 1.098 MB / 6.703 GB, free: 23.57 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004342/23.37, allocations: 0.5362 MB / 6.703 GB, free: 23.57 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/23.37, allocations: 3.938 kB / 6.703 GB, free: 23.57 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04051/23.42, allocations: 17.17 MB / 6.72 GB, free: 22.93 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005882/23.42, allocations: 119.3 kB / 6.72 GB, free: 22.93 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09162/23.51, allocations: 11.86 MB / 6.732 GB, free: 21.85 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0101/23.52, allocations: 2.38 MB / 6.734 GB, free: 21.61 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01918/23.54, allocations: 18.38 MB / 6.752 GB, free: 24.02 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01652/23.55, allocations: 1.045 MB / 6.753 GB, free: 23.72 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003419/23.56, allocations: 0.5421 MB / 6.754 GB, free: 23.63 MB / 1.37 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 549 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1233): * Single equations (assignments): 1215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 12 {2 16,2 16,2 16,2 16,2 16,2 16,2 17,2 17,2 17,2 17,2 17,2 17} Notification: Performance of prepare postOptimizeDAE: time 0.006001/23.56, allocations: 0.7816 MB / 6.754 GB, free: 22.97 MB / 1.37 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005258/23.57, allocations: 1.156 MB / 6.756 GB, free: 22.36 MB / 1.37 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02824/23.6, allocations: 11.33 MB / 6.767 GB, free: 17.96 MB / 1.37 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.867e-05/23.6, allocations: 63.09 kB / 6.767 GB, free: 17.96 MB / 1.37 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.301e-05/23.6, allocations: 7.047 kB / 6.767 GB, free: 17.96 MB / 1.37 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01831/23.62, allocations: 9.317 MB / 6.776 GB, free: 14.35 MB / 1.37 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07114/23.69, allocations: 25.59 MB / 6.801 GB, free: 4.219 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.878e-05/23.69, allocations: 11.06 kB / 6.801 GB, free: 4.219 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005904/23.69, allocations: 1.137 MB / 6.802 GB, free: 4.121 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04809/23.74, allocations: 6.424 MB / 6.808 GB, free: 3.125 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002189/23.74, allocations: 187.5 kB / 6.808 GB, free: 3.027 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.091/24.83, allocations: 17.77 MB / 6.826 GB, free: 160.7 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.092e-05/24.83, allocations: 20.41 kB / 6.826 GB, free: 160.7 MB / 1.37 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03832/24.87, allocations: 21.09 MB / 6.846 GB, free: 155 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01207/24.88, allocations: 2.792 MB / 6.849 GB, free: 154.6 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005849/24.89, allocations: 163.6 kB / 6.849 GB, free: 154.6 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01289/24.9, allocations: 0.752 MB / 6.85 GB, free: 154.6 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002145/24.91, allocations: 445.4 kB / 6.85 GB, free: 154.5 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001984/24.91, allocations: 290.6 kB / 6.851 GB, free: 154.5 MB / 1.37 GB Notification: Performance of sorting global known variables: time 0.02222/24.93, allocations: 9.181 MB / 6.86 GB, free: 154.2 MB / 1.37 GB Notification: Performance of sort global known variables: time 3.31e-07/24.93, allocations: 0 / 6.86 GB, free: 154.2 MB / 1.37 GB Notification: Performance of remove unused functions: time 0.039/24.97, allocations: 7.895 MB / 6.867 GB, free: 153.6 MB / 1.37 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 57 * Number of states: 30 (tanSte.vol[1].dynBal.U,tanSte.vol[2].dynBal.U,tanSte.vol[3].dynBal.U,tanSte.vol[4].dynBal.U,tanDyn.vol[1].dynBal.U,tanDyn.vol[2].dynBal.U,tanDyn.vol[3].dynBal.U,tanDyn.vol[4].dynBal.U,tanDyn.indTanHex.vol[1].dynBal.U,tanDyn.indTanHex.vol[2].dynBal.U,tanDyn.indTanHex.vol[3].dynBal.U,tanDyn.indTanHex.vol[4].dynBal.U,tanDyn.indTanHex.vol[5].dynBal.U,tanDyn.indTanHex.vol[6].dynBal.U,tanDyn.indTanHex.cap[1].T,tanDyn.indTanHex.cap[2].T,tanDyn.indTanHex.cap[3].T,tanDyn.indTanHex.cap[4].T,tanDyn.indTanHex.cap[5].T,tanDyn.indTanHex.cap[6].T,tanDynSol.vol[1].dynBal.U,tanDynSol.vol[2].dynBal.U,tanDynSol.vol[3].dynBal.U,tanDynSol.vol[4].dynBal.U,tanDynSol.indTanHex.cap[1].T,tanDynSol.indTanHex.cap[2].T,tanDynSol.indTanHex.cap[3].T,tanDynSol.indTanHex.cap[4].T,tanDynSol.indTanHex.cap[5].T,tanDynSol.indTanHex.cap[6].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (561): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 12 {2 16,2 16,2 16,2 16,2 16,2 16,1 5,1 5,1 5,1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007073/24.98, allocations: 2.149 MB / 6.869 GB, free: 153.2 MB / 1.37 GB Notification: Performance of simCode: created initialization part: time 0.05447/25.03, allocations: 22.03 MB / 6.891 GB, free: 152.2 MB / 1.37 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-05/25.03, allocations: 11.59 kB / 6.891 GB, free: 152.2 MB / 1.37 GB Notification: Performance of simCode: created simulation system equations: time 0.01422/25.04, allocations: 5.306 MB / 6.896 GB, free: 151.8 MB / 1.37 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03313/25.08, allocations: 6.118 MB / 6.902 GB, free: 151.7 MB / 1.37 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06307/25.14, allocations: 27.52 MB / 6.929 GB, free: 146.6 MB / 1.37 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01749/25.16, allocations: 10.2 MB / 6.939 GB, free: 145.5 MB / 1.37 GB Notification: Performance of simCode: alias equations: time 0.03685/25.2, allocations: 9.36 MB / 6.948 GB, free: 145.4 MB / 1.37 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004226/25.2, allocations: 0.6922 MB / 6.949 GB, free: 145.4 MB / 1.37 GB Notification: Performance of SimCode: time 1.032e-06/25.2, allocations: 1.641 kB / 6.949 GB, free: 145.4 MB / 1.37 GB Notification: Performance of Templates: time 0.4135/25.61, allocations: 290 MB / 7.232 GB, free: 63.4 MB / 1.37 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_StratifiedEnhancedInternalHex.csv","../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches