Is it possible to update geometryinstance object in cesiumjs?

i tried to create a primitive with a ellipsoid geometry by creating a geometryinstance and attaching into primitive. I want to rotate the geometryinstance , for that i need to change the modelmatrix. but updating the modelmatrix like primitive.geometryinstances.modelMatrux = newMatrix has no effect