I am trying to draw a simple crystal structure of Ca2N using Gaussian09 and GaussView 5.

I have taken a DFT PBEPBE and a basis set of 631-G. And assigning a memory as required by the system (I have actually tried several memory allocation options). But everytime, I am getting an error like:

Not enough memory for dipole integrals, short by 112306552
Dimensions of / B2/ exceeded in AtP2B2.

I have been stuck with this for quite sometime and need some help. I am just starting off with Gaussian and finding my feet.

Thanks in advance.