Modeling of the self-sum frequency mixing laser