google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
10.84k stars 2.09k forks source link

CMake(CBC): MacOS Java test failure #2176

Closed Mizux closed 2 years ago

Mizux commented 3 years ago

Each time we try to use CBC, it seems to crash... todo: Need to find what ILLEGAL means here...

link: https://github.com/google/or-tools/runs/1187176319?check_suite_focus=true trace:

/usr/local/Cellar/cmake/3.18.2/bin/ctest --force-new-ctest-process 
Test project /Users/runner/work/or-tools/or-tools/build
...
        Start  52: java_contrib_CoinsGrid
 52/103 Test  #52: java_contrib_CoinsGrid ......................................   Passed    3.06 sec
        Start  53: java_contrib_CoinsGridMIP
 53/103 Test  #53: java_contrib_CoinsGridMIP ...................................***Exception: Illegal  3.04 sec
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< com.google.ortools:coinsgridmip >-------------------
[INFO] Building com.google.ortools:coinsgridmip 8.0.9999
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ coinsgridmip ---
---- CoinsGridMIP with SCIP
Problem solved in 34ms
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 
0 0 0 0 0 0 0 0 0 0 0 0 0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 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
---- CoinsGridMIP with CBC

        Start  54: java_contrib_ColoringMIP
 54/103 Test  #54: java_contrib_ColoringMIP ....................................***Exception: Illegal  3.30 sec
[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------< com.google.ortools:coloringmip >-------------------
[INFO] Building com.google.ortools:coloringmip 8.0.9999
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ coloringmip ---
---- CoinsGridMIP with SCIP
Problem solved in 89ms
Colors used: 1 1 1 0 1 

Col of vertex 0 : 2
Col of vertex 1 : 1
Col of vertex 2 : 4
Col of vertex 3 : 4
Col of vertex 4 : 1
Col of vertex 5 : 0
Col of vertex 6 : 0
Col of vertex 7 : 0
Col of vertex 8 : 0
Col of vertex 9 : 0
Col of vertex 10 : 4
---- CoinsGridMIP with CBC

...

        Start  59: java_contrib_DietMIP
 59/103 Test  #59: java_contrib_DietMIP ........................................***Exception: Illegal  3.40 sec
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< com.google.ortools:dietmip >---------------------
[INFO] Building com.google.ortools:dietmip 8.0.9999
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ dietmip ---

...

        Start  63: java_contrib_KnapsackMIP
 63/103 Test  #63: java_contrib_KnapsackMIP ....................................***Exception: Illegal  2.79 sec
[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------< com.google.ortools:knapsackmip >-------------------
[INFO] Building com.google.ortools:knapsackmip 8.0.9999
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ knapsackmip ---

...

        Start  69: java_contrib_MultiThreadTest
 69/103 Test  #69: java_contrib_MultiThreadTest ................................***Exception: Illegal  2.44 sec
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------< com.google.ortools:multithreadtest >-----------------
[INFO] Building com.google.ortools:multithreadtest 8.0.9999
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ multithreadtest ---
Attempt 0
Launching thread pool

...

        Start  85: java_contrib_StiglerMIP
 85/103 Test  #85: java_contrib_StiglerMIP .....................................***Exception: Illegal  2.51 sec
[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------< com.google.ortools:stiglermip >--------------------
[INFO] Building com.google.ortools:stiglermip 8.0.9999
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ stiglermip ---
---- StiglerMIP with SCIP
Min cost: 0.11
Total cost: 39.69
Wheat Flour (Enriched), 10 lb.: 10.79 29.95
Liver (Beef), 1 lb.: 0.7 2.58
Cabbage, 1 lb.: 4.1 110.71
Spinach, 1 lb.: 1.83 22.59
Navy Beans, Dried, 1 lb.: 22.3 377.81
---- StiglerMIP with CBC

...

        Start  95: java_java_IntegerProgramming
 95/103 Test  #95: java_java_IntegerProgramming ................................***Exception: Illegal  2.49 sec
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------< com.google.ortools:integerprogramming >----------------
[INFO] Building com.google.ortools:integerprogramming 8.0.9999
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ integerprogramming ---
---- Integer programming example with SCIP (recommended) ----
Problem solved in 7 milliseconds
Optimal objective value = 6.0
x1 = 6.0
x2 = -0.0
Advanced usage:
Problem solved in 1 branch-and-bound nodes
---- Integer programming example with CBC ----

...

93% tests passed, 7 tests failed out of 103

Total Test time (real) = 404.08 sec

The following tests FAILED:
     53 - java_contrib_CoinsGridMIP (ILLEGAL)
     54 - java_contrib_ColoringMIP (ILLEGAL)
     59 - java_contrib_DietMIP (ILLEGAL)
     63 - java_contrib_KnapsackMIP (ILLEGAL)
     69 - java_contrib_MultiThreadTest (ILLEGAL)
     85 - java_contrib_StiglerMIP (ILLEGAL)
     95 - java_java_IntegerProgramming (ILLEGAL)
Errors while running CTest
make: *** [test] Error 8
lperron commented 2 years ago

Known issue. Working on it.