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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin709
RA = 122.33, Dec = 40.8954
tmin = 423100801, tmax = 423360001
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='229482', job_status='RUN', time_executed='2021-08-29 07:49:18.822334', time_epoch_executed='1630248558.82' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229482

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229482/ft1_4FGL_J0809.3+4053_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229482/ft2_4FGL_J0809.3+4053_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229482/ft1_4FGL_J0809.3+4053_daily_bin709.fits outfile=/scratch/kocevski/229482/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin709.fits ra=122.33 dec=40.8954 rad=12.0 tmin=423100801.0 tmax=423360001.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.96
user 4.69
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229482/ft1_filtered_4FGL_J0809.3+4053_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/229482/ft2_4FGL_J0809.3+4053_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/229482/ltcube_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.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/229482/ft2_4FGL_J0809.3+4053_daily_bin709.fits
.....................!
real 12.25
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229482/ft1_filtered_4FGL_J0809.3+4053_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/229482/ft2_4FGL_J0809.3+4053_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/229482/ltcube_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.fits outfile=/scratch/kocevski/229482/expmap_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.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/229482/ltcube_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.fits
.....................!
real 191.40
user 185.47
sys 5.53

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/229482/ft1_filtered_4FGL_J0809.3+4053_daily_bin709.fits scfile=/scratch/kocevski/229482/ft2_4FGL_J0809.3+4053_daily_bin709.fits outfile=/scratch/kocevski/229482/cmap_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229482/ft1_filtered_4FGL_J0809.3+4053_daily_bin709.fits scfile=/scratch/kocevski/229482/ft2_4FGL_J0809.3+4053_daily_bin709.fits outfile=/scratch/kocevski/229482/cmap_HighResolution_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9321       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.54       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8875       1.0000         .10000E-03   10000.    
     6 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7279       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5013       1.0000         .10000E-03   10000.    
    12 'norm      '    .86931       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1295       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.716       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90843       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=   6400.078     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2566 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9325        6.5772        .86757E-06   -.25448E-03
   2  Prefactor     .10000E-03    7.8528       -.73144E-07** at limit **
   3  Prefactor     107.55        47.640       -.95890E-05   -.19972E-04
   4  Prefactor     .10000E-03    11.870        .65014E-06** at limit **
   5  Prefactor     8.8783        15.756        .95413E-05   -.23314E-04
   6  norm          .10000E-03    9.5443       -.38549E-07** at limit **
   7  norm          .10000E-03    1.4299        .57655E-07** at limit **
   8  Prefactor     .10000E-03    2.6399       -.31485E-06** at limit **
   9  Prefactor     .10000E-03    14.070        .68283E-06** at limit **
  10  Prefactor     4.7280        5.4283       -.37541E-05   -.42457E-03
  11  norm          2.5013        1.6588        .20756E-06    .11322E-03
  12  norm          .86936        .56135        .23584E-06    .12247E-02
  13  Prefactor     36.997        35.781        .34252E-04   -.32983E-05
  14  Prefactor     9.1280        10.263       -.44762E-06    .10849E-03
  15  Prefactor     4.0534        3.2635        .41531E-06    .63391E-04
  16  Prefactor     .22304        42.039       -.30485E-05    .28547E-03
  17  Prefactor     27.706        17.109       -.35332E-07    .34840E-03
  18  norm          5.2540        4.8841        .61740E-06   -.69341E-04
  19  Prefactor     .10000E-03    1.9472        .14533E-06** at limit **
  20  Prefactor     .10000E-03    21.231        .29770E-06** at limit **
  21  Prefactor     .10000E-03    4.3629       -.24213E-06** at limit **
  22  Normalizat    1.1169        .19883       -.94710E-06    .12985E-03
  23  Prefactor     .90853        .14032       -.15080E-05    .15532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.93247
  Prefactor  = 0.0001
  Prefactor  = 107.552
  Prefactor  = 0.000100001
  Prefactor  = 8.87829
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.72805
  norm       = 2.50132
  norm       = 0.869363
  Prefactor  = 36.9974
  Prefactor  = 9.12803
  Prefactor  = 4.05337
  Prefactor  = 0.223039
  Prefactor  = 27.706
  norm       = 5.25401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11692
  Prefactor  = 0.908526
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.078     FROM HESSE     STATUS=OK           376 CALLS     2942 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9325        6.5765        .20344E-03   -1.5311    
   2  Prefactor     .10000E-03    7.8762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     107.55        47.665        .38781E-04   -1.3630    
   4  Prefactor     .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8783        15.739        .13445E-03   -1.5112    
   6  norm          .10000E-03    9.7368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4464        .93377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6440        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7280        5.4310        .18506E-03   -1.5273    
  11  norm          2.5013        1.6623        .81745E-04   -1.5392    
  12  norm          .86936        .55470        .45287E-04   -1.5521    
  13  Prefactor     36.997        35.725        .65870E-04   -1.4491    
  14  Prefactor     9.1280        10.249        .13265E-03   -1.5104    
  15  Prefactor     4.0534        3.2575        .12186E-03   -1.5305    
  16  Prefactor     .22304        50.521        .11898       -1.5614    
  17  Prefactor     27.706        17.231        .76097E-04   -1.4655    
  18  norm          5.2540        4.8811        .16582E-03   -1.5249    
  19  Prefactor     .10000E-03    1.9929        .10896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4835        .32614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1169        .23285        .27882E-03   -.89211    
  23  Prefactor     .90853        .16395        .22200E-03   -.95844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77041e-09
Minuit parameter uncertainties:
  1  6.57775
  2  1.88354e-05
  3  47.6816
  4  0.000194246
  5  15.7468
  6  7.52061e-06
  7  9.04362e-06
  8  5.61655e-07
  9  1.22162e-05
  10  5.43153
  11  1.66235
  12  0.554705
  13  35.746
  14  10.2512
  15  3.25762
  16  6.71788
  17  17.2337
  18  4.88142
  19  6.45337e-06
  20  6.1492e-06
  21  1.93448e-05
  22  0.233063
  23  0.164042
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.728e+00  5.432e+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:  9.085e-01  1.640e-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.117e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/229482/likelihoodResults_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.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) = 6399.88505913
delta logL = 0.193428508804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6399.88046002
delta logL = 0.198027615158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1849       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1421       1.0000          .0000       10.000    
     3 'Normalizat'    1.0989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91668       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=   6399.880     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1843        5.5015        .12995E-03    .20331E-03
   2  Index         3.1419        1.1106        .83320E-02    .44657E-04
   3  Normalizat    1.0989        .22509        .28072E-03   -.33194E-03
   4  Prefactor     .91674        .16203        .22109E-03   -.38745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18435
  Index      = 3.14186
  Normalizat = 1.09894
  Prefactor  = 0.91674
 **********
 **   18 **HESSE 
 **********

 FCN=   6399.880     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1843        4.7388        .51981E-05   -1.5351    
   2  Index         3.1419        .95836        .33328E-03   -.38076    
   3  Normalizat    1.0989        .22527        .56144E-04   -.89786    
   4  Prefactor     .91674        .16205        .44218E-04   -.95559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89736e-10
Minuit parameter uncertainties:
  1  4.73939
  2  0.965301
  3  0.225468
  4  0.162134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229482': 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) = 6399.88045962
delta logL = 0.198028013481

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.184e+00  4.739e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.142e+00  9.653e-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:  9.167e-01  1.621e-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.099e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.14 +/- 0.97
Photon Flux (Free Index): 5.57e-08 +/- 5.50e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.02e-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/229482/cmap_HighResolution_423100801_423360001_4FGL_J0809.3+4053_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='1.98e-01', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-08-29 08:01:22.134176', photon_index_error2='0.97', photon_index2='3.14', ts='0.98', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.02e-05', EG='1.12', time_epoch_completed='1630249282.13', return_code='0', job_id='229482', GAL2='0.92', EG2='1.10', return_code2='0', photon_flux_error2='5.50e-08', ts2='1.40', photon_index='2.59' WHERE bin_id='709' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:01:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 229482: <4FGL_J0809.3+4053_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin709 122.33 40.8954 423100801 423360001 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

