Since Sage 3.0.4 we hit the following bug with a probability of about 1.5%:
sage -t -long devel/sage/sage/modular/ssmod/ssmod.py **********************************************************************
File "/scratch/mabshoff/release-cycle/sage-3.0.4-vg/tmp/ssmod.py", line 14:
sage: D[:3]
Expected:
[
(Vector space of degree 33 and dimension 1 over Finite Field of size 97
Basis matrix:
[ 0 0 0 1 96 96 1 96 96 0 2 96 96 0 1 0 1 2 95 0 1 1 0 1 0 95 0 96 95 1 96 0 2], True),
(Vector space of degree 33 and dimension 1 over Finite Field of size 97
Basis matrix:
[ 0 1 96 75 16 81 22 17 17 0 0 80 80 1 16 40 74 0 0 96 81 23 57 74 0 0 0 24 0 23 73 0 0], True),
(Vector space of degree 33 and dimension 1 over Finite Field of size 97
Basis matrix:
[ 0 1 96 90 90 7 7 6 91 0 0 91 6 13 7 0 91 0 0 84 90 6 0 6 0 0 0 90 0 91 7 0 0], True)
]
Got:
[
(Vector space of degree 33 and dimension 0 over Finite Field of size 97
Basis matrix:
[], True),
(Sparse vector space of degree 33 and dimension 3 over Finite Field of size 97
Basis matrix:
[ 1 0 82 0 69 38 37 68 83 45 62 73 6 50 89 55 49 50 23 76 93 82 94 59 69 92 4 60 75 42 79 22 65]
[ 0 1 17 0 42 91 33 6 42 67 2 67 64 39 0 61 7 44 30 49 71 46 78 76 9 0 27 38 65 23 79 58 39]
[ 0 0 0 1 21 84 0 6 45 56 22 24 92 50 52 12 84 30 87 86 87 60 45 60 59 47 6 67 31 5 6 20 46], True),
(Sparse vector space of degree 33 and dimension 12 over Finite Field of size 97
Basis matrix:
[ 1 0 0 0 0 0 0 0 0 0 0 0 94 63 82 59 38 20 41 78 81 74 35 84 79 20 46 55 73 74 81 38 1]
[ 0 1 0 0 0 0 0 0 0 0 0 0 76 3 0 54 73 57 83 82 77 90 33 10 5 29 63 61 21 52 54 60 39]
[ 0 0 1 0 0 0 0 0 0 0 0 0 62 14 50 40 66 15 45 74 64 26 89 38 96 1 24 74 7 72 28 13 85]
[ 0 0 0 1 0 0 0 0 0 0 0 0 48 53 95 37 31 13 5 20 48 15 29 32 91 18 82 68 8 40 11 21 95]
[ 0 0 0 0 1 0 0 0 0 0 0 0 5 18 4 51 21 60 61 56 92 5 48 5 37 95 66 16 90 20 75 64 35]
[ 0 0 0 0 0 1 0 0 0 0 0 0 31 72 80 95 51 87 81 74 64 27 11 38 0 42 80 13 87 37 54 54 45]
[ 0 0 0 0 0 0 1 0 0 0 0 0 57 52 45 86 67 14 39 36 72 10 36 51 17 72 9 22 49 60 37 7 53]
[ 0 0 0 0 0 0 0 1 0 0 0 0 26 8 68 59 45 17 16 85 41 33 54 8 87 7 57 43 16 13 22 94 49]
[ 0 0 0 0 0 0 0 0 1 0 0 0 90 46 72 36 55 53 44 69 96 3 25 74 62 38 77 59 44 24 79 85 84]
[ 0 0 0 0 0 0 0 0 0 1 0 0 22 8 7 38 82 95 3 35 47 29 70 4 69 32 27 82 78 46 55 22 68]
[ 0 0 0 0 0 0 0 0 0 0 1 0 62 3 91 64 36 36 53 17 44 68 49 12 54 46 37 62 61 17 5 2 23]
[ 0 0 0 0 0 0 0 0 0 0 0 1 73 81 58 7 50 30 1 27 42 54 31 6 23 4 1 85 55 72 32 60 28], True)
]
**********************************************************************
Some likely culprit here is charpoly mod p.
See also https://groups.google.com/group/sage-devel/t/4a94d64a83cb4adc
Cheers,
Michael