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.7747/0.7747, allocations: 141.8 MB / 149.3 MB, free: 9.23 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 180.6 kB / 182.2 MB, free: 9.461 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.502/1.502, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.001057/0.001057, allocations: 80.08 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002412/0.002413, allocations: 282.1 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.447e-05/1.449e-05, allocations: 0 / 0.6765 GB, free: 12.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4289/0.4289, allocations: 82.77 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8184/1.247, allocations: 384.1 MB / 1.132 GB, free: 13.58 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/1.248, allocations: 96.58 kB / 1.133 GB, free: 13.53 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.707/4.954, allocations: 0.9826 GB / 2.115 GB, free: 124.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.933e-06/4.954, allocations: 0 / 2.115 GB, free: 124.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0003462/4.955, allocations: 76.55 kB / 2.115 GB, free: 124.4 MB / 0.698 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.006744/4.961, allocations: 2.696 MB / 2.118 GB, free: 122.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/4.961, allocations: 7.344 kB / 2.118 GB, free: 122.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/4.963, allocations: 357.3 kB / 2.118 GB, free: 122.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006309/4.969, allocations: 3.021 MB / 2.121 GB, free: 120.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.155e-05/4.97, allocations: 74.16 kB / 2.121 GB, free: 120.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004825/4.97, allocations: 140.5 kB / 2.121 GB, free: 120.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003764/4.974, allocations: 2.207 MB / 2.124 GB, free: 119.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003994/4.978, allocations: 2.66 MB / 2.126 GB, free: 117.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.753e-05/4.978, allocations: 11.84 kB / 2.126 GB, free: 117.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/4.978, allocations: 8.5 kB / 2.126 GB, free: 117.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.416e-05/4.978, allocations: 67.98 kB / 2.126 GB, free: 117.1 MB / 0.698 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.01623/4.994, allocations: 12.56 MB / 2.138 GB, free: 103.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/4.997, allocations: 1.565 MB / 2.14 GB, free: 102.3 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001397/4.998, allocations: 1.093 MB / 2.141 GB, free: 101.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006801/4.999, allocations: 0.7164 MB / 2.142 GB, free: 100.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/4.999, allocations: 47.88 kB / 2.142 GB, free: 100.3 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001792/5, allocations: 200.5 kB / 2.142 GB, free: 100.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=126): time 3.006e-06/5.001, allocations: 7.875 kB / 2.142 GB, free: 100.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=126): time 0.002695/5.003, allocations: 1.635 MB / 2.144 GB, free: 98.42 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/5.003, allocations: 141.8 kB / 2.144 GB, free: 98.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/5.005, allocations: 1.74 MB / 2.145 GB, free: 96.47 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001646/5.006, allocations: 29.7 kB / 2.145 GB, free: 96.44 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.00102/5.007, allocations: 1.249 MB / 2.147 GB, free: 95.17 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003565/5.007, allocations: 425.8 kB / 2.147 GB, free: 94.75 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.694e-05/5.007, allocations: 0 / 2.147 GB, free: 94.75 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000107/5.007, allocations: 376.7 kB / 2.147 GB, free: 94.38 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008268/5.008, allocations: 0.6559 MB / 2.148 GB, free: 93.72 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/5.009, allocations: 1.168 MB / 2.149 GB, free: 92.34 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/5.01, allocations: 0.9194 MB / 2.15 GB, free: 91.45 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/5.01, allocations: 4 kB / 2.15 GB, free: 91.45 MB / 0.698 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003342/5.014, allocations: 2.168 MB / 2.152 GB, free: 89.28 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001052/5.015, allocations: 5.689 MB / 2.158 GB, free: 83.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/5.015, allocations: 16 kB / 2.158 GB, free: 83.14 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/5.017, allocations: 422.6 kB / 2.158 GB, free: 82.73 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/5.018, allocations: 361.3 kB / 2.159 GB, free: 82.38 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/5.021, allocations: 3.004 MB / 2.162 GB, free: 79.25 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/5.024, allocations: 198 kB / 2.162 GB, free: 79.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/5.024, allocations: 83.97 kB / 2.162 GB, free: 78.99 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/5.024, allocations: 9.047 kB / 2.162 GB, free: 78.98 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003301/5.027, allocations: 1.905 MB / 2.164 GB, free: 77.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/5.027, allocations: 16 kB / 2.164 GB, free: 77.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005147/5.028, allocations: 202.5 kB / 2.164 GB, free: 76.87 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/5.029, allocations: 375.4 kB / 2.164 GB, free: 76.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/5.032, allocations: 3.763 MB / 2.168 GB, free: 72.54 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002495/5.035, allocations: 177.5 kB / 2.168 GB, free: 72.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001908/5.035, allocations: 83.97 kB / 2.168 GB, free: 72.29 MB / 0.698 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.0004886/5.035, allocations: 163.8 kB / 2.168 GB, free: 72.13 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004683/5.036, allocations: 201.6 kB / 2.168 GB, free: 71.93 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003338/5.039, allocations: 1.865 MB / 2.17 GB, free: 70.06 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/5.039, allocations: 12 kB / 2.17 GB, free: 70.05 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/5.039, allocations: 0 / 2.17 GB, free: 70.05 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001979/5.041, allocations: 1.5 MB / 2.172 GB, free: 68.53 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007517/5.049, allocations: 4.155 MB / 2.176 GB, free: 64.32 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/5.049, allocations: 4 kB / 2.176 GB, free: 64.32 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009199/5.05, allocations: 211.7 kB / 2.176 GB, free: 64.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001449/5.051, allocations: 393.5 kB / 2.176 GB, free: 63.72 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.71e-05/5.051, allocations: 23.97 kB / 2.176 GB, free: 63.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002362/5.054, allocations: 2.938 MB / 2.179 GB, free: 60.62 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/5.054, allocations: 0 / 2.179 GB, free: 60.62 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003896/5.058, allocations: 2.857 MB / 2.182 GB, free: 57.68 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001556/5.059, allocations: 0.514 MB / 2.183 GB, free: 57.15 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003254/5.06, allocations: 11.95 kB / 2.183 GB, free: 57.14 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/5.061, allocations: 167.6 kB / 2.183 GB, free: 56.97 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/5.061, allocations: 101.2 kB / 2.183 GB, free: 56.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/5.061, allocations: 55.95 kB / 2.183 GB, free: 56.82 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001825/5.063, allocations: 1.317 MB / 2.184 GB, free: 55.48 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.21e-07/5.063, allocations: 0 / 2.184 GB, free: 55.48 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.004664/5.068, allocations: 1.456 MB / 2.186 GB, free: 54.02 MB / 0.698 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.001269/5.069, allocations: 0.558 MB / 2.186 GB, free: 53.51 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.004408/5.074, allocations: 3.101 MB / 2.189 GB, free: 50.38 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/5.074, allocations: 112 / 2.189 GB, free: 50.38 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001095/5.075, allocations: 0.9317 MB / 2.19 GB, free: 49.45 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005196/5.08, allocations: 1.071 MB / 2.191 GB, free: 48.41 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006621/5.087, allocations: 4.199 MB / 2.195 GB, free: 44.19 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/5.088, allocations: 2.21 MB / 2.197 GB, free: 41.95 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.003754/5.092, allocations: 1.379 MB / 2.199 GB, free: 40.61 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/5.092, allocations: 131.4 kB / 2.199 GB, free: 40.48 MB / 0.698 GB Notification: Performance of SimCode: time 8.02e-07/5.092, allocations: 0 / 2.199 GB, free: 40.48 MB / 0.698 GB Notification: Performance of Templates: time 0.4908/5.583, allocations: 45.33 MB / 2.243 GB, free: 134.9 MB / 0.698 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)