/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 197 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin164
RA = 122.33, Dec = 40.8954
tmin = 281836801, tmax = 282096001
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='226527', job_status='RUN', time_executed='2021-08-29 07:39:13.207817', time_epoch_executed='1630247953.21' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226527/ft1_4FGL_J0809.3+4053_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226527/ft2_4FGL_J0809.3+4053_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226527/ft1_4FGL_J0809.3+4053_daily_bin164.fits outfile=/scratch/kocevski/226527/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin164.fits ra=122.33 dec=40.8954 rad=12.0 tmin=281836801.0 tmax=282096001.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 5.09
user 3.76
sys 0.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226527/ft1_filtered_4FGL_J0809.3+4053_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/226527/ft2_4FGL_J0809.3+4053_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/226527/ltcube_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.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/226527/ft2_4FGL_J0809.3+4053_daily_bin164.fits
.....................!
real 12.56
user 11.43
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226527/ft1_filtered_4FGL_J0809.3+4053_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/226527/ft2_4FGL_J0809.3+4053_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/226527/ltcube_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.fits outfile=/scratch/kocevski/226527/expmap_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.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/226527/ltcube_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.fits
.....................!
real 191.23
user 185.06
sys 5.58

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/226527/ft1_filtered_4FGL_J0809.3+4053_daily_bin164.fits scfile=/scratch/kocevski/226527/ft2_4FGL_J0809.3+4053_daily_bin164.fits outfile=/scratch/kocevski/226527/cmap_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.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.18
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226527/ft1_filtered_4FGL_J0809.3+4053_daily_bin164.fits scfile=/scratch/kocevski/226527/ft2_4FGL_J0809.3+4053_daily_bin164.fits outfile=/scratch/kocevski/226527/cmap_HighResolution_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.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.09
user 0.37
sys 0.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6409       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.245       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0313       1.0000         .10000E-03   10000.    
     7 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1239       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1289       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.986       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.983       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0328       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2558       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .64556       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1496       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91913       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=   6933.834     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2200 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7831       -.13857E-08** at limit **
   2  Prefactor     2.6408        7.4061       -.77042E-07   -.14576E-03
   3  Prefactor     .10000E-03    11.002       -.54860E-05** at limit **
   4  Prefactor     3.8675        11.786        .62097E-06   -.47565E-04
   5  Prefactor     20.246        18.665        .59550E-06   -.31333E-05
   6  norm          4.0292        9.3205        .87404E-06   -.38535E-05
   7  norm          .10000E-03    1.2319       -.20265E-07** at limit **
   8  Prefactor     .10000E-03    2.0724       -.10960E-07** at limit **
   9  Prefactor     .10000E-03    12.296        .31651E-05** at limit **
  10  Prefactor     .10000E-03    3.8326        .34643E-07** at limit **
  11  norm          3.1239        1.8561       -.13266E-08   -.21719E-05
  12  norm          1.1290        .56943        .54601E-09   -.25662E-04
  13  Prefactor     .10000E-03    10.088        .25271E-05** at limit **
  14  Prefactor     29.986        15.146       -.19532E-07    .44121E-05
  15  Prefactor     .10000E-03    .82933        .36353E-09** at limit **
  16  Prefactor     26.984        24.235        .48812E-06    .98551E-05
  17  Prefactor     9.0336        11.438       -.31641E-06    .71697E-05
  18  norm          2.2558        2.8752       -.46951E-07   -.37851E-03
  19  Prefactor     .10000E-03    .91676        .74062E-08** at limit **
  20  Prefactor     .10000E-03    41.593       -.28005E-06** at limit **
  21  Prefactor     .63575        3.4641       -.74022E-06    .29240E-03
  22  Normalizat    1.1494        .18003        .11243E-07    .46520E-04
  23  Prefactor     .91923        .13039       -.15303E-06    .38358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.64083
  Prefactor  = 0.0001
  Prefactor  = 3.86747
  Prefactor  = 20.2457
  norm       = 4.02921
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.12392
  norm       = 1.12899
  Prefactor  = 0.0001
  Prefactor  = 29.9859
  Prefactor  = 0.0001
  Prefactor  = 26.9842
  Prefactor  = 9.03361
  norm       = 2.25582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.635753
  Normalizat = 1.14944
  Prefactor  = 0.919231
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.834     FROM HESSE     STATUS=OK           372 CALLS     2572 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7878        .10859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6408        8.5066        .12545E-02   -1.5383    
   3  Prefactor     .10000E-03    11.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8675        12.366        .10256E-02   -1.5315    
   5  Prefactor     20.246        18.695        .89018E-04   -1.4808    
   6  norm          4.0292        9.3171        .20084E-03   -1.5306    
   7  norm          .10000E-03    1.2542        .89940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0745        .11705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9222        .31785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1239        1.8544        .85065E-04   -1.5354    
  12  norm          1.1290        .57358        .42322E-04   -1.5495    
  13  Prefactor     .10000E-03    10.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.986        15.129        .73167E-04   -1.4612    
  15  Prefactor     .10000E-03    .83317        .73981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.984        24.247        .77121E-04   -1.4669    
  17  Prefactor     9.0336        11.433        .13336E-03   -1.5107    
  18  norm          2.2558        5.1411        .13677E-02   -1.5408    
  19  Prefactor     .10000E-03    .92336        .77847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .63575        7.0334        .28858E-02   -1.5549    
  22  Normalizat    1.1494        .21160        .26091E-03   -.88180    
  23  Prefactor     .91923        .15206        .21624E-03   -.95472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15116e-10
Minuit parameter uncertainties:
  1  3.71369e-08
  2  8.51045
  3  2.75447e-06
  4  12.3743
  5  18.7003
  6  9.32041
  7  2.27945e-06
  8  1.01986e-06
  9  2.44457e-06
  10  7.90361e-07
  11  1.85446
  12  0.573583
  13  4.09609e-07
  14  15.1305
  15  4.5872e-08
  16  24.2554
  17  11.4359
  18  5.14209
  19  4.88412e-07
  20  2.7974e-05
  21  4.2295
  22  0.211755
  23  0.152133
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  7.904e-07  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.192e-01  1.521e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.149e+00  2.118e-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: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226527/likelihoodResults_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.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) = 6933.83509409
delta logL = -0.0012163583142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6933.83387782
delta logL = -8.4076418716e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5631       1.0000          .0000       10.000    
     3 'Normalizat'    1.1493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91936       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=   6933.834     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      260 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    149.69        .32598E-02** at limit **
   2  Index         2.0543        5.3745        .50000       -.22171E-06
   3  Normalizat    1.1494        .24455E-01    .26091E-03   -.10766E-02
   4  Prefactor     .91923        .18449E-01    .21624E-03   -.12825E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05426
  Normalizat = 1.14944
  Prefactor  = 0.91923
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.834     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 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    628.31        .65195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0543        8.8894        .50000       -.63000    
   3  Normalizat    1.1494        .57835E-01    .52182E-04   -.88180    
   4  Prefactor     .91923        .43630E-01    .43249E-04   -.95472    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46509e-09
Minuit parameter uncertainties:
  1  0.000217723
  2  903.917
  3  0.0578384
  4  0.043632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226527': 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) = 6933.83387402
delta logL = 3.71289479517e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.177e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.054e+00  9.039e+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.192e-01  4.363e-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:  1.149e+00  5.784e-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/226527/cmap_HighResolution_281836801_282096001_4FGL_J0809.3+4053_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-08-29 07:51:15.193431', job_id='226527', GAL2='0.92', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630248675.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='164' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 226527: <4FGL_J0809.3+4053_daily_bin164> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin164> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:33 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35: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:35:34 2021
Terminated at Sun Aug 29 07:51:15 2021
Results reported at Sun Aug 29 07:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin164 122.33 40.8954 281836801 282096001 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

