Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

ERROR

ERROR

Dear Members,

I am working on Modelica code to solve a nonlinear equation. Unfortunately, I am unable to solve it due to following error

ERROR: Failed to solve non-linear system using Newton solver.To get more information: Turn on Simulation/Setup/Debug/Nonlinear solver diagnostics/DetailsSolution to systems of equations not found at time = 0   Nonlinear system of equations number = 2   Infinity-norm of residue = 0.0923604   Iteration is not making good progress.   Accumulated number of residue calculations: 600   Last values of solution vector:tz_NLSpring3D1.lineForce.flange_b.f = 0
   Last values of residual vector:{ 0.0923604 }
Trying homotopy
ERROR: Failed to solve non-linear system using Newton solver.To get more information: Turn on Simulation/Setup/Debug/Nonlinear solver diagnostics/DetailsSolution to systems of equations not found at time = 0   Nonlinear system of equations number = 2   Infinity-norm of residue = 0.00763961   Iteration is not making good progress.   Accumulated number of residue calculations: 987   Last values of solution vector:tz_NLSpring3D1.lineForce.flange_b.f = 0
   Last values of residual vector:{ -0.00763961 }
Error: Failed to start model.


What could be the reason? I am really struggling to find what is the problem and I failed. Please try to give me you valuable suggestions, so that I can make some progress.

Thank you,

--
Regards
Chanakya

Re: ERROR

Dear members,

I will OpenModelica to test the example of linear system state space time response. However, it doesn't work. It is the same with plot step.



[:0:0-0:0] Error: Cannot instantiate Modelica_LinearSystems2.Examples.StateSpace.plotStep due to restriction FUNCTION.

Could you tell me what the problem with that?

Thank you,

Best wishes,

Grace

Re: ERROR

It's quite simple. You are trying to instantiate a function, which is impossible to do current/smile

Call the function from OMShell if you want to see the results. Or don't. Modelica_LinearSystems2 is not 100% pure Modelica. It uses Dymola-specific plotting extensions to Modelica and these parts of Modelica_LinearSystems2 will not work with OpenModelica.

Re: ERROR

I have made a microgrid model but not getting simulation result despite no errors. But it shows few warnings and messages.

Warning as under :

Type error.
Internal error.

Also, in simulation tab it is written :

Log-file of program ./dymosim
(generated: Mon Jul 17 12:56:21 2017)

dymosim started
... "dsin.txt" loading (dymosim input file)
ERROR: Failed to solve non-linear system using Newton solver.
To get more information: Turn on Simulation/Setup/Debug/Nonlinear solver diagnostics/Details
Solution to systems of equations not found at time = 0
   Nonlinear system of equations number = 1
   Infinity-norm of residue = 1.1437E+006
   Iteration is not making good progress.
   Accumulated number of residue       calc.: 205
   Accumulated number of symbolic Jacobian calc.: 6
   Last values of solution vector:
transformer.T1.i.re = -16.9171
transformer.T1.i.im = 21.3675
pQLoad6.T.i.im = -5.99541
pQLoad5.T.i.re = 1.00381
pQLoad5.T.i.im = -5.99541
pQLoad4.T.i.re = 1.00381
pQLoad4.T.i.im = -5.99541
pQLoad3.T.i.re = 1.00381
pQLoad3.T.i.im = -5.99541
pQLoad2.T.i.re = 1.00381
pQLoad2.T.i.im = -5.99541
pQLoad1.T.i.re = 1.00381
pQLoad1.T.i.im = -5.99541
pQLoad6.T.i.re = 1.00381
   Last values of residual vector:
{ 9363.05, 16853.7, 9363.05, 16853.7, 168622,
  817776, 9363.05, 16853.7, 9363.05, 16853.7,
  9363.05, 16853.7, 9363.05, 16853.7 }

Error: Failed to start model.

Please help me.

Re: ERROR

i too got same error.....did you find the solution for that problem?....if yes, could you please tell me the procedure to solve the issue?.......

Thanks in advance
vikram

Edited by: vikramiiit - Dec-18-17 10:40:07

Re: ERROR

Dear members,

i made thermal energy storage model and while simulating the model it is giving followin error, could you please tell me, how to solve this problem

Log-file of program ./dymosim
(generated: Mon Dec 18 11:42:45 2017)

dymosim started
... "dsin.txt" loading (dymosim input file)
ERROR: Failed to solve non-linear system using Newton solver.
It could be that:
* the starting values are too far from the solution
- especially if this occurs at the starting point (see homotopy in the manual) - in rare cases it could occur at events
* the equations are too discontinuous for the non-linear solver (likely due to over-using noEvent) - the residual will have knees,
* the equations have no solution (note that in some cases the event-logic can cause this) - the residual will be above zero.
Jacobian has inverse norm 1.01442e-015 and condition number 7.78839e+013.
The residual is large, using better start values can be a solution.
To get more information: Turn on Simulation/Setup/Debug/Nonlinear solver diagnostics/Details
Solution to systems of equations not found at time = 0
   Nonlinear system of equations number = 60
Tag: initialization.nonlinear[59]
   Infinity-norm of residue = 1.71493E+007
   Iteration is not making good progress.
   Accumulated number of residue       calc.: 158
   Accumulated number of symbolic Jacobian calc.: 14
   Last values of solution vector:
total_storage_lenght_1m3.adiabatic10.pipe.mediums[1].der(T) = -24.4238
total_storage_lenght_1m3.adiabatic11.pipe.mediums[1].der(T) = -5.42782
total_storage_lenght_1m3.adiabatic14.pipe.mediums[1].der(T) = -5.42782
total_storage_lenght_1m3.adiabatic6.pipe.mediums[1].der(T) = -5.42782
total_storage_lenght_1m3.adiabatic7.pipe.mediums[1].der(T) = -5.42782
total_storage_lenght_1m3.insulation_1side.pipe.mediums[1].der(T) = -95.1454
total_storage_lenght_1m3.insulation_1side1.pipe.mediums[1].der(T) = -95.1454
total_storage_lenght_1m3.insulation_1side2.pipe.mediums[1].der(T) = -95.1454
total_storage_lenght_1m3.insulation_1side3.pipe.mediums[1].der(T) = -95.1454
total_storage_lenght_1m3.insulation_1side5.pipe.mediums[1].der(T) = -95.1454
total_storage_lenght_1m3.insulation_1side6.pipe.mediums[1].der(T) = -95.1454
total_storage_lenght_1m3.insulation_1side7.pipe.mediums[1].der(T) = -95.1454

Trying to solve non-linear system using global homotopy-method.
ERROR: Failed to solve non-linear system using Newton solver.
It could be that:
* the starting values are too far from the solution
- especially if this occurs at the starting point (see homotopy in the manual) - in rare cases it could occur at events
* the equations are too discontinuous for the non-linear solver (likely due to over-using noEvent) - the residual will have knees,
* the equations have no solution (note that in some cases the event-logic can cause this) - the residual will be above zero.
Jacobian has inverse norm 8.24951e-014 and condition number 1.48117e+013.
The residual is large, using better start values can be a solution.
To get more information: Turn on Simulation/Setup/Debug/Nonlinear solver diagnostics/Details
Solution to systems of equations not found at time = 0
   Nonlinear system of equations number = 59
Tag: homotopy-zero.nonlinear[1]
   Infinity-norm of residue = 1.01994E+007
   Iteration is not making good progress.
   Accumulated number of residue       calc.: 118
   Accumulated number of symbolic Jacobian calc.: 8
   Last values of solution vector:

Re: ERROR

Hello,

I would like to put this problem together, in case someone has had the answer for all these years.

Good luck with containment, wherever you are.

There are 0 guests and 0 other users also viewing this topic