What you have is a long restricting orifice. The flow will go sonic very fast -- below 40 psia line pressure. Model the flow using restricting flow calculations.
Use the 3% rule for gas pipeline. These require "pop action" safety valves. For a liquid pipeline using linear spring safety valves, you simply have to perform a system analysis to insure the pipeline is not over pressured.