Out of memory error

Please encapsulate your code with ``` to make it readable.
Project allows for solver options, which you can see by opening an IPython shell and run from dolfin import project and project?. Then you obtain the following:

project(
    ['v', 'V=None', 'bcs=None', 'mesh=None', 'function=None', "solver_type='lu'", "preconditioner_type='default'", 'form_compiler_parameters=None'],
)
Source:   
def project(v, V=None, bcs=None, mesh=None,
            function=None,
            solver_type="lu",
            preconditioner_type="default",
            form_compiler_parameters=None):