Model of discharge lamps with magnetic ballast