/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 39 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin10
RA = 122.453, Dec = 5.1313
tmin = 241920001, tmax = 242179201
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='248610', job_status='RUN', time_executed='2021-08-29 08:47:31.911141', time_epoch_executed='1630252051.91' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248610

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248610/ft1_4FGL_J0809.8+0507_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248610/ft2_4FGL_J0809.8+0507_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248610/ft1_4FGL_J0809.8+0507_daily_bin10.fits outfile=/scratch/kocevski/248610/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin10.fits ra=122.453 dec=5.1313 rad=12.0 tmin=241920001.0 tmax=242179201.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.41
user 1.22
sys 4.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248610/ft1_filtered_4FGL_J0809.8+0507_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/248610/ft2_4FGL_J0809.8+0507_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/248610/ltcube_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.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/248610/ft2_4FGL_J0809.8+0507_daily_bin10.fits
.....................!
real 17.23
user 12.26
sys 4.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248610/ft1_filtered_4FGL_J0809.8+0507_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/248610/ft2_4FGL_J0809.8+0507_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/248610/ltcube_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.fits outfile=/scratch/kocevski/248610/expmap_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.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/248610/ltcube_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.fits
.....................!
real 197.69
user 187.29
sys 9.88

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/248610/ft1_filtered_4FGL_J0809.8+0507_daily_bin10.fits scfile=/scratch/kocevski/248610/ft2_4FGL_J0809.8+0507_daily_bin10.fits outfile=/scratch/kocevski/248610/cmap_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.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 4.46
user 0.36
sys 3.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248610/ft1_filtered_4FGL_J0809.8+0507_daily_bin10.fits scfile=/scratch/kocevski/248610/ft2_4FGL_J0809.8+0507_daily_bin10.fits outfile=/scratch/kocevski/248610/cmap_HighResolution_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.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 4.42
user 0.37
sys 3.98

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.436       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7104       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8209       1.0000         .10000E-03   10000.    
     6 'norm      '    17.131       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.085       1.0000         .10000E-03   10000.    
    12 'norm      '    .16292       1.0000         .10000E-03   10000.    
    13 'norm      '    20.842       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    72.659       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .36230       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1313       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83319       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=   8598.749     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2251 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.572        43.034        .20735E-04   -.79608E-05
   2  Prefactor     42.431        28.370       -.49028E-05   -.30805E-04
   3  norm          2.7101        1.5804       -.26063E-07   -.61527E-03
   4  Prefactor     30.143        21.067       -.35809E-06   -.99928E-05
   5  Prefactor     5.8215        3.0858       -.22353E-06   -.78240E-03
   6  norm          17.138        19.619        .47176E-05   -.34270E-03
   7  Prefactor     .10000E-03    23.227        .15778E-04** at limit **
   8  Prefactor     .10000E-03    33.952       -.65470E-05** at limit **
   9  Prefactor     .10000E-03    3.0003        .91091E-08** at limit **
  10  Prefactor     .10000E-03    8.1559       -.75380E-06** at limit **
  11  norm          10.085        7.1207        .17343E-06   -.65785E-04
  12  norm          .16124        .87711        .21521E-06   -.12656E-02
  13  norm          20.844        18.683       -.20515E-06   -.46921E-04
  14  norm          .10000E-03    1.0506       -.46811E-08** at limit **
  15  Prefactor     72.665        41.558        .52406E-05   -.87487E-04
  16  Prefactor     .10000E-03    9.2676        .11494E-05** at limit **
  17  norm          .36161        .62034       -.10573E-06   -.18254E-02
  18  norm          .10000E-03    2.7426        .58216E-07** at limit **
  19  Prefactor     .10000E-03    19.401       -.11403E-04** at limit **
  20  Normalizat    1.1312        .16804       -.42805E-06   -.24872E-03
  21  Prefactor     .83335        .11339       -.12915E-05   -.14363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5725
  Prefactor  = 42.4313
  norm       = 2.7101
  Prefactor  = 30.1432
  Prefactor  = 5.82146
  norm       = 17.1376
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0853
  norm       = 0.161238
  norm       = 20.8435
  norm       = 0.0001
  Prefactor  = 72.6645
  Prefactor  = 0.0001
  norm       = 0.361607
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13115
  Prefactor  = 0.833345
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.749     FROM HESSE     STATUS=OK           319 CALLS     2570 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.572        43.365        .74969E-04   -1.4638    
   2  Prefactor     42.431        28.408        .61538E-04   -1.4404    
   3  norm          2.7101        1.5747        .84304E-04   -1.5379    
   4  Prefactor     30.143        21.078        .72975E-04   -1.4609    
   5  Prefactor     5.8215        3.0929        .11241E-03   -1.5225    
   6  norm          17.138        19.370        .96766E-04   -1.4880    
   7  Prefactor     .10000E-03    23.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0190        .15680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.085        7.1175        .12618E-03   -1.5073    
  12  norm          .16124        4.0237        .16693E-02   -1.5628    
  13  norm          20.844        18.672        .87735E-04   -1.4795    
  14  norm          .10000E-03    1.0646        .92799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     72.665        41.889        .47099E-04   -1.4001    
  16  Prefactor     .10000E-03    9.3196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .36161        .49483        .91181E-03   -1.5588    
  18  norm          .10000E-03    2.7573        .14994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1312        .19637        .27200E-03   -.88758    
  21  Prefactor     .83335        .13315        .21394E-03   -.98511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7044e-09
Minuit parameter uncertainties:
  1  43.4124
  2  28.4168
  3  1.57473
  4  21.0833
  5  3.09294
  6  19.377
  7  0.000565834
  8  5.11204e-07
  9  4.07642e-06
  10  1.05437e-05
  11  7.11813
  12  1.61055
  13  18.6772
  14  9.33458e-07
  15  41.906
  16  2.78055e-05
  17  0.494834
  18  5.75273e-06
  19  3.49226e-05
  20  0.196494
  21  0.133197
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.084e+01  1.868e+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:  8.333e-01  1.332e-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.131e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 8.80e-06 +/- 7.89e-06

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

Saving results to:
/scratch/kocevski/248610/likelihoodResults_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.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) = 8598.74071676
delta logL = 0.0083667368126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8598.7356322
delta logL = 0.0134512916356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.699       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1352       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83717       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8598.736     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      260 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.678        26.306        .92621E-04   -.29900E-03
   2  alpha         3.1382        1.9865        .45748E-01   -.19983E-04
   3  Normalizat    1.1239        .19124        .27274E-03    .12922E-04
   4  Prefactor     .83713        .12910        .21351E-03    .11043E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.6784
  alpha      = 3.13823
  Normalizat = 1.12387
  Prefactor  = 0.837126
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.736     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.678        22.415        .37048E-05   -1.4843    
   2  alpha         3.1382        1.7671        .18299E-02    .25815    
   3  Normalizat    1.1239        .18974        .10910E-04   -.88989    
   4  Prefactor     .83713        .12833        .85405E-05   -.98374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76783e-10
Minuit parameter uncertainties:
  1  22.4247
  2  1.98179
  3  0.189853
  4  0.128374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248610': 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) = 8598.73563058
delta logL = 0.0134529179613

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.868e+01  2.242e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.138e+00  1.982e+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:  8.371e-01  1.284e-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.124e+00  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 122.453 5.131
Photon Index (Free Index): 3.14 +/- 1.98
Photon Flux (Free Index): 3.81e-08 +/- 4.24e-08
Energy Flux (Free Index): 8.99e-06 +/- 7.69e-06

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/248610/cmap_HighResolution_241920001_242179201_4FGL_J0809.8+0507_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-05', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='8.99e-06', photon_flux_error='3.00e-08', dlogl='1.35e-02', energy_flux='8.80e-06', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-08-29 09:00:37.631556', photon_index_error2='1.98', photon_index2='3.14', ts='1.95', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='7.69e-06', EG='1.13', time_epoch_completed='1630252837.63', return_code='0', job_id='248610', GAL2='0.84', EG2='1.12', return_code2='0', energy_flux_error='7.89e-06', photon_flux_error2='4.24e-08', ts2='2.00', photon_index='2.82' WHERE bin_id='10' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:00:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 248610: <4FGL_J0809.8+0507_daily_bin10> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin10 122.453 5.1313 241920001 242179201 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 :                                   848.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

