Broadcast inside of `@mtkmodel` macro causes precompilation failures when put into a package

Well, I am not very familiar with how precompilation works, but the error I mentioned in my original post definitely occurred when trying to precompile my package.
As far as I understood how @mtkmodel should be used, the goal is to be able to create new models in packages, which is precisely what I attempted there.

I think I see what you mean by the broadcasting problem, but I don’t understand why it is relevant here. In my test module,after stripping everything not necessary to produce the error, I just have

module TestModule
using ModelingToolkit

@mtkmodel MassXYZ begin
    @parameters begin
        m
        v_0[1:3]
        s_0[1:3]
    end
end

end

so there is no explicit ~ call, no @variables or @equations. Do you mean that having vector-valued parameters implicitly calls broadcasting operators ?