Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009199/0.00092, allocations: 99 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.0009107/0.0009106, 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.323/1.323, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.547/2.547, allocations: 436.5 MB / 0.7104 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004799/0.00048, allocations: 12 kB / 0.8708 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6913/0.6918, allocations: 153.7 MB / 1.021 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature): time 0.03018/0.722, allocations: 31.66 MB / 1.052 GB, free: 1.328 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01177/0.7338, allocations: 8.26 MB / 1.06 GB, free: 9.051 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.7353, allocations: 39.75 kB / 1.06 GB, free: 9.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.7369, allocations: 0.5285 MB / 1.06 GB, free: 8.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004775/0.7417, allocations: 1.6 MB / 1.062 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003769/0.7455, allocations: 1.317 MB / 1.063 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.006826/0.7523, allocations: 4.471 MB / 1.068 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004104/0.7565, allocations: 2.759 MB / 1.07 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00544/0.7619, allocations: 1.841 MB / 1.072 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003665/0.7657, allocations: 1.548 MB / 1.074 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0006373/0.7663, allocations: 136 kB / 1.074 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.7693, allocations: 0.6749 MB / 1.074 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0007697/0.7701, allocations: 0.5721 MB / 1.075 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.7713, allocations: 0.6447 MB / 1.076 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.004262/0.7756, allocations: 3.938 MB / 1.079 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.7756, allocations: 0 / 1.079 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.144e-06/0.7756, allocations: 8 kB / 1.079 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0001089/0.7758, allocations: 0 / 1.079 GB, free: 4.902 MB / 0.8262 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.005837/0.7816, allocations: 3 MB / 1.082 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.7816, allocations: 8.031 kB / 1.082 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.7828, allocations: 356 kB / 1.083 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004845/0.7877, allocations: 2.408 MB / 1.085 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.7878, allocations: 184.6 kB / 1.085 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000421/0.7883, allocations: 239.9 kB / 1.085 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005494/0.7938, allocations: 3.2 MB / 1.089 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.181e-05/0.7939, allocations: 3.938 kB / 1.089 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000239/0.7941, allocations: 100 kB / 1.089 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-05/0.7942, allocations: 64 kB / 1.089 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004307/0.7985, allocations: 2.57 MB / 1.091 GB, free: 8.512 MB / 0.8419 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.01875/0.8173, allocations: 13.86 MB / 1.105 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/0.8202, allocations: 1.626 MB / 1.106 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008623/0.8211, allocations: 0.7283 MB / 1.107 GB, free: 7.082 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/0.8212, allocations: 47.5 kB / 1.107 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001474/0.8226, allocations: 195.5 kB / 1.107 GB, free: 6.836 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=126): time 3.917e-06/0.8226, allocations: 0 / 1.107 GB, free: 6.836 MB / 0.8575 GB Notification: Performance of matching and sorting (n=126): time 0.009465/0.8321, allocations: 3.49 MB / 1.111 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.146e-05/0.8322, allocations: 141.5 kB / 1.111 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003344/0.8356, allocations: 2.132 MB / 1.113 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002258/0.8358, allocations: 57.7 kB / 1.113 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.837, allocations: 1.258 MB / 1.114 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005036/0.8375, allocations: 441.7 kB / 1.115 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.8376, allocations: 32 kB / 1.115 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000185/0.8378, allocations: 381.7 kB / 1.115 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/0.8392, allocations: 0.7339 MB / 1.116 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.841, allocations: 1.236 MB / 1.117 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/0.8427, allocations: 0.9549 MB / 1.118 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.779e-05/0.8428, allocations: 4 kB / 1.118 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004591/0.8474, allocations: 2.421 MB / 1.12 GB, free: 9.191 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.002534/0.8499, allocations: 5.707 MB / 1.126 GB, free: 3.027 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.121e-05/0.85, allocations: 16 kB / 1.126 GB, free: 3.012 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002308/0.8523, allocations: 0.5161 MB / 1.126 GB, free: 2.492 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.8536, allocations: 347.4 kB / 1.127 GB, free: 2.152 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003355/0.857, allocations: 3.164 MB / 1.13 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/0.8592, allocations: 235.4 kB / 1.13 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001995/0.8594, allocations: 83.97 kB / 1.13 GB, free: 14.52 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.8595, allocations: 8 kB / 1.13 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003562/0.863, allocations: 2.188 MB / 1.132 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-05/0.8631, allocations: 16 kB / 1.132 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006001/0.8637, allocations: 249.9 kB / 1.132 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.8651, allocations: 367.4 kB / 1.133 GB, free: 11.69 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004228/0.8693, allocations: 4.228 MB / 1.137 GB, free: 7.188 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/0.8715, allocations: 215.6 kB / 1.137 GB, free: 6.977 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/0.8717, allocations: 75.98 kB / 1.137 GB, free: 6.902 MB / 0.8887 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.001819/0.8735, allocations: 1.012 MB / 1.138 GB, free: 5.879 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005877/0.8741, allocations: 209.6 kB / 1.138 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003817/0.8779, allocations: 2.084 MB / 1.14 GB, free: 3.574 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.878, allocations: 12 kB / 1.14 GB, free: 3.562 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.878, allocations: 4 kB / 1.14 GB, free: 3.559 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002484/0.8805, allocations: 1.675 MB / 1.142 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008798/0.8893, allocations: 4.708 MB / 1.147 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.8893, allocations: 0 / 1.147 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008918/0.8902, allocations: 195.7 kB / 1.147 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001748/0.892, allocations: 458.8 kB / 1.147 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.8921, allocations: 35.98 kB / 1.147 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003014/0.8951, allocations: 3.083 MB / 1.15 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.8952, allocations: 7.984 kB / 1.15 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004538/0.8997, allocations: 3.063 MB / 1.153 GB, free: 6.012 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.9013, allocations: 0.5414 MB / 1.154 GB, free: 5.449 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005066/0.9018, allocations: 36.11 kB / 1.154 GB, free: 5.414 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.9036, allocations: 209.9 kB / 1.154 GB, free: 5.211 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002337/0.9039, allocations: 105.1 kB / 1.154 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.904, allocations: 55.95 kB / 1.154 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002567/0.9066, allocations: 1.471 MB / 1.156 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9066, allocations: 0 / 1.156 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.004793/0.9114, allocations: 1.492 MB / 1.157 GB, free: 2.062 MB / 0.9044 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.001063/0.9125, allocations: 385.9 kB / 1.158 GB, free: 1.691 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005516/0.918, allocations: 3.381 MB / 1.161 GB, free: 14.28 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.918, allocations: 0 / 1.161 GB, free: 14.28 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.9196, allocations: 1.024 MB / 1.162 GB, free: 13.24 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005339/0.9249, allocations: 1.13 MB / 1.163 GB, free: 12.12 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009757/0.9347, allocations: 6.347 MB / 1.169 GB, free: 5.742 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00214/0.9369, allocations: 2.219 MB / 1.171 GB, free: 3.492 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.003257/0.9401, allocations: 0.9511 MB / 1.172 GB, free: 2.555 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005882/0.9407, allocations: 171.3 kB / 1.172 GB, free: 2.387 MB / 0.92 GB Notification: Performance of SimCode: time 6.61e-07/0.9407, allocations: 4 kB / 1.172 GB, free: 2.383 MB / 0.92 GB Notification: Performance of Templates: time 0.07321/1.014, allocations: 45.38 MB / 1.217 GB, free: 5.488 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches