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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin76
RA = 120.246, Dec = 44.0181
tmin = 259027201, tmax = 259286401
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='38214', job_status='RUN', time_executed='2021-08-28 21:08:57.877174', time_epoch_executed='1630210137.88' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38214/ft1_4FGL_J0800.9+4401_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38214/ft2_4FGL_J0800.9+4401_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38214/ft1_4FGL_J0800.9+4401_daily_bin76.fits outfile=/scratch/kocevski/38214/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin76.fits ra=120.246 dec=44.0181 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.97
user 1.24
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38214/ft2_4FGL_J0800.9+4401_daily_bin76.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/38214/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/38214/ft1_filtered_4FGL_J0800.9+4401_daily_bin76.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.03
user 0.31
sys 0.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38214/ft1_filtered_4FGL_J0800.9+4401_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/38214/ft2_4FGL_J0800.9+4401_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/38214/ltcube_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.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/38214/ft2_4FGL_J0800.9+4401_daily_bin76.fits
.....................!
real 13.26
user 12.30
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38214/ft1_filtered_4FGL_J0800.9+4401_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/38214/ft2_4FGL_J0800.9+4401_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/38214/ltcube_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.fits outfile=/scratch/kocevski/38214/expmap_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.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/38214/ltcube_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.fits
.....................!
real 192.49
user 186.79
sys 5.36

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/38214/ft1_filtered_4FGL_J0800.9+4401_daily_bin76.fits scfile=/scratch/kocevski/38214/ft2_4FGL_J0800.9+4401_daily_bin76.fits outfile=/scratch/kocevski/38214/cmap_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.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.06
user 0.36
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38214/ft1_filtered_4FGL_J0800.9+4401_daily_bin76.fits scfile=/scratch/kocevski/38214/ft2_4FGL_J0800.9+4401_daily_bin76.fits outfile=/scratch/kocevski/38214/cmap_HighResolution_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.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.09
user 0.37
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.727       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9691       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .97446       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65707       1.0000         .10000E-03   10000.    
    16 'norm      '    .16304E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7761       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5536       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .59662       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=   5802.027     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     2938 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.727        7.5017       -.41359E-07    .13469E-06
   2  norm          .10000E-03    3.5897       -.24525E-06** at limit **
   3  Prefactor     .70760        4.1153       -.37740E-06   -.55505E-04
   4  Prefactor     .10000E-03    15.327       -.22444E-05** at limit **
   5  norm          3.9685        5.4979        .20038E-05   -.17812E-02
   6  Prefactor     .10000E-03    4.7039        .82779E-08** at limit **
   7  Prefactor     .10003E-03    27.254        .99615E-05** at limit **
   8  norm          .10000E-03    .22938        .10848E-07** at limit **
   9  Prefactor     .10000E-03    7.7037       -.35962E-06** at limit **
  10  Prefactor     .10000E-03    14.416       -.14706E-05** at limit **
  11  norm          .10000E-03    3.3298        .15619E-06** at limit **
  12  norm          .97413        2.1531        .19168E-06   -.18250E-04
  13  Prefactor     11.591        9.2308       -.23347E-07    .37455E-04
  14  Prefactor     .10002E-03    36.275       -.86659E-05** at limit **
  15  Prefactor     .65737        3.3824        .20426E-05   -.36876E-04
  16  norm          .10000E-03    5.4754       -.30829E-06** at limit **
  17  norm          2.7791        2.5391        .75203E-06   -.20875E-02
  18  norm          2.4411        .84014       -.22306E-07   -.19221E-03
  19  Prefactor     .10000E-03    3.7944        .23777E-06** at limit **
  20  Prefactor     .10000E-03    1.0567       -.35477E-07** at limit **
  21  Prefactor     .10000E-03    17.138       -.17520E-05** at limit **
  22  Prefactor     .10000E-03    12.451        .24370E-05** at limit **
  23  Prefactor     .10000E-03    3.2507        .43230E-07** at limit **
  24  norm          .10000E-03    1.7064        .74178E-07** at limit **
  25  norm          .10000E-03    1.5738        .73260E-07** at limit **
  26  Prefactor     .10000E-03    1.2877       -.70834E-08** at limit **
  27  Normalizat    1.5537        .20276        .18582E-06   -.37690E-04
  28  Prefactor     .59660        .13597       -.65683E-06   -.15183E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.727
  norm       = 0.0001
  Prefactor  = 0.707596
  Prefactor  = 0.000100001
  norm       = 3.96846
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.974132
  Prefactor  = 11.5908
  Prefactor  = 0.000100021
  Prefactor  = 0.65737
  norm       = 0.000100004
  norm       = 2.77912
  norm       = 2.44109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.55367
  Prefactor  = 0.596603
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.027     FROM HESSE     STATUS=OK           515 CALLS     3453 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.727        7.4834        .10099E-03   -1.4915    
   2  norm          .10000E-03    3.6299        .14073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .70760        20.138        .27572E-02   -1.5540    
   4  Prefactor     .10000E-03    15.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9685        6.3204        .10123E-02   -1.5310    
   6  Prefactor     .10000E-03    4.7115        .16134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    29.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .23098        .35620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.3326        .13576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .97413        1.6997        .16096E-02   -1.5511    
  13  Prefactor     11.591        9.2250        .11766E-03   -1.5027    
  14  Prefactor     .10002E-03    37.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .65737        3.2651        .26842E-03   -1.5546    
  16  norm          .10000E-03    13.077        .32281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7791        2.5316        .55599E-03   -1.5375    
  18  norm          2.4411        .83751        .39023E-04   -1.5395    
  19  Prefactor     .10000E-03    3.7973        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0676        .76444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2545        .13413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7077        .97178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5741        .93327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.2972        .84400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5537        .23142        .23960E-03   -.76281    
  28  Prefactor     .59660        .15571        .24780E-03   -1.0773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20326e-08
Minuit parameter uncertainties:
  1  7.48382
  2  1.26117e-05
  3  7.55202
  4  0.000294767
  5  6.32142
  6  1.31029e-07
  7  0.00182014
  8  4.85205e-08
  9  3.90223e-05
  10  0.000189511
  11  9.4313e-06
  12  1.69976
  13  9.22609
  14  0.00179769
  15  2.93013
  16  0.00045963
  17  2.5317
  18  0.837515
  19  1.33876e-05
  20  2.38366e-06
  21  0.000256624
  22  0.000281658
  23  2.27608e-06
  24  3.15736e-06
  25  3.03928e-06
  26  5.23173e-07
  27  0.231582
  28  0.155827
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.159e+01  9.226e+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:  5.966e-01  1.558e-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.554e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 120.246 44.018
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.54e-05

TS (Fixed Index): 2.93
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38214/likelihoodResults_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.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) = 5801.98955448
delta logL = 0.0374677011414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5801.98909985
delta logL = 0.0379223377277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5443       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3337       1.0000          .0000       10.000    
     3 'Normalizat'    1.5479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59890       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5801.989     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      281 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5439        11.586        .12972E-03    .11341E-03
   2  Index         2.3339        .64298        .55810E-02    .33768E-04
   3  Normalizat    1.5478        .22882        .23995E-03   -.11393E-03
   4  Prefactor     .59897        .15426        .24734E-03   -.12268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.54393
  Index      = 2.33387
  Normalizat = 1.54785
  Prefactor  = 0.598972
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.989     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5439        10.834        .51887E-05   -1.5090    
   2  Index         2.3339        .60122        .22324E-03   -.56241    
   3  Normalizat    1.5478        .22885        .47990E-04   -.76443    
   4  Prefactor     .59897        .15431        .98935E-05   -1.0763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80032e-11
Minuit parameter uncertainties:
  1  10.8357
  2  0.603266
  3  0.229004
  4  0.154415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38214': 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) = 5801.98909963
delta logL = 0.0379225552915

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  9.544e+00  1.084e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.334e+00  6.033e-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:  5.990e-01  1.544e-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.548e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 120.246 44.018
Photon Index (Free Index): 2.33 +/- 0.60
Photon Flux (Free Index): 4.63e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.54e-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/38214/cmap_HighResolution_259027201_259286401_4FGL_J0800.9+4401_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='1.66e-05', photon_flux_error='3.25e-08', dlogl='3.79e-02', energy_flux='1.93e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2021-08-28 21:22:09.131002', photon_index_error2='0.60', photon_index2='2.33', ts='2.93', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.54e-05', EG='1.55', time_epoch_completed='1630210929.13', return_code='0', job_id='38214', GAL2='0.60', EG2='1.55', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.05e-08', ts2='3.01', photon_index='2.17' WHERE bin_id='76' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 38214: <4FGL_J0800.9+4401_daily_bin76> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin76> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 21:05:54 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:05:55 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:55 2021
Terminated at Sat Aug 28 21:22:09 2021
Results reported at Sat Aug 28 21:22:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin76 120.246 44.0181 259027201 259286401 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 :                                   798.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

