Commit Graph

1003 Commits

Author SHA1 Message Date
Hong Chen
eed8707638
Added sub second information to message time stamps. (#1773)
* Added sub second information to message time stamps.

* Removed "0." for sub-second portion of time stamp.
2024-09-17 11:03:40 -05:00
Hong Chen
b46ba50fd0
Added optional remote shell config file for the remote startup command. (#1771)
* Added optional remote sheel config file for the remote startup command.

* Updated to cd to the sim directory after sourcing a config file in case the config file changed pwd.
2024-09-17 10:59:52 -05:00
dependabot[bot]
f8a432c8a0
Bump path-to-regexp and express in /trick_source/web/dashboard (#1780)
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `path-to-regexp` from 0.1.7 to 0.1.10
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases)
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v0.1.7...v0.1.10)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: path-to-regexp
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 10:14:03 -05:00
dependabot[bot]
052d0bfedb
Bump webpack from 5.88.2 to 5.94.0 in /trick_source/web/dashboard (#1766)
Bumps [webpack](https://github.com/webpack/webpack) from 5.88.2 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.88.2...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 14:26:44 -05:00
dependabot[bot]
1f1a935228
Bump micromatch from 4.0.5 to 4.0.8 in /trick_source/web/dashboard (#1767)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 14:25:26 -05:00
Pherring04
d2ec14dc02
Wiki button (#1755)
* Added a wiki button

* Removed commented code

* Updated SCP image

---------

Co-authored-by: Pherring04 <plherrin@JSLRL0523040929.ndc.nasa.gov>
2024-08-27 15:03:33 -05:00
Mrockwell2
de1cb6740b
Fixed the warning and error messages when toggling monte carlo (#1761) 2024-08-20 10:47:05 -05:00
Thomas Brain
26f6a02e44
Added "target_integ_time" to Integrator class. It can be useful to know the integration time. (#1760)
Co-authored-by: Thomas Brain <thomas.a.brain@nasa.gov>
2024-08-13 10:51:24 -05:00
iamthad
92b0168b7b
Speed up Trick::ScheduledJobQueue::push (#1694)
* Speed up Trick::ScheduledJobQueue::push

* Make comparator a static function

* Use upper_bound instead

* Use explicit types

* Update comment

* Fix formatting
2024-07-23 12:16:57 -05:00
Hong Chen
f892b41d2d
Added TRICK_LDFLAGS to the rule for linking shared library for jit input. (#1745)
* Added TRICK_LDFLAGS to the rule for linking shared library so user can use TRICK_LDFLAGS for linking shared library if necessary.

* Removed the new line added by accident.
2024-07-23 11:53:33 -05:00
Keith Vetter
f2e93ac490
Fix for assigning to non-existent variables (#1708) (#1718)
* Fix for assigning to non-existent variables (#1708)

This fix modifies Trick's convert_swig script.  It
adds a directive to not accept dynamic attributes.
The directive will ensure that modelers do not
assign to non-existent parameter in their input files.

The prior fix (issues #1288 and/or #1603) did not
cover C structures, so this commit is really an
addendum to that fix.  With this commit, the convert_swig
script will generate a non-dynamic directive foreach
class and structure.

This fix also stops generating swig interface code
for typedef structure definitions since swig only
produces an interface to the actual typedef name.
For example, with this typedef:

typedef struct StructureName {
   double  main_engine_thrust;  /* N Thrust of main engine */
   struct StructureName* next;  /* ** Next pointer */
} TypeDefName;

swig creates an interface for "TypeDefName", and not
"StructureName", so there is no need for Trick to
produce anything in regards "StructureName".

* Fix for issue with classes defined in ifndef SWIG block

convert_swig takes in the raw header and does no preprocessing,
so blocks of c/c++ header code which are meant to be skipped
by Swig are processed by convert_swig.  This causes an issue
with the generated python code that try to access classes
that are ifndef SWIGed out.

To fix this, check for class existence in the generated python
code e.g:

if 'MomMom' in globals():
    MomMom.__setattr__ = _swig_setattr_nondynamic_instance_variable(object.__setattr__)

* Fix for assignment to swig_double and swig_int primitives

The previous commit(s) on this branch fixed bad assignments
like (misspell position an attribute of BSTATE_IN):
ball.state.input.positiaaaan = 4.0

This commit fixes bad assignments to leaf/primitive attributes
like (try to add attribute to primitive/leaf double type):

ball.state.input.position.fred = 4.0

* Moved _swig_setattr_nondynamic_instance_variable to right after each class in process_class and removed duplicate _swig_setattr_nondynamic_instance_variable blocks for classes that are not in a namespace.

* Add the call for __setattr__ for class templates.

---------

Co-authored-by: Hong Chen <hong.chen-1@nasa.gov>
2024-07-16 10:34:02 -05:00
Hong Chen
f666708374
Repurposed -OO for all sim run outputs including S_sie.resource being saved in the specified directory. (#1714)
* Repurposed -OO so all sim run outputs including S_sie.resource are saved to the specified folder. The files are placed in the sub-dir either RUN_xxx or DP_Product of the specified folder.

* Updated for repurposed -OO.

* Added quoting code markdown for such as in order to show <name> as is.

* Added quoting code for missing items.

* Updated to raise an error when the --read-only-sim flag is used without the -O or -OO. Also made updates to the related document accordingly.

* Fixed the error message to be more clear.
2024-07-16 10:31:52 -05:00
Hong Chen
37e273a024
Corrected .d file path for the clean target in Makefile.input file. (#1735) 2024-06-27 10:34:44 -05:00
Mrockwell2
7bc531273c
1720 websocket freeze issue (#1724)
* fixed web server freeze issue

* Revert "fixed web server freeze issue"

This reverts commit 7883453f6a.

* Fixed Webserver freeze issue

---------

Co-authored-by: Marcus Rockwell <marcusrockwell@gmail.com>
2024-06-27 10:25:22 -05:00
dependabot[bot]
abddad8424
Bump braces from 3.0.2 to 3.0.3 in /trick_source/web/dashboard (#1734)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 15:22:52 -05:00
Pherring04
5219c1d279
message (#1712) 2024-05-23 10:29:53 -05:00
Hong Chen
d72312c602
Customize clang diagnostic handling. (#1707)
* Cutomize clang diagnostic handling.

* Removed code that was commented out.
2024-05-14 10:53:11 -05:00
dependabot[bot]
26c18d95af
Bump ejs from 3.1.9 to 3.1.10 in /trick_source/web/dashboard (#1705)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 14:56:17 -05:00
Pherring04
14708ca9cc
Issue-1677 Fix (#1688)
* Added timeout to control panel to variable server connection attempts

* Updated 127.0.0.1 to localhost
2024-04-18 13:46:05 -05:00
jmpenn
5065d96a15
Pre-increment (rather than post-increment) STL iterators in for loops… (#1692)
* Pre-increment (rather than post-increment) STL iterators in for loops. #1594

* Fix a goof. #1594
2024-04-18 11:41:35 -05:00
jmpenn
04822023de
In MemoryManager change delete_var(const char*) to delete_var(std::string) (#1687) 2024-04-04 10:33:18 -05:00
Hong Chen
d40bc12570
Incorporate llvm 18 changes. (#1685)
* Incorporate llvm 18 changes.

* Fixed to set input file properly for clang3.4 or ealier.

* Fixed missing brackets and added the rule back for the condition to call clang init preprocessor which was taken out incorrectly by the last commit.
2024-04-02 13:37:00 -05:00
jmpenn
c4e60d9f9a
Proposed fix for deadlock on shutdown (#1673)
* Proposed fix for deadlock on shutdown

* Terminate C style comment.

* Added needed libs for applicable tests and updated the logic for when allowing/disallowing connections.

* Need to load additional trick libs for applicable tests for Linux.

---------

Co-authored-by: Hong Chen <hong.chen-1@nasa.gov>
2024-03-28 15:15:19 -05:00
dependabot[bot]
209984255e
Bump express from 4.18.2 to 4.19.2 in /trick_source/web/dashboard (#1678)
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 14:32:56 -05:00
Thomas Brain
48924d585a
python3 GIL locking solution (#1675)
* Implemented use of the python GIL API to replace the less portable mutex solution.

* Replaced nullptr with NULL

---------

Co-authored-by: Thomas Brain <thomas.a.brain@nasa.gov>
2024-03-27 14:20:58 -05:00
dependabot[bot]
e6daf35524
Bump webpack-dev-middleware in /trick_source/web/dashboard (#1676)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-26 11:05:27 -05:00
Hong Chen
d4f92cc501
Update frame_time attribute in FrameDataRecordGroup from unitless to s. (#1672) 2024-03-21 09:52:30 -05:00
dependabot[bot]
8f5a1e8bdb
Bump follow-redirects in /trick_source/web/dashboard (#1669)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-21 09:32:24 -05:00
Hong Chen
da0ddfcb89
Updated to get bsaf-1.9.2.jar locally instead of from maven repository. (#1667) 2024-03-13 10:21:50 -05:00
Hong Chen
2ac342cfc5
More rusage info added to the end of the run summary output enhancement (#1645)
* Added additional resource usage info for sim run.

* Fixed so voluntary context switches output uses corresponding ru_nvcsw instead of ru_nivcsw due to copy and paste error.

* Removed added resource usage data for page faults and block operations due to inconsistency on different OS.

* Updated to have voluntary and involuntary usage data for both initilization and run for sim shutdown run summary.
2024-02-29 14:52:41 -06:00
dependabot[bot]
df5bdc3107
Bump es5-ext from 0.10.62 to 0.10.64 in /trick_source/web/dashboard (#1658)
Bumps [es5-ext](https://github.com/medikoo/es5-ext) from 0.10.62 to 0.10.64.
- [Release notes](https://github.com/medikoo/es5-ext/releases)
- [Changelog](https://github.com/medikoo/es5-ext/blob/main/CHANGELOG.md)
- [Commits](https://github.com/medikoo/es5-ext/compare/v0.10.62...v0.10.64)

---
updated-dependencies:
- dependency-name: es5-ext
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 14:48:07 -06:00
jmpenn
a2183fb60e
Fix Issue #1386 (#1659) 2024-02-27 15:07:48 -06:00
jmpenn
bfb6419637
Fix the alloc_type of allocations performed by declare_var. #1529 (#1639) 2024-01-24 14:06:04 -06:00
Alex Lin
7547d36ab4
Repurpose the "Sim/Real Time" field on the sim control panel #1626 (#1627)
* Repurpose the "Sim/Real Time" field on the sim control panel #1626

Added calculations in the realtime sync monitor job to calculate the
average sim/realtime ratio for the past 100 frames.  This is saved to
a new variable, actual_run_ratio.  Changed the sim control panel to
display the actual_run_ratio value.

* Repurpose the "Sim/Real Time" field on the sim control panel #1626

how does this compile locally but not in CI?  Didn't include cmath.
2024-01-23 10:46:55 -06:00
Mrockwell2
dad8e3b872
Standardized error messaging in Sim Control Panel. (#1636)
* Standardized error messaging in Sim Control Panel.

* Allowed for a popup when in Lite mode

* Fixed the NullPointerException

* Cleaning up and documenting implementation.
2024-01-18 10:57:52 -06:00
Hong Chen
fe105451b9
Dump cycle time for all type instead of just PROCESS_TYPE_AMF_CHILD. (#1638) 2024-01-18 10:40:19 -06:00
Hong Chen
6d86a0fd97
Updated to log applicable time in seconds instead of tics for frame logging (#1623)
* Updated to log applicable time in seconds instead of tics, remove scale attribute in dp product XMLs, and reset clock before realtime clock sync to avoid logging epoch time for frame logging.

* Removed "_seconds" from applicable time variable names.
2024-01-18 10:17:54 -06:00
dependabot[bot]
f80e600162
Bump follow-redirects in /trick_source/web/dashboard (#1635)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 10:06:29 -06:00
dependabot[bot]
65c20d9983
Bump plotly.js from 1.49.0 to 2.25.2 in /trick_source/web/dashboard (#1634)
Bumps [plotly.js](https://github.com/plotly/plotly.js) from 1.49.0 to 2.25.2.
- [Release notes](https://github.com/plotly/plotly.js/releases)
- [Changelog](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/plotly/plotly.js/compare/v1.49.0...v2.25.2)

---
updated-dependencies:
- dependency-name: plotly.js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 10:11:13 -06:00
Hong Chen
dafddff0a1 update version numbers to prerelease 19.8.0-beta 2023-12-18 14:25:50 -06:00
Sean Harmeyer
ba38260690 Update version numbers for Trick Simulation Environment 19.7.1 2023-12-18 12:33:32 -06:00
Hong Chen
b7e541e02f
Updated not to add "friend class" to embedded private list so it can be accessed. (#1625)
* Updated not to add "friend class" to embedded private list so it can be accessed.

* Added a list to hold all friends class decl so able to specifically make sure not to remove them from io source but not to allow is source for others.

* Added namespaces to class names for comparison as class name only needs to be unique within the same namespace.

* Added if NULL check before getting friend decl type string.
2023-12-14 13:28:16 -06:00
Hong Chen
867736a1b1 update version numbers to prerelease 19.8.0-beta 2023-12-01 13:15:31 -06:00
Sean Harmeyer
d711b47170 update version numbers for Trick Simulation Environment 19.7.0 2023-12-01 11:43:08 -06:00
ddj116
483cacfafd
MonteCarloGenerate: Provide more metadata on dispersions (#1608)
* Add type, dispersion, min_value, max_value and other relevant internal
  members of MonteCarloVariable* classes to the output of
  MonteCarlo_Meta_data_output. Motivation is for users wanting to post-process
  dispersion parameters used during generation of runs
* Protect against invalid memory access when length of values is zero in
  MonteCarloVariableRandomStringSet::generate_assignment(). Add a new
  verif sim warning case to cover these new lines
* Update new verif data for SIM_mc_generation to support these changes

Closes #1574

Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
2023-12-01 10:09:17 -06:00
Hong Chen
9ead0a28be
Added case in ICG makefile to use C++17 for clang 16 as clang 16 or later builds C++ code according to the C++17 by default. (#1621) 2023-11-30 14:39:00 -06:00
Hong Chen
25b692d055
Added executive time tic value information to S_job_execution. (#1605) 2023-10-31 10:30:41 -05:00
Hong Chen
9076a3e88f
1592 send hs run stats improvement (#1604)
* Added system CPU time and initialization system CPU time and added user wording for existing CPU time to distinguish it from system CPU time used for trick run summary.

* Updated the order of a couple of times of shutdown messages printed on screen and sim/cpu time ratio to both user and system cpu time.

* Minor change for lining up the shutdown message.
2023-10-31 10:20:17 -05:00
Hong Chen
80f341f5e7
Fix the issue of returning a pointer to a local variable in data_products (#1593)
* Updated to use std::string instead for cases that ruturn const char* by referencing to a local variable.

* Updated c_str invovled check as it is never NULL and always return a null-terminated ('\0') string and also removed unnecessary conversion using c_str.

* Updated a data_products file missed last time to replace c_str check with string check.

* Updated missed parts to replace c_str check with string check.

* Updated to use C++ string comparison for std::string variables.
2023-10-26 10:39:02 -05:00
jmpenn
cc6fbc4ff2
Fix and unittest lqueue functions in trick_adt. (#1598) 2023-10-26 10:26:40 -05:00