aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 12 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1717
RA = 31.8989, Dec = -24.0484
tmin = 684374401, tmax = 684633601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='2792', job_status='RUN', time_executed='2022-09-16 10:23:53.069194', time_epoch_executed='1663349033.07' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2792

Creating custom pfile directory:
/scratch/kocevski/2792/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=684374401.0 && nMetStart<684633601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=684374401.0 && nMetStart<684633601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2792/ft1_4FGL_J0207.5-2402_daily_bin1717.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=684374401.0 && nMetStart<684633601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2792/ft1_4FGL_J0207.5-2402_daily_bin1717.fits outfile=/scratch/kocevski/2792/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1717.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=684374401.0 tmax=684633601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.68
user 4.71
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/2792/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 459

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/2792/ltcube_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits
.....................!
real 11.90
user 11.59
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/2792/ltcube_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits outfile=/scratch/kocevski/2792/expmap_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/2792/ltcube_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits
.....................!
real 192.44
user 187.36
sys 4.73

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 174 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0207.5-2402 @ 31.8989 -24.0484

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits scfile=/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits outfile=/scratch/kocevski/2792/cmap_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=31.8989 yref=-24.0484 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits scfile=/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits outfile=/scratch/kocevski/2792/cmap_HighResolution_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=31.8989 yref=-24.0484 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2792/Model_4FGL_J0207.5-2402_daily_bin1717.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits.....................!
real 102.30
user 100.88
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits', '/scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits', expMap='/scratch/kocevski/2792/expmap_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits', expCube='/scratch/kocevski/2792/ltcube_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2792/Model_4FGL_J0207.5-2402_daily_bin1717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0207.5-2402'

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  2.138e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2792/ft1_filtered_4FGL_J0207.5-2402_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/2792/ft2_4FGL_J0207.5-2402_daily_bin1717.fits
Exposure map: /scratch/kocevski/2792/expmap_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits
Exposure cube: /scratch/kocevski/2792/ltcube_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2792/Model_4FGL_J0207.5-2402_daily_bin1717.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5148.97525033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5148.76214868

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14630E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .30405E-04   1.0000          .0000       .10000E+07
     3 'norm      '    1.3577       1.0000          .0000       .10000E+07
     4 'Prefactor '    16.351       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9550       1.0000          .0000       .10000E+07
     6 'norm      '    .92375       1.0000          .0000       .10000E+07
     7 'norm      '    .77716E-09   1.0000          .0000       .10000E+07
     8 'norm      '    3.9571       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21483E-01   1.0000          .0000       .10000E+07
    10 'norm      '    2.1542       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0085       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10342E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .79404E-03   1.0000          .0000       .10000E+07
    14 'norm      '    32.879       1.0000          .0000       .10000E+07
    15 'Prefactor '    .36120E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.3842       1.0000          .0000       .10000E+07
    17 'Prefactor '    129.70       1.0000          .0000       .10000E+07
    18 'Prefactor '    14.836       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.0975       1.0000          .0000       .10000E+07
    20 'norm      '    1.1822       1.0000          .0000       .10000E+07
    21 'Normalizat'    .67166       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5148.755     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1801 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19251E-06    25.326       -.28652E-05** at limit **
   2  norm           .0000        1.9567       -.73415E-06** at limit **
   3  norm          1.3586        1.4141        .50697E-06    .16182E-02
   4  Prefactor     16.439        12.725       -.14013E-05   -.32297E-01
   5  Prefactor     1.9711        3.3565        .69604E-06   -.18716E-02
   6  norm          .92759        .91258       -.19430E-06   -.92142E-02
   7  norm           .0000        .33377        .31219E-06** at limit **
   8  norm          3.9703        2.5083        .16329E-07    .22671E-02
   9  Prefactor      .0000        17.896       -.16159E-07** at limit **
  10  norm          2.1616        1.3760       -.53020E-06   -.34594E-03
  11  Prefactor     7.0457        5.6749       -.15809E-06   -.22320E-03
  12  Prefactor      .0000        .95705       -.68288E-06** at limit **
  13  Prefactor     .83267E-09    5.3623       -.28805E-05** at limit **
  14  norm          33.055        11.950       -.90316E-06    .29565    
  15  Prefactor      .0000        1.1289        .18253E-06** at limit **
  16  Prefactor     7.0652        3.7110        .39051E-06   -.21468E-01
  17  Prefactor     135.44        52.825        .19853E-06   -.42254E-01
  18  Prefactor     15.440        24.481       -.20790E-05   -.96353E-01
  19  Prefactor     2.0557        2.9366       -.16042E-05   -.70950E-03
  20  norm          1.1851        1.3686       -.93515E-06   -.98474E-02
  21  Normalizat    .66901        .15656        .22941E-04   -.25475E-03
  22  Prefactor     .69280        .17428       -.17601E-05   -.15433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.92513e-07
  norm       = 0
  norm       = 1.35855
  Prefactor  = 16.4393
  Prefactor  = 1.97112
  norm       = 0.927589
  norm       = 0
  norm       = 3.97031
  Prefactor  = 0
  norm       = 2.16156
  Prefactor  = 7.04571
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  norm       = 33.0549
  Prefactor  = 0
  Prefactor  = 7.06519
  Prefactor  = 135.442
  Prefactor  = 15.4398
  Prefactor  = 2.05573
  norm       = 1.18511
  Normalizat = 0.669007
  Prefactor  = 0.692805
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.755     FROM HESSE     STATUS=OK           388 CALLS     2189 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19251E-06    25.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.9379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3586        1.4175        .93739E-03   -1.5685    
   4  Prefactor     16.439        12.803        .24742E-03   -1.5627    
   5  Prefactor     1.9711        3.4044        .74178E-03   -1.5680    
   6  norm          .92759        .92004        .44132E-03   -1.5689    
   7  norm           .0000        .33354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9703        2.5035        .50683E-03   -1.5668    
   9  Prefactor      .0000        17.812        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1616        1.3844        .70167E-03   -1.5679    
  11  Prefactor     7.0457        5.6744        .37871E-03   -1.5655    
  12  Prefactor      .0000        .96050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    5.3516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          33.055        33.510        .17442E-03   -1.5593    
  15  Prefactor      .0000        1.1329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.0652        24.727        .36885E-03   -1.5655    
  17  Prefactor     135.44        52.917        .87812E-04   -1.5475    
  18  Prefactor     15.440        25.635        .25977E-03   -1.5629    
  19  Prefactor     2.0557        2.9659        .71236E-03   -1.5679    
  20  norm          1.1851        1.4010        .10503E-02   -1.5686    
  21  Normalizat    .66901        .13384        .41911E-01   -1.0513    
  22  Prefactor     .69280        .14981        .42298E-01   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51817e-06
Minuit parameter uncertainties:
  1  0.00444486
  2  1.41636e-05
  3  1.41752
  4  12.803
  5  3.40438
  6  0.920043
  7  3.3789e-07
  8  2.50347
  9  3.7193e-06
  10  1.3844
  11  5.67441
  12  4.54977e-06
  13  0.000133079
  14  33.5099
  15  1.60758e-06
  16  24.7278
  17  52.9168
  18  25.6348
  19  2.96587
  20  1.40103
  21  0.133905
  22  0.149894
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5148.75497407

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  7.046e+00  5.674e+00  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  6.928e-01  1.499e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  6.690e-01  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.26
Ra Dec: 31.899 -24.048
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 6.42e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.47948472
delta logL = 0.275489346624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.37034917
delta logL = 0.384624898712

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.652       1.0000          .0000       .10000E+07
     2 'Index     '    1.6725       1.0000          .0000       10.000    
     3 'Normalizat'    .67744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5148.370     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.664        8.7298        .12269E-04    .44515E-02
   2  Index         1.6731        .52639        .79913E-02    .90678E-04
   3  Normalizat    .67744        .14775        .19644E-03   -.17223E-03
   4  Prefactor     .68553        .17412        .22872E-03   -.14559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6635
  Index      = 1.67308
  Normalizat = 0.677441
  Prefactor  = 0.685531
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.370     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.664        8.6873        .24539E-05   -1.5643    
   2  Index         1.6731        .52390        .31965E-03   -.72801    
   3  Normalizat    .67744        .14789        .78577E-05   -1.0479    
   4  Prefactor     .68553        .17429        .91489E-05   -1.0410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88413e-10
Minuit parameter uncertainties:
  1  8.68729
  2  0.525641
  3  0.147975
  4  0.17443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2792': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.37034744
delta logL = 0.384626634422

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.066e+01  8.687e+00  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  1.673e+00  5.256e-01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  6.855e-01  1.744e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  6.774e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.02
Ra Dec: 31.899 -24.048
Photon Index (Free Index): 1.67 +/- 0.53
Photon Flux (Free Index): 1.21e-08 +/- 1.13e-08
Energy Flux (Free Index): 2.15e-05 +/- 3.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/2792/cmap_HighResolution_684374401_684633601_4FGL_J0207.5-2402_daily_bin1717.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/2792

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='2.15e-05', photon_flux_error='1.40e-08', dlogl='3.85e-01', energy_flux='7.97e-06', photon_flux2='1.21e-08', job_status='DONE', time_completed='2022-09-16 10:33:13.106002', photon_index_error2='0.53', photon_index2='1.67', ts='4.26', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='0.67', time_epoch_completed='1663349593.11', return_code='0', job_id='2792', GAL2='0.69', EG2='0.68', return_code2='0', energy_flux_error='6.42e-06', photon_flux_error2='1.13e-08', ts2='5.02', photon_index='2.19' WHERE bin_id='1717' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:33:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 2792: <4FGL_J0207.5-2402_daily_bin1717> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1717> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:21:14 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:23:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:23:31 2022
Terminated at Fri Sep 16 10:33:13 2022
Results reported at Fri Sep 16 10:33:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1717 31.8989 -24.0484 684374401 684633601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0207.5-2402 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             390.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            719 sec.

The output (if any) is above this job summary.

