Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.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.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan.vol.1..T|tan.vol.3..T|tan.vol.5..T|senTem.T|yBot.u|yMid.u|yTop.u|yHea.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan.vol.1..T|tan.vol.3..T|tan.vol.5..T|senTem.T|yBot.u|yMid.u|yTop.u|yHea.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.444/1.444, allocations: 249.5 MB / 257 MB, free: 6.922 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.001047/0.001047, allocations: 180.8 kB / 316.3 MB, free: 3.219 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.524/1.524, allocations: 205.3 MB / 0.5671 GB, free: 15.87 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.0008524/0.0008523, allocations: 85.92 kB / 0.6714 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.447e-05/1.449e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2279, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.598/1.826, allocations: 420 MB / 1.295 GB, free: 321.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/1.826, allocations: 93.19 kB / 1.295 GB, free: 321.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.966/4.792, allocations: 0.9409 GB / 2.236 GB, free: 33.79 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.635e-06/4.792, allocations: 4 kB / 2.236 GB, free: 33.79 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0003199/4.792, allocations: 71.91 kB / 2.236 GB, free: 33.72 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.007083/4.799, allocations: 2.69 MB / 2.239 GB, free: 31 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/4.799, allocations: 8.031 kB / 2.239 GB, free: 30.99 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001707/4.801, allocations: 360 kB / 2.239 GB, free: 30.63 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006324/4.807, allocations: 3.003 MB / 2.242 GB, free: 27.62 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.673e-05/4.807, allocations: 79.95 kB / 2.242 GB, free: 27.54 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003912/4.808, allocations: 136 kB / 2.242 GB, free: 27.41 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003749/4.812, allocations: 2.203 MB / 2.245 GB, free: 25.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003849/4.815, allocations: 2.632 MB / 2.247 GB, free: 22.43 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.314e-05/4.816, allocations: 7.844 kB / 2.247 GB, free: 22.43 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002016/4.816, allocations: 4 kB / 2.247 GB, free: 22.42 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.132e-05/4.816, allocations: 67.98 kB / 2.247 GB, free: 22.36 MB / 0.8698 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.01599/4.832, allocations: 12.54 MB / 2.26 GB, free: 9.051 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00198/4.834, allocations: 1.566 MB / 2.261 GB, free: 7.457 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/4.835, allocations: 1.102 MB / 2.262 GB, free: 6.355 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006508/4.836, allocations: 0.7081 MB / 2.263 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/4.836, allocations: 51.88 kB / 2.263 GB, free: 5.449 MB / 0.8698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001855/4.838, allocations: 195 kB / 2.263 GB, free: 5.258 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=126): time 6.452e-06/4.838, allocations: 0 / 2.263 GB, free: 5.258 MB / 0.8698 GB Notification: Performance of matching and sorting (n=126): time 0.002967/4.841, allocations: 1.633 MB / 2.265 GB, free: 3.605 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.458e-05/4.841, allocations: 141.8 kB / 2.265 GB, free: 3.434 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003965/4.845, allocations: 1.724 MB / 2.266 GB, free: 1.672 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003066/4.845, allocations: 45.62 kB / 2.267 GB, free: 1.621 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001883/4.847, allocations: 1.244 MB / 2.268 GB, free: 372 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.6589/5.506, allocations: 422.4 kB / 2.268 GB, free: 168 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/5.506, allocations: 0 / 2.268 GB, free: 168 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002326/5.506, allocations: 372.4 kB / 2.268 GB, free: 167.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/5.508, allocations: 0.6564 MB / 2.269 GB, free: 167.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/5.509, allocations: 1.168 MB / 2.27 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/5.511, allocations: 0.9143 MB / 2.271 GB, free: 167 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-05/5.511, allocations: 6.75 kB / 2.271 GB, free: 167 MB / 0.8698 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004943/5.516, allocations: 2.167 MB / 2.273 GB, free: 167 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001208/5.518, allocations: 5.691 MB / 2.279 GB, free: 161 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.493e-05/5.518, allocations: 13.84 kB / 2.279 GB, free: 161 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001616/5.519, allocations: 400.8 kB / 2.279 GB, free: 161 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/5.521, allocations: 358.2 kB / 2.28 GB, free: 161 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/5.525, allocations: 2.992 MB / 2.283 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002782/5.527, allocations: 196.5 kB / 2.283 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003223/5.528, allocations: 82.88 kB / 2.283 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/5.528, allocations: 7.234 kB / 2.283 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004483/5.532, allocations: 1.908 MB / 2.285 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.129e-05/5.532, allocations: 14.5 kB / 2.285 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005438/5.533, allocations: 211.6 kB / 2.285 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/5.534, allocations: 380.5 kB / 2.285 GB, free: 159.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003511/5.538, allocations: 3.753 MB / 2.289 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/5.541, allocations: 187.6 kB / 2.289 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002799/5.541, allocations: 85.59 kB / 2.289 GB, free: 156.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,nor.y,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007161/5.542, allocations: 157.1 kB / 2.289 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007877/5.542, allocations: 199.6 kB / 2.289 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004547/5.547, allocations: 1.856 MB / 2.291 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.579e-05/5.547, allocations: 16.83 kB / 2.291 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.857e-05/5.547, allocations: 2.609 kB / 2.291 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002785/5.55, allocations: 1.493 MB / 2.293 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/5.561, allocations: 4.115 MB / 2.297 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/5.561, allocations: 2.188 kB / 2.297 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/5.562, allocations: 218 kB / 2.297 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001495/5.564, allocations: 378.4 kB / 2.297 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001778/5.564, allocations: 20.02 kB / 2.297 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003544/5.567, allocations: 2.931 MB / 2.3 GB, free: 153.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/5.567, allocations: 1.781 kB / 2.3 GB, free: 153.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006994/5.574, allocations: 2.85 MB / 2.303 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/5.577, allocations: 0.5054 MB / 2.304 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008645/5.578, allocations: 10.67 kB / 2.304 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00233/5.58, allocations: 164.3 kB / 2.304 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/5.581, allocations: 104.1 kB / 2.304 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/5.581, allocations: 50.95 kB / 2.304 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.003292/5.584, allocations: 1.308 MB / 2.305 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.91e-07/5.584, allocations: 1.031 kB / 2.305 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.008276/5.592, allocations: 1.457 MB / 2.307 GB, free: 153 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffMid.y,onOffBot.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001691/5.594, allocations: 0.5564 MB / 2.307 GB, free: 152.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.006783/5.601, allocations: 3.1 MB / 2.31 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/5.601, allocations: 4.25 kB / 2.31 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001608/5.603, allocations: 0.9161 MB / 2.311 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007386/5.61, allocations: 1.083 MB / 2.312 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/5.621, allocations: 4.206 MB / 2.316 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00323/5.624, allocations: 2.199 MB / 2.318 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00597/5.63, allocations: 1.365 MB / 2.32 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006214/5.631, allocations: 139.5 kB / 2.32 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of SimCode: time 1.573e-06/5.631, allocations: 2.531 kB / 2.32 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of Templates: time 0.07982/5.71, allocations: 44.97 MB / 2.364 GB, free: 149.1 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches