Resonance oscillations in mechanical systems