Numerical Simulation of the Development of Density Waves in a Long Pipeline and the Dynamic System B