I believe you are using Linux Ubuntu. I also had the same problem, I couldn’t solve it. There is a post here on the Discourse (Code not running in parallel) where they comment on incompatibilities between mpi, openmpi, etc … on ubuntu. On MacOS it runs very well.