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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin817
RA = 122.33, Dec = 40.8954
tmin = 451094401, tmax = 451353601
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='230883', job_status='RUN', time_executed='2021-08-29 07:50:43.784350', time_epoch_executed='1630248643.78' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230883/ft1_4FGL_J0809.3+4053_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230883/ft2_4FGL_J0809.3+4053_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230883/ft1_4FGL_J0809.3+4053_daily_bin817.fits outfile=/scratch/kocevski/230883/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin817.fits ra=122.33 dec=40.8954 rad=12.0 tmin=451094401.0 tmax=451353601.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 3.63
user 3.15
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230883/ft1_filtered_4FGL_J0809.3+4053_daily_bin817.fits" evtable="EVENTS" scfile=/scratch/kocevski/230883/ft2_4FGL_J0809.3+4053_daily_bin817.fits sctable="SC_DATA" outfile=/scratch/kocevski/230883/ltcube_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.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/230883/ft2_4FGL_J0809.3+4053_daily_bin817.fits
.....................!
real 12.09
user 11.46
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230883/ft1_filtered_4FGL_J0809.3+4053_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/230883/ft2_4FGL_J0809.3+4053_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/230883/ltcube_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.fits outfile=/scratch/kocevski/230883/expmap_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.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/230883/ltcube_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.fits
.....................!
real 190.01
user 185.22
sys 4.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/230883/ft1_filtered_4FGL_J0809.3+4053_daily_bin817.fits scfile=/scratch/kocevski/230883/ft2_4FGL_J0809.3+4053_daily_bin817.fits outfile=/scratch/kocevski/230883/cmap_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.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.78
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230883/ft1_filtered_4FGL_J0809.3+4053_daily_bin817.fits scfile=/scratch/kocevski/230883/ft2_4FGL_J0809.3+4053_daily_bin817.fits outfile=/scratch/kocevski/230883/cmap_HighResolution_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.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.77
user 0.38
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.066       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11543E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55760       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.842       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0891       1.0000         .10000E-03   10000.    
    12 'norm      '    .30030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.246       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0584       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .30122       1.0000         .10000E-03   10000.    
    20 'Prefactor '    131.06       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51022       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96747       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97128       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=   7114.041     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2618 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6267        8.2723       -.15905E-05    .57210E-04
   2  Prefactor     12.071        14.977       -.11023E-06    .94160E-04
   3  Prefactor     .10000E-03    151.89        .68749E-06** at limit **
   4  Prefactor     .61638        46.154       -.11400E-04    .37633E-03
   5  Prefactor     18.847        14.843       -.12953E-06    .14383E-03
   6  norm          .10000E-03    3.7102       -.39143E-07** at limit **
   7  norm          .10000E-03    2.0175       -.15653E-06** at limit **
   8  Prefactor     .10000E-03    4.8385       -.18700E-06** at limit **
   9  Prefactor     .10000E-03    26.835       -.16014E-05** at limit **
  10  Prefactor     .10000E-03    1.8494        .71933E-07** at limit **
  11  norm          3.0890        1.5814        .23915E-07    .12466E-03
  12  norm          .30069        .51232       -.48153E-06   -.20458E-02
  13  Prefactor     .10000E-03    5.3678       -.51663E-08** at limit **
  14  Prefactor     13.247        15.743        .52544E-06    .12808E-03
  15  Prefactor     .10000E-03    2.0366        .20676E-06** at limit **
  16  Prefactor     .10000E-03    27.447        .12196E-05** at limit **
  17  Prefactor     17.250        10.744        .11617E-06    .61941E-05
  18  norm          4.0588        4.2434       -.85329E-07    .16292E-03
  19  Prefactor     .30746        1.7747        .55612E-06    .78844E-03
  20  Prefactor     131.06        75.503        .51845E-06   -.65755E-04
  21  Prefactor     .50370        4.0879       -.28958E-05   -.79100E-03
  22  Normalizat    .96727        .17723        .17385E-05    .38497E-03
  23  Prefactor     .97132        .12857        .30847E-06    .16625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62665
  Prefactor  = 12.071
  Prefactor  = 0.0001
  Prefactor  = 0.616381
  Prefactor  = 18.847
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08904
  norm       = 0.300693
  Prefactor  = 0.0001
  Prefactor  = 13.2475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2499
  norm       = 4.05878
  Prefactor  = 0.307463
  Prefactor  = 131.062
  Prefactor  = 0.503696
  Normalizat = 0.967274
  Prefactor  = 0.971324
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.041     FROM HESSE     STATUS=OK           376 CALLS     2994 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6267        8.1840        .21216E-03   -1.5327    
   2  Prefactor     12.071        15.066        .11532E-03   -1.5013    
   3  Prefactor     .10000E-03    155.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61638        77.169        .42699E-02   -1.5551    
   5  Prefactor     18.847        14.819        .92269E-04   -1.4839    
   6  norm          .10000E-03    3.7182        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0745        .23246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8716        .18101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8609        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0890        1.5821        .73877E-04   -1.5356    
  12  norm          .30069        .49623        .74536E-03   -1.5598    
  13  Prefactor     .10000E-03    5.3685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.247        15.315        .11005E-03   -1.4980    
  15  Prefactor     .10000E-03    2.0376        .23167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.250        10.769        .96443E-04   -1.4877    
  18  norm          4.0588        4.2329        .17207E-03   -1.5305    
  19  Prefactor     .30746        3.4991        .20766E-02   -1.5597    
  20  Prefactor     131.06        75.403        .35171E-04   -1.3413    
  21  Prefactor     .50370        6.9605        .23129E-02   -1.5566    
  22  Normalizat    .96727        .20165        .27204E-03   -.94135    
  23  Prefactor     .97132        .14638        .20574E-03   -.93692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01887e-09
Minuit parameter uncertainties:
  1  8.18654
  2  15.0707
  3  6.64742e-05
  4  13.8107
  5  14.8215
  6  1.09388e-05
  7  4.04997e-06
  8  1.05866e-05
  9  9.28796e-05
  10  4.46353e-06
  11  1.5821
  12  0.496233
  13  2.60223e-06
  14  15.3196
  15  4.47386e-05
  16  4.72869e-05
  17  10.7705
  18  4.23322
  19  2.07427
  20  75.4582
  21  3.74502
  22  0.201804
  23  0.146444
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.464e-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:  9.713e-01  1.464e-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.673e-01  2.018e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230883/likelihoodResults_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.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) = 7114.04402661
delta logL = -0.00256016872845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7114.04146594
delta logL = 4.98643203173e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5668       1.0000          .0000       10.000    
     3 'Normalizat'    .96727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97132       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=   7114.041     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.514        .11399E-01** at limit **
   2  Index         1.9815        5.6556        .50000       -.31919E-06
   3  Normalizat    .96727        .11160E-01    .27203E-03    .15651E-03
   4  Prefactor     .97133        .85012E-02    .20574E-03    .24216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98152
  Normalizat = 0.967272
  Prefactor  = 0.971326
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.041     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    149.78        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9815        9.0051        .50000       -.64813    
   3  Normalizat    .96727        .35566E-01    .10881E-04   -.94135    
   4  Prefactor     .97133        .27093E-01    .41148E-04   -.93691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50384e-09
Minuit parameter uncertainties:
  1  2.4353e-05
  2  542.379
  3  0.0355667
  4  0.0270938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230883': 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) = 7114.04145904
delta logL = 7.39325332688e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.435e-05  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.982e+00  5.424e+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:  9.713e-01  2.709e-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:  9.673e-01  3.557e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/230883/cmap_HighResolution_451094401_451353601_4FGL_J0809.3+4053_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-08-29 08:03:26.364862', job_id='230883', GAL2='0.97', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630249406.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='817' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:03:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 230883: <4FGL_J0809.3+4053_daily_bin817> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin817> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:26 2021
Job was executed on host(s) <bullet0225>, 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:03:27 2021
Results reported at Sun Aug 29 08:03:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin817 122.33 40.8954 451094401 451353601 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

