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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin425
RA = 122.453, Dec = 5.1313
tmin = 349488001, tmax = 349747201
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='250295', job_status='RUN', time_executed='2021-08-29 08:55:04.494763', time_epoch_executed='1630252504.49' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250295/ft1_4FGL_J0809.8+0507_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250295/ft2_4FGL_J0809.8+0507_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250295/ft1_4FGL_J0809.8+0507_daily_bin425.fits outfile=/scratch/kocevski/250295/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin425.fits ra=122.453 dec=5.1313 rad=12.0 tmin=349488001.0 tmax=349747201.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.08
user 3.18
sys 1.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250295/ft2_4FGL_J0809.8+0507_daily_bin425.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/250295/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin425.fits evtable="EVENTS" outfile="/scratch/kocevski/250295/ft1_filtered_4FGL_J0809.8+0507_daily_bin425.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 2.20
user 0.32
sys 1.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250295/ft1_filtered_4FGL_J0809.8+0507_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/250295/ft2_4FGL_J0809.8+0507_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/250295/ltcube_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.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/250295/ft2_4FGL_J0809.8+0507_daily_bin425.fits
.....................!
real 14.17
user 11.93
sys 2.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250295/ft1_filtered_4FGL_J0809.8+0507_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/250295/ft2_4FGL_J0809.8+0507_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/250295/ltcube_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.fits outfile=/scratch/kocevski/250295/expmap_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.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/250295/ltcube_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.fits
.....................!
real 194.09
user 186.61
sys 7.09

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/250295/ft1_filtered_4FGL_J0809.8+0507_daily_bin425.fits scfile=/scratch/kocevski/250295/ft2_4FGL_J0809.8+0507_daily_bin425.fits outfile=/scratch/kocevski/250295/cmap_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.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 2.19
user 0.37
sys 1.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250295/ft1_filtered_4FGL_J0809.8+0507_daily_bin425.fits scfile=/scratch/kocevski/250295/ft2_4FGL_J0809.8+0507_daily_bin425.fits outfile=/scratch/kocevski/250295/cmap_HighResolution_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.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 2.23
user 0.37
sys 1.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56144E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.863       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0193       1.0000         .10000E-03   10000.    
    12 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4767       1.0000         .10000E-03   10000.    
    14 'norm      '    6.7129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.772       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3862       1.0000         .10000E-03   10000.    
    17 'norm      '    .50666       1.0000         .10000E-03   10000.    
    18 'norm      '    11.021       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.016       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .26504       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3960       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=   7192.386     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2249 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.785        .71549E-06** at limit **
   2  Prefactor     .10000E-03    21.686       -.51548E-05** at limit **
   3  norm          4.2959        1.7912       -.82732E-08   -.20254E-03
   4  Prefactor     .10000E-03    23.490        .54793E-05** at limit **
   5  Prefactor     .10000E-03    .70616        .52805E-07** at limit **
   6  norm          19.562        16.457        .39107E-05    .20258E-03
   7  Prefactor     .10000E-03    6.4562       -.11960E-05** at limit **
   8  Prefactor     3.9764        693.98       -.44499E-05    .64064E-06
   9  Prefactor     .10000E-03    3.8519        .53672E-07** at limit **
  10  Prefactor     25.870        39.120        .11362E-04    .50486E-05
  11  norm          1.0004        8.8982        .19375E-06   -.60977E-03
  12  norm          .10000E-03    1.4057        .12955E-06** at limit **
  13  norm          4.4759        26.240        .78629E-07   -.37789E-04
  14  norm          6.7137        3.9669        .54317E-07   -.11856E-03
  15  Prefactor     62.752        36.922       -.19028E-04   -.10220E-04
  16  Prefactor     4.3955        16.201        .89657E-05   -.26781E-04
  17  norm          .50694        .84621        .10381E-06   -.39847E-03
  18  norm          11.021        7.9788       -.43257E-06   -.94613E-04
  19  Prefactor     21.026        31.915        .14196E-04   -.11493E-04
  20  Normalizat    .26475        .27973       -.43089E-07   -.92557E-04
  21  Prefactor     1.3962        .17611       -.75991E-06    .61915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.29589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.562
  Prefactor  = 0.0001
  Prefactor  = 3.97637
  Prefactor  = 0.0001
  Prefactor  = 25.8699
  norm       = 1.00038
  norm       = 0.0001
  norm       = 4.4759
  norm       = 6.71373
  Prefactor  = 62.7524
  Prefactor  = 4.39549
  norm       = 0.506942
  norm       = 11.0205
  Prefactor  = 21.0264
  Normalizat = 0.264747
  Prefactor  = 1.39622
 **********
 **   18 **HESSE 
 **********

 FCN=   7192.386     FROM HESSE     STATUS=OK           327 CALLS     2576 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2959        1.7783        .69229E-04   -1.5293    
   4  Prefactor     .10000E-03    23.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .70916        .69540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.562        15.764        .90582E-04   -1.4823    
   7  Prefactor     .10000E-03    17.745        .39638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9764        682.85        .20224E-03   -1.5309    
   9  Prefactor     .10000E-03    3.8678        .16240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.870        38.308        .78771E-04   -1.4690    
  11  norm          1.0004        24.698        .44626E-02   -1.5508    
  12  norm          .10000E-03    2.4945        .19336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4759        25.279        .19030E-03   -1.5285    
  14  norm          6.7137        3.9378        .12143E-03   -1.5190    
  15  Prefactor     62.752        36.158        .50647E-04   -1.4122    
  16  Prefactor     4.3955        15.754        .19231E-03   -1.5289    
  17  norm          .50694        .83148        .45192E-04   -1.5566    
  18  norm          11.021        7.9234        .12068E-03   -1.5044    
  19  Prefactor     21.026        31.580        .87370E-04   -1.4791    
  20  Normalizat    .26475        .21748        .51712E-03   -1.2500    
  21  Prefactor     1.3962        .14782        .17149E-03   -.80489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8671e-09
Minuit parameter uncertainties:
  1  1.66247e-05
  2  2.76257e-05
  3  1.77828
  4  9.15181e-06
  5  9.7119e-07
  6  15.7672
  7  1.17116e-06
  8  105.461
  9  2.08447e-06
  10  38.3446
  11  9.94534
  12  1.22281e-05
  13  21.2875
  14  3.93796
  15  36.1704
  16  15.7687
  17  0.831496
  18  7.92411
  19  31.6052
  20  0.218177
  21  0.14787
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.476e+00  2.129e+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.396e+00  1.479e-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:  2.647e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250295/likelihoodResults_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.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) = 7192.29648185
delta logL = 0.089074144661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7192.2926537
delta logL = 0.0929022977707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0751       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9563       1.0000          .0000       5.0000    
     3 'Normalizat'    .24775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4029       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=   7192.293     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      280 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0788        17.195        .17848E-03    .63633E-04
   2  alpha         3.9565        4.1651        .76221E-01    .51648E-05
   3  Normalizat    .24748        .20575        .53419E-03    .89448E-04
   4  Prefactor     1.4032        .14756        .17108E-03   -.20411E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.07877
  alpha      = 3.95649
  Normalizat = 0.247475
  Prefactor  = 1.40319
 **********
 **   18 **HESSE 
 **********

 FCN=   7192.293     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0788        13.516        .71392E-05   -1.5257    
   2  alpha         3.9565        3.8582        .30488E-02    .62192    
   3  Normalizat    .24748        .20586        .21368E-04   -1.2612    
   4  Prefactor     1.4032        .14740        .34216E-04   -.80288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03689e-10
Minuit parameter uncertainties:
  1  13.5241
  2  2.33698
  3  0.206496
  4  0.147443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250295': 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) = 7192.29265189
delta logL = 0.0929041072677

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.079e+00  1.352e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.956e+00  2.337e+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.403e+00  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:  2.475e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 122.453 5.131

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/250295/cmap_HighResolution_349488001_349747201_4FGL_J0809.8+0507_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-08-29 09:06:23.528625', job_id='250295', GAL2='1.40', fit_tolerance='1e-08', EG2='0.25', EG='0.26', time_epoch_completed='1630253183.53', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='9.29e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='425' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:06:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 250295: <4FGL_J0809.8+0507_daily_bin425> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin425 122.453 5.1313 349488001 349747201 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

