Separate log and history files with different mpi.