Builds from an original model an activegroupmodel, with selection.