code: public static Object sim( String file, String ll, String cmd ) throws Exception {
          String f = CLI.readFile(file);
          Object o = CLI.createSim(f, false, ll);
          return CLI.invoke(o, cmd);
      }
docs: Executes a simulation.
  
  @param file the file to execute
  @param ll the log level
  @param cmd the command to call (e.g. run)
  @throws Exception