Hey, We generated the xml using a urdf file. When we are trying to see the angular momentum being calculated, its coming out as 'nan' for all the bodies. I have attached the xml file with this post. I guess the problem is with the xml design of bodies. Could you please check why is this happening? Another unusual thing is, even though we defined 29 bodies, mjmodel->nbody is 30.