/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 147 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 = 7458
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin190
RA = 122.33, Dec = 40.8954
tmin = 288576001, tmax = 288835201
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='226563', job_status='RUN', time_executed='2021-08-29 07:38:24.393868', time_epoch_executed='1630247904.39' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226563/ft1_4FGL_J0809.3+4053_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226563/ft2_4FGL_J0809.3+4053_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226563/ft1_4FGL_J0809.3+4053_daily_bin190.fits outfile=/scratch/kocevski/226563/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin190.fits ra=122.33 dec=40.8954 rad=12.0 tmin=288576001.0 tmax=288835201.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.09
user 3.34
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226563/ft2_4FGL_J0809.3+4053_daily_bin190.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/226563/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin190.fits evtable="EVENTS" outfile="/scratch/kocevski/226563/ft1_filtered_4FGL_J0809.3+4053_daily_bin190.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.01
user 0.31
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226563/ft1_filtered_4FGL_J0809.3+4053_daily_bin190.fits" evtable="EVENTS" scfile=/scratch/kocevski/226563/ft2_4FGL_J0809.3+4053_daily_bin190.fits sctable="SC_DATA" outfile=/scratch/kocevski/226563/ltcube_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.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/226563/ft2_4FGL_J0809.3+4053_daily_bin190.fits
.....................!
real 12.30
user 11.39
sys 0.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226563/ft1_filtered_4FGL_J0809.3+4053_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/226563/ft2_4FGL_J0809.3+4053_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/226563/ltcube_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.fits outfile=/scratch/kocevski/226563/expmap_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.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/226563/ltcube_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.fits
.....................!
real 191.11
user 185.16
sys 5.45

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/226563/ft1_filtered_4FGL_J0809.3+4053_daily_bin190.fits scfile=/scratch/kocevski/226563/ft2_4FGL_J0809.3+4053_daily_bin190.fits outfile=/scratch/kocevski/226563/cmap_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.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.02
user 0.36
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226563/ft1_filtered_4FGL_J0809.3+4053_daily_bin190.fits scfile=/scratch/kocevski/226563/ft2_4FGL_J0809.3+4053_daily_bin190.fits outfile=/scratch/kocevski/226563/cmap_HighResolution_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.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.04
user 0.37
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38748       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5319       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8010       1.0000         .10000E-03   10000.    
    11 'norm      '    .73205       1.0000         .10000E-03   10000.    
    12 'norm      '    .88598       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3196       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5458       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4455       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1906       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87263       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=   7191.531     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2507 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38720        .52989        .32696E-07   -.98891E-03
   2  Prefactor     .10000E-03    8.1705        .17628E-05** at limit **
   3  Prefactor     .10000E-03    18.299        .91569E-06** at limit **
   4  Prefactor     .10000E-03    5.4885        .19408E-06** at limit **
   5  Prefactor     .10000E-03    5.3925       -.12530E-05** at limit **
   6  norm          .10000E-03    2.2647       -.10900E-06** at limit **
   7  norm          2.5319        1.8858        .47208E-07    .69733E-04
   8  Prefactor     .10000E-03    9.2351       -.23235E-05** at limit **
   9  Prefactor     24.973        37.721       -.13587E-04    .45028E-04
  10  Prefactor     3.8010        4.3240        .23571E-06   -.59711E-04
  11  norm          .73204        .81425       -.82603E-07   -.15969E-04
  12  norm          .88591        .55785        .53750E-07    .61513E-03
  13  Prefactor     11.857        32.291       -.29603E-04    .84230E-05
  14  Prefactor     5.9062        14.760        .11677E-05    .53839E-04
  15  Prefactor     1.3197        3.5840       -.79103E-06   -.77846E-04
  16  Prefactor     .10000E-03    11.639       -.73789E-07** at limit **
  17  Prefactor     8.5462        7.5189       -.15832E-06    .25596E-04
  18  norm          .10000E-03    4.3618       -.88463E-07** at limit **
  19  Prefactor     .10000E-03    1.8517        .20646E-06** at limit **
  20  Prefactor     56.303        52.334        .69924E-05    .76876E-05
  21  Prefactor     2.4460        2.9369       -.63039E-06   -.28442E-04
  22  Normalizat    1.1904        .17667        .22950E-05    .13963E-04
  23  Prefactor     .87273        .12498        .97891E-06    .15858E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.387205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.5319
  Prefactor  = 0.000100001
  Prefactor  = 24.9726
  Prefactor  = 3.80103
  norm       = 0.732041
  norm       = 0.885908
  Prefactor  = 11.8565
  Prefactor  = 5.90622
  Prefactor  = 1.3197
  Prefactor  = 0.0001
  Prefactor  = 8.54623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.3025
  Prefactor  = 2.44601
  Normalizat = 1.19041
  Prefactor  = 0.872733
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.531     FROM HESSE     STATUS=OK           372 CALLS     2879 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38720        6.9549        .21201E-02   -1.5584    
   2  Prefactor     .10000E-03    8.2248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2657        .12463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5319        1.8874        .97618E-04   -1.5390    
   8  Prefactor     .10000E-03    9.3804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.973        37.611        .80146E-04   -1.4708    
  10  Prefactor     3.8010        4.3168        .88457E-03   -1.5318    
  11  norm          .73204        .80652        .78763E-04   -1.5537    
  12  norm          .88591        .54268        .47043E-04   -1.5520    
  13  Prefactor     11.857        32.363        .11627E-03   -1.5019    
  14  Prefactor     5.9062        14.126        .16526E-03   -1.5222    
  15  Prefactor     1.3197        3.4201        .21079E-03   -1.5478    
  16  Prefactor     .10000E-03    11.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5462        7.5242        .13713E-03   -1.5123    
  18  norm          .10000E-03    4.4353        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9129        .22519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.303        52.415        .53464E-04   -1.4206    
  21  Prefactor     2.4460        2.9323        .15442E-03   -1.5395    
  22  Normalizat    1.1904        .20672        .25760E-03   -.86900    
  23  Prefactor     .87273        .14722        .21698E-03   -.97100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53304e-09
Minuit parameter uncertainties:
  1  3.28207
  2  3.39176e-05
  3  3.34751e-05
  4  9.22999e-06
  5  1.20546e-05
  6  1.28892e-06
  7  1.88744
  8  0.000177923
  9  37.6466
  10  4.31713
  11  0.806534
  12  0.542684
  13  32.4113
  14  14.134
  15  3.4206
  16  1.13208e-05
  17  7.52502
  18  1.83824e-05
  19  1.18038e-05
  20  52.4579
  21  2.93248
  22  0.206865
  23  0.147282
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.801e+00  4.317e+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:  8.727e-01  1.473e-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.190e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.15e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 8.36e-06 +/- 9.49e-06

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

Saving results to:
/scratch/kocevski/226563/likelihoodResults_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.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) = 7191.31253159
delta logL = 0.218104727452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7191.30185106
delta logL = 0.228785263711

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4590       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0041       1.0000          .0000       10.000    
     3 'Normalizat'    1.2075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86405       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=   7191.302     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4582        11.533        .47672E-02    .22966E-03
   2  Index         2.0042        1.3619        .25765       -.41680E-04
   3  Normalizat    1.2076        .17438        .57895E-01    .67102E-05
   4  Prefactor     .86406        .12780        .44545E-01    .75428E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45817
  Index      = 2.00419
  Normalizat = 1.20757
  Prefactor  = 0.86406
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.302     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4582        4.8824        .18516E-03   -1.5286    
   2  Index         2.0042        .75662        .11690E-01   -.64245    
   3  Normalizat    1.2076        .19801        .25604E-03   -.86369    
   4  Prefactor     .86406        .14542        .21788E-03   -.97409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03468e-12
Minuit parameter uncertainties:
  1  4.88284
  2  0.761195
  3  0.198134
  4  0.145483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226563': 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) = 7191.30185099
delta logL = 0.22878533511

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.458e+00  4.883e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.004e+00  7.612e-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.641e-01  1.455e-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.208e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.00 +/- 0.76
Photon Flux (Free Index): 1.94e-08 +/- 2.75e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.87e-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/226563/cmap_HighResolution_288576001_288835201_4FGL_J0809.3+4053_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-03', comment='SUCCESS', photon_flux='3.15e-08', energy_flux2='1.33e-05', photon_flux_error='3.58e-08', dlogl='2.29e-01', energy_flux='8.36e-06', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-08-29 07:51:00.341672', photon_index_error2='0.76', photon_index2='2.00', ts='1.15', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.87e-05', EG='1.19', time_epoch_completed='1630248660.34', return_code='0', job_id='226563', GAL2='0.86', EG2='1.21', return_code2='0', energy_flux_error='9.49e-06', photon_flux_error2='2.75e-08', ts2='1.61', photon_index='2.59' WHERE bin_id='190' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 226563: <4FGL_J0809.3+4053_daily_bin190> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin190> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:35 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:37 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:35:37 2021
Terminated at Sun Aug 29 07:51:01 2021
Results reported at Sun Aug 29 07:51:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin190 122.33 40.8954 288576001 288835201 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 :                                   761.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

