blond-org / BLonD-cpp

BLonD implementation in C++
GNU General Public License v3.0
2 stars 3 forks source link

Windows 79% unit test passing #27

Closed OlegJakushkin closed 8 years ago

OlegJakushkin commented 8 years ago

Left unit tests: 4 - testFullRing (Failed) 6 - testInducedVoltage (Failed) 7 - testInducedVoltageFreq (Failed) 9 - testLHCFlatSpectrum (Failed) 23 - testTC5_Wake_impedance (Failed)

Details:

23: [ RUN      ] testTC5.timeTrack
23: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testTC5_Wake_impedance.cpp(142): error: The difference between ref and real is 2310022.9712593053, which exceeds epsilon * std::max(fabs(ref), fabs(real)), where
23: ref evaluates to -2594201.5499999998,
23: real evaluates to -284178.57874069444, and
23: epsilon * std::max(fabs(ref), fabs(real)) evaluates to 0.025942015499999999.
23: Testing of Beam->dE failed on i 0
23:
23: [  FAILED  ] testTC5.timeTrack (11 ms)
23: [ RUN      ] testTC5.freqTrack
23: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testTC5_Wake_impedance.cpp(217): error: The difference between ref and real is 2359163.4831565307, which exceeds epsilon * std::max(fabs(ref), fabs(real)), where
23: ref evaluates to -2640992.5699999998,
23: real evaluates to -281829.08684346912, and
23: epsilon * std::max(fabs(ref), fabs(real)) evaluates to 0.0264099257.
23: Testing of Beam->dE failed on i 0
23:
23: [  FAILED  ] testTC5.freqTrack (2814 ms)
23: [----------] 2 tests from testTC5 (2825 ms total)
23:
23: [----------] Global test environment tear-down
23: [==========] 2 tests from 1 test case ran. (2825 ms total)
23: [  PASSED  ] 0 tests.
23: [  FAILED  ] 2 tests, listed below:
23: [  FAILED  ] testTC5.timeTrack
23: [  FAILED  ] testTC5.freqTrack

9: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testLHCFlatSpectrum.cpp(233): error: The difference between stdV and stdR is 0.26520917652278708, which exceeds epsilon * std::min(fabs(stdV), fabs(stdR)), where
9: stdV evaluates to 3.4020581347334278,
9: stdR evaluates to 3.1368489582106407, and
9: epsilon * std::min(fabs(stdV), fabs(stdR)) evaluates to 0.15684244791053203.
9: [  FAILED  ] testLHCFlatSpectrum.generate_none1 (42 ms)
9: [----------] 6 tests from testLHCFlatSpectrum (238 ms total)
9:
9: [----------] Global test environment tear-down
9: [==========] 6 tests from 1 test case ran. (238 ms total)
9: [  PASSED  ] 5 tests.
9: [  FAILED  ] 1 test, listed below:
9: [  FAILED  ] testLHCFlatSpectrum.generate_none1

7: [ RUN      ] testInducedVoltageFreq.induced_voltage_generation1
7: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testInducedVoltageFreq.cpp(387): error: The difference between ref and real is 8.273550189020451, which exceeds epsilon * std::max(fabs(ref), fabs(real)), where
7: ref evaluates to -9.6316067400000005,
7: real evaluates to -1.3580565509795501, and
7: epsilon * std::max(fabs(ref), fabs(real)) evaluates to 9.6316067400000012e-08.
7: Testing of indVoltFreq->fInducedVoltage failed on i 0
7:
7: [  FAILED  ] testInducedVoltageFreq.induced_voltage_generation1 (660 ms)
7: [ RUN      ] testInducedVoltageFreq.track1
7: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testInducedVoltageFreq.cpp(416): error: The difference between ref and real is 2343.639861113641, which exceeds epsilon * std::max(fabs(ref), fabs(real)), where
7: ref evaluates to -2723.8494000000001,
7: real evaluates to -380.20953888635881, and
7: epsilon * std::max(fabs(ref), fabs(real)) evaluates to 2.7238494e-05.
7: Testing of Beam->dE failed on i 0
7:
7: [  FAILED  ] testInducedVoltageFreq.track1 (661 ms)
7: [ RUN      ] testInducedVoltageFreq.track2
7: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testInducedVoltageFreq.cpp(447): error: The difference between ref and real is 23436.39860406029, which exceeds epsilon * std::max(fabs(ref), fabs(real)), where
7: ref evaluates to -27278.865399999999,
7: real evaluates to -3842.4667959397079, and
7: epsilon * std::max(fabs(ref), fabs(real)) evaluates to 0.00027278865399999998.
7: Testing of Beam->dE failed on i 0
7:
7: [  FAILED  ] testInducedVoltageFreq.track2 (1025 ms)
7: [----------] 8 tests from testInducedVoltageFreq (5085 ms total)
7:
7: [----------] Global test environment tear-down
7: [==========] 8 tests from 1 test case ran. (5085 ms total)
7: [  PASSED  ] 5 tests.
7: [  FAILED  ] 3 tests, listed below:
7: [  FAILED  ] testInducedVoltageFreq.induced_voltage_generation1
7: [  FAILED  ] testInducedVoltageFreq.track1
7: [  FAILED  ] testInducedVoltageFreq.track2

6: Test command: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\BUILD\Release\testInducedVoltage.exe
6: Test timeout computed to be: 1500
6: [==========] Running 7 tests from 1 test case.
6: [----------] Global test environment set-up.
6: [----------] 7 tests from testInducedVoltage
6: [ RUN      ] testInducedVoltage.InducedVoltageTime_Constructor
6: [       OK ] testInducedVoltage.InducedVoltageTime_Constructor (91 ms)
6: [ RUN      ] testInducedVoltage.InducedVoltageTimeReprocess
6: [       OK ] testInducedVoltage.InducedVoltageTimeReprocess (149 ms)
6: [ RUN      ] testInducedVoltage.induced_voltage_generation
6: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testInducedVoltage.cpp(265): error: The difference between ref and real is 6216.3696029474831, which exceeds epsilon, where
6: ref evaluates to -7236.8066799999997,
6: real evaluates to -1020.4370770525164, and
6: epsilon evaluates to 1.1757432638764769e-05.
6: Testing of indVoltTime->fInducedVoltage failed on i 128
6:
6: [  FAILED  ] testInducedVoltage.induced_voltage_generation (151 ms)
6: [ RUN      ] testInducedVoltage.induced_voltage_generation_convolution
6: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testInducedVoltage.cpp(299): error: The difference between ref and real is 6216.3696029474822, which exceeds epsilon, where
6: ref evaluates to -7236.8066799999997,
6: real evaluates to -1020.4370770525173, and
6: epsilon evaluates to 1.1757432638764763e-05.
6: Testing of indVoltTime->fInducedVoltage failed on i 128
6:
6: [  FAILED  ] testInducedVoltage.induced_voltage_generation_convolution (150 ms)
6: [ RUN      ] testInducedVoltage.track
6: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testInducedVoltage.cpp(328): error: The difference between ref and real is 3108.2166718444696, which exceeds epsilon * std::max(fabs(ref), fabs(real)), where
6: ref evaluates to -3613.9547299999999,
6: real evaluates to -505.7380581555305, and
6: epsilon * std::max(fabs(ref), fabs(real)) evaluates to 3.6139547299999999e-05.
6: Testing of Beam->dE failed on i 0
6:
6: [  FAILED  ] testInducedVoltage.track (165 ms)
6: [ RUN      ] testInducedVoltage.totalInducedVoltageSum
6: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testInducedVoltage.cpp(365): error: The difference between ref and real is 6216.3696029474831, which exceeds epsilon, where
6: ref evaluates to -7236.8066799999997,
6: real evaluates to -1020.4370770525164, and
6: epsilon evaluates to 1.1757432638764769e-05.
6: Testing of extIndVolt failed on i 128
6:
6: [  FAILED  ] testInducedVoltage.totalInducedVoltageSum (149 ms)
6: [ RUN      ] testInducedVoltage.totalInducedVoltageTrack
6: [       OK ] testInducedVoltage.totalInducedVoltageTrack (105 ms)
6: [----------] 7 tests from testInducedVoltage (960 ms total)
6:
6: [----------] Global test environment tear-down
6: [==========] 7 tests from 1 test case ran. (960 ms total)
6: [  PASSED  ] 3 tests.
6: [  FAILED  ] 4 tests, listed below:
6: [  FAILED  ] testInducedVoltage.induced_voltage_generation
6: [  FAILED  ] testInducedVoltage.induced_voltage_generation_convolution
6: [  FAILED  ] testInducedVoltage.track
6: [  FAILED  ] testInducedVoltage.totalInducedVoltageSum

4: [ RUN      ] testFullRing.track2
4: C:\Users\Oleg\Documents\GitHub\Git2\BLonD-minimal-cpp\unit-tests\testFullRing.cpp(170): error: The difference between ref and real is 2612.9921543569203, which exceeds epsilon * max * std::max(fabs(ref), fabs(real)), where
4: ref evaluates to 3348.40569,
4: real evaluates to 735.41353564307985, and
4: epsilon * max * std::max(fabs(ref), fabs(real)) evaluates to -13902.674264854551.
4: Testing of deMean failed
4:
4: [  FAILED  ] testFullRing.track2 (15 ms)
4: [----------] 3 tests from testFullRing (72 ms total)
4:
4: [----------] Global test environment tear-down
4: [==========] 3 tests from 1 test case ran. (72 ms total)
4: [  PASSED  ] 2 tests.
4: [  FAILED  ] 1 test, listed below:
4: [  FAILED  ] testFullRing.track2

Any ideas for the rest?

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.8%) to 75.423% when pulling e66492575dcc1dc59a5740095581155b2390476b on OlegJakushkin:master into 59b9991b594256f6d0d55344f7a1d6e5c899face on kiliakis:master.

kiliakis commented 8 years ago

@OlegJakushkin Well, there is probably something wrong with InducedVoltage::induced_voltage_generation() (for TC5, testInducedVoltage{Freq}). The other 2 errors are not so important. Same tests are failing in both release and debug version?