Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to do 0 * der() #100

Open
tpdsantos opened this issue May 13, 2019 · 0 comments
Open

Unable to do 0 * der() #100

tpdsantos opened this issue May 13, 2019 · 0 comments

Comments

@tpdsantos
Copy link

tpdsantos commented May 13, 2019

Following the issue #88 opened by me, previously it was possible to do something like this:

@model test begin
    c = Var(start = 0.0)
    @equations begin
        0 * der(c) = 1.0 - c
    end
end

But now this error occurs:

!!! Error from ModiaMath.NonlinearEquations.KINSOL: KINSol(...) returned with a [KINSOL] error:
    The linear solver's setup function failed in an unrecoverable manner.
ModiaMath info:
lastNorm(r) = 1.0, lastNorm(rScaled*r) = 1.0.
It might be that the Jacobian is singular (= there are redundant equations).
test: time = 0.0, stepsize of implicit Euler step = 1.0e-8, scaleConstraintsAtEvents = false
x_names     = ["c"]
x_start     = [0.0]
x_fixed     = Bool[true]
x_nominal   = [1.0]
x_yScale    = [1.0]
x_rScale    = [1.0]
x           = [0.0]
derx        = [-1.49012]
residues    = [1.0]
nx          = 1
nd          = 1
nc          = 0
nw          = 0
nz          = 0
tolerance   = 0.0001
FTOL        = 0.0001

Why is this not possible now?

Thanks in advance

@tpdsantos tpdsantos reopened this May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant