I am trying to do something similar in cadence using Hspice as the simulator. In my case the mosfet itself is defined as a subcircuit i.e instead of having a mosfet defined as MPM1 in netlist it is defined as XPM1. Then how can the device pin currents be measured?
The error seen is: Element xpm1 in print, plot, probe or measure statements is invalid. Output is ignored.
The same thing when done with spectre as the simulator works fine and plots the device pin currents. In its netlist the devices are not defined as XPM instead simply as PM.
The model file description for both contain the device definition as subckt..