Did you do git lfs clone https://bitbucket.org/fenics-project/dolfin.git
When I do the following:
git lfs clone https://bitbucket.org/fenics-project/dolfin.git
WARNING: 'git lfs clone' is deprecated and will not be updated
with new flags from 'git clone'
'git clone' has been updated in upstream Git to have comparable
speeds to 'git lfs clone'.
Cloning into 'dolfin'...
remote: Counting objects: 239548, done.
remote: Compressing objects: 100% (67375/67375), done.
remote: Total 239548 (delta 183449), reused 216734 (delta 166787)
Receiving objects: 100% (239548/239548), 50.06 MiB | 11.20 MiB/s, done.
Resolving deltas: 100% (183449/183449), done.
100% (19/19), 4.0 MB | 1.7 MB/s
fenics@efb4cca4c914:~$ cd dolfin/python/demo/undocumented/contact-vi-tao/
fenics@efb4cca4c914:~/dolfin/python/demo/undocumented/contact-vi-tao$ python3 demo_contact-vi-tao.py
0 TAO, Function value: 0., Residual: 0.117024
1 TAO, Function value: -0.0812063, Residual: 1.17942
2 TAO, Function value: -0.277678, Residual: 1.38836
3 TAO, Function value: -0.400042, Residual: 1.53351
4 TAO, Function value: -0.574979, Residual: 0.813085
5 TAO, Function value: -0.663451, Residual: 0.375458
6 TAO, Function value: -0.709755, Residual: 0.448136
7 TAO, Function value: -0.71262, Residual: 0.0058979
8 TAO, Function value: -0.712621, Residual: 5.27882e-06
9 TAO, Function value: -0.712621, Residual: 1.94682e-11
Tao Object: 1 MPI processes
type: tron
Total PG its: 27, PG tolerance: 0.001
TaoLineSearch Object: 1 MPI processes
type: gpcg
GPCG Line search maximum function evaluations=30
tolerances: ftol=0.05, rtol=0., gtol=0.
total number of function evaluations=0
total number of gradient evaluations=0
total number of function/gradient evaluations=1
using variable bounds
Termination reason: 1
KSP Object: 1 MPI processes
type: stcg
maximum iterations=10000, initial guess is zero
tolerances: relative=1e-05, absolute=1e-50, divergence=10000.
left preconditioning
using UNPRECONDITIONED norm type for convergence test
PC Object: 1 MPI processes
type: ilu
out-of-place factorization
0 levels of fill
tolerance for zero pivot 2.22045e-14
matrix ordering: natural
factor fill ratio given 1., needed 1.
Factored matrix follows:
Mat Object: 1 MPI processes
type: seqaij
rows=3400, cols=3400
package used to perform factorization: petsc
total: nonzeros=45886, allocated nonzeros=45886
total number of mallocs used during MatSetValues calls=0
using I-node routines: found 1744 nodes, limit used is 5
linear system matrix = precond matrix:
Mat Object: 1 MPI processes
type: seqaij
rows=3400, cols=3400
total: nonzeros=45886, allocated nonzeros=45886
total number of mallocs used during MatSetValues calls=0
using I-node routines: found 1744 nodes, limit used is 5
total KSP iterations: 302
Active Set subset type: subvec
convergence tolerances: gatol=1e-08, steptol=0., gttol=0.
Residual in Function/Gradient:=1.94682e-11
Objective value=-0.712621
total number of iterations=9, (max: 100)
total number of function/gradient evaluations=45, (max: 10000)
total number of Hessian evaluations=9
Solution converged: ||g(X)|| <= gatol
*** Warning: Matplotlib backend does not support 'wireframe' kwarg yet. Ignoring it...
I have no issues with running the demo