[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orekit Users] Errors Building Orekit



Hi Luc,

Thank you for this advice- that issue has now been resolved, but unfortunately more errors seem to have arisen! Output is given below.

Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.655 sec - in
org.orekit.propagation.analytical.tle.TLESeriesTest
Running org.orekit.propagation.analytical.tle.TLETest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.191 sec - in
org.orekit.propagation.analytical.tle.TLETest
Running org.orekit.propagation.conversion.EcksteinHechlerConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.364 sec - in o
rg.orekit.propagation.conversion.EcksteinHechlerConverterTest
Running org.orekit.propagation.conversion.KeplerianConverterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec - in o
rg.orekit.propagation.conversion.KeplerianConverterTest
Running org.orekit.propagation.conversion.NumericalConverterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.934 sec - in
org.orekit.propagation.conversion.NumericalConverterTest
Running org.orekit.propagation.conversion.OsculatingToMeanElementsConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec - in or
g.orekit.propagation.conversion.OsculatingToMeanElementsConverterTest
Running org.orekit.propagation.conversion.TLEConverterTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.724 sec - in
org.orekit.propagation.conversion.TLEConverterTest
Running org.orekit.propagation.events.AlignmentDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec - in o
rg.orekit.propagation.events.AlignmentDetectorTest
Running org.orekit.propagation.events.AltitudeDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec - in o
rg.orekit.propagation.events.AltitudeDetectorTest
Running org.orekit.propagation.events.ApparentElevationDetectorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec - in o
rg.orekit.propagation.events.ApparentElevationDetectorTest
Running org.orekit.propagation.events.BackAndForthDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.214 sec - in o
rg.orekit.propagation.events.BackAndForthDetectorTest
Running org.orekit.propagation.events.CircularFieldOfViewDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.407 sec - in o
rg.orekit.propagation.events.CircularFieldOfViewDetectorTest
Running org.orekit.propagation.events.DateDetectorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec - in o
rg.orekit.propagation.events.DateDetectorTest
Running org.orekit.propagation.events.DetectorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec - in o
rg.orekit.propagation.events.DetectorTest
Running org.orekit.propagation.events.DihedralFieldOfViewDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.742 sec - in o
rg.orekit.propagation.events.DihedralFieldOfViewDetectorTest
Running org.orekit.propagation.events.EclipseDetectorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec - in or
g.orekit.propagation.events.EclipseDetectorTest
Running org.orekit.propagation.events.ElevationDetectorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.04 sec - in or
g.orekit.propagation.events.ElevationDetectorTest
Running org.orekit.propagation.events.EventFilterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.433 sec - in o
rg.orekit.propagation.events.EventFilterTest
Running org.orekit.propagation.events.EventShifterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.419 sec - in o
rg.orekit.propagation.events.EventShifterTest
Running org.orekit.propagation.events.EventsLoggerTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.369 sec - in o
rg.orekit.propagation.events.EventsLoggerTest
Running org.orekit.propagation.events.GroundMaskElevationDetectorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.559 sec - in o
rg.orekit.propagation.events.GroundMaskElevationDetectorTest
Running org.orekit.propagation.events.NodeDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in o
rg.orekit.propagation.events.NodeDetectorTest
Running org.orekit.propagation.integration.IntegratedEphemerisTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.929 sec - in o
rg.orekit.propagation.integration.IntegratedEphemerisTest
Running org.orekit.propagation.numerical.NumericalPropagatorTest
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.261 sec - in
org.orekit.propagation.numerical.NumericalPropagatorTest
Running org.orekit.propagation.numerical.PartialDerivativesTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.356 sec - in
org.orekit.propagation.numerical.PartialDerivativesTest
Running org.orekit.propagation.semianalytical.dsst.DSSTPropagatorTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.235 sec - in
org.orekit.propagation.semianalytical.dsst.DSSTPropagatorTest
Running org.orekit.propagation.semianalytical.dsst.utilities.CoefficientFactoryT
est
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec - in or
g.orekit.propagation.semianalytical.dsst.utilities.CoefficientFactoryTest
Running org.orekit.propagation.semianalytical.dsst.utilities.GHmsjTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec - in o
rg.orekit.propagation.semianalytical.dsst.utilities.GHmsjTest
Running org.orekit.propagation.semianalytical.dsst.utilities.NewcombOperatorTest

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.108 sec - in o
rg.orekit.propagation.semianalytical.dsst.utilities.NewcombOperatorTest
Running org.orekit.propagation.SpacecraftStateTest
Tests run: 8, Failures: 2, Errors: 1, Skipped: 0, Time elapsed: 3.681 sec <<< FA
ILURE! - in org.orekit.propagation.SpacecraftStateTest
testSerialization(org.orekit.propagation.SpacecraftStateTest)  Time elapsed: 0.1
95 sec  <<< FAILURE!
java.lang.AssertionError: null
        at org.junit.Assert.fail(Assert.java:86)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertTrue(Assert.java:52)
        at org.orekit.propagation.SpacecraftStateTest.testSerialization(Spacecra
ftStateTest.java:299)

testAdditionalStates(org.orekit.propagation.SpacecraftStateTest)  Time elapsed:
0.192 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<test-[2]> but was:<test-[1]>
        at org.junit.Assert.assertEquals(Assert.java:115)
        at org.junit.Assert.assertEquals(Assert.java:144)
        at org.orekit.propagation.SpacecraftStateTest.testAdditionalStates(Space
craftStateTest.java:248)

testDateConsistencyClose(org.orekit.propagation.SpacecraftStateTest)  Time elaps
ed: 0.206 sec  <<< ERROR!
org.orekit.errors.OrekitException$1: orbit date (2004-01-01T00:00:01.000) does n
ot match attitude date (2004-01-01T00:00:01.000)
        at org.orekit.errors.OrekitException.createIllegalArgumentException(Orek
itException.java:176)
        at org.orekit.propagation.SpacecraftState.checkConsistency(SpacecraftSta
te.java:238)
        at org.orekit.propagation.SpacecraftState.<init>(SpacecraftState.java:19
0)
        at org.orekit.propagation.SpacecraftState.<init>(SpacecraftState.java:11
1)
        at org.orekit.propagation.SpacecraftStateTest.testDateConsistencyClose(S
pacecraftStateTest.java:185)

Running org.orekit.time.AbsoluteDateTest
Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.455 sec - in
org.orekit.time.AbsoluteDateTest
Running org.orekit.time.DateComponentsTest
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.478 sec - in
org.orekit.time.DateComponentsTest
Running org.orekit.time.DateTimeComponentsTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in o
rg.orekit.time.DateTimeComponentsTest
Running org.orekit.time.GalileoScaleTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec - in o
rg.orekit.time.GalileoScaleTest
Running org.orekit.time.GMSTScaleTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.257 sec - in o
rg.orekit.time.GMSTScaleTest
Running org.orekit.time.GPSScaleTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in o
rg.orekit.time.GPSScaleTest
Running org.orekit.time.MonthTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.
orekit.time.MonthTest
Running org.orekit.time.TAIScaleTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.o
rekit.time.TAIScaleTest
Running org.orekit.time.TCBScaleTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in o
rg.orekit.time.TCBScaleTest
Running org.orekit.time.TCGScaleTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec - in o
rg.orekit.time.TCGScaleTest
Running org.orekit.time.TDBScaleTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in o
rg.orekit.time.TDBScaleTest
Running org.orekit.time.TimeComponentsTest
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in
org.orekit.time.TimeComponentsTest
Running org.orekit.time.TTScaleTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec - in o
rg.orekit.time.TTScaleTest
Running org.orekit.time.UT1ScaleTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.688 sec - in o
rg.orekit.time.UT1ScaleTest
Running org.orekit.time.UTCScaleTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.37 sec - in o
rg.orekit.time.UTCScaleTest
Running org.orekit.time.UTCTAIHistoryFilesLoaderCompressedDataTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.o
rekit.time.UTCTAIHistoryFilesLoaderCompressedDataTest
Running org.orekit.time.UTCTAIHistoryFilesLoaderNoDataTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.o
rekit.time.UTCTAIHistoryFilesLoaderNoDataTest
Running org.orekit.time.UTCTAIHistoryFilesLoaderRegularDataTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec - in o
rg.orekit.time.UTCTAIHistoryFilesLoaderRegularDataTest
Running org.orekit.utils.AngularCoordinatesTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.107 sec - in
org.orekit.utils.AngularCoordinatesTest
Running org.orekit.utils.ElevationMaskTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.o
rekit.utils.ElevationMaskTest
Running org.orekit.utils.FieldAngularCoordinatesTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.728 sec - in
org.orekit.utils.FieldAngularCoordinatesTest
Running org.orekit.utils.GenericTimeStampedCacheTest
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.99 sec - in o
rg.orekit.utils.GenericTimeStampedCacheTest
Running org.orekit.utils.IERSConventionsTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.186 sec - in
org.orekit.utils.IERSConventionsTest
Running org.orekit.utils.ImmutableTimeStampedCacheTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in o
rg.orekit.utils.ImmutableTimeStampedCacheTest
Running org.orekit.utils.OrekitConfigurationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.o
rekit.utils.OrekitConfigurationTest
Running org.orekit.utils.PVCoordinatesDSTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.515 sec - in o
rg.orekit.utils.PVCoordinatesDSTest
Running org.orekit.utils.PVCoordinatesTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.121 sec - in o
rg.orekit.utils.PVCoordinatesTest

Results :

Failed tests:
  CelestialBodyFactoryTest.multithreadTest:101->checkMultiThread:135 Not all thr
eads finished -> possible deadlock
  OceanTidesTest.testDefaultInterpolation:87 expected:<0.0> but was:<4.941218574
8251906E-6>
  SpacecraftStateTest.testSerialization:299 null
  SpacecraftStateTest.testAdditionalStates:248 expected:<test-[2]> but was:<test
-[1]>

Tests in error:
  SpacecraftStateTest.testDateConsistencyClose:185 »  orbit date (2004-01-01T00:
...

Tests run: 1037, Failures: 4, Errors: 1, Skipped: 4

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:56.353s
[INFO] Finished at: Fri Aug 15 16:18:46 BST 2014
[INFO] Final Memory: 13M/75M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
16:test (default-test) on project orekit: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\User\Documents\Orekit\target\surefire-reports f
or the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on projec
t orekit: There are test failures.

Please refer to C:\Users\User\Documents\Orekit\target\surefire-reports for the i
ndividual test results.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures
.

Please refer to C:\Users\User\Documents\Orekit\target\surefire-reports for the i
ndividual test results.
        at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(Suref
ireHelper.java:82)
        at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(Surefir
ePlugin.java:190)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPre
conditionsChecked(AbstractSurefireMojo.java:852)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(Abstrac
tSurefireMojo.java:720)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption

Thanks you once again for your previous advice.

Regards,

Anees


On 13 August 2014 16:14, MAISONOBE Luc <luc.maisonobe@c-s.fr> wrote:
Hi Anees,

aneesahmad118@gmail.com a écrit :


Dear Sir/Madam

I am interested in using Orekit for orbit propagation, but have run into some
issues in trying to build it with Maven. I have no previous experience with
Maven and very little experience with Java, so have no idea how to go about
troubleshooting this, and was hoping you could give me some advice to help me
work out where the issue could be coming from.

I am using Java Development Kit 8 update 11 and Maven version 3.0.5. I have
downloaded Orekit version 6.1 from the Orekit website and extracted the files
to the directory C:Users\User\Documents\Orekit.

I initially contacted Luc Maisonobe, who suggested that the issue could be
coming from the fact I was using an older version of the Jacoco plugin. On his
advice, I changed the relevant line in the pom.xml file from  <orekit.jacoco-
maven-plugin.version>0.6.3.201306030806</orekit.jacoco-maven-plugin.version>
to <orekit.jacoco-maven-plugin.version>0.7.1.201405082137</orekit.jacoco-
maven-plugin.version>. After attempting to build the package again, I
encountered what seems to be a different error. The command window output is
given below.

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in
o
rg.orekit.frames.LocalOrbitalFrameTest
Running org.orekit.frames.MODProviderTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec -
in
org.orekit.frames.MODProviderTest
Running org.orekit.frames.OrphanFrameTest

[snip]


Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.11 sec - in
or
g.orekit.propagation.semianalytical.dsst.utilities.NewcombOperatorTest
Running org.orekit.propagation.SpacecraftStateTest
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.166 sec <<<
FA
ILURE! - in org.orekit.propagation.SpacecraftStateTest
testAdditionalStates(org.orekit.propagation.SpacecraftStateTest)  Time
elapsed:
0.201 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<test-[2]> but was:<test-[1]>
        at org.junit.Assert.assertEquals(Assert.java:115)
        at org.junit.Assert.assertEquals(Assert.java:144)
        at
org.orekit.propagation.SpacecraftStateTest.testAdditionalStates(Space
craftStateTest.java:210)


[snip]




Any advice you could provide on how to resolve this issue would be much
appreciated.

This is indeed a bug in the test itself, which is not robust enough. This bug was detected a week ago and fixed in the development version of Orekit.
The problem is that this test set up two additional states (test-1 and test-2) which are stored in a map, and then checks that some incompatibility is properly detected and an appropriate exception is thrown. However, when checking the resulting exception, the test assumes the first additional state test-1 will be checked first. This is not robust because a map does not ensure the order of the contained elements is preserved, so some times the second additional state test-2 is checked first and the exception refers to it.

One nasty problem here is that the test failing for this reason depends on the JVM you use.

You can change the src/test/java/org/orekit/propagation/SpacecraftStateTest.java file as show here in order to have a more robust test that will not fail randomly.

<https://www.orekit.org/forge/projects/orekit/repository/revisions/3796388da3ac8827473aadbd4e329630fe91722f/diff/src/test/java/org/orekit/propagation/SpacecraftStateTest.java>


I am sorry for this, its a bug.

best regards,
Luc


Regards,

Anees Ahmad





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.