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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin844
RA = 122.33, Dec = 40.8954
tmin = 458092801, tmax = 458352001
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='230922', job_status='RUN', time_executed='2021-08-29 07:53:04.791252', time_epoch_executed='1630248784.79' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230922/ft1_4FGL_J0809.3+4053_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230922/ft2_4FGL_J0809.3+4053_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230922/ft1_4FGL_J0809.3+4053_daily_bin844.fits outfile=/scratch/kocevski/230922/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin844.fits ra=122.33 dec=40.8954 rad=12.0 tmin=458092801.0 tmax=458352001.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 3.78
user 3.34
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230922/ft1_filtered_4FGL_J0809.3+4053_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/230922/ft2_4FGL_J0809.3+4053_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/230922/ltcube_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.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/230922/ft2_4FGL_J0809.3+4053_daily_bin844.fits
.....................!
real 11.90
user 11.33
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230922/ft1_filtered_4FGL_J0809.3+4053_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/230922/ft2_4FGL_J0809.3+4053_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/230922/ltcube_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.fits outfile=/scratch/kocevski/230922/expmap_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.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/230922/ltcube_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.fits
.....................!
real 190.76
user 184.90
sys 5.46

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/230922/ft1_filtered_4FGL_J0809.3+4053_daily_bin844.fits scfile=/scratch/kocevski/230922/ft2_4FGL_J0809.3+4053_daily_bin844.fits outfile=/scratch/kocevski/230922/cmap_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.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.75
user 0.37
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230922/ft1_filtered_4FGL_J0809.3+4053_daily_bin844.fits scfile=/scratch/kocevski/230922/ft2_4FGL_J0809.3+4053_daily_bin844.fits outfile=/scratch/kocevski/230922/cmap_HighResolution_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.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.72
user 0.38
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .81314       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .28784E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3991       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7778       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4191       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.009       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-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      '    2.3843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7659       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85962       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0395       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=   7568.484     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2552 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.572        6.5727       -.61332E-08   -.97716E-05
   2  Prefactor     .80312        7.4055       -.39271E-05    .32389E-03
   3  Prefactor     17.506        32.369       -.30889E-04   -.40426E-04
   4  Prefactor     4.0924        10.846        .80483E-05    .18123E-04
   5  Prefactor     .10000E-03    5.0453        .10907E-06** at limit **
   6  norm          .10014E-03    6.0055       -.20683E-06** at limit **
   7  norm          .10000E-03    .59065        .16317E-07** at limit **
   8  Prefactor     .10000E-03    5.6681        .33316E-06** at limit **
   9  Prefactor     5.3856        39.221       -.24400E-04   -.21118E-04
  10  Prefactor     2.7771        3.4342       -.27969E-06   -.45507E-03
  11  norm          1.4190        1.3233       -.64756E-07   -.36127E-03
  12  norm          1.6981        .61895        .42302E-07    .42146E-03
  13  Prefactor     17.009        19.789       -.97493E-06    .40949E-05
  14  Prefactor     .10000E-03    9.7340       -.13123E-06** at limit **
  15  Prefactor     .10000E-03    1.1103       -.73169E-07** at limit **
  16  Prefactor     .10000E-03    6.5603        .23878E-06** at limit **
  17  Prefactor     .10000E-03    2.1733        .27759E-07** at limit **
  18  norm          2.3844        2.7752       -.85624E-07    .37865E-04
  19  Prefactor     .10000E-03    .64048       -.19048E-07** at limit **
  20  Prefactor     .10000E-03    19.491       -.37188E-07** at limit **
  21  Prefactor     2.7661        3.7923        .13604E-05   -.66814E-03
  22  Normalizat    .85957        .16092        .25965E-05    .29630E-03
  23  Prefactor     1.0395        .12310        .70447E-06    .45961E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.572
  Prefactor  = 0.803118
  Prefactor  = 17.5056
  Prefactor  = 4.09239
  Prefactor  = 0.0001
  norm       = 0.000100138
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.38556
  Prefactor  = 2.77715
  norm       = 1.41898
  norm       = 1.69806
  Prefactor  = 17.0088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.76614
  Normalizat = 0.859569
  Prefactor  = 1.03952
 **********
 **   18 **HESSE 
 **********

 FCN=   7568.484     FROM HESSE     STATUS=OK           376 CALLS     2928 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.572        6.5802        .12323E-03   -1.5058    
   2  Prefactor     .80312        27.209        .44670E-02   -1.5529    
   3  Prefactor     17.506        32.371        .95657E-04   -1.4871    
   4  Prefactor     4.0924        10.745        .19929E-03   -1.5303    
   5  Prefactor     .10000E-03    5.0555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10014E-03    84.857        .40762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .59238        .65243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3856        39.295        .17294E-03   -1.5244    
  10  Prefactor     2.7771        3.4189        .17009E-03   -1.5375    
  11  norm          1.4190        1.3044        .94057E-04   -1.5470    
  12  norm          1.6981        .61593        .39088E-04   -1.5447    
  13  Prefactor     17.009        19.791        .97112E-04   -1.4883    
  14  Prefactor     .10000E-03    9.9066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1471        .17885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1758        .12524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3844        2.7726        .15239E-03   -1.5399    
  19  Prefactor     .10000E-03    .64288        .67984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7661        3.7677        .18944E-03   -1.5375    
  22  Normalizat    .85957        .18059        .27627E-03   -.97896    
  23  Prefactor     1.0395        .13985        .19803E-03   -.91423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81947e-09
Minuit parameter uncertainties:
  1  6.58061
  2  9.35322
  3  32.403
  4  10.7503
  5  1.43519e-05
  6  0.00686153
  7  1.14943e-06
  8  0.00013913
  9  29.1214
  10  3.41911
  11  1.30446
  12  0.615929
  13  19.7988
  14  2.44911e-05
  15  5.64679e-06
  16  6.29329e-06
  17  1.29053e-06
  18  2.77278
  19  2.16375e-06
  20  3.00749e-05
  21  3.76797
  22  0.180713
  23  0.139899
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.777e+00  3.419e+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.040e+00  1.399e-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:  8.596e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/230922/likelihoodResults_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.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) = 7567.70319324
delta logL = 0.781304872449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7567.69121067
delta logL = 0.793287439088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3478       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6735       1.0000          .0000       10.000    
     3 'Normalizat'    .87512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0316       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=   7567.691     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3488        3.5821        .55299E-02    .28624E-04
   2  Index         1.6737        .42775        .27277       -.65048E-04
   3  Normalizat    .87512        .15473        .44583E-01    .25611E-04
   4  Prefactor     1.0316        .12138        .41132E-01    .62047E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.34875
  Index      = 1.6737
  Normalizat = 0.875125
  Prefactor  = 1.03162
 **********
 **   18 **HESSE 
 **********

 FCN=   7567.691     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3488        4.2443        .16019E-03   -1.5342    
   2  Index         1.6737        .64855        .94032E-02   -.72784    
   3  Normalizat    .87512        .17543        .27406E-03   -.97340    
   4  Prefactor     1.0316        .13771        .19862E-03   -.91683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95981e-12
Minuit parameter uncertainties:
  1  4.24469
  2  0.651858
  3  0.175547
  4  0.137761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230922': 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) = 7567.69121062
delta logL = 0.793287490214

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.349e+00  4.245e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.674e+00  6.519e-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.032e+00  1.378e-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:  8.751e-01  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 122.330 40.895
Photon Index (Free Index): 1.67 +/- 0.65
Photon Flux (Free Index): 1.16e-08 +/- 1.69e-08
Energy Flux (Free Index): 2.05e-05 +/- 3.06e-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/230922/cmap_HighResolution_458092801_458352001_4FGL_J0809.3+4053_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', comment='SUCCESS', energy_flux2='2.05e-05', dlogl='7.93e-01', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-08-29 08:06:04.133492', photon_index_error2='0.65', photon_index2='1.67', ts='0.97', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.90e-08', energy_flux_error2='3.06e-05', EG='0.86', time_epoch_completed='1630249564.13', return_code='0', job_id='230922', GAL2='1.03', EG2='0.88', return_code2='0', photon_flux_error2='1.69e-08', ts2='2.55', photon_index='2.59' WHERE bin_id='844' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 230922: <4FGL_J0809.3+4053_daily_bin844> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin844> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:30 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:32 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:50:32 2021
Terminated at Sun Aug 29 08:06:04 2021
Results reported at Sun Aug 29 08:06:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin844 122.33 40.8954 458092801 458352001 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 :                                   779.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

