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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin608
RA = 122.33, Dec = 40.8954
tmin = 396921601, tmax = 397180801
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='229338', job_status='RUN', time_executed='2021-08-29 07:48:43.964932', time_epoch_executed='1630248523.96' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229338

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229338/ft1_4FGL_J0809.3+4053_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229338/ft2_4FGL_J0809.3+4053_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229338/ft1_4FGL_J0809.3+4053_daily_bin608.fits outfile=/scratch/kocevski/229338/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin608.fits ra=122.33 dec=40.8954 rad=12.0 tmin=396921601.0 tmax=397180801.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 7.54
user 4.27
sys 3.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229338/ft1_filtered_4FGL_J0809.3+4053_daily_bin608.fits" evtable="EVENTS" scfile=/scratch/kocevski/229338/ft2_4FGL_J0809.3+4053_daily_bin608.fits sctable="SC_DATA" outfile=/scratch/kocevski/229338/ltcube_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.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/229338/ft2_4FGL_J0809.3+4053_daily_bin608.fits
.....................!
real 15.30
user 11.56
sys 3.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229338/ft1_filtered_4FGL_J0809.3+4053_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/229338/ft2_4FGL_J0809.3+4053_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/229338/ltcube_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.fits outfile=/scratch/kocevski/229338/expmap_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.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/229338/ltcube_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.fits
.....................!
real 194.62
user 185.38
sys 8.40

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/229338/ft1_filtered_4FGL_J0809.3+4053_daily_bin608.fits scfile=/scratch/kocevski/229338/ft2_4FGL_J0809.3+4053_daily_bin608.fits outfile=/scratch/kocevski/229338/cmap_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.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 3.49
user 0.37
sys 3.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229338/ft1_filtered_4FGL_J0809.3+4053_daily_bin608.fits scfile=/scratch/kocevski/229338/ft2_4FGL_J0809.3+4053_daily_bin608.fits outfile=/scratch/kocevski/229338/cmap_HighResolution_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.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 3.56
user 0.38
sys 3.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1814       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.469       1.0000         .10000E-03   10000.    
     7 'norm      '    .17619E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2049       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1294       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.060       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.3718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8438       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1756       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83578       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=   6546.753     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2203 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1816        6.0670        .15638E-05   -.10006E-02
   2  Prefactor     .10000E-03    2.4790       -.69245E-07** at limit **
   3  Prefactor     .10000E-03    11.554        .11742E-06** at limit **
   4  Prefactor     .10000E-03    9.8769       -.98578E-07** at limit **
   5  Prefactor     .10000E-03    35.695        .69886E-06** at limit **
   6  norm          10.469        9.2664        .35830E-07   -.38109E-05
   7  norm          .10000E-03    1.2731        .14928E-06** at limit **
   8  Prefactor     .10000E-03    2.0403       -.56468E-08** at limit **
   9  Prefactor     .10000E-03    17.146        .14048E-06** at limit **
  10  Prefactor     .10000E-03    2.3534       -.81563E-07** at limit **
  11  norm          1.2049        1.5291        .40887E-07   -.22190E-03
  12  norm          1.5363        .66533        .30483E-08   -.10613E-04
  13  Prefactor     2.1288        79.201        .15356E-06   -.19671E-04
  14  Prefactor     .10000E-03    11.835       -.20788E-06** at limit **
  15  Prefactor     2.8933        3.0216        .14077E-06   -.84571E-04
  16  Prefactor     31.062        24.437        .38135E-06    .65350E-04
  17  Prefactor     .10000E-03    7.6421        .72801E-07** at limit **
  18  norm          6.3718        5.8719        .94492E-08   -.43416E-04
  19  Prefactor     5.8437        3.1046        .43737E-07    .55122E-04
  20  Prefactor     9.2984        31.372       -.73324E-05   -.20887E-03
  21  Prefactor     .10000E-03    1.7588        .40632E-07** at limit **
  22  Normalizat    1.1756        .17743       -.96363E-07   -.67373E-04
  23  Prefactor     .83572        .13022       -.26838E-06   -.56026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.18161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4687
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20491
  norm       = 1.53628
  Prefactor  = 2.12883
  Prefactor  = 0.0001
  Prefactor  = 2.89334
  Prefactor  = 31.0615
  Prefactor  = 0.0001
  norm       = 6.37181
  Prefactor  = 5.84373
  Prefactor  = 9.2984
  Prefactor  = 0.0001
  Normalizat = 1.17564
  Prefactor  = 0.835724
 **********
 **   18 **HESSE 
 **********

 FCN=   6546.753     FROM HESSE     STATUS=OK           368 CALLS     2571 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1816        6.7415        .74842E-03   -1.5172    
   2  Prefactor     .10000E-03    2.4805        .12442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.469        9.2736        .12383E-03   -1.5061    
   7  norm          .10000E-03    11.078        .17554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0426        .11287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4279        .24223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2049        1.4974        .10974E-03   -1.5488    
  12  norm          1.5363        .66010        .41460E-04   -1.5460    
  13  Prefactor     2.1288        79.883        .28255E-03   -1.5416    
  14  Prefactor     .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8933        3.0113        .13589E-03   -1.5368    
  16  Prefactor     31.062        24.492        .71894E-04   -1.4593    
  17  Prefactor     .10000E-03    7.7076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.3718        5.8735        .15901E-03   -1.5203    
  19  Prefactor     5.8437        3.1074        .10041E-03   -1.5224    
  20  Prefactor     9.2984        34.302        .13134E-03   -1.5098    
  21  Prefactor     .10000E-03    1.7807        .10485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1756        .20702        .25208E-03   -.87359    
  23  Prefactor     .83572        .15197        .21811E-03   -.98425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45359e-09
Minuit parameter uncertainties:
  1  6.74216
  2  3.91287e-06
  3  1.29738e-05
  4  1.65375e-05
  5  0.000113506
  6  9.27491
  7  0.000332793
  8  6.12603e-07
  9  1.78215e-05
  10  4.41086e-06
  11  1.49744
  12  0.660104
  13  26.1182
  14  3.184e-05
  15  3.01148
  16  24.4997
  17  5.95306e-07
  18  5.87399
  19  3.10749
  20  34.3748
  21  8.99743e-06
  22  0.207167
  23  0.152044
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.411e-06  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.357e-01  1.520e-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.176e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229338/likelihoodResults_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.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): 102
logL (Free Index) = 6546.7547788
delta logL = -0.00196315257836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6546.75281559
delta logL = 5.29262251803e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5606       1.0000          .0000       10.000    
     3 'Normalizat'    1.1757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83570       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=   6546.753     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.056        .24968E-02** at limit **
   2  Index         2.1241        6.0586        .50000        .12205E-05
   3  Normalizat    1.1756        .19529E-01    .25208E-03   -.11887E-02
   4  Prefactor     .83572        .14585E-01    .21811E-03   -.13839E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12409
  Normalizat = 1.17564
  Prefactor  = 0.835723
 **********
 **   18 **HESSE 
 **********

 FCN=   6546.753     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    255.61        .49936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1241        8.6141        .50000       -.61283    
   3  Normalizat    1.1756        .44430E-01    .50416E-04   -.87359    
   4  Prefactor     .83572        .33182E-01    .43622E-04   -.98425    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12701e-08
Minuit parameter uncertainties:
  1  0.000343946
  2  657.138
  3  0.0444316
  4  0.0331829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229338': 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): 102
logL (Free Index) = 6546.75281017
delta logL = 5.48179104953e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.439e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.124e+00  6.571e+02  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.357e-01  3.318e-02  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.176e+00  4.443e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/229338/cmap_HighResolution_396921601_397180801_4FGL_J0809.3+4053_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-08-29 08:01:07.212731', job_id='229338', GAL2='0.84', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630249267.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='608' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 229338: <4FGL_J0809.3+4053_daily_bin608> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin608 122.33 40.8954 396921601 397180801 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 :                                   783.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

