Since Gaussian performance is often limited by memory, it is important to set memory limits correctly. The Gaussian directive %Mem and the SLURM options --mem shouldn't be confused: