Stable trace formula: Elliptic singular terms