At a guess –
When compiling tmv, you’re using GCC of (at least) version 4.9, which has support for OpenMP 4.0 (this is the GOMP_4.0). This requires a corresponding libgomp.so.1 library, which should be shipped with GCC.
However, you also have this /usr/local/grid/emi-3/WN/SL6_64/3.10.0-1.2/usr/lib64/ directory on your $LD_LIBRARY_PATH. That contains an old version of libgomp, which doesn’t support OpenMP 4.0. When you try to execute code that depends on tmv, the linker is finding this libgomp, rather than the one corresponding to your compiler, and then things break.
I don’t know what’s in the /usr/local/grid/etc directory or what you might need it for: it’s not something that LSST supplied. Can you remove it from your environment and trying again?