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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin1454
RA = 122.33, Dec = 40.8954
tmin = 616204801, tmax = 616464001
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='235704', job_status='RUN', time_executed='2021-08-29 08:01:20.356296', time_epoch_executed='1630249280.36' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235704/ft1_4FGL_J0809.3+4053_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235704/ft2_4FGL_J0809.3+4053_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235704/ft1_4FGL_J0809.3+4053_daily_bin1454.fits outfile=/scratch/kocevski/235704/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1454.fits ra=122.33 dec=40.8954 rad=12.0 tmin=616204801.0 tmax=616464001.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 5.37
user 3.73
sys 1.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/235704/ft1_filtered_4FGL_J0809.3+4053_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/235704/ft2_4FGL_J0809.3+4053_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/235704/ltcube_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.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/235704/ft2_4FGL_J0809.3+4053_daily_bin1454.fits
.....................!
real 13.92
user 12.02
sys 1.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235704/ft1_filtered_4FGL_J0809.3+4053_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/235704/ft2_4FGL_J0809.3+4053_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/235704/ltcube_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.fits outfile=/scratch/kocevski/235704/expmap_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.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/235704/ltcube_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.fits
.....................!
real 192.93
user 186.12
sys 6.40

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/235704/ft1_filtered_4FGL_J0809.3+4053_daily_bin1454.fits scfile=/scratch/kocevski/235704/ft2_4FGL_J0809.3+4053_daily_bin1454.fits outfile=/scratch/kocevski/235704/cmap_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.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.92
user 0.37
sys 1.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235704/ft1_filtered_4FGL_J0809.3+4053_daily_bin1454.fits scfile=/scratch/kocevski/235704/ft2_4FGL_J0809.3+4053_daily_bin1454.fits outfile=/scratch/kocevski/235704/cmap_HighResolution_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.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.87
user 0.39
sys 1.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5316       1.0000         .10000E-03   10000.    
    12 'norm      '    .46630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.104       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4520       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9194       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0255       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89523       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=   4073.448     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2507 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5985       -.16636E-07** at limit **
   2  Prefactor     .10000E-03    3.0114       -.18327E-07** at limit **
   3  Prefactor     35.010        36.731       -.59460E-05   -.54871E-04
   4  Prefactor     .10000E-03    16.582       -.35529E-05** at limit **
   5  Prefactor     .10000E-03    8.7954        .14487E-05** at limit **
   6  norm          .10000E-03    27.147        .41930E-05** at limit **
   7  norm          1.3414        2.2609        .12737E-06    .14214E-03
   8  Prefactor     .10000E-03    11.889        .11234E-05** at limit **
   9  Prefactor     .10000E-03    32.952        .23997E-06** at limit **
  10  Prefactor     .10000E-03    7.9155       -.72667E-06** at limit **
  11  norm          1.5315        1.5666        .21435E-07    .46975E-04
  12  norm          .46611        .58050        .11299E-06   -.27178E-03
  13  Prefactor     .10000E-03    21.171        .72150E-06** at limit **
  14  Prefactor     23.127        31.018       -.42158E-05   -.35125E-04
  15  Prefactor     1.4477        6.5148        .49515E-05   -.88406E-04
  16  Prefactor     .10000E-03    31.144        .30745E-05** at limit **
  17  Prefactor     .10000E-03    5.4738        .25705E-06** at limit **
  18  norm          .10000E-03    2.4516        .23704E-07** at limit **
  19  Prefactor     5.9194        3.8315        .42365E-07   -.33215E-04
  20  Prefactor     .10000E-03    36.136       -.46703E-05** at limit **
  21  Prefactor     .10000E-03    3.0539        .12550E-06** at limit **
  22  Normalizat    1.0253        .21766       -.20906E-05   -.29604E-04
  23  Prefactor     .89536        .15897        .95983E-06   -.15153E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.34141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53148
  norm       = 0.466114
  Prefactor  = 0.0001
  Prefactor  = 23.1273
  Prefactor  = 1.44774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.91944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02534
  Prefactor  = 0.895363
 **********
 **   18 **HESSE 
 **********

 FCN=   4073.448     FROM HESSE     STATUS=OK           362 CALLS     2869 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6166        .11823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0119        .10817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.010        36.878        .67707E-04   -1.4524    
   4  Prefactor     .10000E-03    16.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    27.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3414        2.2211        .12080E-03   -1.5476    
   8  Prefactor     .10000E-03    12.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1877        .35032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5315        1.5729        .78746E-04   -1.5460    
  12  norm          .46611        .54177        .51174E-03   -1.5571    
  13  Prefactor     .10000E-03    21.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.127        31.546        .83333E-04   -1.4746    
  15  Prefactor     1.4477        6.7485        .21687E-03   -1.5467    
  16  Prefactor     .10000E-03    31.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4897        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4633        .97595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9194        3.8370        .97171E-04   -1.5221    
  20  Prefactor     .10000E-03    36.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0865        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0253        .24870        .25609E-03   -.92186    
  23  Prefactor     .89536        .18187        .20425E-03   -.96303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22139e-10
Minuit parameter uncertainties:
  1  3.24992e-06
  2  2.77692e-07
  3  36.9018
  4  0.000116086
  5  3.14186e-05
  6  5.79679e-05
  7  2.22128
  8  2.63075e-05
  9  1.93095e-05
  10  4.47562e-05
  11  1.57298
  12  0.541775
  13  1.74923e-05
  14  31.5684
  15  6.25237
  16  6.78234e-07
  17  2.48123e-07
  18  6.44501e-07
  19  3.83714
  20  0.000129008
  21  4.10616e-06
  22  0.248979
  23  0.181994
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.476e-05  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:  8.954e-01  1.820e-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.025e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/235704/likelihoodResults_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.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): 102
logL (Free Index) = 4073.44824798
delta logL = -0.000582987362577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4073.44766632
delta logL = -1.32052036861e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12870E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6260       1.0000          .0000       10.000    
     3 'Normalizat'    1.0254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89534       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=   4073.448     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      210 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.339        .44026E-01** at limit **
   2  Index         2.6700        5.4693        .50000       -.48343E-04
   3  Normalizat    1.0253        .10813E-01    .42654E-01   -.35555E-03
   4  Prefactor     .89537        .81577E-02    .44946E-01   -.13980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.67001
  Normalizat = 1.02533
  Prefactor  = 0.895368
 **********
 **   18 **HESSE 
 **********

 FCN=   4073.448     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1311.0        .26730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6700        6.2399        .50000       -.48476    
   3  Normalizat    1.0253        .85051E-01    .25609E-03   -.92187    
   4  Prefactor     .89537        .63825E-01    .20425E-03   -.96303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.50181e-07
Minuit parameter uncertainties:
  1  0.000199951
  2  53.3155
  3  0.0850618
  4  0.0638302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235704': 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): 102
logL (Free Index) = 4073.44766414
delta logL = 8.58247858559e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.000e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.670e+00  5.332e+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:  8.954e-01  6.383e-02  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.025e+00  8.506e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/235704/cmap_HighResolution_616204801_616464001_4FGL_J0809.3+4053_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-08-29 08:11:11.504575', job_id='235704', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630249871.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='8.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1454' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 235704: <4FGL_J0809.3+4053_daily_bin1454> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin1454> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 08:00:42 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:00:44 2021
Terminated at Sun Aug 29 08:11:12 2021
Results reported at Sun Aug 29 08:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin1454 122.33 40.8954 616204801 616464001 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 :                                   600.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            630 sec.

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

