Hello again Edo, i tried to re-install the nwchem code with your recommendation (un-setting COPTIMZIE and FOPTIMIZE before the compilation) but unfortunately the problem persists. I will be waiting for another suggestion.
By the way, the code that i am trying to compile is the one built in January.