Submm observations of molecular lines in the orion bar: Towards a physical model