Not Enough Memory to Solve a Model

1. Condensation

Most large models need to be condensed. [That is, substitutions, backsolves and/or omissions need to be done when TABLO is run.]

Did you forget to condense the model? [When a model needs to be condensed, there is usually a Stored-input file which contains a standard list of omissions, substitutions and backsolves. You should use this Stored-input file when running TABLO.]

2. Reporting Memory Use

After Release 9.0 (April 2005), TABLO-generated programs and GEMSIM report detailed information about the amount of memory they need in various places during their run. In particular, see the end of the LOG file from any run for memory information.

After Release 6.0-001 (March 1999), Fortran 90 TABLO-generated programs and GEMSIM report accurate information about the amount of memory that they need. You can search for "TGMEM" in the LOG file to find this information. More details are given in section 13.4 of GPD-3 (Release 8.0 document).

3. Share_Memory (Release 9 or Later)

With Release 9 and later, you have the option of adding the statement

share_memory = yes ;

to your Command file. Then GEMSIM and TABLO-generated programs attempt to release memory which is not needed for the current part of the calculation. This usually reduces the maximum memory requirement. See section 4.2 of the Release 9.0 version of GPD-5 for more details.

If you include the above statement and are using the LF95 (or LF) Fortran compilers, we recommend that you set the Environment variable FLIB_DVT_BUFFER equal to 0. You can do this by following the steps for setting Environment variable GPDIR set out in section 3.9.1 of the Release 9.0 version of GPD-6.

4. More Condensation

If there is not enough memory after you have condensed the model, maybe you need to condense the model further.

(a) Perhaps you can omit other exogenous variables which you are not going to shock.
(b) Perhaps you can make more substitutions or backsolves.
(c) Perhaps you need to convert some backsolves to substitutions.

See section 3.9 of GPD-1 for more about condensation.

5. Purchasing more memory

If you are considering purchasing more memory, you should take note of possible memory limits.

Go back to
GEMPACK FAQ Page