Batch processing to perform Trend (Spatial Analyst)

I have a problem with batch processing by using python. The script only loops one time and stops. The attached file shows that only one file processed by the tool Trend exists in the folder. Please let me know if you all have any suggestion.