Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures #74

Open
blegat opened this issue Feb 27, 2022 · 2 comments
Open

Test failures #74

blegat opened this issue Feb 27, 2022 · 2 comments
Assignees

Comments

@blegat
Copy link
Member

blegat commented Feb 27, 2022

There are weird issues detected by Github Actions on Mac OS:

CSDP.jl/test/MOI_wrapper.jl

Lines 104 to 132 in 53b41fb

# FIXME The following are weird test failures that occur only on Github Actions for Mac OS but not Linux.
# It also seems to not be consistent between runs:
# Incorrect solution
"test_objective_ObjectiveFunction_VariableIndex",
"test_conic_SecondOrderCone_negative_post_bound",
"test_solve_result_index",
"test_modification_set_singlevariable_lessthan",
"test_conic_SecondOrderCone_nonnegative_initial_bound",
"test_objective_FEASIBILITY_SENSE_clears_objective",
# ALMOST_OPTIMAL
"test_conic_RotatedSecondOrderCone_VectorOfVariables",
# NUMERICAL_ERROR
"test_objective_ObjectiveFunction_blank",
"test_objective_ObjectiveFunction_duplicate_terms",
"test_modification_transform_singlevariable_lessthan",
"test_conic_SecondOrderCone_no_initial_bound",
"test_conic_SecondOrderCone_negative_initial_bound",
"test_solve_TerminationStatus_DUAL_INFEASIBLE",
"test_modification_set_singlevariable_lessthan:",
"test_modification_delete_variable_with_single_variable_obj",
# Expression: MOI.get(model, MOI.TerminationStatus()) == MOI.DUAL_INFEASIBLE
# Evaluated: MathOptInterface.INFEASIBLE == MathOptInterface.DUAL_INFEASIBLE
"test_conic_SecondOrderCone_negative_post_bound_2",
"test_conic_SecondOrderCone_negative_post_bound_3",
# Expression: MOI.get(model, MOI.TerminationStatus()) == config.optimal_status
# Evaluated: MathOptInterface.INFEASIBLE == MathOptInterface.OPTIMAL
"test_modification_const_scalar_objective",
"test_modification_coef_scalar_objective",
"test_modification_set_singlevariable_lessthan",

Could someone with a mac take a look ?

@odow odow self-assigned this Mar 1, 2022
@odow
Copy link
Member

odow commented Oct 25, 2022

I mean, CSDP is just unreliable:

julia> MOI.empty!(model)

julia> MOI.Test.test_objective_ObjectiveFunction_blank(model, config)
CSDP 6.2.0
This is a pure primal feasibility problem.
Iter:  0 Ap: 0.00e+00 Pobj:  0.0000000e+00 Ad: 0.00e+00 Dobj:  0.0000000e+00 
Failure: return code is 9 
Primal objective value: 0.0000000e+00 
Dual objective value: 0.0000000e+00 
Relative primal infeasibility: 1.50e+00 
Relative dual infeasibility: 1.73e+01 
Real Relative Gap: 0.00e+00 
XZ Relative Gap: 8.94e+155 
DIMACS error measures: 1.50e+00 0.00e+00 2.41e+01 0.00e+00 0.00e+00 8.94e+155
Test Failed at /Users/oscar/.julia/packages/MathOptInterface/Ohzb2/src/Test/test_objective.jl:200
  Expression: MOI.get(model, MOI.TerminationStatus()) == config.optimal_status
   Evaluated: MathOptInterface.NUMERICAL_ERROR == MathOptInterface.OPTIMAL
ERROR: There was an error during testing

julia> MOI.empty!(model)

julia> MOI.Test.test_objective_ObjectiveFunction_blank(model, config)
CSDP 6.2.0
This is a pure primal feasibility problem.
Iter:  0 Ap: 0.00e+00 Pobj:  0.0000000e+00 Ad: 0.00e+00 Dobj:  0.0000000e+00 
Iter:  1 Ap: 8.10e-01 Pobj:  0.0000000e+00 Ad: 9.00e-01 Dobj: -3.5004939e+01 
Iter:  2 Ap: 1.09e-01 Pobj:  0.0000000e+00 Ad: 9.00e-01 Dobj: -2.3002175e+03 
Iter:  3 Ap: 1.33e-02 Pobj:  0.0000000e+00 Ad: 9.00e-01 Dobj: -1.1473294e+07 
Declaring primal infeasibility.
Success: SDP is primal infeasible
Certificate of primal infeasibility: a'*y=-1.00000e+00, ||A'(y)-Z||=1.50964e-09
Test Failed at /Users/oscar/.julia/packages/MathOptInterface/Ohzb2/src/Test/test_objective.jl:200
  Expression: MOI.get(model, MOI.TerminationStatus()) == config.optimal_status
   Evaluated: MathOptInterface.INFEASIBLE == MathOptInterface.OPTIMAL
ERROR: There was an error during testing

julia> MOI.empty!(model)

julia> MOI.Test.test_objective_ObjectiveFunction_blank(model, config)
CSDP 6.2.0
This is a pure primal feasibility problem.
Iter:  0 Ap: 0.00e+00 Pobj:  0.0000000e+00 Ad: 0.00e+00 Dobj:  0.0000000e+00 
Iter:  1 Ap: 1.00e+00 Pobj:  0.0000000e+00 Ad: 9.00e-01 Dobj:  4.4052605e+78 
Success: SDP solved
Primal objective value: 0.0000000e+00 
Dual objective value: 0.0000000e+00 
Relative primal infeasibility: 0.00e+00 
Relative dual infeasibility: 7.56e-89 
Real Relative Gap: 0.00e+00 
XZ Relative Gap: 5.00e-11 
DIMACS error measures: 0.00e+00 0.00e+00 1.05e-88 0.00e+00 0.00e+00 5.00e-11

@odow
Copy link
Member

odow commented Oct 25, 2022

Because this is non-deterministic, we must be screwing up the C code somewhere with uninitialized memory.

Why is the C interface so convoluted?

@odow odow changed the title Mac OS test failures Test failures Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants