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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin1278
RA = 122.33, Dec = 40.8954
tmin = 570585601, tmax = 570844801
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='233305', job_status='RUN', time_executed='2021-08-29 07:56:34.832345', time_epoch_executed='1630248994.83' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233305

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233305/ft1_4FGL_J0809.3+4053_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233305/ft2_4FGL_J0809.3+4053_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233305/ft1_4FGL_J0809.3+4053_daily_bin1278.fits outfile=/scratch/kocevski/233305/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1278.fits ra=122.33 dec=40.8954 rad=12.0 tmin=570585601.0 tmax=570844801.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.32
user 2.85
sys 1.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233305/ft1_filtered_4FGL_J0809.3+4053_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/233305/ft2_4FGL_J0809.3+4053_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/233305/ltcube_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.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/233305/ft2_4FGL_J0809.3+4053_daily_bin1278.fits
.....................!
real 14.21
user 12.39
sys 1.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233305/ft1_filtered_4FGL_J0809.3+4053_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/233305/ft2_4FGL_J0809.3+4053_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/233305/ltcube_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.fits outfile=/scratch/kocevski/233305/expmap_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.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/233305/ltcube_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.fits
.....................!
real 191.93
user 185.74
sys 5.78

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/233305/ft1_filtered_4FGL_J0809.3+4053_daily_bin1278.fits scfile=/scratch/kocevski/233305/ft2_4FGL_J0809.3+4053_daily_bin1278.fits outfile=/scratch/kocevski/233305/cmap_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.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.78
user 0.37
sys 1.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233305/ft1_filtered_4FGL_J0809.3+4053_daily_bin1278.fits scfile=/scratch/kocevski/233305/ft2_4FGL_J0809.3+4053_daily_bin1278.fits outfile=/scratch/kocevski/233305/cmap_HighResolution_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.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.79
user 0.40
sys 1.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    168.88       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    116.81       1.0000         .10000E-03   10000.    
     6 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11439E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11612E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.658       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10651E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12192E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    109.74       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47096E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1000       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11590E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93963       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87981       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   882.0444     FROM MIGRAD    STATUS=CONVERGED   1119 CALLS     3091 TOTAL
                     EDM=   .15E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.316        .17319E-02** at limit **
   2  Prefactor     .10000E-03    151.38        .18142E-02** at limit **
   3  Prefactor     168.95        95.104        .15522E-03   -.17395E-06
   4  Prefactor     .10000E-03    52.084        .18142E-02** at limit **
   5  Prefactor     116.90        98.833        .37229E-04    .12978E-06
   6  norm          .10000E-03    67.054        .18142E-02** at limit **
   7  norm          .10000E-03    3.4573        .53890E-03** at limit **
   8  Prefactor     .10000E-03    36.541        .17529E-02** at limit **
   9  Prefactor     .10000E-03    94.701        .18142E-02** at limit **
  10  Prefactor     32.665        46.503        .70118E-04    .50668E-06
  11  norm          .10000E-03    1.8079        .39009E-03** at limit **
  12  norm          .10000E-03    2.5405        .45968E-03** at limit **
  13  Prefactor     .10000E-03    254.07        .18142E-02** at limit **
  14  Prefactor     109.85        146.07        .19198E-03    .66621E-06
  15  Prefactor     .10000E-03    27.309        .15162E-02** at limit **
  16  Prefactor     .10000E-03    174.62        .21187E-02** at limit **
  17  Prefactor     .10000E-03    40.034        .18142E-02** at limit **
  18  norm          .10000E-03    18.522        .12492E-02** at limit **
  19  Prefactor     .10000E-03    32.570        .16569E-02** at limit **
  20  Prefactor    10000.0        7227.2        .81278E-02** at limit **
  21  Prefactor     .10000E-03    1601.8        .18162E-02** at limit **
  22  Normalizat    .93649        .80593        .36269E-03   -.15673E-07
  23  Prefactor     .88098        .45299        .21628E-03    .65704E-08
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 168.948
  Prefactor  = 0.0001
  Prefactor  = 116.901
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6652
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.85
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Normalizat = 0.936492
  Prefactor  = 0.880982
 **********
 **   18 **HESSE 
 **********

 FCN=   882.0444     FROM HESSE     STATUS=OK           346 CALLS     3437 TOTAL
                     EDM=   .15E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.335        .34637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    151.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     168.95        95.103        .62087E-05   -1.3101    
   4  Prefactor     .10000E-03    52.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     116.90        98.831        .74457E-05   -1.3541    
   6  norm          .10000E-03    67.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.4574        .10778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.542        .35058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    94.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.665        46.503        .28047E-05   -1.4564    
  11  norm          .10000E-03    1.8079        .78017E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.5405        .91935E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    254.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     109.85        146.06        .76791E-05   -1.3608    
  15  Prefactor     .10000E-03    27.309        .30324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    174.62        .42374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    18.522        .24984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.570        .33137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        7227.0        .16256E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1601.8        .36324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93649        .80665        .14508E-04   -.95189    
  23  Prefactor     .88098        .45341        .86514E-05   -.96809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51288e-14
Minuit parameter uncertainties:
  1  7.58539e-07
  2  1.448e-05
  3  95.1897
  4  9.49201e-07
  5  98.9709
  6  5.70926e-07
  7  2.12807e-07
  8  2.61668e-07
  9  4.98672e-06
  10  46.5543
  11  6.19762e-08
  12  8.68803e-08
  13  1.64722e-05
  14  146.541
  15  6.30204e-08
  16  1.22053e-05
  17  3.17675e-07
  18  5.28539e-09
  19  4.69649e-08
  20  0.0105073
  21  7.05601e-06
  22  0.817447
  23  0.455362
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.267e+01  4.655e+01  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.810e-01  4.554e-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:  9.365e-01  8.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.12e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233305/likelihoodResults_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.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) = 881.630264349
delta logL = 0.414100060918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 881.600309245
delta logL = 0.444055165066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.942       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6019       1.0000          .0000       10.000    
     3 'Normalizat'    1.1155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79073       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=   881.6003     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      197 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.942        35.803        .18008E-02    .26175E-03
   2  Index         1.6020        .60913        .11019       -.21165E-04
   3  Normalizat    1.1154        .64937        .76028E-01   -.98182E-04
   4  Prefactor     .79073        .37737        .43596E-01   -.43334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9423
  Index      = 1.60198
  Normalizat = 1.11544
  Prefactor  = 0.790726
 **********
 **   18 **HESSE 
 **********

 FCN=   881.6003     FROM HESSE     STATUS=OK            27 CALLS      224 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.942        42.177        .72030E-04   -1.4595    
   2  Index         1.6020        .75161        .46560E-02   -.74722    
   3  Normalizat    1.1154        .77429        .33650E-03   -.89258    
   4  Prefactor     .79073        .45066        .22587E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47016e-10
Minuit parameter uncertainties:
  1  42.2174
  2  0.75697
  3  0.782389
  4  0.452781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233305': 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) = 881.600309216
delta logL = 0.444055193769

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.094e+01  4.222e+01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.602e+00  7.570e-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:  7.907e-01  4.528e-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.115e+00  7.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 122.330 40.895
Photon Index (Free Index): 1.60 +/- 0.76
Photon Flux (Free Index): 1.04e-07 +/- 1.58e-07
Energy Flux (Free Index): 2.33e-04 +/- 4.32e-04

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/233305/cmap_HighResolution_570585601_570844801_4FGL_J0809.3+4053_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-02', comment='SUCCESS', energy_flux2='2.33e-04', dlogl='4.44e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-08-29 08:03:17.796462', photon_index_error2='0.76', photon_index2='1.60', ts='0.77', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.12e-06', energy_flux_error2='4.32e-04', EG='0.94', time_epoch_completed='1630249397.8', return_code='0', job_id='233305', GAL2='0.79', EG2='1.12', return_code2='0', photon_flux_error2='1.58e-07', ts2='1.71', photon_index='2.59' WHERE bin_id='1278' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:03:17 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin1278 122.33 40.8954 570585601 570844801 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 :                                   418.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   440 sec.
    Turnaround time :                            445 sec.

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

