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.395/1.395, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001265/0.001265, allocations: 188.3 kB / 326.5 MB, free: 2.215 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.888/1.888, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.0009012/0.0009012, allocations: 94.11 kB / 0.6821 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.0003241, allocations: 9.031 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2691, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.038/1.308, allocations: 403.9 MB / 1.295 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/1.308, allocations: 95.67 kB / 1.295 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 10.7/12, allocations: 2.852 GB / 4.147 GB, free: 111.3 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.677e-06/12, allocations: 0.9375 kB / 4.147 GB, free: 111.3 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.00272/12.01, allocations: 253.9 kB / 4.147 GB, free: 111.3 MB / 0.9167 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.04797/12.06, allocations: 9.817 MB / 4.157 GB, free: 108.1 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.275e-05/12.06, allocations: 9.219 kB / 4.157 GB, free: 108.1 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01152/12.07, allocations: 1.169 MB / 4.158 GB, free: 107.5 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0347/12.1, allocations: 10.76 MB / 4.168 GB, free: 106.4 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009641/12.1, allocations: 0.6112 MB / 4.169 GB, free: 106.4 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004803/12.11, allocations: 0.8222 MB / 4.17 GB, free: 106.4 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04051/12.15, allocations: 11.58 MB / 4.181 GB, free: 105.2 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007314/12.15, allocations: 24.66 kB / 4.181 GB, free: 105.2 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004278/12.15, allocations: 349.2 kB / 4.181 GB, free: 105.2 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003671/12.15, allocations: 253.9 kB / 4.182 GB, free: 105.2 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02619/12.18, allocations: 9.652 MB / 4.191 GB, free: 105.1 MB / 0.9167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.09127/12.27, allocations: 46.1 MB / 4.236 GB, free: 86.16 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01113/12.28, allocations: 6.371 MB / 4.242 GB, free: 85.88 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001482/12.28, allocations: 0.8246 MB / 4.243 GB, free: 85.12 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007727/12.29, allocations: 3.35 MB / 4.246 GB, free: 84.95 MB / 0.9167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007195/12.3, allocations: 0.5602 MB / 4.247 GB, free: 84.65 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=455): time 3.32e-05/12.3, allocations: 0 / 4.247 GB, free: 84.65 MB / 0.9167 GB Notification: Performance of matching and sorting (n=455): time 0.02061/12.32, allocations: 9.064 MB / 4.256 GB, free: 83.89 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/12.32, allocations: 159.5 kB / 4.256 GB, free: 83.76 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0181/12.34, allocations: 7.092 MB / 4.263 GB, free: 83.33 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.001575/12.34, allocations: 107.7 kB / 4.263 GB, free: 83.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.006415/12.35, allocations: 4.265 MB / 4.267 GB, free: 81.69 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.003581/12.35, allocations: 1.58 MB / 4.269 GB, free: 80.7 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/12.35, allocations: 122.6 kB / 4.269 GB, free: 80.7 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0007778/12.35, allocations: 0.5422 MB / 4.269 GB, free: 80.38 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006117/12.36, allocations: 2.996 MB / 4.272 GB, free: 80.37 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007518/12.37, allocations: 4.86 MB / 4.277 GB, free: 78.2 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007273/12.37, allocations: 4.033 MB / 4.281 GB, free: 78.09 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.853e-05/12.37, allocations: 18.56 kB / 4.281 GB, free: 78.09 MB / 0.9167 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02084/12.39, allocations: 8.864 MB / 4.29 GB, free: 77.55 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.008806/12.4, allocations: 28.64 MB / 4.317 GB, free: 47.83 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/12.4, allocations: 60.42 kB / 4.318 GB, free: 47.82 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001824/12.4, allocations: 99.66 kB / 4.318 GB, free: 47.82 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007134/12.41, allocations: 1.437 MB / 4.319 GB, free: 47.82 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001872/12.41, allocations: 130.6 kB / 4.319 GB, free: 47.82 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0113/12.42, allocations: 0.636 MB / 4.32 GB, free: 47.76 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002286/12.42, allocations: 281.2 kB / 4.32 GB, free: 47.76 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/12.42, allocations: 3.344 kB / 4.32 GB, free: 47.76 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02144/12.45, allocations: 8.288 MB / 4.328 GB, free: 47.61 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002821/12.45, allocations: 56.75 kB / 4.328 GB, free: 47.61 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/12.45, allocations: 98.97 kB / 4.328 GB, free: 47.61 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006835/12.45, allocations: 1.441 MB / 4.33 GB, free: 47.61 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001844/12.45, allocations: 125.7 kB / 4.33 GB, free: 47.61 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009704/12.46, allocations: 0.609 MB / 4.33 GB, free: 47.56 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001725/12.46, allocations: 281.8 kB / 4.331 GB, free: 47.56 MB / 0.9167 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 () * Number of clocked 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.01034/12.48, allocations: 3.553 MB / 4.334 GB, free: 47.27 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003764/12.48, allocations: 0.7084 MB / 4.335 GB, free: 46.91 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01704/12.5, allocations: 7.155 MB / 4.342 GB, free: 46.61 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.84e-05/12.5, allocations: 40.94 kB / 4.342 GB, free: 46.61 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/12.5, allocations: 1.469 kB / 4.342 GB, free: 46.61 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01043/12.51, allocations: 5.866 MB / 4.348 GB, free: 46.38 MB / 0.9167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.04699/12.55, allocations: 16.38 MB / 4.364 GB, free: 45.39 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/12.55, allocations: 0 / 4.364 GB, free: 45.39 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005164/12.56, allocations: 0.9136 MB / 4.365 GB, free: 45.39 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.595e-05/12.56, allocations: 21.78 kB / 4.365 GB, free: 45.39 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001174/12.56, allocations: 123.5 kB / 4.365 GB, free: 45.39 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.62e-05/12.56, allocations: 17.72 kB / 4.365 GB, free: 45.39 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/12.56, allocations: 3.828 kB / 4.365 GB, free: 45.39 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.019/12.58, allocations: 10.83 MB / 4.375 GB, free: 41.69 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007877/12.59, allocations: 1.722 MB / 4.377 GB, free: 40.79 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003767/12.59, allocations: 102.2 kB / 4.377 GB, free: 40.72 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009001/12.6, allocations: 0.5691 MB / 4.378 GB, free: 40.63 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/12.6, allocations: 254.2 kB / 4.378 GB, free: 40.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001137/12.6, allocations: 189.9 kB / 4.378 GB, free: 40.56 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.01403/12.62, allocations: 5.537 MB / 4.383 GB, free: 38.69 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5.61e-07/12.62, allocations: 0 / 4.383 GB, free: 38.69 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0296/12.65, allocations: 4.918 MB / 4.388 GB, free: 37.67 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) * Number of clocked states: 0 () * 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.003811/12.65, allocations: 0.9149 MB / 4.389 GB, free: 37.41 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.02218/12.67, allocations: 11.51 MB / 4.4 GB, free: 33.64 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/12.67, allocations: 0 / 4.4 GB, free: 33.64 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.006024/12.68, allocations: 3.225 MB / 4.404 GB, free: 32.42 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02532/12.7, allocations: 4.38 MB / 4.408 GB, free: 31.74 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04949/12.75, allocations: 22.63 MB / 4.43 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/12.77, allocations: 6.263 MB / 4.436 GB, free: 8.965 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.01877/12.78, allocations: 4.314 MB / 4.44 GB, free: 6.117 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004593/12.79, allocations: 0.6156 MB / 4.441 GB, free: 5.555 MB / 0.9167 GB Notification: Performance of SimCode: time 1.563e-06/12.79, allocations: 0 / 4.441 GB, free: 5.555 MB / 0.9167 GB Notification: Performance of Templates: time 0.8623/13.65, allocations: 157.7 MB / 4.595 GB, free: 101.2 MB / 0.9323 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