Found it! See here, known bug in gfortran 4.1 on OS-X Intel http://gcc.gnu.org/ml/gcc-bugs/2006-03/msg01680.html Now trying to find the right fortran compiler...