Modeling spurt and stress oscillations in flows of molten polymers