optimize code of models, build ginac expressions once at initialization of model, outside computeBeta function