Section 145. If any county, city or town shall neglect, for sixty days, to comply with the requirements of section one hundred and forty-two, unless released therefrom by order of the department of telecommunications and energy, or unless prevented by the failure of any railroad corporation to comply with the requirements of section one hundred and forty-three, or if any railroad corporation shall neglect, for sixty days after the expiration of the four months prescribed in section one hundred and forty-three, to comply with the requirements thereof, it shall forfeit one dollar for each day during which such neglect continues, to be recovered in an action of tort brought in the name and for the use of the commonwealth by the attorney general or by the district attorney of the district where the violation occurred.