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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin400
RA = 122.453, Dec = 5.1313
tmin = 343008001, tmax = 343267201
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='250256', job_status='RUN', time_executed='2021-08-29 08:52:31.312360', time_epoch_executed='1630252351.31' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250256/ft1_4FGL_J0809.8+0507_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250256/ft1_4FGL_J0809.8+0507_daily_bin400.fits outfile=/scratch/kocevski/250256/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin400.fits ra=122.453 dec=5.1313 rad=12.0 tmin=343008001.0 tmax=343267201.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.33
user 3.59
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.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/250256/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.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.03
user 0.31
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/250256/ltcube_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.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/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits
.....................!
real 12.29
user 11.36
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/250256/ltcube_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.fits outfile=/scratch/kocevski/250256/expmap_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.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/250256/ltcube_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.fits
.....................!
real 191.00
user 185.23
sys 5.39

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits scfile=/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits outfile=/scratch/kocevski/250256/cmap_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.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.453 yref=5.1313 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.03
user 0.37
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits scfile=/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits outfile=/scratch/kocevski/250256/cmap_HighResolution_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.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.453 yref=5.1313 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.05
user 0.37
sys 0.67

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250256/Model_4FGL_J0809.8+0507_daily_bin400.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/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits.....................!
real 75.64
user 73.52
sys 1.89

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits', '/scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits', expMap='/scratch/kocevski/250256/expmap_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.fits', expCube='/scratch/kocevski/250256/ltcube_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250256/Model_4FGL_J0809.8+0507_daily_bin400.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/250256/ft1_filtered_4FGL_J0809.8+0507_daily_bin400.fits
Spacecraft file(s): /scratch/kocevski/250256/ft2_4FGL_J0809.8+0507_daily_bin400.fits
Exposure map: /scratch/kocevski/250256/expmap_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.fits
Exposure cube: /scratch/kocevski/250256/ltcube_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250256/Model_4FGL_J0809.8+0507_daily_bin400.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) = 6360.62130835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5212       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    199.22       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .90398E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2275       1.0000         .10000E-03   10000.    
    13 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.920       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.291       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6828       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2308       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.699       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3136       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6360.585     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2228 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.240        .15510E-06** at limit **
   2  Prefactor     .10000E-03    9.0758        .35035E-08** at limit **
   3  norm          2.3111        1.6533       -.28104E-07   -.30583E-03
   4  Prefactor     .10000E-03    56.874       -.53301E-06** at limit **
   5  Prefactor     2.5195        3.2464        .40247E-06   -.36264E-03
   6  norm          .10000E-03    8.5636       -.63370E-08** at limit **
   7  Prefactor     .10000E-03    5.9157       -.65850E-08** at limit **
   8  Prefactor     199.20        169.54       -.12651E-04    .75497E-04
   9  Prefactor     .10000E-03    2.3189        .99339E-08** at limit **
  10  Prefactor     .10000E-03    14.742       -.71836E-07** at limit **
  11  norm          .10002E-03    8.2506        .20430E-06** at limit **
  12  norm          4.2271        2.3261        .70909E-08   -.11684E-04
  13  norm          .10000E-03    18.972       -.45274E-06** at limit **
  14  norm          3.6645        3.2474        .18127E-06    .75541E-03
  15  Prefactor     41.939        39.276        .82211E-05   -.21231E-03
  16  Prefactor     23.297        17.483       -.88873E-06   -.14376E-04
  17  norm          2.6832        1.2040       -.17149E-07   -.12849E-03
  18  norm          1.2314        4.7878       -.18370E-05   -.92695E-03
  19  Prefactor     35.707        40.082        .45514E-05   -.94838E-04
  20  Normalizat    1.3132        .20204       -.13161E-05    .49885E-04
  21  Prefactor     .74624        .12809        .50753E-06   -.90743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31111
  Prefactor  = 0.0001
  Prefactor  = 2.51954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 199.197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100016
  norm       = 4.2271
  norm       = 0.0001
  norm       = 3.66454
  Prefactor  = 41.9387
  Prefactor  = 23.2966
  norm       = 2.68317
  norm       = 1.23143
  Prefactor  = 35.7074
  Normalizat = 1.3132
  Prefactor  = 0.746236
 **********
 **   18 **HESSE 
 **********

 FCN=   6360.585     FROM HESSE     STATUS=OK           323 CALLS     2551 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3111        1.6508        .82759E-04   -1.5404    
   4  Prefactor     .10000E-03    57.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5195        3.2180        .15023E-03   -1.5390    
   6  norm          .10000E-03    8.6035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     199.20        166.68        .14313E-03   -1.2876    
   9  Prefactor     .10000E-03    2.3208        .11860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    12.973        .66965E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2271        2.3259        .87702E-04   -1.5297    
  13  norm          .10000E-03    19.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6645        3.2676        .65612E-03   -1.5325    
  15  Prefactor     41.939        38.277        .61915E-04   -1.4412    
  16  Prefactor     23.297        17.582        .82999E-04   -1.4742    
  17  norm          2.6832        1.2049        .55863E-04   -1.5380    
  18  norm          1.2314        5.2595        .35630E-03   -1.5486    
  19  Prefactor     35.707        39.810        .67074E-04   -1.4512    
  20  Normalizat    1.3132        .23332        .26315E-03   -.83173    
  21  Prefactor     .74624        .14728        .22721E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54558e-09
Minuit parameter uncertainties:
  1  5.71494e-06
  2  1.37696e-06
  3  1.65078
  4  4.77743e-05
  5  3.21821
  6  1.67418e-06
  7  2.47017e-06
  8  167.083
  9  1.80133e-07
  10  2.93494e-05
  11  0.000897476
  12  2.32597
  13  0.000170482
  14  3.2678
  15  38.2997
  16  17.5861
  17  1.20488
  18  5.09043
  19  39.8393
  20  0.233506
  21  0.147356
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.705e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.462e-01  1.474e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.313e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250256/likelihoodResults_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.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) = 6360.58556842
delta logL = -0.000249254423579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6360.58532312
delta logL = -3.9535752876e-06

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 'alpha     '    1.0009       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   6360.585     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      298 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1301        .97441E-01** at limit **
   2  alpha         4.5198        3.0345        .50000       -.21669E-07
   3  Normalizat    1.3132        .31904E-02    .26315E-03   -.12753E-02
   4  Prefactor     .74624        .21520E-02    .22721E-03   -.14117E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.51983
  Normalizat = 1.3132
  Prefactor  = 0.746236
 **********
 **   18 **HESSE 
 **********

 FCN=   6360.585     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7209.0        .26351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5198        2.5273        .50000        .94063    
   3  Normalizat    1.3132        .60153E-01    .52629E-04   -.83173    
   4  Prefactor     .74624        .40084E-01    .45442E-04   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93195e-08
Minuit parameter uncertainties:
  1  0.00294669
  2  6986.64
  3  0.0601562
  4  0.0400857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250256': 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) = 6360.5853175
delta logL = 1.66130848811e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.947e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.520e+00  6.987e+03  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.462e-01  4.009e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.313e+00  6.016e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

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/250256/cmap_HighResolution_343008001_343267201_4FGL_J0809.8+0507_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-05', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-08-29 09:02:54.446511', job_id='250256', GAL2='0.75', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630252974.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='400' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:02:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 250256: <4FGL_J0809.8+0507_daily_bin400> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin400> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:45 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:50:47 2021
Terminated at Sun Aug 29 09:02:55 2021
Results reported at Sun Aug 29 09:02:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin400 122.453 5.1313 343008001 343267201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   630.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            730 sec.

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

