[lammps-users] ERROR: Illegal communicate command

That version is nearly a year old - the manual you are reading is for
the current version, so try that one.

Steve