MATLAB: Do I get an error when generating a harness model with Simulink Design Verifier from the Command Line

casecommanddataharnesslinemodelsimulink testsldvsldvdatasltest.import.sldvdatatest

I am looking for a Command Line version of the following workflow for generating a harness model:
1) Analysis > Design Verifier > Generate Tests > Model
2) When results summary pops up, I select 'Create harness model'
The above method works fine with my model, but I would like a Command Line version.
The Command Line API I am aware of is to use 'sldvrun' and specify options to generate a harness model.  However, I get the following error:
The analysis did not produce a harness model.
Harness model can not be generated because the total flat dimension of the input signals to the model 'e2a_test_sl' is too big to be reconstructed at the harness model.
Why am I getting this error when I generate the harness model through the use of 'sldvrun'?

Best Answer

'sldvrun' calls it's own method of generating a harness model that is different from the method that is used when you select 'Create harness model' in the Design Verifier Results window.  Since the two methods are different, they have different restrictions on the input signals.  To remove the error, try generating the harness model using 'sltest.import.sldvData' with the 'sldvdata.mat' file that is generated from 'sldvrun'.