{
int of_before = test_open_files ? getOpenFiles(messenger) : 0;
SimulationModuleData data = new SimulationModuleData(atts, input, output, messenger);
ModuleInterface modif = ModuleLoader.loadModuleInterface(mod_uri, cfg);
ModuleDefinition mod = ModuleDefinition.create(cfg.getRootModule(), mod_uri, modif, null, null);
ModuleInstance instance = mod.getInterface().createInstance(data, messenger);
data.close(instance.run());