sfepy/sfepy — Issue #77: tests fail
Author: rc
Created: 2012-01-30 10:25:34+00:00
State: open

the latest git version doesn't pass all tests for me:

$ ./runTests.py --debug tests/test_linear_solvers.py
<<< tests/test_linear_solvers.py
sfepy: left over: ['__builtins__', '__file__', '__name__', 'TestCommon',
'_filename', 'output_name', '__doc__']
{'region_Gamma_Right__0': Struct:Gamma_Right, 'region_Omega__1':
Struct:Omega, 'region_Gamma_Left__2': Struct:Gamma_Left}
sfepy: reading mesh (database/phono/cube_cylinder.mesh)...
sfepy: ...done in 0.72 s
sfepy: setting up domain edges...
sfepy: ...done in 0.69 s
sfepy: setting up domain faces...
sfepy: ...done in 0.52 s
sfepy: creating regions...
sfepy: leaf Gamma_Right region_Gamma_Right__0
sfepy: leaf Omega region_Omega__1
sfepy: leaf Gamma_Left region_Gamma_Left__2
sfepy: ...done in 0.95 s
sfepy: equation "Temperature":
sfepy: dw_laplace.i1.Omega( coef.val, s, t ) = 0
sfepy: describing geometries...
sfepy: ...done in 0.05 s
sfepy: setting up dof connectivities...
sfepy: ...done in 0.00 s
sfepy: using solvers:
nls: newton
ls: ls101
sfepy: matrix shape: (9511, 9511)
sfepy: assembling matrix graph...
sfepy: ...done in 0.09 s
sfepy: matrix structural nonzeros: 132239 (1.46e-03% fill)
sfepy: updating materials...
sfepy: coef
sfepy: ...done in 0.00 s
>>> test instance prepared (1 test(s))
... dls100 ls.umfpack
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: rezidual: 0.02 [s]
sfepy: solve: 2.45 [s]
sfepy: matrix: 0.06 [s]
sfepy: nls: iter: 1, residual: 4.135653e-15 (rel: 1.152683e-15)
... rezidual: 0.02 [s]
... solve: 2.45 [s]
... matrix: 0.06 [s]
... condition: 0, err0: 3.588e+00, err: 4.136e-15
... ls101 ls.pyamg ruge_stuben_solver
... matrix size: (9511, 9511)
... nnz: 132239
... solver failed:
... cannot import pyamg!
... ls102 ls.pyamg smoothed_aggregation_solver
... matrix size: (9511, 9511)
... nnz: 132239
... solver failed:
... cannot import pyamg!
... ls110 ls.scipy_iterative cg
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: rezidual: 0.02 [s]
sfepy: solve: 0.27 [s]
sfepy: matrix: 0.06 [s]
sfepy: nls: iter: 1, residual: 3.288802e-12 (rel: 9.166497e-13)
... rezidual: 0.02 [s]
... solve: 0.27 [s]
... matrix: 0.06 [s]
... condition: 0, err0: 3.588e+00, err: 3.289e-12
... ls111 ls.scipy_iterative bicgstab
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: rezidual: 0.02 [s]
sfepy: solve: 0.46 [s]
sfepy: matrix: 0.08 [s]
sfepy: nls: iter: 1, residual: 3.317155e-12 (rel: 9.245522e-13)
... rezidual: 0.02 [s]
... solve: 0.46 [s]
... matrix: 0.08 [s]
... condition: 0, err0: 3.588e+00, err: 3.317e-12
... ls112 ls.scipy_iterative qmr
... matrix size: (9511, 9511)
... nnz: 132239
sfepy: nls: iter: 0, residual: 3.587850e+00 (rel: 1.000000e+00)
sfepy: rezidual: 0.03 [s]
sfepy: solve: 0.81 [s]
sfepy: matrix: 0.05 [s]
sfepy: nls: iter: 1, residual: 3.529517e-12 (rel: 9.837413e-13)
... rezidual: 0.03 [s]
... solve: 0.81 [s]
... matrix: 0.05 [s]
... condition: 0, err0: 3.588e+00, err: 3.530e-12
... ls120 ls.petsc cg icc
... matrix size: (9511, 9511)
... nnz: 132239
... solver failed:
... cannot import petsc4py!
... solution times (rezidual norms):
... 0.27 [s] (3.289e-12) : ls110 ls.scipy_iterative cg
... 0.46 [s] (3.317e-12) : ls111 ls.scipy_iterative bicgstab
... 0.81 [s] (3.530e-12) : ls112 ls.scipy_iterative qmr
... 2.45 [s] (4.136e-15) : dls100 ls.umfpack
>>> <type 'exceptions.IndexError'>
Traceback (most recent call last):
File "./runTests.py", line 222, in <module>
main()
File "./runTests.py", line 210, in main
stats = run_test( test_filename, options )
File "./runTests.py", line 111, in run_test
ok, n_fail, n_total = test.run( options.debug )
File "/home/ondra/repos/sfepy/sfepy/base/testing.py", line 38, in run
ret = test_method()
File "tests/test_linear_solvers.py", line 212, in test_solvers
self.report( '%.2f [s]' % row[1], '(%.3e)' % row[2], ':', row[0] )
IndexError: list index out of range

Migrated from http://code.google.com/p/sfepy/issues/detail?id=73

earlier comments

robert.cimrman said, at 2009-01-21T07:42:48.000Z:

I cannot reproduce it (tried both with/without petsc4py) - could you verify your
version is up-to-date, and print also what is in 'row' prior to the failing line?

ondrej.certik said, at 2009-02-20T10:11:20.000Z:

Yes, it seems to be working.

$ ./runTests.py
<<< directory: tests, test files: 26
tests/test_assembling.py
+++ test_vector_matrix: ok
tests/test_base.py
+++ test_struct_add: ok
+++ test_struct_i_add: ok
tests/test_elasticity_small_strain.py
+++ test_get_solution: ok
+++ test_linear_terms: ok
tests/test_input_biot.py
+++ test_input: ok
tests/test_input_hyperelastic.py
+++ test_input: ok
tests/test_input_kostka.py
+++ test_input: ok
tests/test_input_le.py
+++ test_input: ok
tests/test_input_navier_stokes.py
+++ test_input: ok
tests/test_input_octahedron.py
nodes: 100% |############################################| Time: 00:00:00
elements: 100% |#########################################| Time: 00:00:00
+++ test_input: ok
tests/test_input_pfdpm_permeability.py
+++ test_input: ok
tests/test_input_piezo.py
+++ test_ebc: ok
+++ test_input: ok
tests/test_input_poisson.py
+++ test_input: ok
tests/test_input_sinbc.py
+++ test_input: ok
tests/test_input_time_poisson.py
+++ test_input: ok
tests/test_io.py
+++ test_recursive_dict_hdf5: ok
+++ test_sparse_matrix_hdf5: ok
tests/test_lcbc_2d.py
+++ test_linear_rigid_body_bc: ok
tests/test_lcbc_3d.py
+++ test_linear_rigid_body_bc: ok
tests/test_msm_laplace.py
+++ test_msm_laplace: ok
tests/test_msm_symbolic.py
/var/lib/python-support/python2.5/sympy/matrices/matrices.py:1422: UserWarning:
Deprecated: use zeros() instead.
warnings.warn( 'Deprecated: use zeros() instead.' )
+++ test_msm_symbolic_diffusion: ok
+++ test_msm_symbolic_laplace: ok
tests/test_parsing.py
+++ test_parse_equations: ok
+++ test_parse_regions: ok
tests/test_periodic_bc_2d.py
+++ test_pbc: ok
tests/test_periodic_bc_3d.py
+++ test_pbc: ok
tests/test_quadratures.py
+++ test_problem_creation: ok
tests/test_term_consistency.py
+++ test_consistency_d_dw: ok
tests/test_linear_solvers.py
+++ test_solvers: ok
tests/test_meshio.py
nodes: 100% |############################################| Time: 00:00:00
elements: 100% |#########################################| Time: 00:00:01
+++ test_read_meshes: ok
+++ test_compare_same_meshes: ok
+++ test_read_dimension: ok
26 test file(s) executed in 48.91 s, 0 failure(s) of 34 test(s)