I am experiencing the same sort of problem although I am not using any special OCEAN or SKILL script. I was trying to print out a signal to a text file to use it as a PWL source later on. As the number of significant digits used by the waveform calculator is limited to about 4 (despite my having changed this number under "Options->Significant Digits"), I decided to use ocnPrint through the CI.
ocnPrint(?output "myOut.txt" ?precision 10 ?numberNotation 'none clip( i("I0:3" ?result "tran-tran" ?resultsDir "pathname") 2n 10n) )
Note that the expression is simply copied from the calculator buffer. I get the following error message:
*Error* fprintf/sprintf: format spec. incompatible with data - "Format is '%g', argument #1 is 170"
I get the same problem if I try to print a voltage, and so it is not caused by the current not being saved with the correct port mapping or so.
I even tried to run it by directly invoking OCEAN in the terminal, and selecting the results with openResults(), selectResults() etc., but to no avail. I don't get an error message there, just an empty output file. Of course, when I run OCEAN in the terminal, I leave out the ?result and ?resultsDir parts, since they have been already taken care of with openResults() and selectResults().
I am working with Cadence IC 6.1.4.