Warning when installing ModelingToolkit

If I install ModelingToolkit v9.33.1 using this script:

#!/bin/bash -eu
rm -rf /tmp/testdepot
mkdir /tmp/testdepot
rm -rf /tmp/test
mkdir /tmp/test
cd /tmp/test
export JULIA_DEPOT_PATH=/tmp/testdepot 
julia --project="." -e "using Pkg; Pkg.add(\"ModelingToolkit\"); using ModelingToolkit; Pkg.status()"

I get the following warning:

┌ ModelingToolkit
│  ┌ Warning: solve_for is deprecated, please use symbolic_linear_solve instead.
│  │   caller = tearing_reassemble(state::ModelingToolkit.TearingState{ModelingToolkit.ODESystem}, var_eq_matching::ModelingToolkit.BipartiteGraphs.Matching{Union{ModelingToolkit.BipartiteGraphs.Unassigned, ModelingToolkit.StructuralTransformations.SelectedState}, Vector{Union{ModelingToolkit.BipartiteGraphs.Unassigned, ModelingToolkit.StructuralTransformations.SelectedState, Int64}}}, full_var_eq_matching::Nothing; simplify::Bool, mm::ModelingToolkit.SparseMatrixCLIL{Int64, Int64}) at symbolics_tearing.jl:459
│  └ @ ModelingToolkit.StructuralTransformations /tmp/testdepot/packages/ModelingToolkit/2KZCu/src/structural_transformation/symbolics_tearing.jl:459
└  

Can this be fixed in ModelingToolkit? Shall I report it as a bug?

It will get fix, that’s just a new depwarn.

1 Like