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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin597
RA = 122.33, Dec = 40.8954
tmin = 394070401, tmax = 394329601
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='229323', job_status='RUN', time_executed='2021-08-29 07:45:40.122540', time_epoch_executed='1630248340.12' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229323/ft1_4FGL_J0809.3+4053_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229323/ft2_4FGL_J0809.3+4053_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229323/ft1_4FGL_J0809.3+4053_daily_bin597.fits outfile=/scratch/kocevski/229323/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin597.fits ra=122.33 dec=40.8954 rad=12.0 tmin=394070401.0 tmax=394329601.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 4.77
user 4.24
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229323/ft2_4FGL_J0809.3+4053_daily_bin597.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/229323/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin597.fits evtable="EVENTS" outfile="/scratch/kocevski/229323/ft1_filtered_4FGL_J0809.3+4053_daily_bin597.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.81
user 0.34
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229323/ft1_filtered_4FGL_J0809.3+4053_daily_bin597.fits" evtable="EVENTS" scfile=/scratch/kocevski/229323/ft2_4FGL_J0809.3+4053_daily_bin597.fits sctable="SC_DATA" outfile=/scratch/kocevski/229323/ltcube_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.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/229323/ft2_4FGL_J0809.3+4053_daily_bin597.fits
.....................!
real 12.19
user 11.54
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229323/ft1_filtered_4FGL_J0809.3+4053_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/229323/ft2_4FGL_J0809.3+4053_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/229323/ltcube_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.fits outfile=/scratch/kocevski/229323/expmap_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.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/229323/ltcube_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.fits
.....................!
real 191.45
user 185.92
sys 5.15

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/229323/ft1_filtered_4FGL_J0809.3+4053_daily_bin597.fits scfile=/scratch/kocevski/229323/ft2_4FGL_J0809.3+4053_daily_bin597.fits outfile=/scratch/kocevski/229323/cmap_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.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 0.81
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229323/ft1_filtered_4FGL_J0809.3+4053_daily_bin597.fits scfile=/scratch/kocevski/229323/ft2_4FGL_J0809.3+4053_daily_bin597.fits outfile=/scratch/kocevski/229323/cmap_HighResolution_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.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 0.83
user 0.38
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1110       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6712       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3592       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5137       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.541       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35042E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6747       1.0000         .10000E-03   10000.    
    20 'Prefactor '    87.007       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68892       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2055       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=   7196.917     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2574 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8200       -.60899E-08** at limit **
   2  Prefactor     .10000E-03    3.1902        .64904E-09** at limit **
   3  Prefactor     .10000E-03    12.007        .70408E-07** at limit **
   4  Prefactor     5.1103        10.925        .43495E-07   -.84520E-06
   5  Prefactor     .10000E-03    6.1971       -.28925E-07** at limit **
   6  norm          .10000E-03    7.3316        .15175E-06** at limit **
   7  norm          4.6707        2.9190        .24733E-07   -.32047E-05
   8  Prefactor     1.3579        6.5251        .40807E-05   -.60240E-05
   9  Prefactor     41.049        43.680       -.16521E-05    .32897E-05
  10  Prefactor     2.5144        4.2091       -.22185E-06    .72624E-04
  11  norm          .10000E-03    .77123        .19047E-07** at limit **
  12  norm          1.3955        .67971       -.57443E-07    .13998E-03
  13  Prefactor     .10000E-03    9.1683       -.11855E-06** at limit **
  14  Prefactor     8.1947        13.964        .17574E-05   -.18863E-04
  15  Prefactor     1.2090        1.7591       -.95255E-06   -.23064E-03
  16  Prefactor     13.477        27.509       -.94998E-06   -.25154E-04
  17  Prefactor     .10000E-03    12.850        .15032E-05** at limit **
  18  norm          6.0058        5.8254        .83790E-08   -.12926E-04
  19  Prefactor     4.6740        2.9985       -.14300E-07   -.72767E-04
  20  Prefactor     86.979        70.034        .26171E-06    .15146E-04
  21  Prefactor     .10000E-03    4.3479        .12218E-05** at limit **
  22  Normalizat    .68915        .18434        .66795E-07   -.41376E-04
  23  Prefactor     1.2054        .13773       -.91664E-07   -.65090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11033
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.6707
  Prefactor  = 1.35787
  Prefactor  = 41.0494
  Prefactor  = 2.51441
  norm       = 0.0001
  norm       = 1.39553
  Prefactor  = 0.0001
  Prefactor  = 8.19467
  Prefactor  = 1.20897
  Prefactor  = 13.4768
  Prefactor  = 0.0001
  norm       = 6.00577
  Prefactor  = 4.67399
  Prefactor  = 86.9785
  Prefactor  = 0.0001
  Normalizat = 0.689149
  Prefactor  = 1.20536
 **********
 **   18 **HESSE 
 **********

 FCN=   7196.917     FROM HESSE     STATUS=OK           372 CALLS     2946 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8602        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1946        .14798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1103        10.879        .17784E-03   -1.5256    
   5  Prefactor     .10000E-03    6.2099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6707        2.9094        .53257E-03   -1.5276    
   8  Prefactor     1.3579        6.5715        .18734E-02   -1.5475    
   9  Prefactor     41.049        43.816        .62565E-04   -1.4426    
  10  Prefactor     2.5144        4.1701        .20882E-03   -1.5391    
  11  norm          .10000E-03    .79486        .14547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3955        .66971        .44836E-04   -1.5472    
  13  Prefactor     .10000E-03    9.1710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1947        13.970        .14005E-03   -1.5135    
  15  Prefactor     1.2090        1.7505        .13035E-03   -1.5488    
  16  Prefactor     13.477        27.408        .10885E-03   -1.4974    
  17  Prefactor     .10000E-03    13.300        .42646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0058        5.8235        .16384E-03   -1.5218    
  19  Prefactor     4.6740        2.9993        .11273E-03   -1.5276    
  20  Prefactor     86.979        69.851        .21536E-03   -1.3840    
  21  Prefactor     .10000E-03    4.3961        .34152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .68915        .20810        .32173E-03   -1.0432    
  23  Prefactor     1.2054        .15634        .19480E-03   -.86167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81545e-09
Minuit parameter uncertainties:
  1  2.23417e-06
  2  5.40789e-07
  3  4.85963e-06
  4  10.8834
  5  4.88998e-06
  6  6.62978e-06
  7  2.90953
  8  5.97519
  9  43.8504
  10  4.17061
  11  4.32938e-07
  12  0.669712
  13  1.42582e-05
  14  13.976
  15  1.75054
  16  27.4337
  17  3.44477e-05
  18  5.82403
  19  2.99942
  20  69.9175
  21  4.14777e-05
  22  0.208342
  23  0.156402
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.514e+00  4.171e+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:  1.205e+00  1.564e-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:  6.891e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/229323/likelihoodResults_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.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) = 7196.91565481
delta logL = 0.0012357858368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7196.91158985
delta logL = 0.00530074642757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1202       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3150       1.0000          .0000       10.000    
     3 'Normalizat'    .69354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2026       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7196.912     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      276 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1264        7.0356        .11477E-02    .62314E-03
   2  Index         2.3101        2.3993        .90218E-02    .37758E-04
   3  Normalizat    .69389        .20321        .32071E-03    .75150E-05
   4  Prefactor     1.2022        .15745        .19501E-03   -.59464E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12638
  Index      = 2.31015
  Normalizat = 0.693889
  Prefactor  = 1.20225
 **********
 **   18 **HESSE 
 **********

 FCN=   7196.912     FROM HESSE     STATUS=OK            27 CALLS      303 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1264        6.3045        .22954E-03   -1.5354    
   2  Index         2.3101        2.1773        .18044E-02   -.56803    
   3  Normalizat    .69389        .20244        .12829E-04   -1.0413    
   4  Prefactor     1.2022        .15691        .78004E-05   -.86262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2539e-12
Minuit parameter uncertainties:
  1  6.30587
  2  2.28802
  3  0.202655
  4  0.156974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229323': 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) = 7196.91158565
delta logL = 0.00530494838131

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.126e+00  6.306e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.310e+00  2.288e+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:  1.202e+00  1.570e-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:  6.939e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/229323/cmap_HighResolution_394070401_394329601_4FGL_J0809.3+4053_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-08-29 07:58:31.855908', job_id='229323', GAL2='1.20', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630249111.86', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='5.30e-03', ts2='0.47', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='597' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:58:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 229323: <4FGL_J0809.3+4053_daily_bin597> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin597> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:19 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45:21 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:45:21 2021
Terminated at Sun Aug 29 07:58:32 2021
Results reported at Sun Aug 29 07:58:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin597 122.33 40.8954 394070401 394329601 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 :                                   773.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

