Subject: Re: [FFC-dev] Error while compiling a form file

From: Reza Farrahi Moghaddam <[email-masked]>
Date: Mon, 21 Apr 2008 08:53:24 -0700 (PDT)

Here is the last part of log with "-d1" option. The last line is "MemoryError". 
 
Any suggestion?
 
2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 0], [2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0], [2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 1], [2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 0], [2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0], [2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1], [2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0], [2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1]]
    Auxiliary multi index: rank = 1 dims = [2] indices = [[0], [1]]
    Computing tensor representation for term 228... factorized
Traceback (most recent call last):
  File "/home/rfarahi/linux-opt/bin/ffc", line 180, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/rfarahi/linux-opt/bin/ffc", line 107, in main
    execfile(outname, ns)
  File "NonlinearPoisson.py", line 90, in <module>
    compile([a, L, M, element], "NonlinearPoisson", "tensor", "dolfin", {'quadrature_points=': False, 'blas': False, 'precision=': '15', 'optimize': False})
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/compiler.py", line 67, in compile
    (form_data, form_representation) = __compile_forms(forms, prefix, representation, language, options)
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/compiler.py", line 98, in __compile_forms
    form_representation = compute_form_representation(form_data, representation, int(options["quadrature_points="]))
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/compiler.py", line 199, in compute_form_representation
    form_representation = Representation(form_data, num_quadrature_points)
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/representation/tensor/tensorrepresentation.py", line 50, in __init__
    self.cell_tensor = self.__compute_cell_tensor(form)
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/representation/tensor/tensorrepresentation.py", line 72, in __compute_cell_tensor
    terms = self.__compute_terms(monomials, factorization, Integral.CELL, None, None)
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/representation/tensor/tensorrepresentation.py", line 166, in __compute_terms
    G = GeometryTensor(m)
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/representation/tensor/geometrytensor.py", line 35, in __init__
    debug("Secondary multi index: " + str(self.a), 1)
  File "/home/rfarahi/linux-opt/lib/python2.5/site-packages/ffc/compiler/representation/tensor/multiindex.py", line 48, in __repr__
    return "rank = %d dims = %s indices = %s" % (self.rank, str(self.dims), str(self.indices))
MemoryError
[1]+  Done                    gedit

-----------------------------------------------------------------------------------------------------------------------------

----- Original Message ----
From: Reza Farrahi Moghaddam <[email-masked]>
To: ffc-dev fenics <[email-masked]>
Sent: Saturday, April 19, 2008 3:41:11 PM
Subject: [FFC-dev] Error while compiling a form file

I got an error on compiling a FORM file using FFC. The "a" and "l" have several terms. After a long time, it stopped on the computing tensor rep of 229 term. Is it a low disk space error? or memory error?
 
The form file is attached.
 
Any advice?
 
Here is the end part of the log of "ffc -l dolfin NonlinearPoisson.form":
.
.
.
    Computing tensor representation for term 1067... factorized
    Computing tensor representation for term 1068... factorized
    Computing tensor representation for term 1069... factorized
    
  Computing exterior facet tensors
  --------------------------------
  
    No terms
    
  Computing interior facet tensors
  --------------------------------
  
    No terms

Compiler phase 3: Computing optimization
----------------------------------------
  Not implemented
  
Compiler phase 4: Generating code
---------------------------------
  Generating code for finite elements... done
  Generating code for finite dof maps... done
  Generating code for cell integrals... done
  Generating code for exterior facet integrals... done
  Generating code for interior facet integrals... done
  Generating code for form... done
  
Phase 1: Analyzing form
-----------------------
  Checking validity of form... ok
  Reassigning form indices... done
  Checking validity of form... ok
  Simplifying form... Reassigning form indices...
  done
  Reassigning form indices... done
  Reassigning form indices... done
  done
  Checking validity of form... ok
  Determining the range of the indices... done
  Checking validity of form... ok
  Extracting form data... done
  
  Rank of form: 1
  Coefficients: 4
  Arguments:    5
  Terms:        871
  
Compiler phase 2: Computing form representation
-----------------------------------------------
  Computing cell tensor
  ---------------------
  
    Number of terms to consider: 871
    Computing factorization... done
    Number of terms to compute: 101
    Computing tensor representation for term 0... done
.
.
.
    Computing tensor representation for term 225... factorized
    Computing tensor representation for term 226... factorized
    Computing tensor representation for term 227... factorized
    Computing tensor representation for term 228... factorized
    Computing tensor representation for term 229... factorized
*** 
*** To get more information about this error, rerun ffc with the option -d1.

Looking for the perfect gift? Give the gift of Flickr!

      __________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/