I tried with double. and also tried with upd and getMutliBodySystem both are showing the same error. I think it must be some mistake in my coding. Sorry for troubling.
rror because:SimTK Exception thrown at State.cpp:2080:
State Cache entry was out of date at Stage Dynamics. This entry depends on version 6175 of Stage Dynamics but was last updated at version 6174.
manager.integrate(s);
osimModel.updMultibodySystem().realize(s, Stage::Dynamics);
const JointSet &JointSet = osimModel.getJointSet();
int joint = JointSet.getSize();
double Power = osimModel.updJointSet().get("crank_Joint").calcPower(s);
cout<<"Internal Power produced is :" << Power << std::endl;
Sorry again,
Nithin