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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin475
RA = 122.453, Dec = 5.1313
tmin = 362448001, tmax = 362707201
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='251427', job_status='RUN', time_executed='2021-08-29 08:55:40.827680', time_epoch_executed='1630252540.83' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251427

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251427/ft1_4FGL_J0809.8+0507_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251427/ft1_4FGL_J0809.8+0507_daily_bin475.fits outfile=/scratch/kocevski/251427/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin475.fits ra=122.453 dec=5.1313 rad=12.0 tmin=362448001.0 tmax=362707201.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.82
user 5.31
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251427/ft1_filtered_4FGL_J0809.8+0507_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/251427/ltcube_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.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/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits
.....................!
real 11.54
user 10.86
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251427/ft1_filtered_4FGL_J0809.8+0507_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/251427/ltcube_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.fits outfile=/scratch/kocevski/251427/expmap_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.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/251427/ltcube_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.fits
.....................!
real 190.88
user 185.31
sys 4.69

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/251427/ft1_filtered_4FGL_J0809.8+0507_daily_bin475.fits scfile=/scratch/kocevski/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits outfile=/scratch/kocevski/251427/cmap_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.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 0.78
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251427/ft1_filtered_4FGL_J0809.8+0507_daily_bin475.fits scfile=/scratch/kocevski/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits outfile=/scratch/kocevski/251427/cmap_HighResolution_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.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 0.78
user 0.38
sys 0.39

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251427/ft1_filtered_4FGL_J0809.8+0507_daily_bin475.fits', '/scratch/kocevski/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits', expMap='/scratch/kocevski/251427/expmap_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.fits', expCube='/scratch/kocevski/251427/ltcube_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251427/Model_4FGL_J0809.8+0507_daily_bin475.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/251427/ft1_filtered_4FGL_J0809.8+0507_daily_bin475.fits
Spacecraft file(s): /scratch/kocevski/251427/ft2_4FGL_J0809.8+0507_daily_bin475.fits
Exposure map: /scratch/kocevski/251427/expmap_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.fits
Exposure cube: /scratch/kocevski/251427/ltcube_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251427/Model_4FGL_J0809.8+0507_daily_bin475.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) = 6593.68165372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.556       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15612       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37810E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.086       1.0000         .10000E-03   10000.    
    11 'norm      '    14.993       1.0000         .10000E-03   10000.    
    12 'norm      '    6.8047       1.0000         .10000E-03   10000.    
    13 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11097E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.136       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41121E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .13858E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.807       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82158       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1513       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=   6593.670     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2263 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.557        37.980       -.46409E-06   -.24069E-05
   2  Prefactor     .10000E-03    12.621       -.91251E-06** at limit **
   3  norm          .10000E-03    .36854       -.28078E-07** at limit **
   4  Prefactor     .10000E-03    14.439        .80986E-05** at limit **
   5  Prefactor     .16609        1.9370        .40670E-05   -.13547E-02
   6  norm          .10000E-03    14.673       -.70509E-05** at limit **
   7  Prefactor     16.694        12.420       -.24004E-05   -.48467E-03
   8  Prefactor     48.336        151.43       -.12767E-03   -.14173E-03
   9  Prefactor     .10002E-03    6.5852       -.12509E-05** at limit **
  10  Prefactor     10.070        24.756        .97295E-05   -.36048E-04
  11  norm          14.991        11.392        .29310E-05    .15651E-03
  12  norm          6.8055        2.8755       -.73162E-07    .45701E-03
  13  norm          .10000E-03    7.7091       -.21255E-06** at limit **
  14  norm          .10000E-03    3.6157       -.26097E-06** at limit **
  15  Prefactor     33.131        30.532        .62105E-05   -.73593E-04
  16  Prefactor     .10005E-03    13.352       -.27842E-06** at limit **
  17  norm          .10000E-03    .36856       -.90682E-07** at limit **
  18  norm          .10000E-03    2.1896       -.23718E-07** at limit **
  19  Prefactor     28.802        41.437       -.28226E-05   -.16809E-04
  20  Normalizat    .82176        .20923       -.11076E-05   -.50383E-03
  21  Prefactor     1.1512        .13638        .12956E-05   -.71097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.166088
  norm       = 0.0001
  Prefactor  = 16.6936
  Prefactor  = 48.3363
  Prefactor  = 0.000100015
  Prefactor  = 10.0704
  norm       = 14.9908
  norm       = 6.80545
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.1312
  Prefactor  = 0.000100048
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.8017
  Normalizat = 0.82176
  Prefactor  = 1.15116
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.670     FROM HESSE     STATUS=OK           321 CALLS     2584 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.557        38.024        .64549E-04   -1.4465    
   2  Prefactor     .10000E-03    12.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .37097        .48126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16609        18.682        .20250E-02   -1.5626    
   6  norm          .10000E-03    14.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.694        12.425        .98021E-04   -1.4891    
   8  Prefactor     48.336        154.40        .28810E-03   -1.4316    
   9  Prefactor     .10002E-03    44.993        .38433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.070        24.761        .12617E-03   -1.5073    
  11  norm          14.991        11.250        .10344E-03   -1.4933    
  12  norm          6.8055        2.8272        .85204E-04   -1.5186    
  13  norm          .10000E-03    7.7161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7803        .30129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.131        30.550        .69611E-04   -1.4556    
  16  Prefactor     .10005E-03    18.919        .82652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4732        .95163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1937        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.802        41.513        .74646E-04   -1.4634    
  20  Normalizat    .82176        .24045        .32367E-03   -.99267    
  21  Prefactor     1.1512        .15710        .19388E-03   -.87848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10741e-08
Minuit parameter uncertainties:
  1  38.0474
  2  9.47547e-06
  3  1.11919e-06
  4  1.81448e-05
  5  3.52305
  6  0.000126501
  7  12.4266
  8  155.706
  9  0.00166067
  10  24.7861
  11  11.2513
  12  2.82728
  13  6.27521e-05
  14  5.4345e-05
  15  30.5645
  16  0.00191338
  17  1.94797e-05
  18  1.65235e-06
  19  41.5545
  20  0.240758
  21  0.157162
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  6.275e-05  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:  1.151e+00  1.572e-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:  8.218e-01  2.408e-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: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251427/likelihoodResults_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.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): 0
logL (Free Index) = 6593.67086506
delta logL = -0.000615533995187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6593.67024965
delta logL = -1.31252818392e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8118       1.0000          .0000       5.0000    
     3 'Normalizat'    .82168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1512       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=   6593.670     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      230 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.285        .18142E-02** at limit **
   2  alpha         2.2588        3.7496        .16625        .55389E-08
   3  Normalizat    .82176        .21983        .32367E-03    .30663E-04
   4  Prefactor     1.1512        .15437        .19388E-03    .53677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.25884
  Normalizat = 0.821762
  Prefactor  = 1.15116
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.670     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.0066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2588        3.4628        .66501E-02   -.96614E-01
   3  Normalizat    .82176        .21999        .12947E-04   -.99266    
   4  Prefactor     1.1512        .15448        .38776E-04   -.87848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22094e-12
Minuit parameter uncertainties:
  1  2.34793e-05
  2  831.008
  3  0.220229
  4  0.154543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251427': 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) = 6593.67024929
delta logL = 2.34927938436e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.348e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.259e+00  8.310e+02  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:  1.151e+00  1.545e-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:  8.218e-01  2.202e-01  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/251427/cmap_HighResolution_362448001_362707201_4FGL_J0809.8+0507_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-05', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-08-29 09:06:15.642514', job_id='251427', GAL2='1.15', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630253175.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='475' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:06:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 251427: <4FGL_J0809.8+0507_daily_bin475> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin475> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:18 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:21 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:55:21 2021
Terminated at Sun Aug 29 09:06:16 2021
Results reported at Sun Aug 29 09:06:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin475 122.453 5.1313 362448001 362707201 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 :                                   636.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            658 sec.

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

