Thank you. Just in case somebody has a system similar to mine (actually it worked on systems from two different universities):
module load gcc/5.3.0
module load openmpi/3.1.4
git clone … as in https://github.com/stan-dev/cmdstan/wiki/Getting-Started-with-CmdStan
in make/local
STAN_MPI=true
CXX=mpicxx
TBB_CXX_TYPE=gcc
make build
3 Likes