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.413/1.413, allocations: 249.3 MB / 261.8 MB, free: 5.848 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.0009929/0.0009931, allocations: 186 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.767/1.767, allocations: 205.2 MB / 0.572 GB, free: 10.7 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.0008749/0.0008749, allocations: 90.45 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.481e-05/3.482e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.251, allocations: 106.3 MB / 0.8918 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.76/2.011, allocations: 403.8 MB / 1.286 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/2.012, allocations: 87.09 kB / 1.286 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 11.81/13.82, allocations: 2.845 GB / 4.131 GB, free: 127.6 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.893e-06/13.82, allocations: 0 / 4.131 GB, free: 127.6 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.002186/13.82, allocations: 255.3 kB / 4.132 GB, free: 127.6 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.03863/13.86, allocations: 8.284 MB / 4.14 GB, free: 124.5 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/13.86, allocations: 10.12 kB / 4.14 GB, free: 124.5 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009641/13.87, allocations: 1.16 MB / 4.141 GB, free: 124 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03411/13.9, allocations: 10.72 MB / 4.151 GB, free: 122.6 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001014/13.9, allocations: 0.6147 MB / 4.152 GB, free: 122.6 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006478/13.91, allocations: 0.8195 MB / 4.153 GB, free: 122.6 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04913/13.96, allocations: 11.43 MB / 4.164 GB, free: 118.4 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000677/13.96, allocations: 31.67 kB / 4.164 GB, free: 118.4 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004209/13.97, allocations: 356.1 kB / 4.164 GB, free: 118.1 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002835/13.97, allocations: 249.2 kB / 4.164 GB, free: 118.1 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02674/13.99, allocations: 9.454 MB / 4.174 GB, free: 114.6 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.09446/14.09, allocations: 46.09 MB / 4.219 GB, free: 75.98 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/14.1, allocations: 6.311 MB / 4.225 GB, free: 69.7 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008971/14.11, allocations: 5.416 MB / 4.23 GB, free: 64.28 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001436/14.11, allocations: 0.8233 MB / 4.231 GB, free: 63.32 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007379/14.12, allocations: 3.277 MB / 4.234 GB, free: 60.02 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006708/14.12, allocations: 0.5525 MB / 4.235 GB, free: 59.46 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 2.272e-05/14.12, allocations: 4 kB / 4.235 GB, free: 59.45 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.01634/14.14, allocations: 6.23 MB / 4.241 GB, free: 53.19 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/14.14, allocations: 160.5 kB / 4.241 GB, free: 53.01 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02056/14.16, allocations: 7.006 MB / 4.248 GB, free: 46.03 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001758/14.16, allocations: 113.7 kB / 4.248 GB, free: 45.91 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.007437/14.17, allocations: 4.27 MB / 4.252 GB, free: 41.62 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.003459/14.17, allocations: 1.58 MB / 4.254 GB, free: 40.06 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001485/14.17, allocations: 120 kB / 4.254 GB, free: 39.94 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0007174/14.18, allocations: 0.546 MB / 4.254 GB, free: 39.39 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006193/14.18, allocations: 2.908 MB / 4.257 GB, free: 36.47 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008811/14.19, allocations: 4.764 MB / 4.262 GB, free: 30.88 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007651/14.2, allocations: 3.968 MB / 4.266 GB, free: 26.89 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-05/14.2, allocations: 16 kB / 4.266 GB, free: 26.88 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02122/14.22, allocations: 8.688 MB / 4.274 GB, free: 18.16 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.00875/14.23, allocations: 28.64 MB / 4.302 GB, free: 3.578 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001929/14.23, allocations: 60 kB / 4.302 GB, free: 3.52 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/14.23, allocations: 100 kB / 4.302 GB, free: 3.422 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007704/14.24, allocations: 1.443 MB / 4.304 GB, free: 1.977 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002318/14.24, allocations: 131.5 kB / 4.304 GB, free: 1.848 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/14.25, allocations: 0.6232 MB / 4.304 GB, free: 1.227 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002239/14.25, allocations: 280 kB / 4.305 GB, free: 0.9531 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/14.25, allocations: 5.25 kB / 4.305 GB, free: 0.9492 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.8246/15.08, allocations: 8.105 MB / 4.313 GB, free: 142.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002298/15.08, allocations: 56.59 kB / 4.313 GB, free: 142.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/15.08, allocations: 98.12 kB / 4.313 GB, free: 142.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007175/15.08, allocations: 1.448 MB / 4.314 GB, free: 142.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002586/15.08, allocations: 126.2 kB / 4.314 GB, free: 142.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01003/15.09, allocations: 0.6041 MB / 4.315 GB, free: 142.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002003/15.1, allocations: 279.2 kB / 4.315 GB, free: 142.1 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 () * 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.002025/15.1, allocations: 0.5332 MB / 4.316 GB, free: 142 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003065/15.1, allocations: 0.709 MB / 4.316 GB, free: 142 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/15.12, allocations: 7.006 MB / 4.323 GB, free: 141.7 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001006/15.12, allocations: 43.16 kB / 4.323 GB, free: 141.7 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/15.12, allocations: 1.125 kB / 4.323 GB, free: 141.7 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01498/15.13, allocations: 5.697 MB / 4.329 GB, free: 141.5 MB / 0.9167 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.04634/15.18, allocations: 16.45 MB / 4.345 GB, free: 140.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/15.18, allocations: 1.594 kB / 4.345 GB, free: 140.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004112/15.18, allocations: 0.9176 MB / 4.346 GB, free: 140.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.543e-05/15.18, allocations: 18.34 kB / 4.346 GB, free: 140.5 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004668/15.18, allocations: 123.2 kB / 4.346 GB, free: 140.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.107e-05/15.18, allocations: 17.47 kB / 4.346 GB, free: 140.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/15.18, allocations: 1.219 kB / 4.346 GB, free: 140.5 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.016/15.2, allocations: 10.6 MB / 4.356 GB, free: 139.8 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008141/15.21, allocations: 1.719 MB / 4.358 GB, free: 139.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004161/15.21, allocations: 98.66 kB / 4.358 GB, free: 139.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008874/15.22, allocations: 0.5595 MB / 4.359 GB, free: 139.3 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/15.22, allocations: 263.3 kB / 4.359 GB, free: 139.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006708/15.22, allocations: 187.3 kB / 4.359 GB, free: 139.3 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.01316/15.24, allocations: 5.466 MB / 4.364 GB, free: 139.1 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5.51e-07/15.24, allocations: 1.812 kB / 4.364 GB, free: 139.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.02563/15.26, allocations: 4.913 MB / 4.369 GB, free: 138.7 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.003948/15.27, allocations: 0.9217 MB / 4.37 GB, free: 138.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0228/15.29, allocations: 11.47 MB / 4.381 GB, free: 138.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/15.29, allocations: 2.969 kB / 4.381 GB, free: 138.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.006105/15.3, allocations: 3.145 MB / 4.384 GB, free: 138.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02577/15.32, allocations: 4.376 MB / 4.389 GB, free: 138 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04967/15.37, allocations: 16.74 MB / 4.405 GB, free: 135.2 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01398/15.38, allocations: 6.277 MB / 4.411 GB, free: 134.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.02684/15.41, allocations: 6.561 MB / 4.417 GB, free: 134.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004052/15.42, allocations: 499 kB / 4.418 GB, free: 134.2 MB / 0.9167 GB Notification: Performance of SimCode: time 1.934e-06/15.42, allocations: 0 / 4.418 GB, free: 134.2 MB / 0.9167 GB Notification: Performance of Templates: time 0.2681/15.68, allocations: 163.2 MB / 4.577 GB, free: 48.86 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