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

Reduce tolerance for change in Julia v1.9 #861

Merged
merged 2 commits into from
May 27, 2023
Merged

Conversation

odow
Copy link
Collaborator

@odow odow commented May 22, 2023

PowerModels is failing tests on Julia 1.9 due to a tolerance issue:

image

@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Merging #861 (d34aa2b) into master (80bca31) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #861   +/-   ##
=======================================
  Coverage   93.79%   93.79%           
=======================================
  Files          43       43           
  Lines        9893     9893           
=======================================
  Hits         9279     9279           
  Misses        614      614           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80bca31...d34aa2b. Read the comment docs.

@ccoffrin
Copy link
Member

I and fine with this change. Any idea why it is still failing on windows Julia v1 for this one power flow case?

@odow
Copy link
Collaborator Author

odow commented May 22, 2023

Any idea why it is still failing on windows Julia v1 for this one power flow case?

Nope. Iteration limit, so I guess some numerical issue? It seems like lots of nearby tests are commented out with numerical difficulties.

end
@testset "5-bus ext case" begin
data = PowerModels.parse_file("../test/data/matpower/case5_ext.m")
sm = calc_susceptance_matrix(data)

@test isa(sm, AdmittanceMatrix{Float64})
@test SparseArrays.nnz(sm.matrix) == 17
@test isapprox(LinearAlgebra.det(sm.matrix), 0.0, atol=1e-6)
@test isapprox(LinearAlgebra.det(sm.matrix), 0.0, atol=1e-5)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO(odow): take another look at this

@ccoffrin ccoffrin merged commit ffd1788 into lanl-ansi:master May 27, 2023
@ccoffrin
Copy link
Member

@odow we can add this to the list of mysterious changes in results with v1.9, https://github.com/lanl-ansi/PowerModelsAnnex.jl/actions/runs/5063454342/jobs/9090086852

These differences do seem to be outside the bounds of machine precision issues. I was not able to reproduce the issue in my intel based MacBook pro.

@odow odow deleted the patch-1 branch June 1, 2023 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants