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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin751
RA = 122.33, Dec = 40.8954
tmin = 433987201, tmax = 434246401
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='229541', job_status='RUN', time_executed='2021-08-29 07:48:13.141037', time_epoch_executed='1630248493.14' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229541

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229541/ft1_4FGL_J0809.3+4053_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229541/ft2_4FGL_J0809.3+4053_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229541/ft1_4FGL_J0809.3+4053_daily_bin751.fits outfile=/scratch/kocevski/229541/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin751.fits ra=122.33 dec=40.8954 rad=12.0 tmin=433987201.0 tmax=434246401.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.48
user 5.85
sys 0.57

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229541/ft2_4FGL_J0809.3+4053_daily_bin751.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/229541/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin751.fits evtable="EVENTS" outfile="/scratch/kocevski/229541/ft1_filtered_4FGL_J0809.3+4053_daily_bin751.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.82
user 0.32
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229541/ft1_filtered_4FGL_J0809.3+4053_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/229541/ft2_4FGL_J0809.3+4053_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/229541/ltcube_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.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/229541/ft2_4FGL_J0809.3+4053_daily_bin751.fits
.....................!
real 12.63
user 11.94
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229541/ft1_filtered_4FGL_J0809.3+4053_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/229541/ft2_4FGL_J0809.3+4053_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/229541/ltcube_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.fits outfile=/scratch/kocevski/229541/expmap_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.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/229541/ltcube_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.fits
.....................!
real 191.05
user 186.10
sys 4.56

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/229541/ft1_filtered_4FGL_J0809.3+4053_daily_bin751.fits scfile=/scratch/kocevski/229541/ft2_4FGL_J0809.3+4053_daily_bin751.fits outfile=/scratch/kocevski/229541/cmap_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.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.85
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229541/ft1_filtered_4FGL_J0809.3+4053_daily_bin751.fits scfile=/scratch/kocevski/229541/ft2_4FGL_J0809.3+4053_daily_bin751.fits outfile=/scratch/kocevski/229541/cmap_HighResolution_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.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.84
user 0.37
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8395       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4907       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4036       1.0000         .10000E-03   10000.    
    11 'norm      '    .69709       1.0000         .10000E-03   10000.    
    12 'norm      '    .43554       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .86419E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2800       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82901       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=   5995.295     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2569 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1561        .18012E-07** at limit **
   2  Prefactor     .10000E-03    7.8425       -.15232E-06** at limit **
   3  Prefactor     40.791        31.076       -.10473E-04   -.29467E-03
   4  Prefactor     8.2736        8.9557        .10761E-05   -.65855E-04
   5  Prefactor     2.8435        24.309        .12763E-05   -.44965E-03
   6  norm          4.4907        8.2313       -.25229E-06   -.36321E-04
   7  norm          .10000E-03    1.2797       -.10444E-07** at limit **
   8  Prefactor     .10000E-03    3.3570       -.14222E-06** at limit **
   9  Prefactor     .10000E-03    16.474        .24334E-06** at limit **
  10  Prefactor     3.3977        3.3895        .90965E-06   -.31344E-02
  11  norm          .69675        1.6372        .79843E-07   -.18285E-03
  12  norm          .43525        .38540       -.27547E-07    .60463E-03
  13  Prefactor     6.6361        16.697       -.25128E-06   -.49376E-05
  14  Prefactor     .10001E-03    10.338       -.10849E-05** at limit **
  15  Prefactor     .10000E-03    2.3772       -.20657E-06** at limit **
  16  Prefactor     .10000E-03    31.831       -.77714E-05** at limit **
  17  Prefactor     7.2756        9.3500       -.43100E-07    .10809E-03
  18  norm          .10000E-03    7.0969        .18463E-06** at limit **
  19  Prefactor     4.3667        2.9291       -.37127E-07   -.89232E-06
  20  Prefactor     .10000E-03    36.057        .97640E-05** at limit **
  21  Prefactor     .10000E-03    1.6379       -.13661E-07** at limit **
  22  Normalizat    1.0048        .17047        .76553E-06    .15914E-03
  23  Prefactor     .82895        .12243        .19487E-06    .18593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7909
  Prefactor  = 8.27357
  Prefactor  = 2.84354
  norm       = 4.49071
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.39773
  norm       = 0.696753
  norm       = 0.435249
  Prefactor  = 6.63605
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.27556
  norm       = 0.0001
  Prefactor  = 4.36668
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.00481
  Prefactor  = 0.828953
 **********
 **   18 **HESSE 
 **********

 FCN=   5995.295     FROM HESSE     STATUS=OK           374 CALLS     2943 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2437        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.791        31.378        .62748E-04   -1.4430    
   4  Prefactor     8.2736        8.9423        .69687E-03   -1.5133    
   5  Prefactor     2.8435        27.603        .12065E-02   -1.5371    
   6  norm          4.4907        8.2313        .19000E-03   -1.5284    
   7  norm          .10000E-03    1.3112        .17090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3711        .13853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3977        5.3168        .10257E-02   -1.5339    
  11  norm          .69675        1.5207        .14685E-02   -1.5541    
  12  norm          .43525        .39195        .42983E-03   -1.5576    
  13  Prefactor     6.6361        16.697        .15577E-03   -1.5193    
  14  Prefactor     .10001E-03    55.817        .43816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1745        .21615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2756        9.3411        .14866E-03   -1.5168    
  18  norm          .10000E-03    7.3388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3667        2.9317        .10524E-03   -1.5290    
  20  Prefactor     .10000E-03    36.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.6545        .96766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0048        .19694        .24566E-03   -.92870    
  23  Prefactor     .82895        .14050        .19982E-03   -.98670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7404e-08
Minuit parameter uncertainties:
  1  7.68831e-07
  2  1.66783e-05
  3  31.3906
  4  8.94373
  5  17.7293
  6  8.23341
  7  1.85342e-06
  8  3.40919e-06
  9  4.15057e-06
  10  5.31754
  11  1.52074
  12  0.391957
  13  16.7091
  14  0.00165855
  15  2.53783e-06
  16  0.000277474
  17  9.34294
  18  1.10682e-05
  19  2.93179
  20  0.00038602
  21  2.26443e-06
  22  0.197083
  23  0.14056
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.398e+00  5.318e+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.290e-01  1.406e-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.005e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229541/likelihoodResults_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.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) = 5994.69338339
delta logL = 0.601626889051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5994.66131401
delta logL = 0.633696269106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0072       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0659       1.0000          .0000       10.000    
     3 'Normalizat'    .94709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85583       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.

 FCN=   5994.661     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      255 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0063        12.391        .13322E-01    .93927E-03
   2  Index         4.0664        3.2951        .12801        .13321E-03
   3  Normalizat    .94708        .42570E-01    .45501E-01    .12045E-04
   4  Prefactor     .85585        .31941E-01    .44439E-01    .53492E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00628
  Index      = 4.06643
  Normalizat = 0.947079
  Prefactor  = 0.85585
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.661     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0063        30.687        .60302E-04   -1.5507    
   2  Index         4.0664        7.0322        .62964E-02   -.18782    
   3  Normalizat    .94708        .18449        .25209E-03   -.94825    
   4  Prefactor     .85585        .13799        .19697E-03   -.97701    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.7379e-07
Minuit parameter uncertainties:
  1  11.1197
  2  6.93664
  3  0.184609
  4  0.138046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229541': 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) = 5994.66131392
delta logL = 0.633696353568

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.006e+00  1.112e+01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  4.066e+00  6.937e+00  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.559e-01  1.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.471e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 122.330 40.895
Photon Index (Free Index): 4.07 +/- 6.94
Photon Flux (Free Index): 7.04e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.60e-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/229541/cmap_HighResolution_433987201_434246401_4FGL_J0809.3+4053_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='6.34e-01', photon_flux2='7.04e-08', job_status='DONE', time_completed='2021-08-29 07:59:58.643004', photon_index_error2='6.94', photon_index2='4.07', ts='0.50', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.60e-05', EG='1.00', time_epoch_completed='1630249198.64', return_code='0', job_id='229541', GAL2='0.86', EG2='0.95', return_code2='102', photon_flux_error2='5.90e-08', ts2='1.90', photon_index='2.59' WHERE bin_id='751' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 229541: <4FGL_J0809.3+4053_daily_bin751> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin751 122.33 40.8954 433987201 434246401 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

