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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin62
RA = 120.246, Dec = 44.0181
tmin = 255398401, tmax = 255657601
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='38200', job_status='RUN', time_executed='2021-08-28 21:06:20.009291', time_epoch_executed='1630209980.01' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38200

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38200/ft1_4FGL_J0800.9+4401_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38200/ft2_4FGL_J0800.9+4401_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38200/ft1_4FGL_J0800.9+4401_daily_bin62.fits outfile=/scratch/kocevski/38200/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin62.fits ra=120.246 dec=44.0181 rad=12.0 tmin=255398401.0 tmax=255657601.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 2.64
user 1.65
sys 0.95

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38200/ft1_filtered_4FGL_J0800.9+4401_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/38200/ft2_4FGL_J0800.9+4401_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/38200/ltcube_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.fits outfile=/scratch/kocevski/38200/expmap_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.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/38200/ltcube_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.fits
.....................!
real 190.97
user 185.18
sys 5.37

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/38200/ft1_filtered_4FGL_J0800.9+4401_daily_bin62.fits scfile=/scratch/kocevski/38200/ft2_4FGL_J0800.9+4401_daily_bin62.fits outfile=/scratch/kocevski/38200/cmap_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.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 1.30
user 0.37
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38200/ft1_filtered_4FGL_J0800.9+4401_daily_bin62.fits scfile=/scratch/kocevski/38200/ft2_4FGL_J0800.9+4401_daily_bin62.fits outfile=/scratch/kocevski/38200/cmap_HighResolution_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.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 1.34
user 0.39
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38200/ft1_filtered_4FGL_J0800.9+4401_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/38200/ft2_4FGL_J0800.9+4401_daily_bin62.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38200/Model_4FGL_J0800.9+4401_daily_bin62.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/38200/ft1_filtered_4FGL_J0800.9+4401_daily_bin62.fits.....................!
real 69.31
user 66.91
sys 2.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38200/ft1_filtered_4FGL_J0800.9+4401_daily_bin62.fits', '/scratch/kocevski/38200/ft2_4FGL_J0800.9+4401_daily_bin62.fits', expMap='/scratch/kocevski/38200/expmap_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.fits', expCube='/scratch/kocevski/38200/ltcube_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38200/Model_4FGL_J0800.9+4401_daily_bin62.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/38200/ft1_filtered_4FGL_J0800.9+4401_daily_bin62.fits
Spacecraft file(s): /scratch/kocevski/38200/ft2_4FGL_J0800.9+4401_daily_bin62.fits
Exposure map: /scratch/kocevski/38200/expmap_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.fits
Exposure cube: /scratch/kocevski/38200/ltcube_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38200/Model_4FGL_J0800.9+4401_daily_bin62.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) = 6926.38641436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2943       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3917       1.0000         .10000E-03   10000.    
     5 'norm      '    10.391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4517       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.143       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58556E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2432       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7363       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13942E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0729       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0161       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.906       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11315E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.587       1.0000         .10000E-03   10000.    
    25 'norm      '    .31413E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99877       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0044       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=   6926.370     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3562 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9740       -.17380E-06** at limit **
   2  norm          3.2945        3.3892       -.12294E-06    .31682E-04
   3  Prefactor     .10000E-03    8.8658        .33676E-06** at limit **
   4  Prefactor     7.3915        7.3433        .18037E-07    .39230E-04
   5  norm          10.392        9.1634       -.55998E-06    .24190E-04
   6  Prefactor     3.4476        12.429       -.16310E-05    .57533E-05
   7  Prefactor     14.131        30.807        .99870E-06    .26663E-03
   8  norm          .10000E-03    .21441        .53612E-08** at limit **
   9  Prefactor     .10000E-03    31.556       -.21839E-05** at limit **
  10  Prefactor     .10000E-03    52.417        .24354E-04** at limit **
  11  norm          5.2408        12.372       -.10353E-05    .10526E-04
  12  norm          .10000E-03    1.8559        .45667E-06** at limit **
  13  Prefactor     7.7331        6.9014        .41377E-06    .56618E-03
  14  Prefactor     .10000E-03    109.59       -.74112E-05** at limit **
  15  Prefactor     .10003E-03    3.3284       -.36457E-05** at limit **
  16  norm          4.0723        4.2969       -.25549E-05    .10490E-02
  17  norm          .10000E-03    .60613       -.14689E-06** at limit **
  18  norm          1.1874        .66537       -.21728E-07    .44008E-03
  19  Prefactor     .10000E-03    17.992        .38555E-05** at limit **
  20  Prefactor     3.0167        3.0302       -.96523E-06   -.98434E-03
  21  Prefactor     34.889        30.590       -.29295E-05   -.17927E-03
  22  Prefactor     .10000E-03    5.8567        .11052E-05** at limit **
  23  Prefactor     .10000E-03    14.505       -.10740E-05** at limit **
  24  norm          12.585        7.4243       -.23248E-06    .15436E-03
  25  norm          .10001E-03    5.3289        .24036E-06** at limit **
  26  Prefactor     .10000E-03    1.1558       -.26962E-08** at limit **
  27  Normalizat    .99918        .19103        .20384E-05    .59706E-03
  28  Prefactor     1.0042        .13124        .12194E-05    .90289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.29453
  Prefactor  = 0.0001
  Prefactor  = 7.39152
  norm       = 10.3923
  Prefactor  = 3.44758
  Prefactor  = 14.1306
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 5.24081
  norm       = 0.0001
  Prefactor  = 7.73314
  Prefactor  = 0.000100001
  Prefactor  = 0.000100028
  norm       = 4.0723
  norm       = 0.0001
  norm       = 1.18745
  Prefactor  = 0.000100001
  Prefactor  = 3.01675
  Prefactor  = 34.889
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.5851
  norm       = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 0.999178
  Prefactor  = 1.00418
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.370     FROM HESSE     STATUS=OK           527 CALLS     4089 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2945        3.3865        .15099E-03   -1.5345    
   3  Prefactor     .10000E-03    9.2184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3915        7.3457        .14752E-03   -1.5164    
   5  norm          10.392        9.1580        .12430E-03   -1.5063    
   6  Prefactor     3.4476        12.423        .21768E-03   -1.5337    
   7  Prefactor     14.131        30.730        .10650E-03   -1.4956    
   8  norm          .10000E-03    .21444        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.140        .40170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2408        12.372        .17554E-03   -1.5250    
  12  norm          .10000E-03    1.8983        .22116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7331        6.8797        .14417E-03   -1.5152    
  14  Prefactor     .10000E-03    110.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    31.577        .24013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0723        4.3175        .85367E-03   -1.5304    
  17  norm          .10000E-03    .61323        .63318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1874        .64534        .47086E-04   -1.5490    
  19  Prefactor     .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0167        3.0160        .13606E-03   -1.5361    
  21  Prefactor     34.889        30.853        .67829E-04   -1.4526    
  22  Prefactor     .10000E-03    5.8968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.585        7.4278        .11291E-03   -1.4998    
  25  norm          .10001E-03    6.1584        .56124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.1730        .87301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .99918        .21649        .28211E-03   -.93058    
  28  Prefactor     1.0042        .15024        .20600E-03   -.92590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9839e-09
Minuit parameter uncertainties:
  1  3.10874e-05
  2  3.38673
  3  2.35919e-05
  4  7.34664
  5  9.15926
  6  12.4327
  7  30.764
  8  1.67218e-08
  9  0.000645087
  10  0.000489481
  11  12.3781
  12  1.52277e-05
  13  6.88044
  14  0.000683863
  15  0.00188056
  16  4.31781
  17  4.76222e-07
  18  0.645341
  19  0.000197616
  20  3.01619
  21  30.8674
  22  0.000113509
  23  6.74042e-05
  24  7.42837
  25  0.000574912
  26  2.00139e-06
  27  0.216681
  28  0.150306
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  7.733e+00  6.880e+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

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.004e+00  1.503e-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:  9.992e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 120.246 44.018
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/38200/likelihoodResults_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.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): 0
logL (Free Index) = 6926.20185617
delta logL = 0.167783403532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6926.19352999
delta logL = 0.176109581064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.800       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8190       1.0000          .0000       10.000    
     3 'Normalizat'    1.0075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0004       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=   6926.194     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.804        377.66        .30478E-02    .22565E-03
   2  Index         1.8203        5.3263        .16989        .33488E-04
   3  Normalizat    1.0078        .12649        .46261E-01   -.22062E-03
   4  Prefactor     1.0003        .70420E-01    .45771E-01   -.21400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8037
  Index      = 1.8203
  Normalizat = 1.00782
  Prefactor  = 1.00031
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.194     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.804        9.9871        .12191E-03   -1.5050    
   2  Index         1.8203        .56259        .93556E-02   -.68923    
   3  Normalizat    1.0078        .19975        .28102E-03   -.92769    
   4  Prefactor     1.0003        .14681        .20633E-03   -.92719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22724e-10
Minuit parameter uncertainties:
  1  9.98865
  2  0.564598
  3  0.199895
  4  0.146865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38200': 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) = 6926.19352379
delta logL = 0.176115781901

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.080e+01  9.989e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.820e+00  5.646e-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:  1.000e+00  1.469e-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.008e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 120.246 44.018
Photon Index (Free Index): 1.82 +/- 0.56
Photon Flux (Free Index): 2.04e-08 +/- 2.16e-08
Energy Flux (Free Index): 2.30e-05 +/- 3.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/38200/cmap_HighResolution_255398401_255657601_4FGL_J0800.9+4401_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='2.30e-05', photon_flux_error='2.42e-08', dlogl='1.76e-01', energy_flux='1.29e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-08-28 21:22:16.140932', photon_index_error2='0.56', photon_index2='1.82', ts='2.19', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.66e-08', energy_flux_error2='3.19e-05', EG='1.00', time_epoch_completed='1630210936.14', return_code='0', job_id='38200', GAL2='1.00', EG2='1.01', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.16e-08', ts2='2.54', photon_index='2.17' WHERE bin_id='62' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:22:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 38200: <4FGL_J0800.9+4401_daily_bin62> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin62> 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) <bullet0303>, 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:22:17 2021
Results reported at Sat Aug 28 21:22:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin62 120.246 44.0181 255398401 255657601 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 :                                   965.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

