Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stgroup
ttc18
Commits
ee628630
Commit
ee628630
authored
Aug 29, 2018
by
Johannes Mey
Browse files
add some debug output for external solver.
parent
fb3eda51
Changes
1
Hide whitespace changes
Inline
Side-by-side
jastadd-mquat-solver-ilp/src/main/java/de/tudresden/inf/st/mquat/solving/ilp/ILPExternalSolver.java
View file @
ee628630
...
...
@@ -110,12 +110,15 @@ public class ILPExternalSolver extends AbstractILPSolver {
cleanup
(
watch
);
throw
new
SolvingException
(
"Interrupted while waiting for result"
,
e
);
}
StopWatch
writerWatch
=
StopWatch
.
start
();
if
(!
finishedInTime
)
{
// solver already had a timeout, so wait some seconds longer to let it write a solution file
this
.
timedOut
=
true
;
try
{
process
.
waitFor
(
10
,
TimeUnit
.
SECONDS
);
logger
.
debug
(
"Solver had a timeout, waiting ten seconds to let it write the result."
);
process
.
waitFor
(
60
,
TimeUnit
.
SECONDS
);
}
catch
(
InterruptedException
ignored
)
{
}
logger
.
debug
(
"Solver took {} seconds to write the result."
,
writerWatch
.
time
(
TimeUnit
.
SECONDS
));
// then destroy the process
process
.
destroyForcibly
();
if
(!
solutionReadable
.
toAbsolutePath
().
toFile
().
exists
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment