-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error during testing. #44
Comments
This looks like a problem with Ipopt.jl. Can you try running ] test Ipopt If that fails, perhaps try executing ] build Ipopt |
Thanks for the quick response. The test of Ipopt failed. I tried to build Ipopt but it gave me the error below. Thanks for your help. I am new to Julia Building Ipopt → |
I think this should be posted as an issue for Ipopt.jl. I'm not quite sure what the problem is, but it looks like Ipopt is not being downloaded because of an invalid SSL certificate on the website hosting the Ipopt binary. |
OK. I found the issue in jump-dev/Ipopt.jl#94, which says that it is solved in the master. I tried to build ipopt master. But there is a conflicts in packages as below. |
I checked my package status. I do have Ipopt somehow. But when I tried to follow the tutorial on the doc page. It shows as below. My package status is And I followed the tutorial to run the model. It shows as below. |
Try installing GasPowerModels via ] add GasPowerModels#master and then making sure you read the development version of the documentation. The current README corresponds to this development version. You are using the README with GasPowerModels v0.1.1, which is substantially different than the current development version. |
I followed the commands from https://github.com/lanl-ansi/GasPowerModels.jl/blob/master/docs/src/quickguide.md which should be the quick guide for the master version. |
This is interesting. It looks like most of the errors you've been encountering are due to a lack of common SSL certificates on your Mac. See the webpage mentioned in your error here. Let me look around and see if I can find a quick fix, but I'm also on a Mac and don't encounter these errors when installing packages. |
Thanks a lot I really want to run the model but encountered error every line. I downloaded Julia to run this model so I am not familiar with Julia. |
Here is the quickest fix I can find, do you want to give it a try? https://discourse.julialang.org/t/curl-certificate-issue-with-pkg3-on-mac/33299/7 |
Yes it worked. I downloaded homebrew and curl and appended the insecure. Now I am able to add Ipopt and GasPowerModel package. But I run into the error below when following the doc. julia> using JuMP, Juniper, Ipopt, Cbc [ Info: Precompiling Ipopt [b6b21f68-93f8-5de0-b562-5493be1d77c9] julia> using GasPowerModels julia> ipopt = JuMP.optimizer_with_attributes(Ipopt.Optimizer, "print_level"=>0, "sb"=>"yes") |
Could you type ] st and post the package versions you are using? |
Also, try ] update I just tagged a new release of GasPowerModels, so you don't need to add the recent version using the |
I updated the packages and tried to run the command again. It still shows the same error as below. Both GasPowerModel and JuMP are updated. Thanks julia> using JuMP, Juniper, Ipopt, Cbc julia> using GasPowerModels julia> ipopt = JuMP.optimizer_with_attributes(Ipopt.Optimizer, "print_level"=>0, "sb"=>"yes") |
Are you running the Julia commands from the same place you are running the update command? In your update, you have a prefix in the command of |
My mistake, maybe that is not the case, here. I do know that if you have the recent version of JuMP (which you appear to have gotten based on your |
Could you exit and relaunch Julia, then show the contents of ] st |
I checked and do not think that I have another version of Julia. I am just running Julia in Mac terminal. I relaunched Julia and optimizer_with_attributes is defined now. But I ran into another error following the commands as below. Thanks so much for your help. julia> g_file = "examples/data/matgas/belgian-ne_opf.m" # Gas network. julia> p_file = "examples/data/matpower/case14-ne.m" julia> result = run_ne_opf(g_file, p_file, g_type, p_type, juniper; |
Ah, good find! Yes, I named the file wrong. I just pushed a change on the master branch that fixes this. Also, make sure you're running the commands in a directory relative to these examples. If you don't have the examples, I'd recommend downloading the full source using |
Thanks. I checked the directory on the laptop and changed the name to 14belgium-ne_opf locally. Now I am able to run it. |
Hi,
I followed the instruction to add the command (Pkg.add("GasPowerModels") and add JuMP Juniper Ipopt Cbc). Then I run the testing. But it gave me error as below. Thanks for your help.
[ Info: no explicit NLP constraints or objective provided using @NLconstraint or @NLobjective macros
IEEE 14 Belgian case: Error During Test at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/test/gpf.jl:15
Got exception outside of a @test
could not load library "/Users/carriesu/.julia/packages/Ipopt/Iu7vT/deps/usr/lib/libipopt.1.10.10.dylib"
dlopen(/Users/carriesu/.julia/packages/Ipopt/Iu7vT/deps/usr/lib/libipopt.1.10.10.dylib, 1): Library not loaded: @rpath/libgfortran.5.dylib
Referenced from: /Users/carriesu/.julia/packages/Ipopt/Iu7vT/deps/usr/lib/libipopt.1.10.10.dylib
Reason: image not found
Stacktrace:
[1] createProblem(::Int64, ::Array{Float64,1}, ::Array{Float64,1}, ::Int64, ::Array{Float64,1}, ::Array{Float64,1}, ::Int64, ::Int64, ::Ipopt.var"#eval_f_cb#18"{Ipopt.Optimizer}, ::Ipopt.var"#eval_g_cb#20"{Ipopt.Optimizer}, ::Ipopt.var"#eval_grad_f_cb#19"{Ipopt.Optimizer}, ::Ipopt.var"#eval_jac_g_cb#21"{Ipopt.Optimizer,Array{Tuple{Int64,Int64},1}}, ::Ipopt.var"#eval_h_cb#22"{Ipopt.Optimizer,Array{Tuple{Int64,Int64},1}}) at /Users/carriesu/.julia/packages/Ipopt/Iu7vT/src/Ipopt.jl:224
[2] optimize!(::Ipopt.Optimizer) at /Users/carriesu/.julia/packages/Ipopt/Iu7vT/src/MOI_wrapper.jl:684
[3] optimize!(::MathOptInterface.Utilities.CachingOptimizer{Ipopt.Optimizer,MathOptInterface.Utilities.UniversalFallback{JuMP._MOIModel{Float64}}}) at /Users/carriesu/.julia/packages/MathOptInterface/C3lip/src/Utilities/cachingoptimizer.jl:170
[4] optimize!(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{Ipopt.Optimizer,MathOptInterface.Utilities.UniversalFallback{JuMP._MOIModel{Float64}}},MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Bridges.AllBridgedConstraints{Float64}}}) at /Users/carriesu/.julia/packages/MathOptInterface/C3lip/src/Bridges/bridgeoptimizer.jl:73
[5] optimize!(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{JuMP._MOIModel{Float64}}}) at /Users/carriesu/.julia/packages/MathOptInterface/C3lip/src/Utilities/cachingoptimizer.jl:170
[6] optimize!(::Model, ::OptimizerFactory; bridge_constraints::Bool, ignore_optimize_hook::Bool) at /Users/carriesu/.julia/packages/JuMP/ibcEh/src/optimizer_interface.jl:132
[7] optimize! at /Users/carriesu/.julia/packages/JuMP/ibcEh/src/optimizer_interface.jl:105 [inlined]
[8] optimize_get_status_backend(::Model; solver::OptimizerFactory) at /Users/carriesu/.julia/packages/Juniper/N3gty/src/util.jl:271
[9] solve_root_model!(::Juniper.JuniperProblem) at /Users/carriesu/.julia/packages/Juniper/N3gty/src/model.jl:63
[10] optimize!(::Juniper.Optimizer) at /Users/carriesu/.julia/packages/Juniper/N3gty/src/MOI_wrapper/MOI_wrapper.jl:285
[11] optimize!(::MathOptInterface.Bridges.LazyBridgeOptimizer{Juniper.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Bridges.AllBridgedConstraints{Float64}}}) at /Users/carriesu/.julia/packages/MathOptInterface/C3lip/src/Bridges/bridgeoptimizer.jl:73
[12] optimize!(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{JuMP._MOIModel{Float64}}}) at /Users/carriesu/.julia/packages/MathOptInterface/C3lip/src/Utilities/cachingoptimizer.jl:170
[13] optimize!(::Model, ::OptimizerFactory; bridge_constraints::Bool, ignore_optimize_hook::Bool) at /Users/carriesu/.julia/packages/JuMP/ibcEh/src/optimizer_interface.jl:132
[14] optimize! at /Users/carriesu/.julia/packages/JuMP/ibcEh/src/optimizer_interface.jl:105 [inlined]
[15] macro expansion at ./timing.jl:310 [inlined]
[16] optimize!(::GenericPowerModel{SOCWRForm}, ::GenericGasModel{StandardMISOCPForm}, ::OptimizerFactory) at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/src/core/base.jl:72
[17] solve_generic_model(::GenericPowerModel{SOCWRForm}, ::GenericGasModel{StandardMISOCPForm}, ::OptimizerFactory; solution_builder::Function) at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/src/core/base.jl:63
[18] run_generic_model(::Dict{String,Any}, ::Dict{String,Any}, ::Type{T} where T, ::Type{T} where T, ::OptimizerFactory, ::typeof(GasPowerModels.post_gpf); power_ref_extensions::Array{Any,1}, solution_builder::Function, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/src/core/base.jl:29
[19] run_generic_model(::String, ::String, ::Type{T} where T, ::Type{T} where T, ::OptimizerFactory, ::typeof(GasPowerModels.post_gpf); solution_builder::Function, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/src/core/base.jl:23
[20] run_generic_model at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/src/core/base.jl:21 [inlined]
[21] #run_gpf#26 at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/src/prob/gpf.jl:7 [inlined]
[22] run_gpf(::String, ::String, ::Type{T} where T, ::Type{T} where T, ::OptimizerFactory) at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/src/prob/gpf.jl:7
[23] top-level scope at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/test/gpf.jl:16
[24] top-level scope at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1115
[25] top-level scope at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/test/gpf.jl:16
[26] top-level scope at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1115
[27] top-level scope at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/test/gpf.jl:15
[28] include(::String) at ./client.jl:457
[29] top-level scope at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/test/runtests.jl:42
[30] include(::String) at ./client.jl:457
[31] top-level scope at none:6
[32] eval(::Module, ::Any) at ./boot.jl:331
[33] exec_options(::Base.JLOptions) at ./client.jl:272
[34] _start() at ./client.jl:506
Test Summary: | Error Total
test qp gf pf | 1 1
IEEE 14 Belgian case | 1 1
ERROR: LoadError: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/test/gpf.jl:14
in expression starting at /Users/carriesu/.julia/packages/GasPowerModels/aycKw/test/runtests.jl:42
ERROR: Package GasPowerModels errored during testing
The text was updated successfully, but these errors were encountered: