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.8287/0.8287, allocations: 143.4 MB / 158.3 MB, free: 5.77 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.00112/0.00112, allocations: 176.2 kB / 191.5 MB, free: 5.766 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.668/1.668, allocations: 223.2 MB / 447.7 MB, free: 4.789 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.0009728/0.000973, allocations: 92.33 kB / 0.5188 GB, free: 1.152 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00189/0.00189, allocations: 271.5 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005447/0.0005449, allocations: 17.16 kB / 0.6929 GB, free: 59.61 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.1874, allocations: 82.79 MB / 0.7737 GB, free: 13.86 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9257/1.113, allocations: 384.9 MB / 1.15 GB, free: 1.977 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003432/1.114, allocations: 101 kB / 1.15 GB, free: 1.926 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.047/5.161, allocations: 0.9899 GB / 2.14 GB, free: 134.1 MB / 0.7136 GB Notification: Performance of FrontEnd: time 3.447e-06/5.161, allocations: 0 / 2.14 GB, free: 134.1 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0003328/5.161, allocations: 79.8 kB / 2.14 GB, free: 134.1 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.01008/5.172, allocations: 3.155 MB / 2.143 GB, free: 132 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/5.172, allocations: 11.88 kB / 2.143 GB, free: 132 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/5.174, allocations: 363.4 kB / 2.143 GB, free: 131.8 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006942/5.181, allocations: 3.047 MB / 2.146 GB, free: 129.9 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/5.181, allocations: 176.4 kB / 2.146 GB, free: 129.8 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005695/5.181, allocations: 239.8 kB / 2.146 GB, free: 129.8 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007082/5.188, allocations: 3.027 MB / 2.149 GB, free: 127.8 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.247e-05/5.189, allocations: 11.56 kB / 2.149 GB, free: 127.8 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003271/5.189, allocations: 97.77 kB / 2.149 GB, free: 127.8 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.706e-05/5.189, allocations: 71.2 kB / 2.15 GB, free: 127.8 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004544/5.194, allocations: 2.387 MB / 2.152 GB, free: 126.5 MB / 0.7136 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.01893/5.213, allocations: 12.98 MB / 2.165 GB, free: 113.5 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002459/5.215, allocations: 1.645 MB / 2.166 GB, free: 111.8 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007319/5.216, allocations: 0.7159 MB / 2.167 GB, free: 111 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/5.216, allocations: 43.56 kB / 2.167 GB, free: 110.9 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002105/5.218, allocations: 232.1 kB / 2.167 GB, free: 110.7 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=126): time 5.049e-06/5.218, allocations: 4 kB / 2.167 GB, free: 110.7 MB / 0.7136 GB Notification: Performance of matching and sorting (n=126): time 0.009327/5.227, allocations: 3.447 MB / 2.171 GB, free: 107.3 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/5.227, allocations: 141.5 kB / 2.171 GB, free: 107.1 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002942/5.23, allocations: 1.878 MB / 2.172 GB, free: 105.2 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002658/5.231, allocations: 64.91 kB / 2.173 GB, free: 105.1 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001175/5.232, allocations: 1.251 MB / 2.174 GB, free: 103.9 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004391/5.232, allocations: 439 kB / 2.174 GB, free: 103.4 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/5.232, allocations: 36 kB / 2.174 GB, free: 103.4 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001249/5.232, allocations: 369.9 kB / 2.175 GB, free: 103 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009882/5.233, allocations: 0.7066 MB / 2.175 GB, free: 102.3 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/5.235, allocations: 1.239 MB / 2.176 GB, free: 100.9 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/5.236, allocations: 0.935 MB / 2.177 GB, free: 99.95 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/5.236, allocations: 7.375 kB / 2.177 GB, free: 99.95 MB / 0.7136 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003573/5.239, allocations: 2.359 MB / 2.18 GB, free: 97.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001321/5.241, allocations: 5.699 MB / 2.185 GB, free: 91.47 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/5.241, allocations: 18.69 kB / 2.185 GB, free: 91.45 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001871/5.243, allocations: 491.5 kB / 2.186 GB, free: 90.98 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/5.244, allocations: 354.6 kB / 2.186 GB, free: 90.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002758/5.247, allocations: 3.145 MB / 2.189 GB, free: 87.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002754/5.25, allocations: 223.5 kB / 2.189 GB, free: 87.12 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/5.25, allocations: 83.97 kB / 2.189 GB, free: 87.04 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/5.25, allocations: 9.875 kB / 2.189 GB, free: 87.04 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003008/5.253, allocations: 2.137 MB / 2.192 GB, free: 84.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/5.253, allocations: 16.11 kB / 2.192 GB, free: 84.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005505/5.253, allocations: 237.8 kB / 2.192 GB, free: 84.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/5.255, allocations: 371.4 kB / 2.192 GB, free: 84.27 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003412/5.258, allocations: 4.207 MB / 2.196 GB, free: 79.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00261/5.261, allocations: 223.5 kB / 2.196 GB, free: 79.6 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/5.261, allocations: 79.97 kB / 2.197 GB, free: 79.52 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 () * 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.002165/5.263, allocations: 1.004 MB / 2.198 GB, free: 78.51 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006699/5.264, allocations: 205.5 kB / 2.198 GB, free: 78.3 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/5.267, allocations: 2.014 MB / 2.2 GB, free: 76.28 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/5.267, allocations: 12 kB / 2.2 GB, free: 76.27 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/5.267, allocations: 0 / 2.2 GB, free: 76.27 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001969/5.269, allocations: 1.617 MB / 2.201 GB, free: 74.63 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008461/5.277, allocations: 4.576 MB / 2.206 GB, free: 70 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/5.277, allocations: 4 kB / 2.206 GB, free: 70 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00091/5.278, allocations: 211.7 kB / 2.206 GB, free: 69.79 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00164/5.28, allocations: 430.8 kB / 2.206 GB, free: 69.37 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/5.28, allocations: 39.97 kB / 2.206 GB, free: 69.33 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002797/5.283, allocations: 3.039 MB / 2.209 GB, free: 66.13 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/5.283, allocations: 3.938 kB / 2.209 GB, free: 66.12 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004519/5.287, allocations: 2.969 MB / 2.212 GB, free: 63.09 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002127/5.29, allocations: 0.5256 MB / 2.213 GB, free: 62.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003413/5.29, allocations: 39.64 kB / 2.213 GB, free: 62.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/5.291, allocations: 191.6 kB / 2.213 GB, free: 62.32 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/5.292, allocations: 108.5 kB / 2.213 GB, free: 62.22 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/5.292, allocations: 55.95 kB / 2.213 GB, free: 62.16 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002097/5.294, allocations: 1.455 MB / 2.215 GB, free: 60.69 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.31e-07/5.294, allocations: 0 / 2.215 GB, free: 60.69 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.005827/5.3, allocations: 1.523 MB / 2.216 GB, free: 59.16 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) * 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.001849/5.302, allocations: 0.579 MB / 2.217 GB, free: 58.65 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.005208/5.307, allocations: 3.299 MB / 2.22 GB, free: 55.32 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/5.307, allocations: 7.906 kB / 2.22 GB, free: 55.31 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/5.308, allocations: 0.985 MB / 2.221 GB, free: 54.31 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005803/5.314, allocations: 1.118 MB / 2.222 GB, free: 53.23 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009504/5.324, allocations: 6.266 MB / 2.228 GB, free: 46.98 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/5.325, allocations: 2.207 MB / 2.23 GB, free: 44.73 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.003411/5.329, allocations: 0.9371 MB / 2.231 GB, free: 43.83 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000513/5.329, allocations: 179.4 kB / 2.231 GB, free: 43.66 MB / 0.7136 GB Notification: Performance of SimCode: time 1.243e-06/5.329, allocations: 0 / 2.231 GB, free: 43.66 MB / 0.7136 GB Notification: Performance of Templates: time 0.5546/5.884, allocations: 47.19 MB / 2.277 GB, free: 140.4 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)