Massachusetts regulators are launching a “comprehensive audit” to dissect ballooning costs stemming from how the state’s largest gas utility company replaces aging, leaky pipes across its vast network.

The review, a first of its kind, is kicking off in the face of “substantial evidence” of National Grid’s “management deficiencies” that are “leading to cost overruns,” the Department of Public Utilities wrote in a 643-page order this week tied to a larger proceeding evaluating the company’s bid for higher natural gas rates.

The DPU blasted National Grid’s spending under the controversial Gas System Enhancement Program, an initiative started in 2014 that sought to incentivize the state’s six gas companies to fix polluting leaky pipes by letting them get reimbursed by ratepayers on an accelerated basis for repairs and replacements.

Money spent on pipe replacement through GSEP, however, has risen dramatically over the last decade — and the DPU said National Grid is the prime culprit.

“An audit will enable a fresh look at the Company’s practices to assess why the Company’s GSEP costs have risen so rapidly and, in many instances, far exceed those of the other” utilities, the agency wrote in its order.

More Context