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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin357
RA = 122.33, Dec = 40.8954
tmin = 331862401, tmax = 332121601
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='227916', job_status='RUN', time_executed='2021-08-29 07:43:17.101565', time_epoch_executed='1630248197.1' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227916/ft1_4FGL_J0809.3+4053_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227916/ft2_4FGL_J0809.3+4053_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227916/ft1_4FGL_J0809.3+4053_daily_bin357.fits outfile=/scratch/kocevski/227916/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin357.fits ra=122.33 dec=40.8954 rad=12.0 tmin=331862401.0 tmax=332121601.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.47
user 4.15
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227916/ft1_filtered_4FGL_J0809.3+4053_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/227916/ft2_4FGL_J0809.3+4053_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/227916/ltcube_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.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/227916/ft2_4FGL_J0809.3+4053_daily_bin357.fits
.....................!
real 11.89
user 11.44
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227916/ft1_filtered_4FGL_J0809.3+4053_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/227916/ft2_4FGL_J0809.3+4053_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/227916/ltcube_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.fits outfile=/scratch/kocevski/227916/expmap_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.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/227916/ltcube_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.fits
.....................!
real 190.90
user 184.52
sys 5.23

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/227916/ft1_filtered_4FGL_J0809.3+4053_daily_bin357.fits scfile=/scratch/kocevski/227916/ft2_4FGL_J0809.3+4053_daily_bin357.fits outfile=/scratch/kocevski/227916/cmap_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.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.61
user 0.36
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227916/ft1_filtered_4FGL_J0809.3+4053_daily_bin357.fits scfile=/scratch/kocevski/227916/ft2_4FGL_J0809.3+4053_daily_bin357.fits outfile=/scratch/kocevski/227916/cmap_HighResolution_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.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.61
user 0.37
sys 0.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26290E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.230       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25620E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44864E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8893       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3386       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2317       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7696       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6140       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12644E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36407E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14366E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .89058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2535       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86593       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=   7010.811     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2556 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.698       -.94478E-07** at limit **
   2  Prefactor     22.220        15.416       -.11903E-06    .24340E-04
   3  Prefactor     .10000E-03    10.696       -.15143E-06** at limit **
   4  Prefactor     .10000E-03    7.8298       -.35087E-06** at limit **
   5  Prefactor     .10000E-03    6.6481       -.18516E-06** at limit **
   6  norm          1.9258        10.097        .24151E-06   -.11032E-03
   7  norm          1.0471        2.0339       -.27917E-06   -.19383E-03
   8  Prefactor     .10002E-03    6.5441       -.11849E-05** at limit **
   9  Prefactor     5.2720        30.717       -.54721E-05   -.11198E-03
  10  Prefactor     5.2407        4.7994        .24665E-06    .51748E-04
  11  norm          2.7700        1.4739       -.12473E-07    .19150E-04
  12  norm          1.6140        .65705        .71655E-07    .32329E-03
  13  Prefactor     .10000E-03    14.503       -.10338E-06** at limit **
  14  Prefactor     .10009E-03    52.254        .76727E-05** at limit **
  15  Prefactor     2.8753        2.3358        .11375E-06    .15649E-03
  16  Prefactor     .10000E-03    9.1801        .75278E-06** at limit **
  17  Prefactor     .10000E-03    4.1750       -.12788E-06** at limit **
  18  norm          3.7345        3.7565       -.50377E-07    .29474E-05
  19  Prefactor     .10000E-03    .91003       -.22039E-07** at limit **
  20  Prefactor     .10000E-03    20.486        .42523E-06** at limit **
  21  Prefactor     .10000E-03    .92118       -.89980E-08** at limit **
  22  Normalizat    1.2535        .17187        .87061E-06    .11697E-03
  23  Prefactor     .86596        .12621        .35435E-06    .15727E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 22.2203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92585
  norm       = 1.04713
  Prefactor  = 0.000100022
  Prefactor  = 5.27202
  Prefactor  = 5.24069
  norm       = 2.76999
  norm       = 1.61402
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  Prefactor  = 2.8753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.73446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25348
  Prefactor  = 0.865962
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.811     FROM HESSE     STATUS=OK           374 CALLS     2930 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.166        .42889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.220        15.425        .84955E-04   -1.4765    
   3  Prefactor     .10000E-03    10.723        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6730        .21093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9258        10.095        .15137E-02   -1.5430    
   7  norm          1.0471        1.9922        .16106E-03   -1.5503    
   8  Prefactor     .10002E-03    10.789        .31324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2720        31.955        .17394E-03   -1.5249    
  10  Prefactor     5.2407        4.7721        .16405E-03   -1.5250    
  11  norm          2.7700        1.4742        .72314E-04   -1.5375    
  12  norm          1.6140        .64935        .40466E-04   -1.5454    
  13  Prefactor     .10000E-03    14.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10009E-03    67.654        .43706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8753        2.2987        .10919E-03   -1.5369    
  16  Prefactor     .10000E-03    9.1711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1893        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7345        3.7583        .15837E-03   -1.5321    
  19  Prefactor     .10000E-03    .92346        .77988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.489        .20837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .92307        .78480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2535        .19655        .25340E-03   -.84966    
  23  Prefactor     .86596        .14451        .22255E-03   -.97341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61544e-09
Minuit parameter uncertainties:
  1  5.55137e-05
  2  15.4277
  3  1.51723e-05
  4  1.62978e-05
  5  1.63155e-05
  6  8.82075
  7  1.99229
  8  0.000975049
  9  25.9796
  10  4.77242
  11  1.47418
  12  0.649355
  13  2.12384e-05
  14  0.00505151
  15  2.29875
  16  2.41241e-05
  17  1.17979e-05
  18  3.75855
  19  2.16871e-06
  20  2.1901e-05
  21  1.1781e-06
  22  0.196671
  23  0.144569
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.241e+00  4.772e+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.660e-01  1.446e-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.253e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.05e-05

TS (Fixed Index): 1.95
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227916/likelihoodResults_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.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) = 7010.80678179
delta logL = 0.00446354720953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7010.80517628
delta logL = 0.00606905852783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5076       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4856       1.0000          .0000       10.000    
     3 'Normalizat'    1.2575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86404       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=   7010.805     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5071        5.5028        .16991E-03    .92539E-03
   2  Index         2.4859        .92727        .10703E-01    .15529E-03
   3  Normalizat    1.2575        .19671        .25306E-03   -.27821E-03
   4  Prefactor     .86404        .14490        .22276E-03   -.39283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.50712
  Index      = 2.48591
  Normalizat = 1.2575
  Prefactor  = 0.864036
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.805     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5071        5.3616        .67963E-05   -1.5239    
   2  Index         2.4859        .90271        .42810E-03   -.52686    
   3  Normalizat    1.2575        .19660        .50613E-04   -.84844    
   4  Prefactor     .86404        .14488        .44553E-04   -.97409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14927e-09
Minuit parameter uncertainties:
  1  5.36209
  2  0.909411
  3  0.196717
  4  0.144949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227916': 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) = 7010.80517622
delta logL = 0.00606912213243

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.507e+00  5.362e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.486e+00  9.094e-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.640e-01  1.449e-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.257e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.49 +/- 0.91
Photon Flux (Free Index): 4.03e-08 +/- 4.67e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.13e-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/227916/cmap_HighResolution_331862401_332121601_4FGL_J0809.3+4053_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.19e-05', photon_flux_error='3.95e-08', dlogl='6.07e-03', energy_flux='1.15e-05', photon_flux2='4.03e-08', job_status='DONE', time_completed='2021-08-29 07:55:55.696083', photon_index_error2='0.91', photon_index2='2.49', ts='1.95', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.13e-05', EG='1.25', time_epoch_completed='1630248955.7', return_code='0', job_id='227916', GAL2='0.86', EG2='1.26', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.67e-08', ts2='1.97', photon_index='2.59' WHERE bin_id='357' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 227916: <4FGL_J0809.3+4053_daily_bin357> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin357> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:30 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:40:32 2021
Terminated at Sun Aug 29 07:55:56 2021
Results reported at Sun Aug 29 07:55:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin357 122.33 40.8954 331862401 332121601 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 :                                   751.57 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.23 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.

