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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.8076/0.8076, allocations: 140.1 MB / 156 MB, free: 8.391 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001101/0.001102, allocations: 171.6 kB / 188.5 MB, free: 8.996 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.4 MB / 426.3 MB, free: 8.125 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 90.36 kB / 0.4945 GB, free: 8.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001775/0.001775, allocations: 259 kB / 0.5728 GB, free: 66.12 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005748/0.0005748, allocations: 20 kB / 0.662 GB, free: 6.715 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5193/0.5199, allocations: 79.29 MB / 0.7395 GB, free: 46.29 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9635/1.483, allocations: 396.6 MB / 1.127 GB, free: 12.72 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/1.484, allocations: 101.4 kB / 1.127 GB, free: 12.66 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 3.912/5.396, allocations: 0.9671 GB / 2.094 GB, free: 84.62 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.164e-06/5.396, allocations: 0 / 2.094 GB, free: 84.62 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0005181/5.396, allocations: 75.98 kB / 2.094 GB, free: 84.55 MB / 0.6823 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.01111/5.407, allocations: 3.129 MB / 2.097 GB, free: 81.35 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/5.408, allocations: 8.031 kB / 2.097 GB, free: 81.34 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0024/5.41, allocations: 356.3 kB / 2.097 GB, free: 81 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008694/5.419, allocations: 2.984 MB / 2.1 GB, free: 77.96 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/5.419, allocations: 177 kB / 2.101 GB, free: 77.79 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/5.42, allocations: 248.8 kB / 2.101 GB, free: 77.54 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00839/5.429, allocations: 3.039 MB / 2.104 GB, free: 74.36 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001237/5.429, allocations: 11.88 kB / 2.104 GB, free: 74.35 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006317/5.429, allocations: 96 kB / 2.104 GB, free: 74.26 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8e-05/5.43, allocations: 71.98 kB / 2.104 GB, free: 74.19 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004975/5.435, allocations: 2.379 MB / 2.106 GB, free: 71.79 MB / 0.6823 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.02036/5.455, allocations: 12.9 MB / 2.119 GB, free: 58.04 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/5.457, allocations: 1.621 MB / 2.12 GB, free: 56.39 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/5.459, allocations: 1.158 MB / 2.122 GB, free: 55.23 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008299/5.46, allocations: 0.7166 MB / 2.122 GB, free: 54.37 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/5.46, allocations: 47.56 kB / 2.122 GB, free: 54.31 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00244/5.462, allocations: 222.7 kB / 2.123 GB, free: 54.09 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=126): time 1.696e-05/5.463, allocations: 0 / 2.123 GB, free: 54.09 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126): time 0.009507/5.472, allocations: 3.507 MB / 2.126 GB, free: 50.54 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/5.472, allocations: 141.5 kB / 2.126 GB, free: 50.37 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003766/5.476, allocations: 1.946 MB / 2.128 GB, free: 48.38 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002623/5.476, allocations: 53.7 kB / 2.128 GB, free: 48.32 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001353/5.478, allocations: 1.258 MB / 2.129 GB, free: 47.05 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004639/5.478, allocations: 437.8 kB / 2.13 GB, free: 46.61 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/5.478, allocations: 36 kB / 2.13 GB, free: 46.58 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001291/5.478, allocations: 377.8 kB / 2.13 GB, free: 46.2 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/5.479, allocations: 0.7066 MB / 2.131 GB, free: 45.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/5.481, allocations: 1.237 MB / 2.132 GB, free: 44.03 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002361/5.483, allocations: 1.99 MB / 2.134 GB, free: 41.84 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.716e-05/5.483, allocations: 4 kB / 2.134 GB, free: 41.84 MB / 0.6823 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004081/5.487, allocations: 2.351 MB / 2.136 GB, free: 39.47 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003314/5.488, allocations: 0.504 MB / 2.137 GB, free: 38.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/5.488, allocations: 12 kB / 2.137 GB, free: 38.77 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/5.49, allocations: 0.5127 MB / 2.137 GB, free: 38.25 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/5.491, allocations: 335.4 kB / 2.138 GB, free: 37.92 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003005/5.494, allocations: 3.099 MB / 2.141 GB, free: 34.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/5.497, allocations: 223.5 kB / 2.141 GB, free: 34.44 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002905/5.497, allocations: 87.84 kB / 2.141 GB, free: 34.36 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/5.497, allocations: 4 kB / 2.141 GB, free: 34.35 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003594/5.501, allocations: 2.137 MB / 2.143 GB, free: 32.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/5.501, allocations: 12 kB / 2.143 GB, free: 32.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005793/5.502, allocations: 241.5 kB / 2.143 GB, free: 31.95 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/5.503, allocations: 351.4 kB / 2.144 GB, free: 31.61 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003767/5.507, allocations: 4.161 MB / 2.148 GB, free: 27.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/5.509, allocations: 223.5 kB / 2.148 GB, free: 26.96 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/5.51, allocations: 83.97 kB / 2.148 GB, free: 26.88 MB / 0.6823 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.002318/5.512, allocations: 1 MB / 2.149 GB, free: 25.87 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007906/5.513, allocations: 201.6 kB / 2.149 GB, free: 25.67 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003698/5.516, allocations: 2.011 MB / 2.151 GB, free: 23.64 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.956e-05/5.516, allocations: 12 kB / 2.151 GB, free: 23.63 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/5.516, allocations: 10.25 kB / 2.151 GB, free: 23.62 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002148/5.519, allocations: 1.605 MB / 2.153 GB, free: 22 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009761/5.528, allocations: 4.584 MB / 2.157 GB, free: 17.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/5.528, allocations: 0 / 2.157 GB, free: 17.32 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008566/5.529, allocations: 211.7 kB / 2.157 GB, free: 17.12 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001598/5.531, allocations: 429.4 kB / 2.158 GB, free: 16.69 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/5.531, allocations: 43.91 kB / 2.158 GB, free: 16.65 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002787/5.534, allocations: 3.021 MB / 2.161 GB, free: 13.47 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/5.534, allocations: 0 / 2.161 GB, free: 13.47 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/5.538, allocations: 2.915 MB / 2.164 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/5.54, allocations: 0.5062 MB / 2.164 GB, free: 9.996 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007192/5.541, allocations: 24 kB / 2.164 GB, free: 9.973 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/5.543, allocations: 195.5 kB / 2.164 GB, free: 9.781 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/5.543, allocations: 105.1 kB / 2.164 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/5.544, allocations: 55.95 kB / 2.164 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002044/5.546, allocations: 1.337 MB / 2.166 GB, free: 8.262 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.31e-07/5.546, allocations: 0 / 2.166 GB, free: 8.262 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004928/5.551, allocations: 1.5 MB / 2.167 GB, free: 6.758 MB / 0.6823 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.00124/5.552, allocations: 0.5513 MB / 2.168 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004744/5.557, allocations: 3.298 MB / 2.171 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/5.557, allocations: 1.938 kB / 2.171 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/5.558, allocations: 0.989 MB / 2.172 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005682/5.564, allocations: 1.146 MB / 2.173 GB, free: 0.7422 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4636/6.027, allocations: 6.241 MB / 2.179 GB, free: 118.6 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002632/6.03, allocations: 2.153 MB / 2.181 GB, free: 117.9 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.004058/6.034, allocations: 0.9282 MB / 2.182 GB, free: 117.9 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006094/6.035, allocations: 175.5 kB / 2.182 GB, free: 117.9 MB / 0.6823 GB Notification: Performance of SimCode: time 1.472e-06/6.035, allocations: 0 / 2.182 GB, free: 117.9 MB / 0.6823 GB Notification: Performance of Templates: time 0.08885/6.124, allocations: 47.53 MB / 2.229 GB, free: 116.2 MB / 0.6823 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)