Enable the boolProp testingCheatsEnabled true code, then hold [Shift] and click on your Sim. Select "Spawn", and then choose "Tombstone of L and D". You can now choose from several options. Select "Make pregnant by "your Sim's name" and have a baby with yourself. Then, select "Speed up my pregnancy" and your Sim will have its baby in less than a day.