def run_simulation(self):
self.make_directories()<EOL>t0 = time.time()<EOL>if self.verbose: <EOL><INDENT>print('<STR_LIT>'.format(self.label, <EOL>self.solver.upper() ))  <EOL><DEDENT>if self.solver == "<STR_LIT>":<EOL><INDENT>command = '<STR_LIT>'.format(<EOL>self.solver_path, <EOL>self.label) <EOL>process = subprocess.Popen(command, <EOL>cwd    = self.workdir, <EOL>shell  = True, <EOL>stdout = subprocess.PIPE,<EOL>stderr = subprocess.STDOUT)<EOL>for line in iter(process.stdout.readline, b'<STR_LIT>'):<EOL><INDENT>line = line.rstrip().decode('<STR_LIT:utf8>')<EOL>print("<STR_LIT:U+0020>", line)<EOL><DEDENT><DEDENT>t1 = time.time()<EOL>if self.verbose: <EOL><INDENT>print('<STR_LIT>'.format(self.label, t1 - t0))<EOL><DEDENT>
Runs the simulation.