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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin806
RA = 122.33, Dec = 40.8954
tmin = 448243201, tmax = 448502401
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='230867', job_status='RUN', time_executed='2021-08-29 07:50:59.394741', time_epoch_executed='1630248659.39' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230867/ft1_4FGL_J0809.3+4053_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230867/ft2_4FGL_J0809.3+4053_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230867/ft1_4FGL_J0809.3+4053_daily_bin806.fits outfile=/scratch/kocevski/230867/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin806.fits ra=122.33 dec=40.8954 rad=12.0 tmin=448243201.0 tmax=448502401.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 6.17
user 4.89
sys 1.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230867/ft1_filtered_4FGL_J0809.3+4053_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/230867/ft2_4FGL_J0809.3+4053_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/230867/ltcube_448243201_448502401_4FGL_J0809.3+4053_daily_bin806.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/230867/ft2_4FGL_J0809.3+4053_daily_bin806.fits
.....................!
real 12.87
user 11.51
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230867/ft1_filtered_4FGL_J0809.3+4053_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/230867/ft2_4FGL_J0809.3+4053_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/230867/ltcube_448243201_448502401_4FGL_J0809.3+4053_daily_bin806.fits outfile=/scratch/kocevski/230867/expmap_448243201_448502401_4FGL_J0809.3+4053_daily_bin806.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/230867/ltcube_448243201_448502401_4FGL_J0809.3+4053_daily_bin806.fits
.....................!
real 194.04
user 187.71
sys 5.83

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/230867/ft1_filtered_4FGL_J0809.3+4053_daily_bin806.fits scfile=/scratch/kocevski/230867/ft2_4FGL_J0809.3+4053_daily_bin806.fits outfile=/scratch/kocevski/230867/cmap_448243201_448502401_4FGL_J0809.3+4053_daily_bin806.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.40
user 0.36
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230867/ft1_filtered_4FGL_J0809.3+4053_daily_bin806.fits scfile=/scratch/kocevski/230867/ft2_4FGL_J0809.3+4053_daily_bin806.fits outfile=/scratch/kocevski/230867/cmap_HighResolution_448243201_448502401_4FGL_J0809.3+4053_daily_bin806.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.43
user 0.40
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.553       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5658       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.137       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2450       1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1203       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.662       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1366       1.0000         .10000E-03   10000.    
    12 'norm      '    .11633E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87642E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2307       1.0000         .10000E-03   10000.    
    18 'norm      '    12.748       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0192       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9133       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .63638       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1606       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69011       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5953.729     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     2521 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.557        2.1590       -.74591E-07    .10468E-02
   2  Prefactor     .50519        .84089       -.18161E-07    .33068E-03
   3  Prefactor     .10071E-03    60.483       -.29515E-05** at limit **
   4  Prefactor     2.5727        8.7935       -.87137E-06   -.35541E-02
   5  Prefactor     21.143        1.1058        .75193E-08   -.64384E-06
   6  norm          3.2486        2.2481       -.25670E-06    .39030E-03
   7  norm          .10000E-03    .72688        .13780E-06** at limit **
   8  Prefactor     4.1202        1.3425       -.14658E-06   -.32202E-03
   9  Prefactor     24.113        1.0029       -.13720E-08   -.18193E-03
  10  Prefactor     10.661        4.9245       -.53026E-06   -.47151E-02
  11  norm          5.1369        2.5150        .13931E-07   -.32817E-04
  12  norm          .10000E-03    1.4932        .13708E-06** at limit **
  13  Prefactor     32.521        1.6881       -.96526E-07    .37423E-02
  14  Prefactor     .11181E-03    9.2649       -.22801E-05** at limit **
  15  Prefactor     .10000E-03    1.3220       -.49438E-06** at limit **
  16  Prefactor     .10000E-03    7.3656       -.14228E-05** at limit **
  17  Prefactor     9.2301        1.0101       -.20732E-07    .28500E-03
  18  norm          12.749        1.3700        .23039E-07   -.19257E-02
  19  Prefactor     2.0191        3.1235        .90633E-07   -.36117E-04
  20  Prefactor     1.9296        5.3463        .15004E-05   -.34451E-02
  21  Prefactor     .65048        6.3531       -.12667E-05   -.10284E-03
  22  Normalizat    1.1603        .20334       -.32199E-05   -.43873E-03
  23  Prefactor     .69021        .14804        .33594E-06   -.38302E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.5569
  Prefactor  = 0.505189
  Prefactor  = 0.000100707
  Prefactor  = 2.57267
  Prefactor  = 21.143
  norm       = 3.24861
  norm       = 0.0001
  Prefactor  = 4.12015
  Prefactor  = 24.1133
  Prefactor  = 10.6614
  norm       = 5.13694
  norm       = 0.0001
  Prefactor  = 32.5207
  Prefactor  = 0.000111809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23008
  norm       = 12.7491
  Prefactor  = 2.01914
  Prefactor  = 1.92964
  Prefactor  = 0.650482
  Normalizat = 1.16026
  Prefactor  = 0.690206
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.729     FROM HESSE     STATUS=OK           442 CALLS     2963 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.557        11.669        .17043E-02   -1.4532    
   2  Prefactor     .50519        6.2282        .65847E-01   -1.5566    
   3  Prefactor     .10071E-03    62.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5727        9.3408        .63710E-02   -1.5387    
   5  Prefactor     21.143        17.222        .21780E-02   -1.4788    
   6  norm          3.2486        10.967        .56211E-02   -1.5347    
   7  norm          .10000E-03    .72510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1202        6.1362        .49648E-02   -1.5302    
   9  Prefactor     24.113        36.516        .20393E-02   -1.4725    
  10  Prefactor     10.661        5.1307        .30675E-02   -1.5055    
  11  norm          5.1369        2.5170        .44347E-02   -1.5255    
  12  norm          .10000E-03    .37383        .15303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.521        28.967        .17565E-02   -1.4567    
  14  Prefactor     .11181E-03    7.1645        .73909E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2833        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2301        7.8839        .32978E-02   -1.5100    
  18  norm          12.749        6.9211        .28047E-02   -1.4994    
  19  Prefactor     2.0191        3.1659        .72812E-02   -1.5424    
  20  Prefactor     1.9296        877.56        .75127E-02   -1.5430    
  21  Prefactor     .65048        7.7860        .11816E-01   -1.5547    
  22  Normalizat    1.1603        .18334        .55003E-01   -.87840    
  23  Prefactor     .69021        .13026        .42269E-01   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52785e-06
Minuit parameter uncertainties:
  1  11.6701
  2  3.54773
  3  0.0132807
  4  9.34611
  5  17.2261
  6  10.9741
  7  1.90147e-06
  8  6.13716
  9  36.5502
  10  5.13094
  11  2.51703
  12  1.35035e-06
  13  28.979
  14  0.0183986
  15  7.08986e-06
  16  9.64638e-05
  17  7.88483
  18  6.92158
  19  3.16613
  20  83.5616
  21  4.50135
  22  0.183441
  23  0.130322
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.066e+01  5.131e+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:  6.902e-01  1.303e-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.160e+00  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.66
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 8.84e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 1.13e-05

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) = 5953.31937816
delta logL = 0.409196780931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5953.31890258
delta logL = 0.409672354092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.162       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1946       1.0000          .0000       10.000    
     3 'Normalizat'    1.1816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67778       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=   5953.319     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      308 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.161        7.1836        .53216E-03   -.53729E-04
   2  Index         2.1946        .40364        .60811E-02   -.89326E-05
   3  Normalizat    1.1816        .19878        .24133E-03   -.37639E-04
   4  Prefactor     .67772        .14720        .23001E-03    .17596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1605
  Index      = 2.19461
  Normalizat = 1.18161
  Prefactor  = 0.677718
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.319     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.161        7.1067        .21286E-04   -1.4955    
   2  Index         2.1946        .39924        .24324E-03   -.59569    
   3  Normalizat    1.1816        .19891        .96532E-05   -.87173    
   4  Prefactor     .67772        .14729        .92005E-05   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15241e-11
Minuit parameter uncertainties:
  1  7.10709
  2  0.399864
  3  0.199038
  4  0.147377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230867': 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) = 5953.3189024
delta logL = 0.409672536215

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.416e+01  7.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.195e+00  3.999e-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:  6.777e-01  1.474e-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.182e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.45
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.19 +/- 0.40
Photon Flux (Free Index): 7.43e-08 +/- 4.00e-08
Energy Flux (Free Index): 3.37e-05 +/- 2.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/230867/cmap_HighResolution_448243201_448502401_4FGL_J0809.3+4053_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.84e-08', energy_flux2='3.37e-05', photon_flux_error='4.25e-08', dlogl='4.10e-01', energy_flux='2.34e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-08-29 08:01:49.721060', photon_index_error2='0.40', photon_index2='2.19', ts='9.66', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.16', time_epoch_completed='1630249309.72', return_code='0', job_id='230867', GAL2='0.68', EG2='1.18', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.00e-08', ts2='10.45', photon_index='2.59' WHERE bin_id='806' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:01:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 230867: <4FGL_J0809.3+4053_daily_bin806> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin806> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:25 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:28 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:50:28 2021
Terminated at Sun Aug 29 08:01:50 2021
Results reported at Sun Aug 29 08:01:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin806 122.33 40.8954 448243201 448502401 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 :                                   658.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            685 sec.

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

