AUX Variables Help

Hi,
I am trying to use the output of Dynare to do some other calculation and have couple of questions:
1. How to match the AUX Variables with the original variables, I know M_.aux_vars contains "endo_index" and "orig_index" for some AUX Variables. But the value of "orig_index" is empty for some variables.
2.How to indentify the state variables (i.e. pred variables)? I know oo_.dr_npred contains the number of state varibles. But what exactly are those varibles? Name/endo_index?
Thanks.
I am trying to use the output of Dynare to do some other calculation and have couple of questions:
1. How to match the AUX Variables with the original variables, I know M_.aux_vars contains "endo_index" and "orig_index" for some AUX Variables. But the value of "orig_index" is empty for some variables.
2.How to indentify the state variables (i.e. pred variables)? I know oo_.dr_npred contains the number of state varibles. But what exactly are those varibles? Name/endo_index?
Thanks.