The error that you are seeing occurs in AMPL, while it is generating the problem instance. AMPL runs out of memory before it can send the problem to CPLEX. Thus, changing the CPLEX options cannot help in this situation.
The "memory used" shown in the error message is slightly less than 2GB. If you have a lot more memory than that, you are probably running a 32-bit version of AMPL, and you will need to switch to a 64-bit version to take advantage of all your computer's memory. (The AMPL command "option version;" provides some information about the version you have.)
If AMPL is using much more memory than you expect, see the following link for help in determining what part of your model is using all of that memory:
http://www.ampl.com/FAQ/index.html#WhatshouldIdoifIsuspectthatthereisinsufficientmemoryformyAMPLsession
Bob Fourer
am...@googlegroups.com
=======