Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_9_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_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009714/0.0009712, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.3 MB / 0.6653 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004195/0.0004195, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8306/0.831, allocations: 142.3 MB / 0.9535 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature): time 0.03211/0.8632, allocations: 31.65 MB / 0.9844 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01479/0.878, allocations: 8.283 MB / 0.9925 GB, free: 8.125 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002793/0.8809, allocations: 39.75 kB / 0.9925 GB, free: 8.086 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002199/0.8831, allocations: 0.5246 MB / 0.9931 GB, free: 7.559 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006038/0.8891, allocations: 1.593 MB / 0.9946 GB, free: 5.961 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003829/0.893, allocations: 1.318 MB / 0.9959 GB, free: 4.66 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006132/0.8991, allocations: 4.472 MB / 1 GB, free: 188 kB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00363/0.9028, allocations: 2.755 MB / 1.003 GB, free: 13.38 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00373/0.9065, allocations: 1.837 MB / 1.005 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002788/0.9093, allocations: 1.556 MB / 1.006 GB, free: 9.973 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0003754/0.9097, allocations: 136 kB / 1.006 GB, free: 9.84 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002188/0.9119, allocations: 0.6711 MB / 1.007 GB, free: 9.168 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0005391/0.9125, allocations: 0.5682 MB / 1.008 GB, free: 8.598 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0007536/0.9132, allocations: 0.6447 MB / 1.008 GB, free: 7.945 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.003407/0.9166, allocations: 3.945 MB / 1.012 GB, free: 3.992 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.155e-06/0.9167, allocations: 0 / 1.012 GB, free: 3.992 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.973e-06/0.9167, allocations: 0 / 1.012 GB, free: 3.992 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.617e-05/0.9167, allocations: 3.938 kB / 1.012 GB, free: 3.988 MB / 0.7637 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.005094/0.9218, allocations: 3.008 MB / 1.015 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.9219, allocations: 12.03 kB / 1.015 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008505/0.9228, allocations: 356 kB / 1.015 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004137/0.9269, allocations: 2.4 MB / 1.018 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.927, allocations: 180.5 kB / 1.018 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003201/0.9274, allocations: 243.9 kB / 1.018 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004829/0.9322, allocations: 3.2 MB / 1.021 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.602e-05/0.9323, allocations: 7.938 kB / 1.021 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002141/0.9325, allocations: 96 kB / 1.021 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-05/0.9326, allocations: 67.98 kB / 1.021 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00394/0.9365, allocations: 2.566 MB / 1.024 GB, free: 7.594 MB / 0.7794 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.01719/0.9537, allocations: 13.85 MB / 1.037 GB, free: 8.676 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/0.9562, allocations: 1.618 MB / 1.039 GB, free: 7.055 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007928/0.957, allocations: 0.7244 MB / 1.04 GB, free: 6.184 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.9571, allocations: 51.56 kB / 1.04 GB, free: 6.125 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001387/0.9585, allocations: 196.8 kB / 1.04 GB, free: 5.934 MB / 0.795 GB Notification: Performance of pre-optimization done (n=126): time 3.717e-06/0.9585, allocations: 0 / 1.04 GB, free: 5.934 MB / 0.795 GB Notification: Performance of matching and sorting (n=126): time 0.008899/0.9674, allocations: 3.482 MB / 1.043 GB, free: 2.398 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.9675, allocations: 149.5 kB / 1.044 GB, free: 2.223 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004054/0.9716, allocations: 2.128 MB / 1.046 GB, free: 56 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002141/0.9718, allocations: 57.75 kB / 1.046 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.9731, allocations: 1.254 MB / 1.047 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/0.9735, allocations: 449.7 kB / 1.047 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.9736, allocations: 32 kB / 1.047 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.9738, allocations: 377.8 kB / 1.048 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.975, allocations: 0.7339 MB / 1.048 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.9765, allocations: 1.233 MB / 1.05 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.9779, allocations: 0.9588 MB / 1.051 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/0.978, allocations: 4 kB / 1.051 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003908/0.9819, allocations: 2.428 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.002101/0.984, allocations: 5.7 MB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.911e-05/0.984, allocations: 16 kB / 1.059 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002185/0.9862, allocations: 0.5188 MB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.9875, allocations: 347.4 kB / 1.059 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003258/0.9908, allocations: 3.172 MB / 1.062 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/0.9931, allocations: 242.6 kB / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001974/0.9933, allocations: 79.97 kB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/0.9933, allocations: 4 kB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00356/0.9968, allocations: 2.192 MB / 1.065 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.321e-05/0.9969, allocations: 12 kB / 1.065 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005765/0.9975, allocations: 245.6 kB / 1.065 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.9988, allocations: 367.4 kB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003969/1.003, allocations: 4.224 MB / 1.07 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/1.005, allocations: 219.6 kB / 1.07 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002111/1.005, allocations: 79.97 kB / 1.07 GB, free: 6.004 MB / 0.8262 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,yTop.u,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 177 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.002008/1.007, allocations: 1.016 MB / 1.071 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006353/1.008, allocations: 205.5 kB / 1.071 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003778/1.012, allocations: 2.087 MB / 1.073 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.192e-05/1.012, allocations: 12 kB / 1.073 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/1.012, allocations: 0 / 1.073 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00244/1.014, allocations: 1.679 MB / 1.075 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009197/1.023, allocations: 4.704 MB / 1.079 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/1.023, allocations: 0 / 1.079 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008645/1.024, allocations: 207.8 kB / 1.08 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/1.026, allocations: 449.4 kB / 1.08 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/1.026, allocations: 31.98 kB / 1.08 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/1.029, allocations: 3.088 MB / 1.083 GB, free: 8.246 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.029, allocations: 0 / 1.083 GB, free: 8.246 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004686/1.034, allocations: 3.075 MB / 1.086 GB, free: 5.109 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002115/1.036, allocations: 0.5413 MB / 1.087 GB, free: 4.547 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009724/1.037, allocations: 32 kB / 1.087 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002457/1.039, allocations: 205.2 kB / 1.087 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/1.04, allocations: 101.2 kB / 1.087 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001869/1.04, allocations: 59.95 kB / 1.087 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002785/1.043, allocations: 1.475 MB / 1.088 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/1.043, allocations: 0 / 1.088 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.005667/1.048, allocations: 1.492 MB / 1.09 GB, free: 1.168 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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,yTop.u,onOffHea.y) * Number of discrete states: 3 (onOffBot.y,onOffMid.y,onOffHea.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.001136/1.05, allocations: 389 kB / 1.09 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.007421/1.057, allocations: 3.381 MB / 1.094 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.746e-05/1.057, allocations: 7.953 kB / 1.094 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.002036/1.059, allocations: 1.028 MB / 1.095 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006901/1.066, allocations: 1.136 MB / 1.096 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/1.079, allocations: 6.33 MB / 1.102 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002872/1.082, allocations: 2.215 MB / 1.104 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.00393/1.085, allocations: 0.9496 MB / 1.105 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008045/1.086, allocations: 179.3 kB / 1.105 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of SimCode: time 1.292e-06/1.086, allocations: 0 / 1.105 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of Templates: time 0.08544/1.172, allocations: 45.39 MB / 1.149 GB, free: 4.59 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.csv","../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches