I have written a simple script called which_models_are_using_this_file
It takes one argument, the name of the file either as a full path or name only, and reports all models which use that file. This will allow a source file change to be propagated to all models which use it and prevent possible surprises the next time a model is built (e.g. during an RCG upgrade).
> which_models_are_using_this_file /opt/rtcds/userapps/release/cds/common/src/LOW_FREQ_MUX.c
Models which use file: /opt/rtcds/userapps/release/cds/common/src/LOW_FREQ_MUX.c
h1omc
h1pemex
h1pemey