Skip to content

Commit 5f1893f

Browse files
test: mark inversemodel tests as broken
1 parent 4ba5b0e commit 5f1893f

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

test/downstream/inversemodel.jl

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,27 @@ sol = solve(prob, Rodas5P())
148148
Sf, simplified_sys = Blocks.get_sensitivity_function(model, :y) # This should work without providing an operating opint containing a dummy derivative
149149
x, _ = ModelingToolkit.get_u0_p(simplified_sys, op)
150150
p = ModelingToolkit.MTKParameters(simplified_sys, op)
151-
matrices1 = Sf(x, p, 0)
152-
matrices2, _ = Blocks.get_sensitivity(model, :y; op) # Test that we get the same result when calling the higher-level API
153-
@test_broken matrices1.f_x matrices2.A[1:7, 1:7]
154-
nsys = get_named_sensitivity(model, :y; op) # Test that we get the same result when calling an even higher-level API
155-
@test matrices2.A nsys.A
151+
# If this somehow passes, mention it on
152+
# https://github.com/SciML/ModelingToolkit.jl/issues/2786
153+
@test_broken begin
154+
matrices1 = Sf(x, p, 0)
155+
matrices2, _ = Blocks.get_sensitivity(model, :y; op) # Test that we get the same result when calling the higher-level API
156+
@test matrices1.f_x matrices2.A[1:7, 1:7]
157+
nsys = get_named_sensitivity(model, :y; op) # Test that we get the same result when calling an even higher-level API
158+
@test matrices2.A nsys.A
159+
end
156160

157161
# Test the same thing for comp sensitivities
158162

159163
Sf, simplified_sys = Blocks.get_comp_sensitivity_function(model, :y) # This should work without providing an operating opint containing a dummy derivative
160164
x, _ = ModelingToolkit.get_u0_p(simplified_sys, op)
161165
p = ModelingToolkit.MTKParameters(simplified_sys, op)
162-
matrices1 = Sf(x, p, 0)
163-
matrices2, _ = Blocks.get_comp_sensitivity(model, :y; op) # Test that we get the same result when calling the higher-level API
164-
@test_broken matrices1.f_x matrices2.A[1:7, 1:7]
165-
nsys = get_named_comp_sensitivity(model, :y; op) # Test that we get the same result when calling an even higher-level API
166-
@test matrices2.A nsys.A
166+
# If this somehow passes, mention it on
167+
# https://github.com/SciML/ModelingToolkit.jl/issues/2786
168+
@test_broken begin
169+
matrices1 = Sf(x, p, 0)
170+
matrices2, _ = Blocks.get_comp_sensitivity(model, :y; op) # Test that we get the same result when calling the higher-level API
171+
@test matrices1.f_x matrices2.A[1:7, 1:7]
172+
nsys = get_named_comp_sensitivity(model, :y; op) # Test that we get the same result when calling an even higher-level API
173+
@test matrices2.A nsys.A
174+
end

0 commit comments

Comments
 (0)