Can clotted cream be made with UHT cream?
This recipe seems to suggest that using UHT cream will work, but that it will be a bit softer than if non-UHT cream is used.  Perhaps you can compare your technique to the one suggested in this recipe to see where it diverges.