I used ssGetT(S), for some reason doesn't seem to work. Simple model, is the 'timestwo' with fixed time step 0.01 sec (auto solver)
I call it in the mdlOutput()
static void mdlOutputs(SimStruct *S, int_T tid)
{
int_T i;
InputRealPtrsType uPtrs = ssGetInputPortRealSignalPtrs(S,0);
real_T *y = ssGetOutputPortRealSignal(S,0);
int_T width = ssGetOutputPortWidth(S,0);
//for (i=0; i<width; i++) {
// *y++ = 2.0 *(*uPtrs[i]);
//}
*y = (real_T)ssGetT(S);
}