I've spoken with ESRI Support about a compress issue I was having and my response was that all ArcMap applications and table locks had to be closed. The only way I am able to get a full compress to State_ID=0 is:
1.) stop the SOM service on the server and remove all table locks (sdemon -o kill -t all)
2.) reconcile and post any edits
3.) delete all versions
4.) sync all replicas (replicas are used in a second application here)
5.) compress the database
6.) check for state_ID by using sdeversion -o describe -V SDE.DEFAULT -i <xxxx> -u <xxxx> -p <xxxx>