Prototype of nonlinear beam dynamics with contact