First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
101 views (last 30 days)
Show older comments
Hi Guys,
I have made this powertrain for parallel hybrid configuration shown in picture below. when i run simulation i get get erros which are as follows
First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Component:Simulink | Category:Model warning
Unable to satisfy all initial conditions. The variables involved are listed below. The following variables are involved in a constraint that conflicts with their targets: 'DC_Motor.w' (Angular velocity) 'Generic_Engine.engine_inertia.w' (Rotational velocity) Here are the equations involved: all components involved'Mini_tractor_powertrain/DC Motor'Equation location is: 'E:\toolbox\physmod\elec\library\m\+ee\+electromech\+brushed\dc_motor.sscp' (no line number info) 'Mini_tractor_powertrain/Generic Engine'Equation location is: 'E:\toolbox\physmod\simscape\library\m\+foundation\+mechanical\+rotational\inertia.ssc' (line 45) 'Mini_tractor_powertrain/Simple Gear'Equation location is: 'E:\toolbox\physmod\sdl\sdl\+sdl\+gears\simple_gear.sscp' (no line number info)
Component:Simulink | Category:Model warning
An error occurred while running the simulation and the simulation was terminated
Caused by:
- ['Mini_tractor_powertrain/Subsystem1/Subsystem1/Solver Configuration']: Initial conditions solve failed to converge.
- Nonlinear solver to advance time one step failed to converge due to Linear Algebra error. Failed to solve using iteration matrix.
- The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below. all components and nodal across variables involvedTie variable 'DC_Motor.p.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block. Dependency found among topology equations. Check for missing reference node.
If anybody has solution for this please reply immediately
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/541066/image.jpeg)
1 Comment
Bruno Rodriguez Esteban
on 8 Mar 2021
Hi Pratik,
Without the model, it is a bit difficult to debug, but the message indicates:
The following variables are involved in a constraint that conflicts with their targets: 'DC_Motor.w' (Angular velocity) 'Generic_Engine.engine_inertia.w' (Rotational velocity)
This means that the initial value of the angular velocity of the "DC_Motor" and "Generic_Engine" are different. You might be inputing contradictory values. They need to be consistent, otherwise the solver will struggle.
Hope this helps.
Regards,
Bruno.
Answers (3)
Steve Miller
on 14 Mar 2021
Hi Pratik Shirude - here are three ways to eliminate the warnings at the start of the simulation.
- Remove the inertia from the Generic Engine block. On the "Dynamics" tab, set "Inertia" to "No Inertia".
- Put a flexible shaft between the engine and the motor (parallel spring-damper between the engine and the gear)
- Set the initial speed of the Generic Engine block to be exactly consistent with speed of the DC motor block, taking into account the gear ratio between the two blocks
The meaning of the diagnostic is as Bruno describes in his comment - you have specified two inconsistent initial shaft speeds in the Generic Engine and DC Motor block, and Simscape is trying to find a compromise between those two values. Since it is physically impossible to match both values, it is issuing a warning.
--Steve
0 Comments
Syed Anass
on 16 Nov 2023
FACING THE ISSUES MENTIONED BELOW I DON'T KNOW WHAT TO DO NOW WHAT EVER I DO, THERE IS NO BETTERMENT HAPPENING IN THE SIMULATION OF THE BATTERY MODEL OF A BATTERY PACK. KINDLY SOMEONE HELP ME IN THIS ITS URGENT.
Ungroup 6 similar
Component:Simulink | Category:Block warning
Component:Simulink | Category:Block warning
Component:Simulink | Category:Block warning
Component:Simulink | Category:Block warning
Component:Simulink | Category:Block warning
Component:Simulink | Category:Block warning
First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Component:Simulink | Category:Model warning
Unable to satisfy all initial conditions. The variables involved are listed below. The following variables are involved in a constraint that conflicts with their targets: 'Subsystem20.Cell1.cell_temperature' (Temperature) Here are the equations involved: all components involved'batteryModel2november/Subsystem20''batteryModel2november/Subsystem20/Cell1'Equation location is: 'C:\Program Files\MATLAB\R2023a\toolbox\physmod\battery\shared_library\m\+batteryecm\table_battery.sscp' (no line number info) 'batteryModel2november/Subsystem20/T_amb1'Equation location is: 'C:\Program Files\MATLAB\R2023a\toolbox\physmod\simscape\library\m\+foundation\+signal\+sources\constant.ssc' (line 21) 'batteryModel2november/Subsystem20/convection1''batteryModel2november/Subsystem20/convection1/constant T'Equation locations are: 'C:\Program Files\MATLAB\R2023a\toolbox\physmod\simscape\library\m\+foundation\+thermal\+sources\controlled_temperature.ssc' (line 33) 'C:\Program Files\MATLAB\R2023a\toolbox\physmod\simscape\library\m\+foundation\+thermal\+sources\controlled_temperature.ssc' (line 34)
Component:Simulink | Category:Model warning
An error occurred while running the simulation and the simulation was terminated
Caused by:
- ['batteryModel2november/Solver Configuration']: At time 1696.547995, one or more assertions are triggered. See causes for specific information.
- Temperature adjusted first time constant must be greater than zero. The assertion comes from: Block path: batteryModel2november/Subsystem20/C150Assert location: o (location information is protected)
Component:Simulink | Category:Block error
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1541282/image.png)
0 Comments
pravallika gandhaveeti
on 2 Aug 2024 at 5:22
The following variables' targets could not be honored: 'Inertia.w' (Rotational velocity) 'Subsystem.Tire_Magic_Formula1.tire_inertia.w' (Rotational velocity) 'Subsystem.Tire_Magic_Formula2.tire_inertia.w' (Rotational velocity)
0 Comments
See Also
Categories
Find more on Simscape Driveline in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!