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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin728
RA = 122.33, Dec = 40.8954
tmin = 428025601, tmax = 428284801
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='229509', job_status='RUN', time_executed='2021-08-29 07:47:12.611713', time_epoch_executed='1630248432.61' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229509

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229509/ft1_4FGL_J0809.3+4053_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229509/ft2_4FGL_J0809.3+4053_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229509/ft1_4FGL_J0809.3+4053_daily_bin728.fits outfile=/scratch/kocevski/229509/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin728.fits ra=122.33 dec=40.8954 rad=12.0 tmin=428025601.0 tmax=428284801.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 10.66
user 5.29
sys 5.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229509/ft1_filtered_4FGL_J0809.3+4053_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/229509/ft2_4FGL_J0809.3+4053_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/229509/ltcube_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.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/229509/ft2_4FGL_J0809.3+4053_daily_bin728.fits
.....................!
real 17.86
user 11.64
sys 6.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229509/ft1_filtered_4FGL_J0809.3+4053_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/229509/ft2_4FGL_J0809.3+4053_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/229509/ltcube_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.fits outfile=/scratch/kocevski/229509/expmap_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.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/229509/ltcube_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.fits
.....................!
real 198.08
user 186.47
sys 11.28

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/229509/ft1_filtered_4FGL_J0809.3+4053_daily_bin728.fits scfile=/scratch/kocevski/229509/ft2_4FGL_J0809.3+4053_daily_bin728.fits outfile=/scratch/kocevski/229509/cmap_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.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 5.51
user 0.35
sys 5.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229509/ft1_filtered_4FGL_J0809.3+4053_daily_bin728.fits scfile=/scratch/kocevski/229509/ft2_4FGL_J0809.3+4053_daily_bin728.fits outfile=/scratch/kocevski/229509/cmap_HighResolution_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.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 5.40
user 0.38
sys 4.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6760       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50607E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .44762E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2466       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8919       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.952       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6500       1.0000         .10000E-03   10000.    
    12 'norm      '    .83806       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13257E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4477       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.650       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5022       1.0000         .10000E-03   10000.    
    18 'norm      '    13.473       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87106       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0397       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=   6004.381     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2938 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6756        8.0962       -.10062E-06   -.17777E-03
   2  Prefactor     .10000E-03    3.3482        .83210E-07** at limit **
   3  Prefactor     .10272E-03    17.536        .25013E-05** at limit **
   4  Prefactor     .10000E-03    5.5331        .12533E-06** at limit **
   5  Prefactor     .10000E-03    7.7671        .44306E-06** at limit **
   6  norm          .10002E-03    6.2022       -.26381E-05** at limit **
   7  norm          2.2476        2.2087        .71480E-06    .17472E-03
   8  Prefactor     7.9083        12.610        .25811E-04    .61111E-03
   9  Prefactor     10.835        97.996       -.21778E-03   -.61958E-04
  10  Prefactor     .10000E-03    2.8979        .41755E-06** at limit **
  11  norm          3.6501        1.9240        .16682E-07    .13811E-03
  12  norm          .83839        .57550        .39532E-06    .29180E-02
  13  Prefactor     .10000E-03    11.574        .12700E-05** at limit **
  14  Prefactor     .10000E-03    32.748       -.10538E-04** at limit **
  15  Prefactor     5.4441        4.2661       -.94789E-06    .19532E-03
  16  Prefactor     45.660        43.900        .52993E-05    .12392E-03
  17  Prefactor     8.4834        10.788        .14595E-04    .98751E-04
  18  norm          13.471        7.2816       -.44249E-06    .37304E-04
  19  Prefactor     .10000E-03    .73361       -.96090E-07** at limit **
  20  Prefactor     .10000E-03    41.627        .80208E-05** at limit **
  21  Prefactor     .10000E-03    2.8963       -.10774E-05** at limit **
  22  Normalizat    .87153        .20069        .10398E-04   -.10937E-04
  23  Prefactor     1.0394        .14304       -.25525E-05    .74166E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.67556
  Prefactor  = 0.0001
  Prefactor  = 0.000102719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100015
  norm       = 2.2476
  Prefactor  = 7.90826
  Prefactor  = 10.8346
  Prefactor  = 0.0001
  norm       = 3.65005
  norm       = 0.838386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44406
  Prefactor  = 45.6595
  Prefactor  = 8.4834
  norm       = 13.4715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.871526
  Prefactor  = 1.03943
 **********
 **   18 **HESSE 
 **********

 FCN=   6004.381     FROM HESSE     STATUS=OK           378 CALLS     3316 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6756        8.1216        .15530E-03   -1.5191    
   2  Prefactor     .10000E-03    3.3503        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10272E-03    19.795        .11083       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5524        .17796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10002E-03    16.288        .37402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2476        2.1984        .11050E-03   -1.5408    
   8  Prefactor     7.9083        12.559        .14273E-03   -1.5145    
   9  Prefactor     10.835        98.585        .12106E-03   -1.5050    
  10  Prefactor     .10000E-03    2.9182        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6501        1.9256        .75980E-04   -1.5326    
  12  norm          .83839        .57127        .46021E-04   -1.5525    
  13  Prefactor     .10000E-03    11.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4441        4.2529        .12971E-03   -1.5241    
  16  Prefactor     45.660        43.842        .59341E-04   -1.4355    
  17  Prefactor     8.4834        10.756        .13748E-03   -1.5125    
  18  norm          13.471        7.2909        .10912E-03   -1.4974    
  19  Prefactor     .10000E-03    .73533        .64809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.805        .25572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87153        .23158        .29645E-03   -.97468    
  23  Prefactor     1.0394        .16629        .20355E-03   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96054e-09
Minuit parameter uncertainties:
  1  8.12295
  2  7.15662e-06
  3  0.0146779
  4  2.4463e-05
  5  0.000101662
  6  0.000996306
  7  2.19851
  8  12.5632
  9  65.5079
  10  4.76956e-05
  11  1.92559
  12  0.571269
  13  2.42794e-05
  14  5.77648e-05
  15  4.25311
  16  43.8733
  17  10.758
  18  7.29141
  19  2.83671e-06
  20  9.76413e-05
  21  1.22293e-05
  22  0.231839
  23  0.166377
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.770e-05  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.039e+00  1.664e-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:  8.715e-01  2.318e-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: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229509/likelihoodResults_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.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) = 6004.38224229
delta logL = -0.00163200387397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6004.38061036
delta logL = -7.36217771191e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5871       1.0000          .0000       10.000    
     3 'Normalizat'    .87153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0394       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=   6004.381     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    341.87        .12872E-02** at limit **
   2  Index         2.5738        6.2869        .50000        .20681E-05
   3  Normalizat    .87153        .63352E-01    .29645E-03   -.66460E-04
   4  Prefactor     1.0394        .47378E-01    .20355E-03   -.64766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.57381
  Normalizat = 0.871533
  Prefactor  = 1.03942
 **********
 **   18 **HESSE 
 **********

 FCN=   6004.381     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    4.5295        .25744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5738        6.1093        .50000       -.50664    
   3  Normalizat    .87153        .21483        .11858E-04   -.97468    
   4  Prefactor     1.0394        .16082        .40710E-04   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2817e-09
Minuit parameter uncertainties:
  1  0.000559359
  2  198.597
  3  0.215044
  4  0.160895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229509': 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) = 6004.38061028
delta logL = 6.20275386609e-09

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  5.594e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.574e+00  1.986e+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:  1.039e+00  1.609e-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:  8.715e-01  2.150e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/229509/cmap_HighResolution_428025601_428284801_4FGL_J0809.3+4053_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-08-29 08:00:26.214982', job_id='229509', GAL2='1.04', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630249226.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.20e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='728' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 229509: <4FGL_J0809.3+4053_daily_bin728> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin728 122.33 40.8954 428025601 428284801 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 :                                   869.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

