acegen – Print global stiffness mastrix in AceFEM

I have a 2D linear elastic simulation in AceFEM and for post-processing purposes I would like to print the global stiffness matrix and global displacement vector.

I am able to get the global x and y displacements using:

GlobalUx = SMTPostData("u");
GlobalUy = SMTPostData("v");

from which I can assemble the global displacement vector. (Is there a simpler way?)

My simulation has 2343 nodes and therefore 4686 degrees of freedom. I am attempting to get the global stiffness matrix using

GSM=SMTData("TangentMatrix")

However, the resulting matrix has dimensions of 4563×4563, which is smaller than it should be.
How can I get the full stiffness matrix?

Thanks in advance!