/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 2 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0800.9+4401_daily_bin61
RA = 120.246, Dec = 44.0181
tmin = 255139201, tmax = 255398401
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='38198', job_status='RUN', time_executed='2021-08-28 21:06:10.184356', time_epoch_executed='1630209970.18' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38198/ft1_4FGL_J0800.9+4401_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38198/ft1_4FGL_J0800.9+4401_daily_bin61.fits outfile=/scratch/kocevski/38198/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin61.fits ra=120.246 dec=44.0181 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.61
user 7.16
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.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/38198/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.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.67
user 0.34
sys 0.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/38198/ltcube_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.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/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits
.....................!
real 12.33
user 11.80
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/38198/ltcube_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.fits outfile=/scratch/kocevski/38198/expmap_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.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/38198/ltcube_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.fits
.....................!
real 190.59
user 185.43
sys 4.77

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
Added 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J0800.9+4401 @ 120.246 44.0181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits scfile=/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits outfile=/scratch/kocevski/38198/cmap_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.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=120.246 yref=44.0181 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.72
user 0.38
sys 0.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits scfile=/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits outfile=/scratch/kocevski/38198/cmap_HighResolution_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.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=120.246 yref=44.0181 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.71
user 0.38
sys 0.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38198/Model_4FGL_J0800.9+4401_daily_bin61.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 GAL_V02
Working on...
/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits......................!
real 45.20
user 43.64
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits', '/scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits', expMap='/scratch/kocevski/38198/expmap_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.fits', expCube='/scratch/kocevski/38198/ltcube_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38198/Model_4FGL_J0800.9+4401_daily_bin61.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0800.9+4401'

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38198/ft1_filtered_4FGL_J0800.9+4401_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/38198/ft2_4FGL_J0800.9+4401_daily_bin61.fits
Exposure map: /scratch/kocevski/38198/expmap_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.fits
Exposure cube: /scratch/kocevski/38198/ltcube_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38198/Model_4FGL_J0800.9+4401_daily_bin61.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) = 4103.24131946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5412       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .47758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3432       1.0000         .10000E-03   10000.    
    16 'norm      '    .58661E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4434       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1948       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9405       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .95717E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.068       1.0000         .10000E-03   10000.    
    24 'norm      '    10.755       1.0000         .10000E-03   10000.    
    25 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1901       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1227       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4103.207     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     4016 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6982       -.30147E-07** at limit **
   2  norm          .10000E-03    4.6425       -.52782E-07** at limit **
   3  Prefactor     11.050        9.8732        .40931E-06   -.23871E-03
   4  Prefactor     .10000E-03    11.852        .55439E-06** at limit **
   5  norm          .10000E-03    13.951        .18497E-05** at limit **
   6  Prefactor     8.5391        15.591        .35362E-05   -.34413E-03
   7  Prefactor     .10000E-03    13.804       -.24638E-05** at limit **
   8  norm          .47735        .93664       -.65132E-07   -.85613E-03
   9  Prefactor     8.6260        12.148        .20628E-06   -.63968E-04
  10  Prefactor     .10000E-03    31.470       -.34813E-06** at limit **
  11  norm          .10000E-03    8.3401       -.67476E-07** at limit **
  12  norm          2.2768        2.7418        .44289E-07   -.11802E-03
  13  Prefactor     .10000E-03    20.348        .50234E-05** at limit **
  14  Prefactor     .10000E-03    21.656       -.45888E-05** at limit **
  15  Prefactor     7.3454        6.2463        .10443E-06   -.27736E-03
  16  norm          .10000E-03    4.9857        .29829E-06** at limit **
  17  norm          5.4407        3.4224       -.32643E-06   -.19418E-02
  18  norm          1.1951        .74663       -.12946E-08   -.61259E-03
  19  Prefactor     .10000E-03    6.3983        .11373E-07** at limit **
  20  Prefactor     .10000E-03    1.2043        .78544E-07** at limit **
  21  Prefactor     9.9776        39.714       -.14060E-04   -.10272E-03
  22  Prefactor     .10075E-03    23.197        .53892E-05** at limit **
  23  Prefactor     29.068        18.123        .13259E-05   -.31212E-03
  24  norm          10.755        7.9679       -.37934E-09   -.98472E-04
  25  norm          .10000E-03    6.4194        .28784E-07** at limit **
  26  Prefactor     1.1907        3.0354       -.31689E-06   -.50649E-03
  27  Normalizat    1.1224        .24142       -.41605E-06   -.41400E-03
  28  Prefactor     .86925        .16463       -.38844E-06   -.38685E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0497
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.53912
  Prefactor  = 0.000100001
  norm       = 0.47735
  Prefactor  = 8.62605
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.27684
  Prefactor  = 0.000100005
  Prefactor  = 0.000100003
  Prefactor  = 7.34539
  norm       = 0.000100003
  norm       = 5.44073
  norm       = 1.19511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97762
  Prefactor  = 0.000100748
  Prefactor  = 29.0678
  norm       = 10.7545
  norm       = 0.0001
  Prefactor  = 1.19071
  Normalizat = 1.12243
  Prefactor  = 0.869248
 **********
 **   18 **HESSE 
 **********

 FCN=   4103.207     FROM HESSE     STATUS=OK           525 CALLS     4541 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7056        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6671        .13461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.050        9.8413        .12050E-03   -1.5043    
   4  Prefactor     .10000E-03    11.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5391        15.336        .13716E-03   -1.5123    
   7  Prefactor     .10000E-03    13.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .47735        .81776        .84339E-03   -1.5570    
   9  Prefactor     8.6260        12.129        .13648E-03   -1.5120    
  10  Prefactor     .10000E-03    31.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.3657        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2768        2.7319        .11218E-03   -1.5406    
  13  Prefactor     .10000E-03    20.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3454        6.2384        .13935E-03   -1.5166    
  16  norm          .10000E-03    18.384        .25277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4407        3.2259        .42628E-03   -1.5241    
  18  norm          1.1951        .74819        .41192E-04   -1.5489    
  19  Prefactor     .10000E-03    6.4073        .15823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.2144        .68643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.9776        48.147        .12709E-03   -1.5076    
  22  Prefactor     .10075E-03    36.036        .73292E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.068        18.044        .74310E-04   -1.4629    
  24  norm          10.755        7.9646        .12217E-03   -1.5052    
  25  norm          .10000E-03    6.4611        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.1907        2.9923        .17198E-03   -1.5490    
  27  Normalizat    1.1224        .27861        .27297E-03   -.89035    
  28  Prefactor     .86925        .18963        .21829E-03   -.97224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64261e-09
Minuit parameter uncertainties:
  1  6.69001e-07
  2  3.00125e-06
  3  9.84278
  4  4.8463e-05
  5  0.00019756
  6  15.3434
  7  0.00022558
  8  0.817777
  9  12.1326
  10  5.42668e-05
  11  3.3686e-06
  12  2.73206
  13  0.000631096
  14  0.000521628
  15  6.23892
  16  0.000453019
  17  3.22604
  18  0.7482
  19  2.58316e-05
  20  3.72188e-06
  21  43.8927
  22  0.0103918
  23  18.0475
  24  7.96535
  25  1.32371e-05
  26  2.99268
  27  0.278981
  28  0.189776
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.311e-04  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.692e-01  1.898e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.122e+00  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38198/likelihoodResults_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.txt

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): 102
logL (Free Index) = 4103.20684501
delta logL = -0.00023145292289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4103.20661424
delta logL = -6.80463017488e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15189E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2439       1.0000          .0000       10.000    
     3 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86912       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4103.207     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      232 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10076E-03    2.9850        .60842E-01** at limit **
   2  Index         2.3610        2.5398        .50000       -.47978E-04
   3  Normalizat    1.1224        .39261E-02    .61715E-01    .12658E-03
   4  Prefactor     .86925        .28156E-02    .44610E-01    .78448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100755
  Index      = 2.36103
  Normalizat = 1.12243
  Prefactor  = 0.869247
 **********
 **   18 **HESSE 
 **********

 FCN=   4103.207     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      269 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10076E-03    6273.9        .33772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3610        5.2970        .50000       -.55600    
   3  Normalizat    1.1224        .41275E-01    .27297E-03   -.89035    
   4  Prefactor     .86925        .29582E-01    .21829E-03   -.97224    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.87553e-07
Minuit parameter uncertainties:
  1  0.0919602
  2  27.3085
  3  0.0412758
  4  0.0295828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38198': 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): 102
logL (Free Index) = 4103.20661183
delta logL = 1.728875759e-06

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.008e-04  9.196e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.361e+00  2.731e+01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.692e-01  2.958e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.122e+00  4.128e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.246 44.018

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/38198/cmap_HighResolution_255139201_255398401_4FGL_J0800.9+4401_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-08-28 21:18:26.563516', job_id='38198', GAL2='0.87', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630210706.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='61' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:18:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 38198: <4FGL_J0800.9+4401_daily_bin61> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin61> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 21:05:52 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:05:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 21:05:53 2021
Terminated at Sat Aug 28 21:18:27 2021
Results reported at Sat Aug 28 21:18:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin61 120.246 44.0181 255139201 255398401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0800.9+4401 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

