Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8115/0.8115, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009985/0.0009987, allocations: 181.5 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.591/1.591, allocations: 221.3 MB / 441.4 MB, free: 4.602 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009984/0.0009985, allocations: 100.7 kB / 0.5124 GB, free: 24.13 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001919/0.00192, allocations: 272.7 kB / 0.5939 GB, free: 7.949 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.722e-05/4.724e-05, allocations: 4 kB / 0.6834 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5121/0.5121, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9436/1.456, allocations: 384.8 MB / 1.14 GB, free: 5.824 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/1.456, allocations: 92.45 kB / 1.14 GB, free: 5.781 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.143/5.6, allocations: 0.9873 GB / 2.127 GB, free: 141.4 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.683e-06/5.6, allocations: 2.734 kB / 2.127 GB, free: 141.4 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0003815/5.6, allocations: 75.62 kB / 2.128 GB, free: 141.4 MB / 0.7136 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.007724/5.608, allocations: 2.694 MB / 2.13 GB, free: 139.6 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/5.608, allocations: 10.34 kB / 2.13 GB, free: 139.6 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00183/5.61, allocations: 355.6 kB / 2.131 GB, free: 139.5 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007018/5.617, allocations: 3.031 MB / 2.133 GB, free: 137.6 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/5.617, allocations: 175.7 kB / 2.134 GB, free: 137.5 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00046/5.617, allocations: 238.1 kB / 2.134 GB, free: 137.4 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005336/5.623, allocations: 2.99 MB / 2.137 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.584e-05/5.623, allocations: 7.875 kB / 2.137 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002717/5.623, allocations: 101 kB / 2.137 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-05/5.623, allocations: 68.8 kB / 2.137 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003793/5.627, allocations: 2.33 MB / 2.139 GB, free: 134.5 MB / 0.7136 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.0175/5.644, allocations: 12.98 MB / 2.152 GB, free: 123.8 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/5.647, allocations: 1.641 MB / 2.154 GB, free: 122.7 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/5.648, allocations: 1.118 MB / 2.155 GB, free: 121.6 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007251/5.649, allocations: 0.7048 MB / 2.155 GB, free: 120.8 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.683e-05/5.649, allocations: 54.44 kB / 2.155 GB, free: 120.7 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00248/5.651, allocations: 233.4 kB / 2.156 GB, free: 120.5 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=126): time 9.699e-06/5.651, allocations: 0 / 2.156 GB, free: 120.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=126): time 0.003661/5.655, allocations: 1.698 MB / 2.157 GB, free: 118.8 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/5.655, allocations: 141.5 kB / 2.157 GB, free: 118.6 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003754/5.659, allocations: 1.864 MB / 2.159 GB, free: 116.7 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0003565/5.659, allocations: 57.7 kB / 2.159 GB, free: 116.6 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001824/5.661, allocations: 1.252 MB / 2.16 GB, free: 115.4 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006818/5.662, allocations: 439.5 kB / 2.161 GB, free: 114.9 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/5.662, allocations: 32 kB / 2.161 GB, free: 114.9 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002871/5.662, allocations: 373.9 kB / 2.161 GB, free: 114.5 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/5.664, allocations: 0.6911 MB / 2.162 GB, free: 113.9 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/5.666, allocations: 1.217 MB / 2.163 GB, free: 112.4 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/5.667, allocations: 0.9236 MB / 2.164 GB, free: 111.5 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/5.667, allocations: 7.938 kB / 2.164 GB, free: 111.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004721/5.672, allocations: 2.331 MB / 2.166 GB, free: 109.2 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.002024/5.674, allocations: 5.696 MB / 2.172 GB, free: 103.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/5.674, allocations: 16 kB / 2.172 GB, free: 103.1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/5.676, allocations: 495.6 kB / 2.172 GB, free: 102.6 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/5.677, allocations: 347.5 kB / 2.173 GB, free: 102.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003229/5.681, allocations: 3.082 MB / 2.176 GB, free: 99 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002915/5.684, allocations: 237.8 kB / 2.176 GB, free: 98.79 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/5.684, allocations: 79.97 kB / 2.176 GB, free: 98.71 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/5.684, allocations: 4 kB / 2.176 GB, free: 98.7 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00303/5.687, allocations: 2.102 MB / 2.178 GB, free: 96.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/5.687, allocations: 12 kB / 2.178 GB, free: 96.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005336/5.687, allocations: 242.9 kB / 2.178 GB, free: 96.36 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/5.689, allocations: 374 kB / 2.179 GB, free: 96 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003347/5.692, allocations: 4.149 MB / 2.183 GB, free: 91.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002768/5.695, allocations: 222.9 kB / 2.183 GB, free: 91.4 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/5.695, allocations: 83.91 kB / 2.183 GB, free: 91.32 MB / 0.7136 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 (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.0005948/5.696, allocations: 212.4 kB / 2.183 GB, free: 91.11 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005539/5.696, allocations: 205.6 kB / 2.183 GB, free: 90.9 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/5.699, allocations: 1.986 MB / 2.185 GB, free: 88.92 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/5.7, allocations: 12 kB / 2.185 GB, free: 88.91 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/5.7, allocations: 4 kB / 2.185 GB, free: 88.9 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001839/5.701, allocations: 1.588 MB / 2.187 GB, free: 87.3 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008439/5.71, allocations: 4.589 MB / 2.191 GB, free: 82.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/5.71, allocations: 4 kB / 2.191 GB, free: 82.65 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008979/5.711, allocations: 215.6 kB / 2.192 GB, free: 82.45 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001546/5.712, allocations: 436 kB / 2.192 GB, free: 82.03 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.482e-05/5.712, allocations: 39.97 kB / 2.192 GB, free: 81.99 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00234/5.715, allocations: 3.01 MB / 2.195 GB, free: 78.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/5.715, allocations: 0 / 2.195 GB, free: 78.84 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004007/5.719, allocations: 2.936 MB / 2.198 GB, free: 75.84 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/5.721, allocations: 0.5218 MB / 2.198 GB, free: 75.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003635/5.721, allocations: 35.94 kB / 2.198 GB, free: 75.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/5.723, allocations: 187.2 kB / 2.199 GB, free: 75.09 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/5.723, allocations: 100.1 kB / 2.199 GB, free: 75 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/5.723, allocations: 59.95 kB / 2.199 GB, free: 74.94 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002005/5.725, allocations: 1.428 MB / 2.2 GB, free: 73.48 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.1e-07/5.725, allocations: 4 kB / 2.2 GB, free: 73.48 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004361/5.729, allocations: 1.523 MB / 2.202 GB, free: 71.95 MB / 0.7136 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,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffBot.y,onOffMid.y,onOffHea.y) * 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.001193/5.73, allocations: 0.5782 MB / 2.202 GB, free: 71.49 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.004614/5.735, allocations: 3.305 MB / 2.205 GB, free: 68.15 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/5.735, allocations: 4.688 kB / 2.205 GB, free: 68.15 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001184/5.736, allocations: 0.9731 MB / 2.206 GB, free: 67.16 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005505/5.742, allocations: 1.12 MB / 2.207 GB, free: 66.09 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007277/5.749, allocations: 4.283 MB / 2.212 GB, free: 61.8 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001458/5.751, allocations: 2.206 MB / 2.214 GB, free: 59.55 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.004177/5.755, allocations: 1.37 MB / 2.215 GB, free: 58.23 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/5.755, allocations: 143.4 kB / 2.215 GB, free: 58.09 MB / 0.7136 GB Notification: Performance of SimCode: time 1.242e-06/5.755, allocations: 0 / 2.215 GB, free: 58.09 MB / 0.7136 GB Notification: Performance of Templates: time 0.08496/5.84, allocations: 51.25 MB / 2.265 GB, free: 7.898 MB / 0.7136 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)