This paper presents a numerical model of the rotational and lateral dynamics of the piston (secondary motion) and piston slap in mixed lubrication. Piston dynamic behavior, frictional and impact forces are predicted as functions of crank angle. The model considers piston skirt surface waviness, roughness, skirt profile, thermal and mechanical deformations. The model considers partially-flooded skirt and calculates the pressure distributions and friction in the piston skirt region for both hydrodynamic and boundary lubrication. Model predictions are compared with measurements of piston position using gap sensors in a single-cylinder engine and the comparison between theory and measurement shows remarkable agreement.