To check that whether your ulimit work properly when you ssh, you should use the below command. To set ulimit, you may want to check on blog entry
Encountering Segmentation Fault, Bus Error or No output $ ssh node00 ulimit -l
To check that ulimits is set correctly for your mpirun
$ mpirun -np 8 bash -c ulimit -l
The 2 commands output should be similar.