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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin663
RA = 122.33, Dec = 40.8954
tmin = 411177601, tmax = 411436801
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='229417', job_status='RUN', time_executed='2021-08-29 07:45:49.054285', time_epoch_executed='1630248349.05' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229417

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229417/ft1_4FGL_J0809.3+4053_daily_bin663.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229417/ft2_4FGL_J0809.3+4053_daily_bin663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229417/ft1_4FGL_J0809.3+4053_daily_bin663.fits outfile=/scratch/kocevski/229417/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin663.fits ra=122.33 dec=40.8954 rad=12.0 tmin=411177601.0 tmax=411436801.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.73
user 6.27
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229417/ft1_filtered_4FGL_J0809.3+4053_daily_bin663.fits" evtable="EVENTS" scfile=/scratch/kocevski/229417/ft2_4FGL_J0809.3+4053_daily_bin663.fits sctable="SC_DATA" outfile=/scratch/kocevski/229417/ltcube_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.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/229417/ft2_4FGL_J0809.3+4053_daily_bin663.fits
.....................!
real 12.21
user 11.66
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229417/ft1_filtered_4FGL_J0809.3+4053_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/229417/ft2_4FGL_J0809.3+4053_daily_bin663.fits sctable="SC_DATA" expcube=/scratch/kocevski/229417/ltcube_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.fits outfile=/scratch/kocevski/229417/expmap_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.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/229417/ltcube_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.fits
.....................!
real 190.20
user 185.29
sys 4.44

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/229417/ft1_filtered_4FGL_J0809.3+4053_daily_bin663.fits scfile=/scratch/kocevski/229417/ft2_4FGL_J0809.3+4053_daily_bin663.fits outfile=/scratch/kocevski/229417/cmap_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.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.71
user 0.38
sys 0.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229417/ft1_filtered_4FGL_J0809.3+4053_daily_bin663.fits scfile=/scratch/kocevski/229417/ft2_4FGL_J0809.3+4053_daily_bin663.fits outfile=/scratch/kocevski/229417/cmap_HighResolution_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.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.73
user 0.39
sys 0.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11482E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33921E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2456       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.6046       1.0000         .10000E-03   10000.    
    12 'norm      '    .66297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.659       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52792E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.557       1.0000         .10000E-03   10000.    
    18 'norm      '    9.4453       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2812       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71280       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0238       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=   5237.983     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2610 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6.7022        .25621E-05** at limit **
   2  Prefactor     .10002E-03    8.3847       -.19253E-05** at limit **
   3  Prefactor     .10000E-03    9.1293       -.13075E-05** at limit **
   4  Prefactor     .10000E-03    2.7902        .29232E-07** at limit **
   5  Prefactor     8.2461        12.264       -.18076E-06    .66587E-03
   6  norm          .10000E-03    6.6809       -.21598E-06** at limit **
   7  norm          .10000E-03    .71202        .19934E-07** at limit **
   8  Prefactor     .10000E-03    2.6397        .13716E-06** at limit **
   9  Prefactor     .10000E-03    22.262       -.10696E-05** at limit **
  10  Prefactor     .10000E-03    3.0007       -.90166E-07** at limit **
  11  norm          5.6046        2.8369       -.26391E-07    .10669E-03
  12  norm          .66304        .50141       -.11940E-07   -.40929E-04
  13  Prefactor     25.657        25.996        .33590E-06    .62909E-04
  14  Prefactor     .10000E-03    8.3369        .53823E-06** at limit **
  15  Prefactor     .47199E-01    10.592       -.82862E-05    .25603E-03
  16  Prefactor     13.993        25.735        .54114E-06    .34175E-04
  17  Prefactor     12.557        14.278       -.15812E-06    .17107E-04
  18  norm          9.4451        9.3602       -.42264E-06   -.76961E-04
  19  Prefactor     .10000E-03    2.9513        .97192E-07** at limit **
  20  Prefactor     .10000E-03    28.324        .19218E-05** at limit **
  21  Prefactor     6.2810        5.1055       -.16932E-05   -.10618E-02
  22  Normalizat    .71287        .18185       -.83355E-07    .43241E-04
  23  Prefactor     1.0238        .13552        .76587E-06    .34310E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100009
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.24608
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.60458
  norm       = 0.663043
  Prefactor  = 25.6568
  Prefactor  = 0.0001
  Prefactor  = 0.0471992
  Prefactor  = 13.9929
  Prefactor  = 12.5573
  norm       = 9.44507
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.28096
  Normalizat = 0.712868
  Prefactor  = 1.02378
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.983     FROM HESSE     STATUS=OK           382 CALLS     2992 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    6.5192        .49883E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    145.78        .38813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7927        .11806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2461        13.363        .69808E-03   -1.5134    
   6  norm          .10000E-03    6.7229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .71604        .59636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6465        .11486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0750        .24460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.6046        2.8359        .84006E-04   -1.5234    
  12  norm          .66304        .49750        .42869E-04   -1.5545    
  13  Prefactor     25.657        26.034        .79083E-04   -1.4694    
  14  Prefactor     .10000E-03    8.3914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .47199E-01    11.189        .15183E-02   -1.5665    
  16  Prefactor     13.993        25.674        .10708E-03   -1.4960    
  17  Prefactor     12.557        14.258        .11304E-03   -1.4999    
  18  norm          9.4451        9.3608        .13040E-03   -1.5093    
  19  Prefactor     .10000E-03    3.0165        .12131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2810        5.3107        .14751E-03   -1.5207    
  22  Normalizat    .71287        .20623        .28369E-03   -1.0339    
  23  Prefactor     1.0238        .15608        .18433E-03   -.91941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41032e-09
Minuit parameter uncertainties:
  1  0.000496662
  2  0.00380445
  3  0.00011982
  4  1.31386e-06
  5  13.3679
  6  3.18023e-05
  7  5.52001e-07
  8  1.18798e-05
  9  0.000134187
  10  8.63399e-06
  11  2.83595
  12  0.497507
  13  26.0453
  14  4.24092e-05
  15  1.45217
  16  25.6941
  17  14.2617
  18  9.36223
  19  2.91654e-05
  20  0.000389707
  21  5.31113
  22  0.20645
  23  0.156152
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  8.634e-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:  1.024e+00  1.562e-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:  7.129e-01  2.065e-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: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229417/likelihoodResults_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.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) = 5237.98465869
delta logL = -0.00155082348374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5237.98310824
delta logL = -3.71829628421e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5819       1.0000          .0000       10.000    
     3 'Normalizat'    .71278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0239       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=   5237.983     FROM MIGRAD    STATUS=FAILED        87 CALLS      244 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    684.82        .24504E-03** at limit **
   2  Index         2.5197        8.0408        .50000        .11462E-04
   3  Normalizat    .71287        .12932        .28369E-03    .12680E-03
   4  Prefactor     1.0238        .99232E-01    .18433E-03    .17670E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5237.983     FROM SIMPLEX   STATUS=PROGRESS     159 CALLS      403 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    684.82        .22161E-03** at limit **
   2  Index         2.5193        8.0408        .11973E-03    .11462E-04
   3  Normalizat    .71286        .12932        .46922E-05    .12680E-03
   4  Prefactor     1.0238        .99232E-01    .14910E-05    .17670E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5237.983     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      455 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2662        .49008E-04** at limit **
   2  Index         2.4034        7.9831        .50000       -.20350E-07
   3  Normalizat    .71287        .19692        .11347E-04    .13425E-04
   4  Prefactor     1.0238        .15213        .36867E-04   -.29974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40337
  Normalizat = 0.712871
  Prefactor  = 1.02378
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.983     FROM HESSE     STATUS=OK            29 CALLS      484 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1541        .98017E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4034        8.6795        .50000       -.54606    
   3  Normalizat    .71287        .19698        .22695E-05   -1.0339    
   4  Prefactor     1.0238        .15215        .73733E-05   -.91941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61245e-12
Minuit parameter uncertainties:
  1  8.53938e-07
  2  126.514
  3  0.197171
  4  0.152216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229417': 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) = 5237.98310748
delta logL = 3.8497546484e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  8.539e-07  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.403e+00  1.265e+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.024e+00  1.522e-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:  7.129e-01  1.972e-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/229417/cmap_HighResolution_411177601_411436801_4FGL_J0809.3+4053_daily_bin663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-08-29 07:57:05.677465', job_id='229417', GAL2='1.02', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630249025.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='663' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 229417: <4FGL_J0809.3+4053_daily_bin663> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin663 122.33 40.8954 411177601 411436801 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 :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

