         {
             self.stop()
             self.crashed = true
+            let str = "Access violation, there is no cell \(self.mem_idx)"
             self.output_s += String(format: "\nbfi: ACCESS VIOLATION. THERE IS NO CELL NUMBER %d\n", self.mem_idx)
-            print(self.output_s)
+            print(str)
             return
         }
     }

    }
    private func stopSequence()
    {
        print("bfi: EXECUTION ABORTED");
        self.finished = true
        return
    }

        {
            self.stop()
            self.crashed = true
            let str = "Access violation, there is no cell \(self.mem_idx)"
            self.output_s += String(format: "\nbfi: ACCESS VIOLATION. THERE IS NO CELL NUMBER %d\n", self.mem_idx)
            print(str)
            return
        }
    }
