Title: A mathematical model of a ship's power system