Complete ModelingToolkit v9 and Julia v1.10 compatibility upgrade #117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR completes the ModelingToolkit v9 and Julia v1.10 compatibility upgrade, building upon PR #89 and adding the necessary fixes to make all tests pass.
Major Updates
Dependency Versions
Breaking Changes Fixed
🔧 ModelingToolkit v9 API Changes
get_states()→get_unknowns(): Updated all referencessys.states→sys.unknowns: Updated system field accesscomplete()requirement: Addedcomplete(deim_sys)beforeODEProblemcreation🔧 SymbolicUtils Deprecations
istree()→iscall(): Fixed deprecated function usageiscallandoperation🔧 Test Dependencies
DifferentialEquations→OrdinaryDiffEq: Updated test dependencies for better compatibilityInternal Improvements
🏗️ Code Refactoring
linear_terms()→separate_terms(): Renamed and updated function with enhanced logic📁 File Updates
Project.toml: Updated main dependencies and compatibilitytest/Project.toml: Updated test dependenciesdocs/Project.toml: Updated documentation dependenciessrc/utils.jl: Complete rewrite with new function logicsrc/deim.jl: Updated for MTK v9 API changestest/*.jl: Updated all test files for new dependenciesTest Results ✅
All test suites now pass successfully:
Verification
The package now:
Migration Guide
Users upgrading to this version should:
This PR ensures ModelOrderReduction.jl works seamlessly with the latest SciML ecosystem versions while maintaining full functionality.
🤖 Generated with Claude Code