long timeStep = 60000l*60l*24l;
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
PrintStream printStream = new PrintStream(baos);
GainListener listener = new SimpleGainListener(printStream);
long start = 0;
long period = timeStep;
simulationAdapter.addGainListener(start,period,listener);