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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7504/0.7504, allocations: 141.8 MB / 149.1 MB, free: 1.395 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 171.1 kB / 181.9 MB, free: 0.7852 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 221.4 MB / 436 MB, free: 5.469 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000967/0.0009667, allocations: 96.56 kB / 0.507 GB, free: 2.145 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001788/0.001788, allocations: 272.2 kB / 0.5884 GB, free: 47.28 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 8.446e-06/8.465e-06, allocations: 1.281 kB / 0.6759 GB, free: 59.62 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1725, allocations: 82.78 MB / 0.7567 GB, free: 0.7305 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8111/0.9836, allocations: 384.1 MB / 1.132 GB, free: 3.203 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.984, allocations: 87.2 kB / 1.132 GB, free: 3.16 MB / 0.7138 GB Notification: Performance of FrontEnd: time 3.803/4.787, allocations: 0.9875 GB / 2.119 GB, free: 132.4 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0009619/4.788, allocations: 77.23 kB / 2.119 GB, free: 132.4 MB / 0.7138 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.01251/4.801, allocations: 2.679 MB / 2.122 GB, free: 130.7 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/4.801, allocations: 9 kB / 2.122 GB, free: 130.7 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002985/4.804, allocations: 359.3 kB / 2.122 GB, free: 130.5 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01101/4.815, allocations: 3.08 MB / 2.125 GB, free: 128.6 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002787/4.815, allocations: 73.84 kB / 2.125 GB, free: 128.6 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001481/4.817, allocations: 137.8 kB / 2.126 GB, free: 128.6 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007993/4.825, allocations: 2.265 MB / 2.128 GB, free: 127.5 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00741/4.832, allocations: 2.697 MB / 2.13 GB, free: 124.7 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.536e-05/4.832, allocations: 7.906 kB / 2.13 GB, free: 124.6 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005748/4.833, allocations: 0 / 2.13 GB, free: 124.6 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.789e-05/4.833, allocations: 75.42 kB / 2.131 GB, free: 124.6 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01798/4.851, allocations: 12.96 MB / 2.143 GB, free: 111 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/4.853, allocations: 1.511 MB / 2.145 GB, free: 109.5 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001351/4.854, allocations: 1.118 MB / 2.146 GB, free: 108.4 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007018/4.855, allocations: 0.7174 MB / 2.146 GB, free: 107.6 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/4.855, allocations: 51.56 kB / 2.146 GB, free: 107.5 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=126): time 3.436e-06/4.855, allocations: 2.656 kB / 2.146 GB, free: 107.5 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126): time 0.003144/4.858, allocations: 1.674 MB / 2.148 GB, free: 105.8 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/4.858, allocations: 153.5 kB / 2.148 GB, free: 105.6 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/4.86, allocations: 1.767 MB / 2.15 GB, free: 103.8 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001684/4.861, allocations: 29.7 kB / 2.15 GB, free: 103.8 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.000818/4.861, allocations: 0.9331 MB / 2.151 GB, free: 102.8 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004971/4.862, allocations: 433.8 kB / 2.151 GB, free: 102.4 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-05/4.862, allocations: 2.531 kB / 2.151 GB, free: 102.4 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001182/4.862, allocations: 369.9 kB / 2.152 GB, free: 102.1 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000844/4.863, allocations: 0.6833 MB / 2.152 GB, free: 101.4 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/4.864, allocations: 1.196 MB / 2.154 GB, free: 99.96 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/4.865, allocations: 0.9525 MB / 2.154 GB, free: 99.03 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/4.865, allocations: 4 kB / 2.154 GB, free: 99.02 MB / 0.7138 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003436/4.869, allocations: 2.226 MB / 2.157 GB, free: 96.79 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.001222/4.87, allocations: 5.673 MB / 2.162 GB, free: 90.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/4.87, allocations: 12 kB / 2.162 GB, free: 90.69 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/4.872, allocations: 445.4 kB / 2.163 GB, free: 90.26 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/4.873, allocations: 351.1 kB / 2.163 GB, free: 89.92 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/4.876, allocations: 2.972 MB / 2.166 GB, free: 86.83 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003352/4.88, allocations: 269.3 kB / 2.166 GB, free: 86.58 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/4.88, allocations: 83.88 kB / 2.166 GB, free: 86.5 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/4.88, allocations: 4 kB / 2.166 GB, free: 86.49 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003309/4.883, allocations: 1.959 MB / 2.168 GB, free: 84.54 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/4.883, allocations: 19.94 kB / 2.168 GB, free: 84.52 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005228/4.884, allocations: 208 kB / 2.168 GB, free: 84.32 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/4.885, allocations: 379.3 kB / 2.169 GB, free: 83.95 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/4.888, allocations: 3.685 MB / 2.172 GB, free: 80.06 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/4.891, allocations: 239.9 kB / 2.173 GB, free: 79.84 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/4.891, allocations: 83.97 kB / 2.173 GB, free: 79.75 MB / 0.7138 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.0004972/4.891, allocations: 163.5 kB / 2.173 GB, free: 79.59 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004243/4.892, allocations: 201.7 kB / 2.173 GB, free: 79.39 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003381/4.895, allocations: 1.952 MB / 2.175 GB, free: 77.45 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/4.895, allocations: 19.98 kB / 2.175 GB, free: 77.43 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/4.895, allocations: 0 / 2.175 GB, free: 77.43 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002007/4.897, allocations: 1.551 MB / 2.176 GB, free: 75.87 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007574/4.905, allocations: 4.259 MB / 2.181 GB, free: 71.57 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/4.905, allocations: 4 kB / 2.181 GB, free: 71.56 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009498/4.906, allocations: 215 kB / 2.181 GB, free: 71.36 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001417/4.907, allocations: 405.8 kB / 2.181 GB, free: 70.96 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/4.907, allocations: 23.97 kB / 2.181 GB, free: 70.94 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002449/4.91, allocations: 2.9 MB / 2.184 GB, free: 67.92 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/4.91, allocations: 0 / 2.184 GB, free: 67.92 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004095/4.914, allocations: 2.963 MB / 2.187 GB, free: 64.89 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/4.916, allocations: 0.5371 MB / 2.187 GB, free: 64.33 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007985/4.916, allocations: 11.22 kB / 2.187 GB, free: 64.32 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002113/4.919, allocations: 160.5 kB / 2.188 GB, free: 64.18 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/4.919, allocations: 85.17 kB / 2.188 GB, free: 64.09 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001628/4.919, allocations: 55.95 kB / 2.188 GB, free: 64.04 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.002387/4.921, allocations: 1.345 MB / 2.189 GB, free: 62.67 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.006444/4.928, allocations: 1.462 MB / 2.19 GB, free: 61.21 MB / 0.7138 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.001377/4.929, allocations: 0.5554 MB / 2.191 GB, free: 60.74 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.004464/4.934, allocations: 3.134 MB / 2.194 GB, free: 57.59 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/4.934, allocations: 0 / 2.194 GB, free: 57.59 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.001107/4.935, allocations: 0.9299 MB / 2.195 GB, free: 56.66 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005055/4.94, allocations: 1.031 MB / 2.196 GB, free: 55.71 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008399/4.948, allocations: 4.314 MB / 2.2 GB, free: 51.52 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002002/4.95, allocations: 2.388 MB / 2.203 GB, free: 49.12 MB / 0.7138 GB Notification: Performance of SimCode: time 9.92e-07/4.95, allocations: 0 / 2.203 GB, free: 49.12 MB / 0.7138 GB Notification: Performance of Templates: time 0.4564/5.407, allocations: 52.39 MB / 2.254 GB, free: 187.5 MB / 0.7138 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)