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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin930
RA = 122.33, Dec = 40.8954
tmin = 480384001, tmax = 480643201
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='231045', job_status='RUN', time_executed='2021-08-29 07:53:36.486952', time_epoch_executed='1630248816.49' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231045/ft1_4FGL_J0809.3+4053_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231045/ft2_4FGL_J0809.3+4053_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231045/ft1_4FGL_J0809.3+4053_daily_bin930.fits outfile=/scratch/kocevski/231045/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin930.fits ra=122.33 dec=40.8954 rad=12.0 tmin=480384001.0 tmax=480643201.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.06
user 3.27
sys 0.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231045/ft2_4FGL_J0809.3+4053_daily_bin930.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/231045/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin930.fits evtable="EVENTS" outfile="/scratch/kocevski/231045/ft1_filtered_4FGL_J0809.3+4053_daily_bin930.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.12
user 0.33
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231045/ft1_filtered_4FGL_J0809.3+4053_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/231045/ft2_4FGL_J0809.3+4053_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/231045/ltcube_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.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/231045/ft2_4FGL_J0809.3+4053_daily_bin930.fits
.....................!
real 15.57
user 14.51
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231045/ft1_filtered_4FGL_J0809.3+4053_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/231045/ft2_4FGL_J0809.3+4053_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/231045/ltcube_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.fits outfile=/scratch/kocevski/231045/expmap_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.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/231045/ltcube_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.fits
.....................!
real 209.98
user 186.55
sys 5.90

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/231045/ft1_filtered_4FGL_J0809.3+4053_daily_bin930.fits scfile=/scratch/kocevski/231045/ft2_4FGL_J0809.3+4053_daily_bin930.fits outfile=/scratch/kocevski/231045/cmap_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.33 yref=40.8954 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.11
user 0.38
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231045/ft1_filtered_4FGL_J0809.3+4053_daily_bin930.fits scfile=/scratch/kocevski/231045/ft2_4FGL_J0809.3+4053_daily_bin930.fits outfile=/scratch/kocevski/231045/cmap_HighResolution_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.33 yref=40.8954 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.16
user 0.39
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0308       1.0000         .10000E-03   10000.    
     6 'norm      '    18.681       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11893E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4953       1.0000         .10000E-03   10000.    
    12 'norm      '    .71347       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.892       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4861       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .74775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.033       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65687       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0620       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=   6710.459     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2561 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2509       -.33580E-05** at limit **
   2  Prefactor     .10000E-03    5.1977       -.16223E-05** at limit **
   3  Prefactor     42.307        30.403        .77932E-05   -.37366E-04
   4  Prefactor     .10000E-03    3.6488        .37085E-05** at limit **
   5  Prefactor     5.0270        10.875       -.24600E-05   -.14585E-03
   6  norm          18.683        11.208       -.26396E-06   -.33764E-04
   7  norm          3.6688        2.4957        .60614E-06   -.34398E-03
   8  Prefactor     .10000E-03    3.6147        .26327E-06** at limit **
   9  Prefactor     .10000E-03    12.217        .21972E-05** at limit **
  10  Prefactor     .10000E-03    1.6318        .11070E-06** at limit **
  11  norm          3.4953        1.6545       -.58934E-07    .70118E-04
  12  norm          .71375        .48019        .43657E-06    .13463E-02
  13  Prefactor     52.288        34.126        .63096E-05   -.19430E-04
  14  Prefactor     7.0412        8.6799        .37804E-05   -.29842E-03
  15  Prefactor     .10000E-03    1.3294        .11056E-05** at limit **
  16  Prefactor     30.868        26.159       -.30903E-04   -.18045E-03
  17  Prefactor     .10000E-03    2.1667        .83931E-07** at limit **
  18  norm          1.4879        5.2297       -.19202E-05   -.10603E-02
  19  Prefactor     .74857        2.1950       -.48523E-06   -.12580E-02
  20  Prefactor     39.041        41.941        .10989E-04   -.21437E-05
  21  Prefactor     .10000E-03    1.0767        .98908E-07** at limit **
  22  Normalizat    .65657        .16769        .46618E-05   -.37711E-03
  23  Prefactor     1.0621        .12562       -.16389E-05    .62390E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.3073
  Prefactor  = 0.0001
  Prefactor  = 5.02705
  norm       = 18.6826
  norm       = 3.66875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.49532
  norm       = 0.713749
  Prefactor  = 52.2884
  Prefactor  = 7.04123
  Prefactor  = 0.0001
  Prefactor  = 30.8682
  Prefactor  = 0.0001
  norm       = 1.48794
  Prefactor  = 0.748565
  Prefactor  = 39.0408
  Prefactor  = 0.0001
  Normalizat = 0.656569
  Prefactor  = 1.06213
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.459     FROM HESSE     STATUS=OK           376 CALLS     2937 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2715        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.307        30.361        .61636E-04   -1.4406    
   4  Prefactor     .10000E-03    3.6490        .15265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0270        10.833        .17928E-03   -1.5260    
   6  norm          18.683        11.207        .92667E-04   -1.4843    
   7  norm          3.6688        2.4918        .10300E-03   -1.5325    
   8  Prefactor     .10000E-03    8.5730        .30073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.460        .19999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4953        1.6562        .70668E-04   -1.5334    
  12  norm          .71375        .46470        .44018E-04   -1.5539    
  13  Prefactor     52.288        34.138        .55468E-04   -1.4260    
  14  Prefactor     7.0412        8.5022        .15112E-03   -1.5177    
  15  Prefactor     .10000E-03    2.4319        .17898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.868        26.159        .72089E-04   -1.4596    
  17  Prefactor     .10000E-03    2.1688        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4879        5.2114        .33177E-03   -1.5464    
  19  Prefactor     .74857        2.1698        .19493E-03   -1.5535    
  20  Prefactor     39.041        41.961        .64155E-04   -1.4457    
  21  Prefactor     .10000E-03    1.0848        .82985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .65657        .18797        .29587E-03   -1.0563    
  23  Prefactor     1.0621        .14288        .18825E-03   -.90686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74189e-09
Minuit parameter uncertainties:
  1  4.00935e-06
  2  5.72129e-06
  3  30.3725
  4  2.97702e-05
  5  10.8375
  6  11.2078
  7  2.49187
  8  4.98947e-05
  9  1.05518e-05
  10  0.000345175
  11  1.65622
  12  0.464707
  13  34.1508
  14  8.50369
  15  6.75462e-05
  16  26.1686
  17  5.80795e-05
  18  5.21303
  19  2.17004
  20  41.9932
  21  4.32223e-06
  22  0.188151
  23  0.142936
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.452e-04  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:  1.062e+00  1.429e-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:  6.566e-01  1.882e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231045/likelihoodResults_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.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) = 6710.4592387
delta logL = -0.000382313679438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6710.45885415
delta logL = 2.23804636335e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49651E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4457       1.0000          .0000       10.000    
     3 'Normalizat'    .65644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0622       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6710.450     FROM MIGRAD    STATUS=FAILED       158 CALLS      345 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45669        7.3038        .28084E-02   -.35677E-02
   2  Index         2.0529        1.8505        .19539E-01    .27475E-04
   3  Normalizat    .65694        .17617        .29578E-03   -.49967E-04
   4  Prefactor     1.0606        .14121        .18837E-03    .61443E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6710.450     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      417 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45669        7.3038        .20033E-03   -1.5843    
   2  Index         2.0529        1.8505        .25871E-02   -.63033    
   3  Normalizat    .65694        .17617        .50859E-04   -1.0562    
   4  Prefactor     1.0606        .14121        .24361E-04   -.90737    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6710.450     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      447 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45674        7.1444        .56168E-03   -.38497E-04
   2  Index         2.0529        1.8271        .78157E-03   -.40874E-05
   3  Normalizat    .65694        .17626        .11831E-04    .48045E-05
   4  Prefactor     1.0606        .14133        .37674E-04    .91737E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.456744
  Index      = 2.0529
  Normalizat = 0.656944
  Prefactor  = 1.06055
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.450     FROM HESSE     STATUS=OK            25 CALLS      472 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45674        7.1494        .22467E-04   -1.5843    
   2  Index         2.0529        1.8272        .31263E-04   -.63034    
   3  Normalizat    .65694        .17633        .23663E-05   -1.0562    
   4  Prefactor     1.0606        .14138        .75348E-05   -.90737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96906e-12
Minuit parameter uncertainties:
  1  3.61423
  2  1.89612
  3  0.176478
  4  0.141431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231045': 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) = 6710.45043708
delta logL = 0.00841930800016

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.567e-01  3.614e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.053e+00  1.896e+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:  1.061e+00  1.414e-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:  6.569e-01  1.765e-01  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/231045/cmap_HighResolution_480384001_480643201_4FGL_J0809.3+4053_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-08-29 08:06:25.636356', job_id='231045', GAL2='1.06', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630249585.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='8.42e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='930' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 231045: <4FGL_J0809.3+4053_daily_bin930> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin930 122.33 40.8954 480384001 480643201 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

