ocean script save data
The first thing you need to do is check that your expression frequency(clip(VT("/net019"),1u,1.1u)) is working correctly. Run the same simulation in Analog Design Environment (Analog Artist) and copy and paste it into the calculator to check it doesn't have any errors. I haven't used the "frequency" function in a while so you'll have to debug that using the calculator yourself.
If you know it is evaluating correctly, I suggest you do the following. Give frequency(clip(VT("/net019"),1u,1.1u)) a name for example freq1.
Take out your ocnPrint statement and put this in instead:
freq1 = frequency(clip(VT("/net019"),1u,1.1u))
fprintf(out "%f" freq1)