the submarine sank with 25 percent of its reserve of high-pressure air unused , with the diesel generator operating , with an operating electric power system , with working damage control equipment , and with functioning electric lighting .