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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin183
RA = 122.453, Dec = 5.1313
tmin = 286761601, tmax = 287020801
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='248860', job_status='RUN', time_executed='2021-08-29 08:49:44.693078', time_epoch_executed='1630252184.69' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248860/ft1_4FGL_J0809.8+0507_daily_bin183.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248860/ft2_4FGL_J0809.8+0507_daily_bin183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248860/ft1_4FGL_J0809.8+0507_daily_bin183.fits outfile=/scratch/kocevski/248860/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin183.fits ra=122.453 dec=5.1313 rad=12.0 tmin=286761601.0 tmax=287020801.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.42
user 3.47
sys 0.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248860/ft1_filtered_4FGL_J0809.8+0507_daily_bin183.fits" evtable="EVENTS" scfile=/scratch/kocevski/248860/ft2_4FGL_J0809.8+0507_daily_bin183.fits sctable="SC_DATA" outfile=/scratch/kocevski/248860/ltcube_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.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/248860/ft2_4FGL_J0809.8+0507_daily_bin183.fits
.....................!
real 12.54
user 11.39
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248860/ft1_filtered_4FGL_J0809.8+0507_daily_bin183.fits evtable="EVENTS" scfile=/scratch/kocevski/248860/ft2_4FGL_J0809.8+0507_daily_bin183.fits sctable="SC_DATA" expcube=/scratch/kocevski/248860/ltcube_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.fits outfile=/scratch/kocevski/248860/expmap_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.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/248860/ltcube_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.fits
.....................!
real 191.64
user 185.99
sys 5.27

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/248860/ft1_filtered_4FGL_J0809.8+0507_daily_bin183.fits scfile=/scratch/kocevski/248860/ft2_4FGL_J0809.8+0507_daily_bin183.fits outfile=/scratch/kocevski/248860/cmap_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.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.26
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248860/ft1_filtered_4FGL_J0809.8+0507_daily_bin183.fits scfile=/scratch/kocevski/248860/ft2_4FGL_J0809.8+0507_daily_bin183.fits outfile=/scratch/kocevski/248860/cmap_HighResolution_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.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.26
user 0.38
sys 0.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.223       1.0000         .10000E-03   10000.    
     3 'norm      '    .10852E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.765       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.940       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2722       1.0000         .10000E-03   10000.    
    11 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .38035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0288       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7847       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3905       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91589       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=   5685.203     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2217 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.962        48.823       -.66457E-06    .50155E-05
   2  Prefactor     46.199        43.855       -.12782E-05    .16424E-04
   3  norm          .10000E-03    1.1051       -.22009E-06** at limit **
   4  Prefactor     23.768        22.251       -.96275E-07    .36875E-05
   5  Prefactor     .10000E-03    .92030       -.49168E-07** at limit **
   6  norm          .10000E-03    4.2105       -.21466E-07** at limit **
   7  Prefactor     11.940        9.3136       -.51448E-07    .10380E-04
   8  Prefactor     .10000E-03    29.350       -.13706E-06** at limit **
   9  Prefactor     2.0557        8.0771       -.23785E-05    .18313E-04
  10  Prefactor     5.2038        88.994        .22536E-07    .21539E-06
  11  norm          .10000E-03    9.9611       -.19830E-06** at limit **
  12  norm          .10000E-03    1.1232       -.67391E-07** at limit **
  13  norm          .10000E-03    98.171        .99684E-05** at limit **
  14  norm          .10000E-03    2.3178       -.17336E-06** at limit **
  15  Prefactor     11.331        37.172        .48248E-05   -.21270E-05
  16  Prefactor     .10000E-03    4.6626       -.10697E-06** at limit **
  17  norm          4.0286        1.4784       -.83558E-08    .60534E-04
  18  norm          .10000E-03    8.9992       -.18415E-06** at limit **
  19  Prefactor     2.7845        49.712       -.84388E-06   -.14132E-05
  20  Normalizat    1.3907        .22650        .31371E-06    .15473E-04
  21  Prefactor     .91581        .15003        .86727E-06    .82598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.9621
  Prefactor  = 46.1991
  norm       = 0.0001
  Prefactor  = 23.7683
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9397
  Prefactor  = 0.0001
  Prefactor  = 2.05568
  Prefactor  = 5.2038
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3315
  Prefactor  = 0.0001
  norm       = 4.02865
  norm       = 0.0001
  Prefactor  = 2.7845
  Normalizat = 1.39067
  Prefactor  = 0.915814
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.203     FROM HESSE     STATUS=OK           319 CALLS     2536 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.962        48.840        .59133E-04   -1.4351    
   2  Prefactor     46.199        43.697        .58974E-04   -1.4348    
   3  norm          .10000E-03    4.8495        .14939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.768        22.255        .82168E-04   -1.4733    
   5  Prefactor     .10000E-03    .92906        .70639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.2109        .15111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.940        9.3262        .11593E-03   -1.5017    
   8  Prefactor     .10000E-03    29.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0557        8.1150        .14411E-02   -1.5421    
  10  Prefactor     5.2038        90.094        .17505E-03   -1.5252    
  11  norm          .10000E-03    10.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1305        .78066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    96.959        .62422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3363        .11212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.331        37.134        .11911E-03   -1.5035    
  16  Prefactor     .10000E-03    4.6713        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0286        1.4810        .53113E-04   -1.5307    
  18  norm          .10000E-03    9.1473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7845        49.883        .24384E-03   -1.5374    
  20  Normalizat    1.3907        .26508        .27229E-03   -.80899    
  21  Prefactor     .91581        .17431        .22451E-03   -.95591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4154e-11
Minuit parameter uncertainties:
  1  48.8826
  2  43.7273
  3  4.53637e-05
  4  22.263
  5  2.85787e-06
  6  1.72051e-06
  7  9.32732
  8  2.95529e-06
  9  8.11932
  10  43.3812
  11  1.58005e-05
  12  2.49052e-06
  13  0.000136716
  14  7.37339e-06
  15  37.2093
  16  1.4022e-05
  17  1.48106
  18  3.35264e-05
  19  23.5936
  20  0.265341
  21  0.174417
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.367e-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:  9.158e-01  1.744e-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.391e+00  2.653e-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: 9.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248860/likelihoodResults_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.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) = 5685.20334803
delta logL = -4.82774266857e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5685.13476868
delta logL = 0.0685310789186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8493       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6552       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92724       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.

 FCN=   5685.135     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      278 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8694        972.68        .60217E-02    .20260E-02
   2  alpha         4.6507        2.5911        .50000        .40318E-04
   3  Normalizat    1.3596        .23796        .62149E-01   -.84115E-04
   4  Prefactor     .92726        .10914        .45351E-01   -.90475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.86944
  alpha      = 4.65074
  Normalizat = 1.3596
  Prefactor  = 0.927259
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.135     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8694        22.784        .24087E-03   -1.5369    
   2  alpha         4.6507        3.8709        .16028        1.0359    
   3  Normalizat    1.3596        .25950        .27488E-03   -.81804    
   4  Prefactor     .92726        .17254        .22327E-03   -.95195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58461e-08
Minuit parameter uncertainties:
  1  16.1794
  2  5.01985
  3  0.259746
  4  0.172643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248860': 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) = 5685.13476696
delta logL = 0.0685327994361

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.869e+00  1.618e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.651e+00  5.020e+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:  9.273e-01  1.726e-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.360e+00  2.597e-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/248860/cmap_HighResolution_286761601_287020801_4FGL_J0809.8+0507_daily_bin183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='9.01e-08', time_completed='2021-08-29 08:59:45.962923', job_id='248860', GAL2='0.93', fit_tolerance='1e-08', EG2='1.36', EG='1.39', time_epoch_completed='1630252785.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.85e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='183' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 248860: <4FGL_J0809.8+0507_daily_bin183> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin183 122.453 5.1313 286761601 287020801 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 :                                   612.00 sec.
    Max Memory :                                 1122 MB
    Average Memory :                             239.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

