Hi Mohammad,
This is because when you initially created the plane that is associated with the compressor, it has an initial Z coordinate of 0.5. This is a relative position that never changes, meaning by default the compressor exists as a conceptual object located at (0,0,0), and its geometry (a plane) has a relative coordinate (0,0,0.5) to it. Then when you move the compressor to the Z coordinate of particle_max_z, the plane is still 0.5 above the particle bed.
So you should just instead add that plane with an initial position vector of (0,0,0), not (0,0,0.5).
Also I'd like to add that a coefficient of rolling resistance of 1.0 seems to be too large to be physical. You should make sure it is intended.
Thank you,
Ruochun