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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin288
RA = 122.453, Dec = 5.1313
tmin = 313977601, tmax = 314236801
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='250072', job_status='RUN', time_executed='2021-08-29 08:52:54.063831', time_epoch_executed='1630252374.06' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250072/ft1_4FGL_J0809.8+0507_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250072/ft2_4FGL_J0809.8+0507_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250072/ft1_4FGL_J0809.8+0507_daily_bin288.fits outfile=/scratch/kocevski/250072/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin288.fits ra=122.453 dec=5.1313 rad=12.0 tmin=313977601.0 tmax=314236801.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 3.84
user 3.15
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250072/ft2_4FGL_J0809.8+0507_daily_bin288.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/250072/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin288.fits evtable="EVENTS" outfile="/scratch/kocevski/250072/ft1_filtered_4FGL_J0809.8+0507_daily_bin288.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.93
user 0.33
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250072/ft1_filtered_4FGL_J0809.8+0507_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/250072/ft2_4FGL_J0809.8+0507_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/250072/ltcube_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.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/250072/ft2_4FGL_J0809.8+0507_daily_bin288.fits
.....................!
real 12.30
user 11.49
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250072/ft1_filtered_4FGL_J0809.8+0507_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/250072/ft2_4FGL_J0809.8+0507_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/250072/ltcube_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.fits outfile=/scratch/kocevski/250072/expmap_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.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/250072/ltcube_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.fits
.....................!
real 190.29
user 184.80
sys 5.06

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/250072/ft1_filtered_4FGL_J0809.8+0507_daily_bin288.fits scfile=/scratch/kocevski/250072/ft2_4FGL_J0809.8+0507_daily_bin288.fits outfile=/scratch/kocevski/250072/cmap_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.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.97
user 0.36
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250072/ft1_filtered_4FGL_J0809.8+0507_daily_bin288.fits scfile=/scratch/kocevski/250072/ft2_4FGL_J0809.8+0507_daily_bin288.fits outfile=/scratch/kocevski/250072/cmap_HighResolution_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.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.97
user 0.38
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.217       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13967E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    100.14       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.806       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2673       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8425       1.0000         .10000E-03   10000.    
    13 'norm      '    7.7936       1.0000         .10000E-03   10000.    
    14 'norm      '    7.7072       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.171       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75393       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1543       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=   5972.130     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1910 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.161        .24270E-06** at limit **
   2  Prefactor     19.222        35.878        .37088E-05    .50586E-05
   3  norm          5.5533        2.4365       -.95724E-07   -.37038E-04
   4  Prefactor     .10000E-03    133.50       -.10728E-05** at limit **
   5  Prefactor     .10000E-03    2.2906       -.39090E-07** at limit **
   6  norm          2.7724        20.565       -.39771E-05   -.11565E-04
   7  Prefactor     2.2424        2.3442        .26291E-06   -.76029E-03
   8  Prefactor     100.14        101.62        .15197E-05    .37108E-05
   9  Prefactor     9.1227        8.2901       -.11116E-06   -.71936E-05
  10  Prefactor     17.808        20.456       -.15018E-05    .11237E-05
  11  norm          6.2660        12.470        .17115E-05    .11391E-05
  12  norm          2.8426        2.3127       -.30861E-07   -.18295E-04
  13  norm          7.7968        16.742       -.47610E-05   -.10962E-04
  14  norm          7.7077        4.6347        .28437E-07   -.38152E-05
  15  Prefactor     .10000E-03    19.924       -.21646E-06** at limit **
  16  Prefactor     18.173        14.180       -.17642E-05   -.52702E-05
  17  norm          .10000E-03    .33899        .48637E-08** at limit **
  18  norm          1.2732        10.020       -.42207E-06   -.78863E-04
  19  Prefactor     11.929        21.729        .68896E-06    .23623E-05
  20  Normalizat    .75391        .21214        .12227E-05   -.23277E-05
  21  Prefactor     1.1542        .14956       -.31248E-06    .71626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.2218
  norm       = 5.55329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77244
  Prefactor  = 2.24238
  Prefactor  = 100.139
  Prefactor  = 9.12275
  Prefactor  = 17.8079
  norm       = 6.26597
  norm       = 2.8426
  norm       = 7.79685
  norm       = 7.70765
  Prefactor  = 0.0001
  Prefactor  = 18.1734
  norm       = 0.0001
  norm       = 1.27319
  Prefactor  = 11.9291
  Normalizat = 0.753906
  Prefactor  = 1.15424
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.130     FROM HESSE     STATUS=OK           325 CALLS     2235 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.222        35.847        .91366E-04   -1.4831    
   3  norm          5.5533        2.4411        .75283E-04   -1.5237    
   4  Prefactor     .10000E-03    136.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5162        .22233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7724        21.191        .24449E-03   -1.5375    
   7  Prefactor     2.2424        8.0089        .13720E-02   -1.5408    
   8  Prefactor     100.14        101.40        .40175E-04   -1.3703    
   9  Prefactor     9.1227        8.2786        .13269E-03   -1.5104    
  10  Prefactor     17.808        20.427        .94915E-04   -1.4864    
  11  norm          6.2660        12.437        .16035E-03   -1.5207    
  12  norm          2.8426        2.3100        .10264E-03   -1.5371    
  13  norm          7.7968        16.722        .14364E-03   -1.5149    
  14  norm          7.7077        4.6299        .12363E-03   -1.5153    
  15  Prefactor     .10000E-03    20.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.173        14.198        .93958E-04   -1.4855    
  17  norm          .10000E-03    .34732        .87781E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2732        10.143        .39343E-03   -1.5482    
  19  Prefactor     11.929        21.728        .11598E-03   -1.5017    
  20  Normalizat    .75391        .23760        .33179E-03   -1.0180    
  21  Prefactor     1.1542        .17027        .19690E-03   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63436e-09
Minuit parameter uncertainties:
  1  5.28425e-06
  2  35.8876
  3  2.44112
  4  8.85621e-05
  5  1.16064e-06
  6  15.3371
  7  8.01272
  8  101.575
  9  8.27963
  10  20.4353
  11  12.4417
  12  2.31003
  13  16.732
  14  4.63009
  15  6.03578e-05
  16  14.2003
  17  2.55648e-07
  18  7.18874
  19  21.7427
  20  0.237923
  21  0.170353
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  7.797e+00  1.673e+01  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.154e+00  1.704e-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:  7.539e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250072/likelihoodResults_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.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) = 5972.12574393
delta logL = 0.00444457179037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5972.12466582
delta logL = 0.00552268535466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0092       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0621       1.0000          .0000       5.0000    
     3 'Normalizat'    .75202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1554       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=   5972.125     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      270 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0107        19.190        .15153E-03    .15681E-04
   2  alpha         3.0612        3.7346        .58997E-01    .43760E-05
   3  Normalizat    .75226        .23118        .33213E-03    .24919E-04
   4  Prefactor     1.1552        .16678        .19683E-03   -.57263E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.01072
  alpha      = 3.06122
  Normalizat = 0.752258
  Prefactor  = 1.15517
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.125     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0107        17.156        .60612E-05   -1.5178    
   2  alpha         3.0612        2.0216        .23599E-02    .22642    
   3  Normalizat    .75226        .23137        .13285E-04   -1.0186    
   4  Prefactor     1.1552        .16684        .39366E-04   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5621e-11
Minuit parameter uncertainties:
  1  17.1677
  2  2.38453
  3  0.231671
  4  0.16692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250072': 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) = 5972.12466513
delta logL = 0.00552337509453

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  7.011e+00  1.717e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.061e+00  2.385e+00  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.155e+00  1.669e-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:  7.523e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/250072/cmap_HighResolution_313977601_314236801_4FGL_J0809.8+0507_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-08-29 09:02:31.523928', job_id='250072', GAL2='1.16', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630252951.52', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.52e-03', ts2='0.30', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='288' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:02:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 250072: <4FGL_J0809.8+0507_daily_bin288> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin288> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:27 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:28 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:28 2021
Terminated at Sun Aug 29 09:02:32 2021
Results reported at Sun Aug 29 09:02:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin288 122.453 5.1313 313977601 314236801 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 :                                   583.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

