buildmodel!(sys,ED)
WARNING: no PTDF supplied
┌ Error: PTDF size is inconsistent
└ @ PowerSimulations /Users/cbarrows/.julia/packages/PowerSimulations/ieC1a/src/component_constructors/branch_constructor.jl:29
type Float64 has no field to_from
Stacktrace:
[1] getproperty(::Any, ::Symbol) at ./sysimg.jl:18
[2] macro expansion at /Users/cbarrows/.julia/packages/JuMP/LjMor/src/macros.jl:329 [inlined]
[3] thermalflowlimits(::Model, ::Type{PowerSimulations.StandardPTDF}, ::Array{Branch,1}, ::Int64) at /Users/cbarrows/.julia/packages/PowerSimulations/ieC1a/src/device_models/branches/flow_constraints.jl:12
[4] macro expansion at ./logging.jl:308 [inlined]
[5] #constructdevice!#129(::Base.Iterators.Pairs{Symbol,AxisArrays.AxisArray{Float64,2,Array{Float64,2},Tuple{AxisArrays.Axis{:branches,Array{String,1}},AxisArrays.Axis{:buses,Array{String,1}}}},Tuple{Symbol},NamedTuple{(:PTDF,),Tuple{AxisArrays.AxisArray{Float64,2,Array{Float64,2},Tuple{AxisArrays.Axis{:branches,Array{String,1}},AxisArrays.Axis{:buses,Array{String,1}}}}}}}, ::Function, ::Model, ::NamedTuple{(:var_active, :var_reactive, :timeseries_active, :timeseries_reactive),Tuple{Array{JuMP.GenericAffExpr{Float64,VariableRef},2},Nothing,Array{Float64,2},Nothing}}, ::Type{Line}, ::Type{PowerSimulations.PiLine}, ::Type{PowerSimulations.StandardPTDF}, ::PowerSystem{Union{Nothing, Array{#s763,1} where #s763<:ThermalGen},Union{Nothing, Array{#s764,1} where #s764<:RenewableGen},Union{Nothing, Array{#s765,1} where #s765<:HydroGen},ElectricLoad,Array{Branch,1},Array{PowerSystems.Storage,1}}) at /Users/cbarrows/.julia/packages/PowerSimulations/ieC1a/src/component_constructors/branch_constructor.jl:29
[6] (::getfield(PowerSimulations, Symbol("#kw##constructdevice!")))(::NamedTuple{(:PTDF,),Tuple{AxisArrays.AxisArray{Float64,2,Array{Float64,2},Tuple{AxisArrays.Axis{:branches,Array{String,1}},AxisArrays.Axis{:buses,Array{String,1}}}}}}, ::typeof(PowerSimulations.constructdevice!), ::Model, ::NamedTuple{(:var_active, :var_reactive, :timeseries_active, :timeseries_reactive),Tuple{Array{JuMP.GenericAffExpr{Float64,VariableRef},2},Nothing,Array{Float64,2},Nothing}}, ::Type{Line}, ::Type{PowerSimulations.PiLine}, ::Type{PowerSimulations.StandardPTDF}, ::PowerSystem{Union{Nothing, Array{#s763,1} where #s763<:ThermalGen},Union{Nothing, Array{#s764,1} where #s764<:RenewableGen},Union{Nothing, Array{#s765,1} where #s765<:HydroGen},ElectricLoad,Array{Branch,1},Array{PowerSystems.Storage,1}}) at ./none:0
[7] #constructnetwork!#172(::Base.Iterators.Pairs{Symbol,Nothing,Tuple{Symbol},NamedTuple{(:PTDF,),Tuple{Nothing}}}, ::Function, ::Model, ::Array{NamedTuple{(:device, :formulation),Tuple{DataType,DataType}},1}, ::NamedTuple{(:var_active, :var_reactive, :timeseries_active, :timeseries_reactive),Tuple{Array{JuMP.GenericAffExpr{Float64,VariableRef},2},Nothing,Array{Float64,2},Nothing}}, ::Type{PowerSimulations.StandardPTDF}, ::PowerSystem{Union{Nothing, Array{#s763,1} where #s763<:ThermalGen},Union{Nothing, Array{#s764,1} where #s764<:RenewableGen},Union{Nothing, Array{#s765,1} where #s765<:HydroGen},ElectricLoad,Array{Branch,1},Array{PowerSystems.Storage,1}}) at /Users/cbarrows/.julia/packages/PowerSimulations/ieC1a/src/component_constructors/network_constructor.jl:20
[8] (::getfield(PowerSimulations, Symbol("#kw##constructnetwork!")))(::NamedTuple{(:PTDF,),Tuple{Nothing}}, ::typeof(PowerSimulations.constructnetwork!), ::Model, ::Array{NamedTuple{(:device, :formulation),Tuple{DataType,DataType}},1}, ::NamedTuple{(:var_active, :var_reactive, :timeseries_active, :timeseries_reactive),Tuple{Array{JuMP.GenericAffExpr{Float64,VariableRef},2},Nothing,Array{Float64,2},Nothing}}, ::Type{PowerSimulations.StandardPTDF}, ::PowerSystem{Union{Nothing, Array{#s763,1} where #s763<:ThermalGen},Union{Nothing, Array{#s764,1} where #s764<:RenewableGen},Union{Nothing, Array{#s765,1} where #s765<:HydroGen},ElectricLoad,Array{Branch,1},Array{PowerSystems.Storage,1}}) at ./none:0
[9] #buildmodel!#21(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::PowerSystem{Union{Nothing, Array{#s763,1} where #s763<:ThermalGen},Union{Nothing, Array{#s764,1} where #s764<:RenewableGen},Union{Nothing, Array{#s765,1} where #s765<:HydroGen},ElectricLoad,Array{Branch,1},Array{PowerSystems.Storage,1}}, ::PowerSimulations.PowerOperationModel{EconomicDispatch,PowerSimulations.StandardPTDF,Nothing}) at /Users/cbarrows/.julia/packages/PowerSimulations/ieC1a/src/base/model_constructors.jl:31
[10] buildmodel!(::PowerSystem{Union{Nothing, Array{#s763,1} where #s763<:ThermalGen},Union{Nothing, Array{#s764,1} where #s764<:RenewableGen},Union{Nothing, Array{#s765,1} where #s765<:HydroGen},ElectricLoad,Array{Branch,1},Array{PowerSystems.Storage,1}}, ::PowerSimulations.PowerOperationModel{EconomicDispatch,PowerSimulations.StandardPTDF,Nothing}) at /Users/cbarrows/.julia/packages/PowerSimulations/ieC1a/src/base/model_constructors.jl:5
[11] top-level scope at In[26]:1