compiles and runs with OpneMPI, but hangs in termination detection