Dear axel and steve,
I would appreciate if you send a comment on this issue.
The strange thing about the problem is that if I put the commands in a just one run stage (as below), the “velocity set … command” works and the rigid group moves!!!
It seems there is a bug in LAMMPS.