The parameter you specify with phent_setmass is total mass, not density. I.e. A6 solves
code:
mass = density*height*width*length;

with mass being your parameter and density the unknown.