I think I found the problem.
in acs-kernel/sql/postgresql/acs-install.sql
there is something called the acs-service-contract. I commented out lines 95 to 117 and now the installation completes. (ie lines pertaining to acs-service-contract). I don't know what's going on here. Any ideas?