Hi Radu,
I understand you're running into an error while working with Model References.
For the Random Number block for example, 'Sample time' is a non-tunable parameter whereas 'Mean', 'Variance' and 'Seed' are not. The error is encountered only when attempting to set the non-tunable parameters.
Note that subsystem files do not have a model workspace, but you can create a System Mask and define the relevant editable parameters there. After saving the subsystem to a file, you can use it in your model using a Subsystem Reference block.
As a test, I created a simple subsystem consisting of a Random Noise block and an Outport block. The 'Mean' and 'Sample time' of the Random Noise block are defined using parameters 's_mean' and 's_time'. These parameters are also present in the System Mask.
After importing the subsystem into a model using the Subsystem Reference block, I am able to specify both of these parameters and simulate without any problems.
Hope this helps!
-Shivang