Total U.S. debt has topped $40 trillion for the first time, the Treasury Department said on Wednesday, drawing fresh warnings that a fiscal crisis is brewing as ballooning costs for social safety-net programs and interest payments far outstrip revenues held back by tax cuts.