Dear All,

Today I managed to install sage 4.7.2 from source on Suse Linux Enterprise 
Server (sles)  11 SP 1. Almost all doctest pass except for:

The following tests failed:

        sage -t  devel/sage/sage/sandpiles/sandpile.py # Time out
        sage -t  devel/sage/sage/schemes/elliptic_curves/heegner.py # 171 
doctests failed
        sage -t 
 devel/sage/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py # 13 
doctests failed
        sage -t  devel/sage/sage/modules/free_module.py # 1 doctests failed


The timeout is I guess not a real problem, but the errors in the three 
other ones are memory related. In heegner.py 
and quadratic_form__ternary_Tornaria.py there are a lot of errors of the 
form:

**********************************************************************
File 
"/home/sageadmin/sage-4.7.2/devel/sage/sage/schemes/elliptic_curves/heegner.py",
 
line 4675:
    sage: H.optimal_embeddings(-7, 1, R)
Exception raised:
    Traceback (most recent call last):
      File "/home/sageadmin/sage-4.7.2/local/bin/ncadoctest.py", line 1231, 
in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/home/sageadmin/sage-4.7.2/local/bin/sagedoctest.py", line 38, 
in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, 
compileflags)
      File "/home/sageadmin/sage-4.7.2/local/bin/ncadoctest.py", line 1172, 
in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_183[4]>", line 1, in <module>
        H.optimal_embeddings(-Integer(7), Integer(1), R)###line 4675:
    sage: H.optimal_embeddings(-7, 1, R)
      File 
"/home/sageadmin/sage-4.7.2/local/lib/python/site-packages/sage/schemes/elliptic_curves/heegner.py",
 
line 4686, in optimal_embeddings
        reps = Q.representation_vector_list(n+1)[-1]
      File 
"/home/sageadmin/sage-4.7.2/local/lib/python/site-packages/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py",
 
line 574, in representation_vector_list
        n, m, vs = self._pari_().qfminim(2*(B-1), maxvectors)
      File "gen.pyx", line 10073, in sage.libs.pari.gen._pari_trap 
(sage/libs/pari/gen.c:47644)
      File "gen.pyx", line 9423, in 
sage.libs.pari.gen.PariInstance.allocatemem (sage/libs/pari/gen.c:44254)
      File "gen.pyx", line 9938, in sage.libs.pari.gen.init_stack 
(sage/libs/pari/gen.c:46996)
    MemoryError: Unable to allocate 1024000000 bytes memory for PARI.
**********************************************************************

and of the form:

**********************************************************************
File 
"/home/sageadmin/sage-4.7.2/devel/sage/sage/schemes/elliptic_curves/heegner.py",
 
iled example:
    sig_on_count()
Expected:
    0
Got:
    32
**********************************************************************

I think 1024000000 byte wich is about 1 gigabyte is a bit to much to 
allocate just at once. So the main question is where does this number come 
from and why is it so huge?


The test in free module.py fails as follows:
sage -t  "devel/sage/sage/modules/free_module.py"           
**********************************************************************
File "/home/sageadmin/sage-4.7.2/devel/sage/sage/modules/free_module.py", 
line 2128:
    sage: I = K.basis_matrix()
Exception raised:
    Traceback (most recent call last):
      File "/home/sageadmin/sage-4.7.2/local/bin/ncadoctest.py", line 1231, 
in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/home/sageadmin/sage-4.7.2/local/bin/sagedoctest.py", line 38, 
in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, 
compileflags)
      File "/home/sageadmin/sage-4.7.2/local/bin/ncadoctest.py", line 1172, 
in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_61[5]>", line 1, in <module>
        I = K.basis_matrix()###line 2128:
    sage: I = K.basis_matrix()
      File 
"/home/sageadmin/sage-4.7.2/local/lib/python/site-packages/sage/modules/free_module.py",
 
line 2137, in basis_matrix
        A = MAT.identity_matrix()
      File 
"/home/sageadmin/sage-4.7.2/local/lib/python/site-packages/sage/misc/cachefunc.py",
 
line 555, in __call__
        w = self._cachedmethod._instance_call(self._instance, *args, **kwds)
      File 
"/home/sageadmin/sage-4.7.2/local/lib/python/site-packages/sage/misc/cachefunc.py",
 
line 778, in _instance_call
        return self._cachedfunc.f(inst, *args, **kwds)
      File 
"/home/sageadmin/sage-4.7.2/local/lib/python/site-packages/sage/matrix/matrix_space.py",
 
line 1010, in identity_matrix
        A = self.zero_matrix().__copy__()
      File "matrix_rational_dense.pyx", line 520, in 
sage.matrix.matrix_rational_dense.Matrix_rational_dense.__copy__ 
(sage/matrix/matrix_rational_dense.c:8044)
      File "matrix_rational_dense.pyx", line 149, in 
sage.matrix.matrix_rational_dense.Matrix_rational_dense.__cinit__ 
(sage/matrix/matrix_rational_dense.c:5077)
    MemoryError
**********************************************************************

So it probably also wants to allocate to much memory, but the error message 
is a bit unhelpfull this time.

For completeness. I originally doctested with sage with 4 threads in 
parralel, but the failing is not because of this since I got the same 
results when running the test seperately. The memory usage of the machine 
after having run all tests:
sageadmin@sage:~> free -m
             total       used       free     shared    buffers     cached
Mem:          2008       1953         54          0         10        387
-/+ buffers/cache:       1555        452
Swap:            0          0          0


I hope someone can shed some light on this extreme merory usage for pari.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to