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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin346
RA = 122.33, Dec = 40.8954
tmin = 329011201, tmax = 329270401
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='226787', job_status='RUN', time_executed='2021-08-29 07:39:38.321692', time_epoch_executed='1630247978.32' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226787/ft1_4FGL_J0809.3+4053_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226787/ft2_4FGL_J0809.3+4053_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226787/ft1_4FGL_J0809.3+4053_daily_bin346.fits outfile=/scratch/kocevski/226787/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin346.fits ra=122.33 dec=40.8954 rad=12.0 tmin=329011201.0 tmax=329270401.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.05
user 3.28
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226787/ft2_4FGL_J0809.3+4053_daily_bin346.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/226787/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/226787/ft1_filtered_4FGL_J0809.3+4053_daily_bin346.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.93
user 0.34
sys 0.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226787/ft1_filtered_4FGL_J0809.3+4053_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/226787/ft2_4FGL_J0809.3+4053_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/226787/ltcube_329011201_329270401_4FGL_J0809.3+4053_daily_bin346.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/226787/ft2_4FGL_J0809.3+4053_daily_bin346.fits
.....................!
real 12.27
user 11.41
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226787/ft1_filtered_4FGL_J0809.3+4053_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/226787/ft2_4FGL_J0809.3+4053_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/226787/ltcube_329011201_329270401_4FGL_J0809.3+4053_daily_bin346.fits outfile=/scratch/kocevski/226787/expmap_329011201_329270401_4FGL_J0809.3+4053_daily_bin346.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/226787/ltcube_329011201_329270401_4FGL_J0809.3+4053_daily_bin346.fits
.....................!
real 191.10
user 185.04
sys 5.70

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/226787/ft1_filtered_4FGL_J0809.3+4053_daily_bin346.fits scfile=/scratch/kocevski/226787/ft2_4FGL_J0809.3+4053_daily_bin346.fits outfile=/scratch/kocevski/226787/cmap_329011201_329270401_4FGL_J0809.3+4053_daily_bin346.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.96
user 0.38
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226787/ft1_filtered_4FGL_J0809.3+4053_daily_bin346.fits scfile=/scratch/kocevski/226787/ft2_4FGL_J0809.3+4053_daily_bin346.fits outfile=/scratch/kocevski/226787/cmap_HighResolution_329011201_329270401_4FGL_J0809.3+4053_daily_bin346.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.18
user 0.38
sys 0.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89742       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4770       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7764       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5745       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5528       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6321       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8626       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91225       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1213       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7473.852     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2227 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1545         .0000    ** at limit **
   2  Prefactor     .88476        7.0759         .0000        .58155E-03
   3  Prefactor     .10000E-03    8.6664         .0000    ** at limit **
   4  Prefactor     .10000E-03    2.9242         .0000    ** at limit **
   5  Prefactor     .10000E-03    4.1996         .0000    ** at limit **
   6  norm          2.4814        8.9298         .0000        .68543E-02
   7  norm          1.3256        1.9016         .0000        .52280E-03
   8  Prefactor     .10000E-03    1.5831         .0000    ** at limit **
   9  Prefactor     .10000E-03    10.420         .0000    ** at limit **
  10  Prefactor     5.7769        4.4100         .0000        .18870E-03
  11  norm          4.5742        1.9394         .0000       -.12101E-03
  12  norm          1.9625        .67033         .0000        .24638E-03
  13  Prefactor     .10000E-03    9.2790         .0000    ** at limit **
  14  Prefactor     .15448        12.356         .0000        .13997E-03
  15  Prefactor     5.5555        3.8896         .0000        .56979E-03
  16  Prefactor     .10000E-03    27.529         .0000    ** at limit **
  17  Prefactor     2.6283        9.2830         .0000        .62713E-02
  18  norm          8.8604        6.2879         .0000        .13691E-03
  19  Prefactor     .10000E-03    .60984         .0000    ** at limit **
  20  Prefactor     .10000E-03    51.614         .0000    ** at limit **
  21  Prefactor     .10000E-03    2.0190         .0000    ** at limit **
  22  Normalizat    .91219        .17236         .0000        .33945E-04
  23  Prefactor     1.1214        .12964         .0000        .13806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.88476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.48143
  norm       = 1.32563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77685
  norm       = 4.57421
  norm       = 1.96249
  Prefactor  = 0.0001
  Prefactor  = 0.15448
  Prefactor  = 5.5555
  Prefactor  = 0.0001
  Prefactor  = 2.62828
  norm       = 8.86039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.912186
  Prefactor  = 1.12135
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.852     FROM HESSE     STATUS=OK           382 CALLS     2609 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .88476        20.559        .43914E-02   -1.5520    
   3  Prefactor     .10000E-03    8.6753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9292        .14437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2060        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4814        8.9174        .12989E-02   -1.5393    
   7  norm          1.3256        1.8723        .13827E-03   -1.5478    
   8  Prefactor     .10000E-03    1.5846        .10622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7769        4.4079        .14760E-03   -1.5227    
  11  norm          4.5742        1.9404        .76355E-04   -1.5280    
  12  norm          1.9625        .67237        .38596E-04   -1.5428    
  13  Prefactor     .10000E-03    9.2870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15448        22.275        .72677E-01   -1.5629    
  15  Prefactor     5.5555        4.0186        .11781E-03   -1.5237    
  16  Prefactor     .10000E-03    27.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6283        9.2665        .12567E-02   -1.5384    
  18  norm          8.8604        6.2888        .13464E-03   -1.5113    
  19  Prefactor     .10000E-03    .61105        .65920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    51.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.087        .23556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91219        .19177        .28816E-03   -.96033    
  23  Prefactor     1.1214        .14652        .20590E-03   -.88787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6129e-08
Minuit parameter uncertainties:
  1  1.64455e-06
  2  8.53264
  3  7.25545e-06
  4  1.08391e-06
  5  9.06449e-06
  6  8.92214
  7  1.87234
  8  6.44074e-06
  9  2.53856e-06
  10  4.40814
  11  1.9404
  12  0.672374
  13  1.45758e-05
  14  3.71022
  15  4.01878
  16  8.76724e-05
  17  9.27159
  18  6.28923
  19  3.03011e-07
  20  3.65997e-05
  21  5.25234e-05
  22  0.191916
  23  0.146568
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.777e+00  4.408e+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.121e+00  1.466e-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.122e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.05
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.79e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 9.69e-06

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) = 7473.63437305
delta logL = 0.217988148714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7473.63077382
delta logL = 0.221587379528

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8767       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1218       1.0000          .0000       10.000    
     3 'Normalizat'    .92962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1156       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=   7473.631     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8763        5.4475        .16566E-03   -.80980E-05
   2  Index         2.1217        .74245        .10364E-01    .99834E-05
   3  Normalizat    .92961        .18668        .14284E-02    .14444E-03
   4  Prefactor     1.1156        .14552        .20645E-03    .19623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.8763
  Index      = 2.12169
  Normalizat = 0.92961
  Prefactor  = 1.11561
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.631     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8763        5.5447        .66263E-05   -1.5223    
   2  Index         2.1217        .75557        .41455E-03   -.61341    
   3  Normalizat    .92961        .18708        .57138E-04   -.95427    
   4  Prefactor     1.1156        .14578        .41290E-04   -.88969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73887e-11
Minuit parameter uncertainties:
  1  5.54521
  2  0.759938
  3  0.187213
  4  0.145836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226787': 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) = 7473.6307738
delta logL = 0.221587395654

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.876e+00  5.545e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.122e+00  7.599e-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.116e+00  1.458e-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.296e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.12 +/- 0.76
Photon Flux (Free Index): 2.86e-08 +/- 4.11e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.44e-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/226787/cmap_HighResolution_329011201_329270401_4FGL_J0809.3+4053_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.79e-08', energy_flux2='1.50e-05', photon_flux_error='3.65e-08', dlogl='2.22e-01', energy_flux='1.27e-05', photon_flux2='2.86e-08', job_status='DONE', time_completed='2021-08-29 07:50:49.843475', photon_index_error2='0.76', photon_index2='2.12', ts='5.05', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.91', time_epoch_completed='1630248649.84', return_code='0', job_id='226787', GAL2='1.12', EG2='0.93', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='4.11e-08', ts2='5.51', photon_index='2.59' WHERE bin_id='346' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:50:49 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin346 122.33 40.8954 329011201 329270401 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 :                                   676.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

