In practice, the deformation of the parts of engine valve rocker pressure riveting machine may influence the riveting accuracy and the analysis with multirigid body model cannot meet the accuracy requirements. Therefore, ANSYS and ADAMS were used to build a rigidflexible coupling model based on virtual prototyping technology and dynamic simulation was made. In order to solve the problem that it was difficult to simulate a system included plastically deformed objects, DEFORM3D was used to analyze the deformation of rivet in the riveting process and the “die loadcompressed length of rivet”curve was gotten as the stiffness of a nonlinear spring to replace the rivet in ADAMS.This method makes the simulation close to actual situation and makes the results have guidance for control.