// generate plan
Plan plan = new Plan(output);
plan.setDefaultParallelism(DOP);
// optimize and compile plan
PactCompiler pc = new PactCompiler(new DataStatistics());
OptimizedPlan op = pc.compile(plan);
// return job graph of failing job
NepheleJobGraphGenerator jgg = new NepheleJobGraphGenerator();
return jgg.compileJobGraph(op);
}