Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.477/1.477, allocations: 249.5 MB / 257 MB, free: 6.801 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 175.4 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.3 MB / 0.5671 GB, free: 15.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008934/0.0008933, allocations: 91.48 kB / 0.6714 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.001e-05/2.002e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2312, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.576/1.807, allocations: 404.1 MB / 1.28 GB, free: 326.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/1.807, allocations: 90.31 kB / 1.28 GB, free: 326.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 10.66/12.47, allocations: 2.83 GB / 4.11 GB, free: 137.8 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.653e-06/12.47, allocations: 0 / 4.11 GB, free: 137.8 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.001609/12.47, allocations: 257.2 kB / 4.111 GB, free: 137.8 MB / 0.9011 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.03428/12.5, allocations: 8.286 MB / 4.119 GB, free: 134.8 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/12.5, allocations: 11.06 kB / 4.119 GB, free: 134.8 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009229/12.51, allocations: 1.157 MB / 4.12 GB, free: 134.2 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02838/12.54, allocations: 10.71 MB / 4.13 GB, free: 133.1 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005684/12.54, allocations: 274.2 kB / 4.13 GB, free: 133.1 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003854/12.54, allocations: 489.9 kB / 4.131 GB, free: 133.1 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02377/12.57, allocations: 8.918 MB / 4.14 GB, free: 133.1 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03135/12.6, allocations: 10.24 MB / 4.15 GB, free: 132 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004216/12.6, allocations: 25.75 kB / 4.15 GB, free: 132 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002754/12.6, allocations: 22.91 kB / 4.15 GB, free: 132 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002425/12.6, allocations: 247.8 kB / 4.15 GB, free: 132 MB / 0.9011 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.08069/12.68, allocations: 44.48 MB / 4.193 GB, free: 106.2 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008415/12.69, allocations: 6.05 MB / 4.199 GB, free: 103.9 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005836/12.7, allocations: 4.666 MB / 4.204 GB, free: 102.3 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001068/12.7, allocations: 0.8214 MB / 4.205 GB, free: 101.5 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004804/12.7, allocations: 3.131 MB / 4.208 GB, free: 100.4 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004734/12.71, allocations: 400.2 kB / 4.208 GB, free: 100.1 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 8.917e-06/12.71, allocations: 2.156 kB / 4.208 GB, free: 100.1 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.01151/12.72, allocations: 6.165 MB / 4.214 GB, free: 98 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/12.72, allocations: 153.5 kB / 4.214 GB, free: 97.87 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01075/12.73, allocations: 5.818 MB / 4.22 GB, free: 94.91 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001445/12.73, allocations: 29.7 kB / 4.22 GB, free: 94.88 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.004275/12.74, allocations: 4.269 MB / 4.224 GB, free: 91.02 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.002446/12.74, allocations: 1.523 MB / 4.226 GB, free: 89.61 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004331/12.74, allocations: 0 / 4.226 GB, free: 89.61 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0003562/12.74, allocations: 0.5447 MB / 4.226 GB, free: 89.13 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003413/12.74, allocations: 2.796 MB / 4.229 GB, free: 86.71 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004534/12.75, allocations: 4.607 MB / 4.233 GB, free: 81.73 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007488/12.76, allocations: 4.098 MB / 4.237 GB, free: 78.41 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/12.76, allocations: 16 kB / 4.237 GB, free: 78.39 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01739/12.77, allocations: 8.282 MB / 4.245 GB, free: 71.28 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.005335/12.78, allocations: 27.52 MB / 4.272 GB, free: 41.76 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/12.78, allocations: 67.52 kB / 4.272 GB, free: 41.7 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/12.78, allocations: 96 kB / 4.272 GB, free: 41.61 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006665/12.79, allocations: 1.448 MB / 4.274 GB, free: 40.37 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001228/12.79, allocations: 125.1 kB / 4.274 GB, free: 40.26 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009042/12.8, allocations: 0.5025 MB / 4.275 GB, free: 39.89 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001758/12.8, allocations: 278.6 kB / 4.275 GB, free: 39.63 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/12.8, allocations: 4 kB / 4.275 GB, free: 39.62 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01704/12.81, allocations: 7.655 MB / 4.282 GB, free: 32.72 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002154/12.81, allocations: 59.69 kB / 4.282 GB, free: 32.66 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001184/12.81, allocations: 96 kB / 4.282 GB, free: 32.57 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006349/12.82, allocations: 1.451 MB / 4.284 GB, free: 31.12 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000152/12.82, allocations: 123.6 kB / 4.284 GB, free: 31 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009271/12.83, allocations: 490.5 kB / 4.284 GB, free: 30.52 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001847/12.83, allocations: 283.9 kB / 4.285 GB, free: 30.24 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 (748): * Single equations (assignments): 746 * 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.003602/12.84, allocations: 358.7 kB / 4.285 GB, free: 29.87 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004204/12.84, allocations: 0.629 MB / 4.286 GB, free: 29.23 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01729/12.86, allocations: 6.822 MB / 4.292 GB, free: 22.41 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.821e-05/12.86, allocations: 44 kB / 4.292 GB, free: 22.36 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.939e-05/12.86, allocations: 4 kB / 4.292 GB, free: 22.36 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009385/12.87, allocations: 5.7 MB / 4.298 GB, free: 16.63 MB / 0.9011 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.03898/12.91, allocations: 15.39 MB / 4.313 GB, free: 1.25 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/12.91, allocations: 4 kB / 4.313 GB, free: 1.246 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004192/12.91, allocations: 0.9168 MB / 4.314 GB, free: 336 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.291e-05/12.91, allocations: 19.94 kB / 4.314 GB, free: 316 kB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005914/12.91, allocations: 63.94 kB / 4.314 GB, free: 252 kB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.889e-05/12.91, allocations: 23.56 kB / 4.314 GB, free: 232 kB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/12.91, allocations: 0 / 4.314 GB, free: 232 kB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/12.93, allocations: 10.4 MB / 4.324 GB, free: 5.754 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006195/12.94, allocations: 1.625 MB / 4.326 GB, free: 4.102 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002671/12.94, allocations: 27.98 kB / 4.326 GB, free: 4.074 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007467/12.95, allocations: 0.4909 MB / 4.326 GB, free: 3.582 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006813/12.95, allocations: 255 kB / 4.326 GB, free: 3.332 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007853/12.95, allocations: 187.9 kB / 4.327 GB, free: 3.148 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.718/13.66, allocations: 4.436 MB / 4.331 GB, free: 142.2 MB / 0.9167 GB Notification: Performance of sort global known variables: time 9.32e-07/13.66, allocations: 0 / 4.331 GB, free: 142.2 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.02956/13.69, allocations: 4.758 MB / 4.336 GB, free: 142.2 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (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,HOut_flow.h_out,HOut_flow1.h_out,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 (451): * Single equations (assignments): 447 * 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.004559/13.7, allocations: 0.853 MB / 4.336 GB, free: 142.1 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.02549/13.72, allocations: 10.91 MB / 4.347 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/13.72, allocations: 6.031 kB / 4.347 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.006555/13.73, allocations: 3.047 MB / 4.35 GB, free: 141.6 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02576/13.76, allocations: 3.483 MB / 4.353 GB, free: 141.6 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05278/13.81, allocations: 16.26 MB / 4.369 GB, free: 138.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007846/13.82, allocations: 6.274 MB / 4.375 GB, free: 137.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.02126/13.84, allocations: 5.791 MB / 4.381 GB, free: 137.8 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002806/13.84, allocations: 469.7 kB / 4.382 GB, free: 137.8 MB / 0.9167 GB Notification: Performance of SimCode: time 2.014e-06/13.84, allocations: 0 / 4.382 GB, free: 137.8 MB / 0.9167 GB Notification: Performance of Templates: time 0.2293/14.07, allocations: 128.9 MB / 4.507 GB, free: 124.7 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Storage_Examples_Stratified.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches