Run out of memory in Forcite.Energy

Hello everyone,

I meet an error "Ran out of memory in Forcite.Energy (function/property "Run")" with this script:

my \\\$results = Modules->Forcite->Energy->Run(\\\$doc, Settings(
    Quality => 'Medium', 
    '3DPeriodicElectrostaticSummationMethod' => 'Ewald', 
    CurrentForcefield => 'COMPASSIII'));
I checked that RAM has sufficient space and It is okay when I run by GUI. The error only occurs in Perl code.

Thank you very much.