When phase.timeseries_options['include_control_rates'] = True, and run_problem is executed with both simulate=True and make_plots=True, the timeseries report disables plotting of the simulation results because they are not a subset of the solution results.
Specifically, it appears that using this option with a control rate target (for the first time derivative) will result in "rate2" derivative being present in the simulation results but not in the solution results. Since the simulation timeseries outputs are not a subset of the solution outputs, dymos refuses to plot them.
Example
As with the other control issue, this problem can be revealed by adding phase.timeseries_options['include_control_rates'] = True before problem.setup for the example code in #1131.
The resulting error will be noted during the creation of the bokeh timeseries report.
/Users/rfalck/Projects/dymos.git/dymos/visualization/timeseries/bokeh_timeseries_report.py:288: OpenMDAOWarning:Simulation file does not contain the same outputs as the solution file. Skipping plotting of simulation timeseries data.
This results because the simulation results contain the output 'traj0.phases.phase0.timeseries.timeseries_comp.int_theta_rate2' while the solution results do not.
Description
When
phase.timeseries_options['include_control_rates'] = True
, and run_problem is executed with bothsimulate=True
andmake_plots=True
, the timeseries report disables plotting of the simulation results because they are not a subset of the solution results.Specifically, it appears that using this option with a control rate target (for the first time derivative) will result in "rate2" derivative being present in the simulation results but not in the solution results. Since the simulation timeseries outputs are not a subset of the solution outputs, dymos refuses to plot them.
Example
As with the other control issue, this problem can be revealed by adding
phase.timeseries_options['include_control_rates'] = True
before problem.setup for the example code in #1131.The resulting error will be noted during the creation of the bokeh timeseries report.
This results because the simulation results contain the output 'traj0.phases.phase0.timeseries.timeseries_comp.int_theta_rate2' while the solution results do not.
Dymos Version
1.12.1-dev
Relevant environment information
No response