ERROR: LoadError: UndefVarError: BranchTrip not defined
frostyduck opened this issue · 8 comments
I want to run this code
using PowerSimulationsDynamics
using PowerSystems
using Logging
using Sundials
using Plots
PSD = PowerSimulationsDynamics
new_sys = System(joinpath("14bus.json"))
time_span = (0.0, 30.0)
perturbation_trip =BranchTrip(1.0, Line, "BUS 02-BUS 04-i_4")
sim = PSD.Simulation(ResidualModel, new_sys, time_span, perturbation_trip)
Hovewer I get the following error:
ERROR: LoadError: UndefVarError: BranchTrip not defined
Can you provide details about which version of PowerSimulationsDynamics are you running?
It looks like you might be running an older version of the package.
Version 1.7
@frostyduck which version of PowerSimulationsDynamics.jl?
You can try to use ] st
to see your version. If you wanna update do ] up
to enter the pkg environment and update your packages
@jd-lara sorry, PowerSimulationsDynamics v0.1.1
@rodrigomha thank you, I have looked my version (v.0.1.1) and after that I tried to use ] up
, but was updated only some packages, excluding PowerSimulationDynamics.jl
Also I tried to use ] update PowerSimulationDynamics
. You can find the result below
(@v1.7) pkg> update PowerSimulationsDynamics
Updating registry atC:\Users\Nikita\.julia\registries\General.toml
No Changes toC:\Users\Nikita\.julia\environments\v1.7\Project.toml
No Changes toC:\Users\Nikita\.julia\environments\v1.7\Manifest.toml
@frostyduck can you share the output of doing
] st
It seems that you have some dependencies that fixed PowerSimulationsDynamics to a very old version.
@jd-lara @rodrigomha
I have found the problem. The LITS.jl package disturbed the installation the latest version Power Simulation Dynamics.jl. Thank for your help!