* Updated to use the latest swig and llvm 15.
* Updated to use the latest llvm that comes with the macos docker image.
* Added missing install
* Test without installing llvm
* Tested to link llvm
* Changed back to use downloaded llvm+clang package.
* Check if macos (13-arm) image can find the installed udunits.
* Try macos-13 if it works as documented
* Need to match the cpu type of macos and the build for clang+llvm.
* Change to Mac-12 for gtest.h to be found.
* Switch back to Mac-13 as gtest.h is not a factor for this CI process..
* Rework swig template declarations to be written before used in the containing class so that private methods are honored
* Fix SIM_test_ip for swig 4.2.0 and implemented review suggestions
* Additional review comment fixes
---------
Co-authored-by: Thomas Brain <thomas.a.brain@nasa.gov>
* 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.
* TrickOps: Revert changes to trickops test yml file from Sept 2023
* trick_sims.yml was "accidentally changed" to remove unstable sims
in Sept 2023, breaking the TrickOps unit tests. This reverts that change.
* Adjust new hashlib md5 comparison approach to work on systems where
'usedforsecurity' isn't supported
* Move TrickOps Unit tests back into pull requests
* Adjust TrickOps actions artifacts to use v3.0.0
Per suggestion on workaround as described here:
https://github.com/actions/upload-artifact/issues/478
---------
Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
* 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>
* Add trickeifed classes.resource to sie generation after cp.
* Go through all trickified classes.resource files if available and don't die on any if not found.
* 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>
* 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.
* Updated to use SWIG 4.1.1 due to SWIG 2.0 generats setter wrapper for private constructor or operator.
* Needed to go to unzipped swig-4.1.1 directory before building it.
* Install needed packages for being able to run SWIG 4.1.1 build script.
* 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.
* Standardized error messaging in Sim Control Panel.
* Allowed for a popup when in Lite mode
* Fixed the NullPointerException
* Cleaning up and documenting implementation.
* 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.
* 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.
* 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>
* Use PyUnicode_GET_LENGTH for Python 3.3+ and PyUnicode_GET_SIZE before Python3.3 as GET_SIZE is deprecated in 3.3 and removed in 3.12 while GET_LENGTH is new in 3.3.
* Fixed correct python version for when PyUnicode_GET_LENGTH was new in a comment.
convert_swig did not previously understand the "enum class". Made a regular
expression to catch it. We don't have to do anything special with it for
convert_swig, the matched contents are written to the output file as is.
* 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.