Dynamic modeling of a spot-welded carbody component