My 9 year old son who has chronic GI problems (acid reflux, gastritis, esophagitis etc.) was recently prescribed imipramine by his GI doctor.
He explained to me that sometimes there is not adequate communication between the brain and the digestive system so the medicine is being used to treat his stomach pain and not depression in this case. Nevertheless I have not found anything on the internet about imipramine having this use.