To deduce the variation in train pipe pressure at different positions in long-formation freight trains during braking, a simplified analytical model and an AMESim simulation model were developed based on gas flow equations. These models simulate a freight train controlled by a single vehicle and equipped with 120 brakes. Models structures and key parameters were calibrated using short-formation experiment data and then extrapolated to predict the brake response of train pipes at different positions in long formation. The results show that the analytical model, after parameter extrapolation, closely aligns with experiment data, with a maximum error of less than 5 %. The model can achieve rapid prediction of pressure changes in the train pipe. The AMESim model demonstrates even higher accuracy, with a maximum error of less than 3 %, particularly effectively predicting the brake responses at the middle and rear sections of the train pipe in long formations.