update solver api, now use solver.solve(model, analysis, recorder)