I am trying to perform Gaussian optimization of a polymeric structure with 250 atoms. It is made up of only C and H atoms with several aromatic phenyl ring interlinked by C=C. Every time I am trying to optimize it is showing me a memory exceeded error. I have also given 50 GB as %mem but still no use. Can anyone help?