See the section "Configuration Through Libero Software and Firmware" from the SmartFusion 2 User Guide to learn how to enable the trace pins via the Libero Software.
There is an option called "Expose TRACE ports to the FPGA Fabric" which needs to be checked and configured on your board, only then this example project will produce trace data.