4. Modeling the rupture process of the mainshock