Invoking mcpat API in machine