/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 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin128
RA = 122.33, Dec = 40.8954
tmin = 272505601, tmax = 272764801
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='226474', job_status='RUN', time_executed='2021-08-29 07:35:48.270423', time_epoch_executed='1630247748.27' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226474/ft1_4FGL_J0809.3+4053_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226474/ft2_4FGL_J0809.3+4053_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226474/ft1_4FGL_J0809.3+4053_daily_bin128.fits outfile=/scratch/kocevski/226474/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin128.fits ra=122.33 dec=40.8954 rad=12.0 tmin=272505601.0 tmax=272764801.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 1.93
user 1.53
sys 0.38

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226474/ft1_filtered_4FGL_J0809.3+4053_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/226474/ft2_4FGL_J0809.3+4053_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/226474/ltcube_272505601_272764801_4FGL_J0809.3+4053_daily_bin128.fits outfile=/scratch/kocevski/226474/expmap_272505601_272764801_4FGL_J0809.3+4053_daily_bin128.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/226474/ltcube_272505601_272764801_4FGL_J0809.3+4053_daily_bin128.fits
.....................!
real 191.45
user 186.04
sys 4.97

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/226474/ft1_filtered_4FGL_J0809.3+4053_daily_bin128.fits scfile=/scratch/kocevski/226474/ft2_4FGL_J0809.3+4053_daily_bin128.fits outfile=/scratch/kocevski/226474/cmap_272505601_272764801_4FGL_J0809.3+4053_daily_bin128.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.74
user 0.37
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226474/ft1_filtered_4FGL_J0809.3+4053_daily_bin128.fits scfile=/scratch/kocevski/226474/ft2_4FGL_J0809.3+4053_daily_bin128.fits outfile=/scratch/kocevski/226474/cmap_HighResolution_272505601_272764801_4FGL_J0809.3+4053_daily_bin128.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.74
user 0.35
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9911       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.449       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11611E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22997E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.578       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3209       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7736       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2767       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .74950       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10522E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.314       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87166       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0659       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=   7093.611     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2696 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7457        6.8609        .13048E-05    .19817E-03
   2  Prefactor     1.9937        23.282       -.23825E-05   -.36871E-04
   3  Prefactor     .10000E-03    13.042        .73669E-08** at limit **
   4  Prefactor     12.468        12.440        .32125E-06    .48533E-04
   5  Prefactor     .10048E-03    22.312       -.38923E-05** at limit **
   6  norm          .10000E-03    3.2100       -.68227E-07** at limit **
   7  norm          .10000E-03    1.2728        .18628E-06** at limit **
   8  Prefactor     .10465E-03    10.611        .38584E-05** at limit **
   9  Prefactor     13.622        39.787       -.78932E-05   -.33023E-03
  10  Prefactor     4.3211        3.8115        .73251E-07   -.21977E-03
  11  norm          1.7736        1.2884       -.73914E-08   -.16386E-04
  12  norm          1.4620        .59386        .23652E-07   -.71271E-03
  13  Prefactor     .10000E-03    5.4254        .36979E-08** at limit **
  14  Prefactor     .10000E-03    12.394       -.26650E-06** at limit **
  15  Prefactor     5.2803        3.1142        .91016E-08   -.87764E-04
  16  Prefactor     24.089        25.113        .44761E-07   -.28489E-04
  17  Prefactor     .10000E-03    3.0125       -.14879E-08** at limit **
  18  norm          .75046        4.1430        .29657E-06   -.21896E-05
  19  Prefactor     .10000E-03    1.5731       -.70778E-07** at limit **
  20  Prefactor     .10001E-03    728.77        .15826E-04** at limit **
  21  Prefactor     13.305        6.7633       -.24719E-06   -.42532E-03
  22  Normalizat    .87187        .17905        .19567E-06   -.17646E-03
  23  Prefactor     1.0658        .12863        .18945E-06   -.13839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.74573
  Prefactor  = 1.99373
  Prefactor  = 0.0001
  Prefactor  = 12.4685
  Prefactor  = 0.000100478
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000104648
  Prefactor  = 13.6217
  Prefactor  = 4.32112
  norm       = 1.7736
  norm       = 1.46197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2803
  Prefactor  = 24.0889
  Prefactor  = 0.0001
  norm       = 0.750462
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 13.3051
  Normalizat = 0.871872
  Prefactor  = 1.06576
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.611     FROM HESSE     STATUS=OK           386 CALLS     3082 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7457        6.9171        .92355E-03   -1.5272    
   2  Prefactor     1.9937        23.044        .29362E-03   -1.5426    
   3  Prefactor     .10000E-03    13.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.468        12.101        .11353E-03   -1.5002    
   5  Prefactor     .10048E-03    127.69        .59405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2157        .14737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1022        .17749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10465E-03    13.978        .57827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.622        46.117        .10870E-03   -1.4970    
  10  Prefactor     4.3211        3.7992        .14697E-03   -1.5292    
  11  norm          1.7736        1.2943        .79437E-04   -1.5442    
  12  norm          1.4620        .58971        .39417E-04   -1.5466    
  13  Prefactor     .10000E-03    5.4268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2803        3.1051        .10768E-03   -1.5248    
  16  Prefactor     24.089        25.113        .40812E-03   -1.4726    
  17  Prefactor     .10000E-03    3.0174        .14273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .75046        4.0927        .33415E-03   -1.5535    
  19  Prefactor     .10000E-03    1.6148        .20615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    711.69        .41457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.305        6.8157        .10978E-03   -1.4978    
  22  Normalizat    .87187        .20276        .28992E-03   -.97456    
  23  Prefactor     1.0658        .14724        .20246E-03   -.90568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3166e-09
Minuit parameter uncertainties:
  1  6.91825
  2  13.5625
  3  1.06503e-05
  4  12.1032
  5  0.0156596
  6  3.54189e-06
  7  0.000135653
  8  0.0161251
  9  46.2384
  10  3.79943
  11  1.29427
  12  0.589713
  13  2.43896e-06
  14  2.99946e-05
  15  3.1052
  16  25.1239
  17  1.50609e-06
  18  3.50524
  19  4.39153e-06
  20  0.00406294
  21  6.81606
  22  0.202936
  23  0.147297
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.321e+00  3.799e+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.066e+00  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:  8.719e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Saving results to:
/scratch/kocevski/226474/likelihoodResults_272505601_272764801_4FGL_J0809.3+4053_daily_bin128.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) = 7093.47676091
delta logL = 0.133782839503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7093.46877841
delta logL = 0.141765342439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0447       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1617       1.0000          .0000       10.000    
     3 'Normalizat'    .88438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0599       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=   7093.469     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0448        4.4069        .16038E-03   -.87104E-03
   2  Index         2.1620        .73813        .11324E-01   -.97168E-04
   3  Normalizat    .88440        .18818        .28811E-03    .54967E-04
   4  Prefactor     1.0599        .14387        .20293E-03    .82239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04479
  Index      = 2.16196
  Normalizat = 0.884398
  Prefactor  = 1.05992
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.469     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0448        4.4049        .64153E-05   -1.5259    
   2  Index         2.1620        .73777        .45295E-03   -.60360    
   3  Normalizat    .88440        .18826        .11525E-04   -.97011    
   4  Prefactor     1.0599        .14395        .40587E-04   -.90758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13766e-10
Minuit parameter uncertainties:
  1  4.40519
  2  0.741774
  3  0.1884
  4  0.144002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226474': 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) = 7093.4687783
delta logL = 0.141765450038

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.045e+00  4.405e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.162e+00  7.418e-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.060e+00  1.440e-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.844e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.16 +/- 0.74
Photon Flux (Free Index): 2.56e-08 +/- 2.98e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.37e-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/226474/cmap_HighResolution_272505601_272764801_4FGL_J0809.3+4053_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='1.24e-05', photon_flux_error='3.15e-08', dlogl='1.42e-01', energy_flux='9.50e-06', photon_flux2='2.56e-08', job_status='DONE', time_completed='2021-08-29 07:48:36.244018', photon_index_error2='0.74', photon_index2='2.16', ts='2.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.37e-05', EG='0.87', time_epoch_completed='1630248516.24', return_code='0', job_id='226474', GAL2='1.06', EG2='0.88', return_code2='0', energy_flux_error='8.36e-06', photon_flux_error2='2.98e-08', ts2='2.48', photon_index='2.59' WHERE bin_id='128' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:48:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 226474: <4FGL_J0809.3+4053_daily_bin128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin128 122.33 40.8954 272505601 272764801 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 :                                   768.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             365.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            788 sec.

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

