-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scale Microgrid Test Error #16
Comments
Some updates on this. I have verified that all model parameters are correct and rhs outputs are correct. So these are not it. The "true" solution vectors I generate are from MATLAB based ODE form of the model. Since no analytical solution to the model available . No Jacobian is used. This is done with extreme tolerances. Relative Tolerance This same error appears in hardwired setups (no GridKit) as well. This is for both ODE and DAE forms hardwired. Still actively looking to see what is the issue. |
The test failure seems to be non-deterministic. Different versions of SUNDIALS and/or different machines produce different error norms. For example, from my runs on Frontier:
But from the Github actions:
Both of these are with SUNDIALS v7.1.1. |
This appears to be due to compiler optimizations and how rounding is handled. I am able to exactly (every digit) replicate the results from Github actions on my machine by simply changing optimization flag from There are trig functions utilized in the DG component. I suspect compiler optimizations are handling them differently. Plus the time scales are quite small in the initial time. The errors are worse on I have found two routes (at least for my machine) to handle the problem.
|
I suggest you make a PR with your solution to I suggest building code as |
Trying to run the ScaleMicrogrid test is throwing an error on the 'develop' branch. The error output is as follows:
"ScaleMicrogrid" start time: Jul 10 14:10 EDT
Output:
Test the Relative Error
Test with Nsize = 2 passes!
Test the Relative Error
Test with Nsize = 4 passes!
Test the Relative Error
Test with Nsize = 8 fails!
Some tests fail!!
Test time = 3.82 sec
Test Failed.
"ScaleMicrogrid" end time: Jul 10 14:10 EDT
"ScaleMicrogrid" time elapsed: 00:00:03
This was performed with the coin-or/Ipopt#12 release of GridKit, Sundials 6.7.0, Ipopt 3.14.16, and SuiteSparse 5.10.1.
The text was updated successfully, but these errors were encountered: