Code Coverage Test Generation
This example shows how to use Simulink® Design Verifier™ to generate test cases to obtain complete code coverage.
You first collect code coverage for an example model configured for software-in-the-loop (SIL) simulation mode. Then you use Simulink® Design Verifier™ to create a test suite that generates tests cases. Finally, you execute the generated test cases in SIL simulation mode to verify the complete coverage.
Check Product Availability
Make sure that you have Simulink® Coder™ and Embedded Coder™ software installed on your machine.
if ~(license('test', 'Real-Time_Workshop') && ... license('test','RTW_Embedded_Coder')) return end
Initial Setup
Make sure that an unedited version of the model is open.
model = 'sldvdemo_cruise_control';
close_system(model, 0)
open_system(model)
Configure the Model for SIL based test generation
1. In the Configuration Parameters window, click Code Generation and set System Target File to ert.tlc
. Alternatively, enter:
set_param(model,'SystemTargetFile','ert.tlc');
2. Click Hardware Implementation, then set Device vendor and Device type to the vendor and type of your SIL system. For example, for a 64-bit Linux machine, set Device vendor to Intel
and Device type to x-86-64(Windows)
. Alternatively, enter:
if ismac lProdHWDeviceType = 'Intel->x86-64 (Mac OS X)'; elseif isunix lProdHWDeviceType = 'Intel->x86-64 (Linux 64)'; else lProdHWDeviceType = 'Intel->x86-64 (Windows64)'; end set_param(model, 'ProdHWDeviceType', lProdHWDeviceType);
Find Test Cases for Coverage Computation
Analyze the sldvdemo_cruise_control
model by using Simulink® Design Verifier™ to generate a test suite that achieves increased code coverage. Set the Simulink® Design Verifier™ options to generate test cases to achieve MCDC coverage for the top model.
opts = sldvoptions; opts.TestgenTarget = 'GenCodeTopModel'; opts.Mode = 'TestGeneration'; [~, files] = sldvrun(model, opts, true);
### Starting build procedure for: sldvdemo_cruise_control ### Loading TLC function libraries ........ ### Initial pass through model to cache user defined code ### Caching model source code ................................... ### Writing header file sldvdemo_cruise_control_types.h ### Writing header file sldvdemo_cruise_control.h ### Writing header file rtwtypes.h ### Writing source file sldvdemo_cruise_control.c ### Writing header file sldvdemo_cruise_control_private.h . ### Writing source file ert_main.c ### TLC code generation complete (took 5.599s). gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -o "sldvdemo_cruise_control.o" "/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/instrumented/sldvdemo_cruise_control.c" ### Successfully generated all binary outputs. gmake: Nothing to be done for `buildobj'. ### Successful completion of build procedure for: sldvdemo_cruise_control ### Preparing to start SIL simulation ... Building with 'gcc'. MEX completed successfully. ### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux) ### Creating '/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/lib/sldvdemo_cruise_control_ca.mk' ... ### Building 'sldvdemo_cruise_control_ca': "/mathworks/devel/bat/Bdoc23a/build/matlab/bin/glnxa64/gmake" -f sldvdemo_cruise_control_ca.mk all gcc -c -fwrapv -fPIC -O0 -msse2 -DINTEGER_CODE=0 -DCA_CHECK_FLOATING_POINT_ENABLED=1 -DCA_CHECK_LONG_LONG_ENABLED=0 -DCA_CHECK_DYNAMIC_MEMORY=0 -DCA_CHECK_DAZ_ENABLED=1 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -o "coder_assumptions_hwimpl.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_hwimpl.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DINTEGER_CODE=0 -DCA_CHECK_FLOATING_POINT_ENABLED=1 -DCA_CHECK_LONG_LONG_ENABLED=0 -DCA_CHECK_DYNAMIC_MEMORY=0 -DCA_CHECK_DAZ_ENABLED=1 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -o "coder_assumptions_flt.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_flt.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DINTEGER_CODE=0 -DCA_CHECK_FLOATING_POINT_ENABLED=1 -DCA_CHECK_LONG_LONG_ENABLED=0 -DCA_CHECK_DYNAMIC_MEMORY=0 -DCA_CHECK_DAZ_ENABLED=1 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -o "sldvdemo_cruise_control_ca.o" "/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/sldvdemo_cruise_control_ca.c" ### Creating static library ./sldvdemo_cruise_control_ca.a ... ar ruvs ./sldvdemo_cruise_control_ca.a coder_assumptions_hwimpl.o coder_assumptions_flt.o sldvdemo_cruise_control_ca.o ar: creating ./sldvdemo_cruise_control_ca.a a - coder_assumptions_hwimpl.o a - coder_assumptions_flt.o a - sldvdemo_cruise_control_ca.o ### Created: ./sldvdemo_cruise_control_ca.a ### Successfully generated all binary outputs. gmake: Nothing to be done for `all'. ### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux) ### Creating '/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil/sldvdemo_cruise_control.mk' ... ### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc23a/build/matlab/bin/glnxa64/gmake" -f sldvdemo_cruise_control.mk all gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_interface_lib.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/xil_interface_lib.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_data_stream.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/xil_data_stream.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_services.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/xil_services.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_interface.o" "/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_interface.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xilcomms_rtiostream.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/xilcomms_rtiostream.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_rtiostream.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/xil_rtiostream.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "rtiostream_utils.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "coder_assumptions_app.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_app.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "coder_assumptions_data_stream.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_data_stream.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "coder_assumptions_rtiostream.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_rtiostream.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "sil_main.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/sil_main.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "target_io.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/target_io.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "rtiostream_tcpip.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/rtiostreamtcpip/rtiostream_tcpip.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_instrumentation.o" "/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_instrumentation.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "codeinstr_data_stream.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/codeinstr_data_stream.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "codeinstr_rtiostream.o" "/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c/codeinstr_rtiostream.c" ### Creating standalone executable ./sldvdemo_cruise_control ... g++ -o ./sldvdemo_cruise_control xil_interface_lib.o xil_data_stream.o xil_services.o xil_interface.o xilcomms_rtiostream.o xil_rtiostream.o rtiostream_utils.o coder_assumptions_app.o coder_assumptions_data_stream.o coder_assumptions_rtiostream.o sil_main.o target_io.o rtiostream_tcpip.o xil_instrumentation.o codeinstr_data_stream.o codeinstr_rtiostream.o -Wl,--start-group ../instrumented/sldvdemo_cruise_control.o /tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/lib/sldvdemo_cruise_control_ca.a -Wl,--end-group ### Created: ./sldvdemo_cruise_control ### Successfully generated all binary outputs. gmake: Nothing to be done for `all'. ### Starting SIL simulation for component: sldvdemo_cruise_control ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Starting build procedure for: sldvdemo_cruise_control ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: /tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw ### Generated code for 'sldvdemo_cruise_control' is up to date because no structural, parameter or code replacement library changes were found. ### Saving binary information cache. ### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux) ### '/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/instrumented/sldvdemo_cruise_control.mk' is up to date ### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc23a/build/matlab/bin/glnxa64/gmake" -f sldvdemo_cruise_control.mk buildobj ### Successfully generated all binary outputs. gmake: Nothing to be done for `buildobj'. ### Successful completion of build procedure for: sldvdemo_cruise_control Build Summary Top model targets built: Model Action Rebuild Reason ================================================================================== sldvdemo_cruise_control Code compiled. Compilation artifacts were out of date. 1 of 1 models built (0 models already up to date) Build duration: 0h 0m 5.9972s ### Preparing to start SIL simulation ... ### Skipping makefile generation and compilation because /tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil/sldvdemo_cruise_control is up to date ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111402</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111402</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111406</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111406</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111415</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111415</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111420</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111420</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis
Note: When you run the script, the SIL test generation regenerates and recompiles the code.
Verify Complete Coverage
The sldvruntest
function simulates the model by using the generated test suite. The cvhtml
function produces a coverage report that indicates the final coverage of the sldvdemo_cruise_control
model.
[~, finalCov] = sldvruntest(model, files.DataFile, [], true);
cvhtml('sil_final_coverage', finalCov);
close_system(model, 0);
### Starting build procedure for: sldvdemo_cruise_control ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: /tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw ### Generated code for 'sldvdemo_cruise_control' is up to date because no structural, parameter or code replacement library changes were found. ### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux) ### '/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/instrumented/sldvdemo_cruise_control.mk' is up to date ### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc23a/build/matlab/bin/glnxa64/gmake" -f sldvdemo_cruise_control.mk buildobj ### Successfully generated all binary outputs. gmake: Nothing to be done for `buildobj'. ### Successful completion of build procedure for: sldvdemo_cruise_control Build Summary Top model targets built: Model Action Rebuild Reason ================================================================================== sldvdemo_cruise_control Code compiled. Compilation artifacts were out of date. 1 of 1 models built (0 models already up to date) Build duration: 0h 0m 4.1448s ### Preparing to start SIL simulation ... Building with 'gcc'. MEX completed successfully. ### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux) ### '/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil/sldvdemo_cruise_control.mk' is up to date ### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc23a/build/matlab/bin/glnxa64/gmake" -f sldvdemo_cruise_control.mk all gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_interface.o" "/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_interface.c" gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968 -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc23a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc23a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc23a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_instrumentation.o" "/tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_instrumentation.c" ### Creating standalone executable ./sldvdemo_cruise_control ... g++ -o ./sldvdemo_cruise_control xil_interface_lib.o xil_data_stream.o xil_services.o xil_interface.o xilcomms_rtiostream.o xil_rtiostream.o rtiostream_utils.o coder_assumptions_app.o coder_assumptions_data_stream.o coder_assumptions_rtiostream.o sil_main.o target_io.o rtiostream_tcpip.o xil_instrumentation.o codeinstr_data_stream.o codeinstr_rtiostream.o -Wl,--start-group ../instrumented/sldvdemo_cruise_control.o /tmp/Bdoc23a_2213998_2724542/tp14a14352/sldv-ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/lib/sldvdemo_cruise_control_ca.a -Wl,--end-group ### Created: ./sldvdemo_cruise_control ### Successfully generated all binary outputs. gmake: Nothing to be done for `all'. ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111499</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111499</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111503</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111503</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111508</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111508</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis ### Starting SIL simulation for component: sldvdemo_cruise_control rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111511</a> rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',3);">111511</a> ### Stopping SIL simulation for component: sldvdemo_cruise_control ### Completed code coverage analysis
Note: When you run the script, the SIL test generation regenerates and recompiles the code.