I can confirm this is a bug. I have entered a bug report for it: https://gmat.atlassian.net/browse/GMT-8400
From: Anders Edfors via GMAT-users <gmat-users@lists.sourceforge.net> Sent: Tuesday, June 17, 2025 6:02 AM To: gmat-users@lists.sourceforge.net Subject: [EXTERNAL] [BULK] [Gmat-users] GMAT R2025a: Renaming Equation in Mission Sequence CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC. Subject: GMAT R2025a: Renaming Equation in Mission Sequence Corrupts Script Dear GMAT Users, I'm experiencing a bug in GMAT R2025a where renaming an equation in the mission sequence via the GUI corrupts the script, producing an invalid variable name. The issue occurs when renaming for example an equation (default name: `Equation1`) to `Mission Duration`, resulting in a malformed line that embeds the label as part of the variable name. **Original Mission Sequence (Before Adding and Renaming Equation1):** ``` BeginMissionSequence; var_MissionDuration_secs = 3600; Propagate DefaultProp(SC11) {SC11.ElapsedSecs = var_MissionDuration_secs}; ``` **Steps to Reproduce:** 1. Load a default mission in GMAT R2025a with the above mission sequence and required resources (e.g., `Create Variable var_MissionDuration_secs;. 2. In the GUI, go to the Mission tab, right-click in the mission sequence, and add an equation (default name: `Equation1`), setting it to `var_MissionDuration_secs = 3600;`. 3. In the GUI, rename `Equation1` to `Mission Duration` (e.g., in the mission sequence tree or properties panel). 4. Check the mission sequence script. **Expected Behavior**:The variable name updates cleanly or the label is stored as a comment, e.g.: ``` 'Mission Duration' var_MissionDuration_secs = 3600; Propagate DefaultProp(DefaultSC) {DefaultSC.ElapsedSecs = var_MissionDuration_secs}; ``` **Actual Behavior**:The script becomes corrupted, with the variable assignment changed to: ``` var_Miss 'Mission Duration'ionDuration_secs = 3600; Propagate DefaultProp(SC11) {SC11.ElapsedSecs = var_MissionDuration_secs}; ``` This invalid syntax (embedding `'Mission Duration'` in the variable name) causes errors, and the mission sequence may fail to execute. **Environment:** - GMAT Version: R2025a - Operating System: Windows 11 **Additional Notes:** - Manually editing the script avoids the problem, but GUI renaming is preferred for workflow efficiency. - The issue does not occur in R2022a, where renaming works as expected (though it required the `GMAT` prefix). Has anyone else encountered this issue in R2025a? Any insights or suggestions would be greatly appreciated! Best regards, Anders ( anders.edf...@ohb-sweden.se<mailto:anders.edf...@ohb-sweden.se> )
_______________________________________________ GMAT-users mailing list GMAT-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-users