/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 28 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_J0809.3+4053_daily_bin76
RA = 122.33, Dec = 40.8954
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='225303', job_status='RUN', time_executed='2021-08-29 07:31:39.596455', time_epoch_executed='1630247499.6' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225303

Creating custom pfile directory:
/scratch/kocevski/225303/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/225303/ft1_4FGL_J0809.3+4053_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/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225303/ft1_4FGL_J0809.3+4053_daily_bin76.fits outfile=/scratch/kocevski/225303/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin76.fits ra=122.33 dec=40.8954 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.93
user 1.26
sys 0.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_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/225303/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_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.01
user 0.32
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/225303/ltcube_259027201_259286401_4FGL_J0809.3+4053_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/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits
.....................!
real 13.04
user 12.06
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/225303/ltcube_259027201_259286401_4FGL_J0809.3+4053_daily_bin76.fits outfile=/scratch/kocevski/225303/expmap_259027201_259286401_4FGL_J0809.3+4053_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/225303/ltcube_259027201_259286401_4FGL_J0809.3+4053_daily_bin76.fits
.....................!
real 190.37
user 184.29
sys 5.58

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits scfile=/scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits outfile=/scratch/kocevski/225303/cmap_259027201_259286401_4FGL_J0809.3+4053_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=122.33 yref=40.8954 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.04
user 0.36
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits scfile=/scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits outfile=/scratch/kocevski/225303/cmap_HighResolution_259027201_259286401_4FGL_J0809.3+4053_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=122.33 yref=40.8954 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.04
user 0.36
sys 0.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225303/Model_4FGL_J0809.3+4053_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/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits.....................!
real 57.72
user 55.68
sys 1.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits', '/scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits', expMap='/scratch/kocevski/225303/expmap_259027201_259286401_4FGL_J0809.3+4053_daily_bin76.fits', expCube='/scratch/kocevski/225303/ltcube_259027201_259286401_4FGL_J0809.3+4053_daily_bin76.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225303/Model_4FGL_J0809.3+4053_daily_bin76.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/225303/ft1_filtered_4FGL_J0809.3+4053_daily_bin76.fits
Spacecraft file(s): /scratch/kocevski/225303/ft2_4FGL_J0809.3+4053_daily_bin76.fits
Exposure map: /scratch/kocevski/225303/expmap_259027201_259286401_4FGL_J0809.3+4053_daily_bin76.fits
Exposure cube: /scratch/kocevski/225303/ltcube_259027201_259286401_4FGL_J0809.3+4053_daily_bin76.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225303/Model_4FGL_J0809.3+4053_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) = 5581.42457256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .91025       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.444       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59847       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0134       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4504       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4147       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70827       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5581.404     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2553 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9215        3.0014        .82249E-06   -.19482E-02
   2  Prefactor     .10000E-03    4.7056        .37415E-06** at limit **
   3  Prefactor     .10000E-03    32.421        .73833E-05** at limit **
   4  Prefactor     .10000E-03    7.8303       -.14812E-05** at limit **
   5  Prefactor     .10000E-03    14.490       -.38704E-05** at limit **
   6  norm          .10000E-03    3.3956        .15783E-06** at limit **
   7  norm          .91040        2.1160        .90526E-07   -.26694E-04
   8  Prefactor     11.446        9.2372        .14424E-07    .77424E-04
   9  Prefactor     .10000E-03    35.214       -.92706E-05** at limit **
  10  Prefactor     .59839        3.6592       -.49756E-06   -.36112E-03
  11  norm          2.0135        2.2802        .64364E-08   -.51011E-04
  12  norm          2.4502        .84467        .14788E-07    .14754E-03
  13  Prefactor     .10000E-03    13.399       -.27507E-05** at limit **
  14  Prefactor     .10000E-03    3.8962       -.29552E-06** at limit **
  15  Prefactor     .10000E-03    1.0999        .15824E-07** at limit **
  16  Prefactor     .10000E-03    18.487        .61650E-05** at limit **
  17  Prefactor     .10000E-03    13.457       -.30808E-05** at limit **
  18  norm          .10000E-03    1.9332       -.31011E-07** at limit **
  19  Prefactor     .10000E-03    2.7467       -.30707E-07** at limit **
  20  Prefactor     14.344        72.161       -.54694E-05   -.78955E-04
  21  Prefactor     .10004E-03    3.9911        .24119E-05** at limit **
  22  Normalizat    1.4147        .19612       -.11491E-06   -.16194E-03
  23  Prefactor     .70830        .14063        .84834E-08   -.66061E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92147
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.9104
  Prefactor  = 11.4456
  Prefactor  = 0.000100005
  Prefactor  = 0.598386
  norm       = 2.01346
  norm       = 2.45015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3436
  Prefactor  = 0.00010004
  Normalizat = 1.41469
  Prefactor  = 0.708298
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.404     FROM HESSE     STATUS=OK           364 CALLS     2917 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9215        5.6501        .11883E-02   -1.5366    
   2  Prefactor     .10000E-03    4.7141        .15828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3989        .13445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .91040        1.6833        .16067E-02   -1.5517    
   8  Prefactor     11.446        9.2306        .11842E-03   -1.5031    
   9  Prefactor     .10000E-03    35.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .59839        3.6624        .27709E-03   -1.5553    
  11  norm          2.0135        2.2699        .11653E-03   -1.5424    
  12  norm          2.4502        .84134        .38404E-04   -1.5395    
  13  Prefactor     .10000E-03    13.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8989        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1118        .76485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9345        .10144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8151        .24172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.344        72.305        .10574E-03   -1.4950    
  21  Prefactor     .10004E-03    10.757        .26858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4147        .22622        .23926E-03   -.80205    
  23  Prefactor     .70830        .16350        .23498E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09459e-08
Minuit parameter uncertainties:
  1  5.65114
  2  1.21681e-05
  3  0.000622361
  4  6.24505e-05
  5  0.000211002
  6  4.41019e-06
  7  1.68336
  8  9.23171
  9  0.000802876
  10  2.9608
  11  2.27002
  12  0.841347
  13  0.000149438
  14  8.19283e-06
  15  4.93793e-07
  16  0.000399622
  17  0.000165083
  18  6.9243e-07
  19  2.83242e-06
  20  64.5328
  21  0.00131636
  22  0.226384
  23  0.163616
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.984e-01  2.961e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.083e-01  1.636e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.415e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225303/likelihoodResults_259027201_259286401_4FGL_J0809.3+4053_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) = 5581.38221423
delta logL = 0.0214685316241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5581.37105637
delta logL = 0.0326263917241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1411       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1459       1.0000          .0000       10.000    
     3 'Normalizat'    1.4161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   5581.371     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1379        3.8399        .26075E-03   -.20723E-03
   2  Index         2.1430        1.4537        .14191E-01   -.36574E-04
   3  Normalizat    1.4161        .22281        .23915E-03   -.77982E-04
   4  Prefactor     .70659        .16177        .23522E-03   -.38521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13786
  Index      = 2.14296
  Normalizat = 1.41608
  Prefactor  = 0.706588
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.371     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1379        3.7962        .10430E-04   -1.5495    
   2  Index         2.1430        1.4387        .56765E-03   -.60822    
   3  Normalizat    1.4161        .22298        .47829E-04   -.80165    
   4  Prefactor     .70659        .16188        .94086E-05   -1.0327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11246e-10
Minuit parameter uncertainties:
  1  3.79701
  2  1.46999
  3  0.223128
  4  0.161986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225303': 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) = 5581.37105366
delta logL = 0.0326290938119

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.138e+00  3.797e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.143e+00  1.470e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.066e-01  1.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.416e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 122.330 40.895

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/225303/cmap_HighResolution_259027201_259286401_4FGL_J0809.3+4053_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-08-29 07:42:30.509351', job_id='225303', GAL2='0.71', fit_tolerance='1e-08', EG2='1.42', EG='1.41', time_epoch_completed='1630248150.51', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.26e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='76' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:42:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 225303: <4FGL_J0809.3+4053_daily_bin76> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin76> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:52 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:30:53 2021
Terminated at Sun Aug 29 07:42:31 2021
Results reported at Sun Aug 29 07:42:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin76 122.33 40.8954 259027201 259286401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            699 sec.

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

