/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 3 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 = 7602
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin1148
RA = 122.33, Dec = 40.8954
tmin = 536889601, tmax = 537148801
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='233008', job_status='RUN', time_executed='2021-08-29 07:56:56.994358', time_epoch_executed='1630249016.99' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233008

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233008/ft1_4FGL_J0809.3+4053_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233008/ft1_4FGL_J0809.3+4053_daily_bin1148.fits outfile=/scratch/kocevski/233008/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1148.fits ra=122.33 dec=40.8954 rad=12.0 tmin=536889601.0 tmax=537148801.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.13
user 3.38
sys 3.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.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/233008/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1148.fits evtable="EVENTS" outfile="/scratch/kocevski/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.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 4.04
user 0.33
sys 3.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/233008/ltcube_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.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/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits
.....................!
real 15.74
user 11.53
sys 4.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/233008/ltcube_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.fits outfile=/scratch/kocevski/233008/expmap_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.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/233008/ltcube_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.fits
.....................!
real 196.82
user 187.26
sys 9.20

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/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits scfile=/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits outfile=/scratch/kocevski/233008/cmap_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.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 3.86
user 0.39
sys 3.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits scfile=/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits outfile=/scratch/kocevski/233008/cmap_HighResolution_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.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 3.93
user 0.36
sys 3.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233008/Model_4FGL_J0809.3+4053_daily_bin1148.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/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits.....................!
real 74.83
user 68.48
sys 5.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits', '/scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits', expMap='/scratch/kocevski/233008/expmap_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.fits', expCube='/scratch/kocevski/233008/ltcube_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233008/Model_4FGL_J0809.3+4053_daily_bin1148.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/233008/ft1_filtered_4FGL_J0809.3+4053_daily_bin1148.fits
Spacecraft file(s): /scratch/kocevski/233008/ft2_4FGL_J0809.3+4053_daily_bin1148.fits
Exposure map: /scratch/kocevski/233008/expmap_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.fits
Exposure cube: /scratch/kocevski/233008/ltcube_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233008/Model_4FGL_J0809.3+4053_daily_bin1148.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) = 7267.39444945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7379       1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .70559E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.224       1.0000         .10000E-03   10000.    
     6 'norm      '    32.756       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.972       1.0000         .10000E-03   10000.    
    11 'norm      '    .66298       1.0000         .10000E-03   10000.    
    12 'norm      '    .42151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45818E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66748       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8505       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20379E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0784       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97825       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=   7267.394     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     3656 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59683        7.1355       -.28334E-05    .84649E-03
   2  Prefactor     7.7377        8.9190       -.22188E-07   -.95669E-04
   3  Prefactor     52.811        34.388        .13734E-06    .39257E-04
   4  Prefactor     .10031E-03    5.9589       -.85240E-06** at limit **
   5  Prefactor     29.222        18.328        .53707E-06    .94802E-04
   6  norm          32.754        14.767        .22461E-06   -.27803E-04
   7  norm          4.8488        2.8246        .67596E-07    .21431E-03
   8  Prefactor     .10000E-03    2.1542        .43593E-07** at limit **
   9  Prefactor     .10000E-03    12.816       -.62490E-07** at limit **
  10  Prefactor     10.973        6.3013       -.11732E-05   -.11711E-02
  11  norm          .66283        .95135       -.53382E-07   -.13332E-03
  12  norm          .42204        .57446        .94480E-07   -.99748E-03
  13  Prefactor     7.1068        14.766        .24038E-05    .44590E-04
  14  Prefactor     .10354E-03    22.787        .34153E-05** at limit **
  15  Prefactor     .67401        4.2700       -.97228E-06   -.13600E-03
  16  Prefactor     10.754        26.679        .14904E-05    .48683E-04
  17  Prefactor     .10000E-03    11.476        .29260E-05** at limit **
  18  norm          .10000E-03    3.3975        .43153E-07** at limit **
  19  Prefactor     5.8517        4.0773        .29036E-06   -.22613E-03
  20  Prefactor     35.362        61.085        .25965E-06   -.49463E-04
  21  Prefactor     .10000E-03    3.9915        .64172E-06** at limit **
  22  Normalizat    1.0785        .20309       -.47882E-05   -.27750E-03
  23  Prefactor     .97818        .13795        .17799E-05   -.44880E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.596828
  Prefactor  = 7.73773
  Prefactor  = 52.8109
  Prefactor  = 0.000100314
  Prefactor  = 29.2216
  norm       = 32.7543
  norm       = 4.8488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9727
  norm       = 0.662827
  norm       = 0.422043
  Prefactor  = 7.10684
  Prefactor  = 0.000103541
  Prefactor  = 0.674006
  Prefactor  = 10.7535
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.85166
  Prefactor  = 35.3618
  Prefactor  = 0.0001
  Normalizat = 1.07846
  Prefactor  = 0.978177
 **********
 **   18 **HESSE 
 **********

 FCN=   7267.394     FROM HESSE     STATUS=OK           404 CALLS     4060 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59683        21.505        .39884E-02   -1.5553    
   2  Prefactor     7.7377        8.9194        .14416E-03   -1.5152    
   3  Prefactor     52.811        34.367        .55192E-04   -1.4253    
   4  Prefactor     .10031E-03    6.3771        .72098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.222        18.344        .74112E-04   -1.4626    
   6  norm          32.754        14.782        .70013E-04   -1.4563    
   7  norm          4.8488        2.8242        .10465E-03   -1.5268    
   8  Prefactor     .10000E-03    2.1569        .12220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.973        6.5247        .12095E-03   -1.5045    
  11  norm          .66283        .78769        .97193E-03   -1.5545    
  12  norm          .42204        .52469        .67166E-03   -1.5578    
  13  Prefactor     7.1068        14.744        .75231E-03   -1.5175    
  14  Prefactor     .10354E-03    34.166        .79857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .67401        6.6652        .24683E-02   -1.5544    
  16  Prefactor     10.754        27.265        .12214E-03   -1.5052    
  17  Prefactor     .10000E-03    11.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4255        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8517        4.0819        .13597E-03   -1.5224    
  20  Prefactor     35.362        60.259        .67394E-04   -1.4518    
  21  Prefactor     .10000E-03    25.386        .32092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0785        .22462        .29026E-03   -.90446    
  23  Prefactor     .97818        .15590        .22200E-03   -.93461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11966e-08
Minuit parameter uncertainties:
  1  7.1673
  2  8.92094
  3  34.3803
  4  0.00282818
  5  18.3475
  6  14.7841
  7  2.82427
  8  4.00526e-06
  9  3.57587e-06
  10  6.52513
  11  0.787705
  12  0.524692
  13  14.7516
  14  0.0220122
  15  4.23934
  16  27.2962
  17  0.00010321
  18  9.25262e-06
  19  4.08211
  20  60.3631
  21  0.000123425
  22  0.224824
  23  0.155967
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.097e+01  6.525e+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:  9.782e-01  1.560e-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.078e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.98
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 9.10e-08 +/- 5.41e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.44e-05

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) = 7266.81229303
delta logL = 0.581318907888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7266.81147441
delta logL = 0.582137521964

Fit tolerance = 1e-08

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

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

 FCN=   7266.811     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      244 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9941        53.110        .37923E-02    .15237E-02
   2  Index         3.2154        3.2307        .13806        .28212E-03
   3  Normalizat    1.0292        .86196E-01    .66928E-01    .23403E-03
   4  Prefactor     1.0008        .55666E-01    .45491E-01   -.32184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.99406
  Index      = 3.21536
  Normalizat = 1.02918
  Prefactor  = 1.00077
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.811     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9941        6.3962        .10153E-03   -1.5179    
   2  Index         3.2154        .68781        .52915E-02   -.36498    
   3  Normalizat    1.0292        .21486        .29607E-03   -.92059    
   4  Prefactor     1.0008        .15377        .21973E-03   -.92704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46202e-10
Minuit parameter uncertainties:
  1  6.39679
  2  0.690324
  3  0.21504
  4  0.153841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233008': 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) = 7266.81147441
delta logL = 0.582137524117

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  6.994e+00  6.397e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.215e+00  6.903e-01  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:  1.001e+00  1.538e-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.029e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.28
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.22 +/- 0.69
Photon Flux (Free Index): 1.36e-07 +/- 7.17e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.20e-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/233008/cmap_HighResolution_536889601_537148801_4FGL_J0809.3+4053_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.10e-08', energy_flux2='2.47e-05', photon_flux_error='5.41e-08', dlogl='5.82e-01', energy_flux='2.41e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-08-29 08:11:01.351126', photon_index_error2='0.69', photon_index2='3.22', ts='5.98', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.08', time_epoch_completed='1630249861.35', return_code='0', job_id='233008', GAL2='1.00', EG2='1.03', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='7.17e-08', ts2='7.28', photon_index='2.59' WHERE bin_id='1148' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 233008: <4FGL_J0809.3+4053_daily_bin1148> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin1148> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:55:40 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:55:42 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:55:42 2021
Terminated at Sun Aug 29 08:11:02 2021
Results reported at Sun Aug 29 08:11:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin1148 122.33 40.8954 536889601 537148801 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 :                                   884.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

