Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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) 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 Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") [: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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.565/1.565, allocations: 285.5 MB / 292.8 MB, free: 10.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00134/0.00134, allocations: 193.2 kB / 361.1 MB, free: 7.121 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.1 MB / 0.6195 GB, free: 10.42 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009633/0.0009633, allocations: 93.38 kB / 0.7326 GB, free: 44.28 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.336e-06/8.516e-06, allocations: 0 / 0.8511 GB, free: 2.996 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6958/0.6958, allocations: 115.3 MB / 0.9637 GB, free: 77.98 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8684/1.564, allocations: 408.4 MB / 1.362 GB, free: 153.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/1.565, allocations: 96.38 kB / 1.363 GB, free: 153.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.333/2.897, allocations: 411.7 MB / 1.765 GB, free: 230.3 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002779/2.897, allocations: 46.53 kB / 1.765 GB, free: 230.3 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.00636/2.904, allocations: 1.862 MB / 1.766 GB, free: 229 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/2.904, allocations: 13.5 kB / 1.766 GB, free: 229 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001689/2.906, allocations: 219.1 kB / 1.767 GB, free: 228.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005623/2.911, allocations: 2.095 MB / 1.769 GB, free: 227.6 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-05/2.911, allocations: 43.62 kB / 1.769 GB, free: 227.6 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005936/2.912, allocations: 93.38 kB / 1.769 GB, free: 227.6 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002657/2.915, allocations: 1.628 MB / 1.77 GB, free: 226.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002224/2.917, allocations: 1.691 MB / 1.772 GB, free: 224.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.158e-05/2.917, allocations: 2.844 kB / 1.772 GB, free: 224.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/2.917, allocations: 4 kB / 1.772 GB, free: 224.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.476e-05/2.917, allocations: 43.98 kB / 1.772 GB, free: 224.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009348/2.926, allocations: 7.194 MB / 1.779 GB, free: 217 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/2.928, allocations: 1.24 MB / 1.78 GB, free: 215.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000679/2.929, allocations: 0.6333 MB / 1.781 GB, free: 215.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004388/2.933, allocations: 3.443 MB / 1.784 GB, free: 211.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/2.933, allocations: 44.22 kB / 1.784 GB, free: 211.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=86): time 2.936e-06/2.933, allocations: 4 kB / 1.784 GB, free: 211.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=86): time 0.002524/2.936, allocations: 1.168 MB / 1.786 GB, free: 210.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.319e-05/2.936, allocations: 60.19 kB / 1.786 GB, free: 210.1 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/2.938, allocations: 1.246 MB / 1.787 GB, free: 208.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001287/2.938, allocations: 29.7 kB / 1.787 GB, free: 208.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/2.939, allocations: 0.5959 MB / 1.787 GB, free: 208.2 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/2.939, allocations: 295.6 kB / 1.788 GB, free: 207.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-05/2.939, allocations: 0 / 1.788 GB, free: 207.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001445/2.939, allocations: 369.9 kB / 1.788 GB, free: 207.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009485/2.94, allocations: 0.6792 MB / 1.789 GB, free: 206.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/2.941, allocations: 0.9949 MB / 1.79 GB, free: 205.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003028/2.944, allocations: 1.259 MB / 1.791 GB, free: 204.5 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/2.944, allocations: 4 kB / 1.791 GB, free: 204.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004704/2.949, allocations: 2.226 MB / 1.793 GB, free: 202.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001169/2.95, allocations: 3.48 MB / 1.797 GB, free: 198.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.083e-05/2.95, allocations: 8 kB / 1.797 GB, free: 198.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.512e-05/2.95, allocations: 24 kB / 1.797 GB, free: 198.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/2.952, allocations: 335.5 kB / 1.797 GB, free: 198.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.77e-05/2.952, allocations: 23.92 kB / 1.797 GB, free: 198.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/2.954, allocations: 154.3 kB / 1.797 GB, free: 197.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001784/2.954, allocations: 68.73 kB / 1.797 GB, free: 197.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/2.954, allocations: 6.5 kB / 1.797 GB, free: 197.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003909/2.958, allocations: 2.062 MB / 1.799 GB, free: 195.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/2.958, allocations: 8 kB / 1.799 GB, free: 195.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/2.958, allocations: 16 kB / 1.799 GB, free: 195.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/2.959, allocations: 339.5 kB / 1.799 GB, free: 195.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.717e-05/2.959, allocations: 24.45 kB / 1.799 GB, free: 195.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/2.961, allocations: 130.7 kB / 1.8 GB, free: 195.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/2.961, allocations: 60.98 kB / 1.8 GB, free: 195.2 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003003/2.961, allocations: 136.6 kB / 1.8 GB, free: 195.1 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004363/2.961, allocations: 134.3 kB / 1.8 GB, free: 195 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/2.964, allocations: 1.314 MB / 1.801 GB, free: 193.7 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/2.964, allocations: 12 kB / 1.801 GB, free: 193.6 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/2.964, allocations: 0 / 1.801 GB, free: 193.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001734/2.966, allocations: 1.367 MB / 1.803 GB, free: 192.2 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004839/2.971, allocations: 2.811 MB / 1.805 GB, free: 189.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/2.971, allocations: 0 / 1.805 GB, free: 189.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007941/2.972, allocations: 168.6 kB / 1.805 GB, free: 189.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.4e-05/2.972, allocations: 4 kB / 1.805 GB, free: 189.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.621e-05/2.972, allocations: 15.98 kB / 1.805 GB, free: 189.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/2.972, allocations: 4 kB / 1.805 GB, free: 189.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/2.972, allocations: 8 kB / 1.805 GB, free: 189.1 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002755/2.974, allocations: 2.015 MB / 1.807 GB, free: 187.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008234/2.975, allocations: 391.1 kB / 1.808 GB, free: 186.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003721/2.976, allocations: 7.938 kB / 1.808 GB, free: 186.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009506/2.977, allocations: 39.8 kB / 1.808 GB, free: 186.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.916e-05/2.977, allocations: 48.72 kB / 1.808 GB, free: 186.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/2.977, allocations: 39.97 kB / 1.808 GB, free: 186.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001261/2.978, allocations: 0.9607 MB / 1.809 GB, free: 185.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003345/2.981, allocations: 0.9426 MB / 1.81 GB, free: 184.6 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001142/2.983, allocations: 498.2 kB / 1.81 GB, free: 184.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003225/2.986, allocations: 2.305 MB / 1.813 GB, free: 181.9 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/2.986, allocations: 7.938 kB / 1.813 GB, free: 181.9 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005978/2.986, allocations: 0.4987 MB / 1.813 GB, free: 181.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/2.989, allocations: 0.5988 MB / 1.814 GB, free: 180.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005964/2.995, allocations: 3.043 MB / 1.817 GB, free: 177.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/2.997, allocations: 1.844 MB / 1.818 GB, free: 175.8 MB / 0.948 GB Notification: Performance of SimCode: time 1.693e-06/2.997, allocations: 0 / 1.818 GB, free: 175.8 MB / 0.948 GB Notification: Performance of Templates: time 0.05802/3.055, allocations: 35.04 MB / 1.853 GB, free: 141.2 MB / 0.948 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)