eval_cli_line("cache_%s" % cpu.name + ".ptime") in my python script is constantly giving the following error 
NameError: global name 'eval_cli_line' is not defined
Any suggestions ?
In Simics 4.x, eval_cli_line has been replaced with run_command(). Read the migration guide.
Python eval_cli_line()