A user can set the maximum memory to be used by the AM1 optimisation which defaults to 1Gb.
elbow.builder --smiles O --opt --memory 4Gb
or
elbow.builder --smiles O --opt --memory 4000Mb
will make the maximum equal to 4 gigabytes (more or less).