When I delete the line DUMPMASSCHARGE from my input it does work.
+++ PLUMED error
+++ at Action.cpp:242, function void PLMD::Action::error(const string&) const
+++ message follows +++
ERROR in input to action COM with label com1 : You are trying to compute a CENTER or COM but masses are not known.
If you are using plumed driver, please use the --mc option
[liujy08:41967] *** Process received signal ***
[liujy08:41967] Signal: Aborted (6)
[liujy08:41967] Signal code: (-6)
[liujy08:41967] [ 0] /lib64/libpthread.so.0(+0xf5d0)[0x2b8b1fdde5d0]
[liujy08:41967] [ 1] /lib64/libc.so.6(gsignal+0x37)[0x2b8b20021207]
[liujy08:41967] [ 2] /lib64/libc.so.6(abort+0x148)[0x2b8b200228f8]
[liujy08:41967] [ 3] /lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x165)[0x2b8b1f6107d5]
[liujy08:41967] [ 4] /lib64/libstdc++.so.6(+0x5e746)[0x2b8b1f60e746]
[liujy08:41967] [ 5] --------------------------------------------------------------------------
mpiexec noticed that process rank 4 with PID 0 on node liujy08 exited on signal 6 (Aborted).
--------------------------------------------------------------------------
It tells me that I need to provide a file containing the mass and charges of the molecule I am trying to define the center of MASS. So, I added the line DUMPMASSCHARGE in my plumed input file.
I don't know if there is any other way to solve it besides this one or how can I obtain a file containing the mass and charges of the molecule, If any suggestion is there then please let me know.