compileModels for framework