Compress a versioned database to state 0 can be done only after deleting the versions (excluding the sde.DEFAULT version).
First you have to Reconcile and post all versions which are ready to be applied to the DEFAULT version. Alternatively, delete the versions and Compress the database.