You have a function:
Code
function run()
{...}

and

function main()..


try remove main and use this:
Code
if (is(INITRUN)){
   assetList("Assets.2.1993.csv");
   cross_section = malloc(NumAssetsListed * sizeof(var));
}

inside run function