diff --git a/src/main/java/tmltranslator/modelcompiler/TMLModelCompiler.java b/src/main/java/tmltranslator/modelcompiler/TMLModelCompiler.java
index 3590bae3511ef811d56903c9fe5a09af68bce9c8..96f09336b3ce8778399301139c64158e18d3616d 100755
--- a/src/main/java/tmltranslator/modelcompiler/TMLModelCompiler.java
+++ b/src/main/java/tmltranslator/modelcompiler/TMLModelCompiler.java
@@ -1732,7 +1732,6 @@ public class TMLModelCompiler implements CCodeGenConstants {
         
         try {
             outputStream = new PrintWriter( new FileOutputStream( debugFileName, true ) );
-            outputStream.close();
         }
         catch( FileNotFoundException e )        {
             System.out.println( "Error opening file " + debugFileName );