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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin599
RA = 122.453, Dec = 5.1313
tmin = 394588801, tmax = 394848001
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='251625', job_status='RUN', time_executed='2021-08-29 08:58:37.827581', time_epoch_executed='1630252717.83' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251625/ft1_4FGL_J0809.8+0507_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251625/ft2_4FGL_J0809.8+0507_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251625/ft1_4FGL_J0809.8+0507_daily_bin599.fits outfile=/scratch/kocevski/251625/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin599.fits ra=122.453 dec=5.1313 rad=12.0 tmin=394588801.0 tmax=394848001.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 8.79
user 4.26
sys 4.49

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251625/ft1_filtered_4FGL_J0809.8+0507_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/251625/ft2_4FGL_J0809.8+0507_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/251625/ltcube_394588801_394848001_4FGL_J0809.8+0507_daily_bin599.fits outfile=/scratch/kocevski/251625/expmap_394588801_394848001_4FGL_J0809.8+0507_daily_bin599.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/251625/ltcube_394588801_394848001_4FGL_J0809.8+0507_daily_bin599.fits
.....................!
real 195.56
user 185.51
sys 9.71

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/251625/ft1_filtered_4FGL_J0809.8+0507_daily_bin599.fits scfile=/scratch/kocevski/251625/ft2_4FGL_J0809.8+0507_daily_bin599.fits outfile=/scratch/kocevski/251625/cmap_394588801_394848001_4FGL_J0809.8+0507_daily_bin599.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.69
user 0.38
sys 4.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251625/ft1_filtered_4FGL_J0809.8+0507_daily_bin599.fits scfile=/scratch/kocevski/251625/ft2_4FGL_J0809.8+0507_daily_bin599.fits outfile=/scratch/kocevski/251625/cmap_HighResolution_394588801_394848001_4FGL_J0809.8+0507_daily_bin599.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.70
user 0.39
sys 4.29

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74466E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.053       1.0000         .10000E-03   10000.    
     3 'norm      '    9.0952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4254       1.0000         .10000E-03   10000.    
     6 'norm      '    8.5264       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.273       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12183E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0966       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5407       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9778       1.0000         .10000E-03   10000.    
    13 'norm      '    .31700       1.0000         .10000E-03   10000.    
    14 'norm      '    .98422E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.908       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8043       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2764       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.3630       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .66114       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2485       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=   7168.680     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     2927 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    223.82        .41889E-03** at limit **
   2  Prefactor     31.069        39.925        .71902E-04   -.12333E-04
   3  norm          9.0956        2.6907        .70688E-04   -.92960E-04
   4  Prefactor     .10000E-03    11.442        .18142E-02** at limit **
   5  Prefactor     1.4253        3.5416        .23532E-03   -.61695E-04
   6  norm          8.5258        12.022        .13728E-03   -.14409E-04
   7  Prefactor     10.274        10.282        .12501E-03    .16279E-04
   8  Prefactor     .10000E-03    107.71        .18142E-02** at limit **
   9  Prefactor     3.3019        6.2830        .22278E-03   -.16075E-04
  10  Prefactor     3.1311        175.14        .23045E-03   -.33397E-04
  11  norm          4.5387        8.5592        .18892E-03   -.81238E-05
  12  norm          1.9777        1.7803        .10379E-03   -.55423E-04
  13  norm          .19126        31.364        .96525E-01    .21522E-03
  14  norm          .10682        20.970        .22468E-02   -.88961E-03
  15  Prefactor     39.935        38.394        .63450E-04   -.14334E-05
  16  Prefactor     1.8032        34.030        .31115E-03   -.10377E-04
  17  norm          3.2764        1.2075        .53771E-04   -.19874E-03
  18  norm          4.6865        6.7063        .18587E-03   -.91933E-04
  19  Prefactor     8.3667        22.660        .13863E-03    .20339E-04
  20  Normalizat    .66107        .24050        .37242E-03   -.66151E-04
  21  Prefactor     1.2486        .15950        .19704E-03   -.19725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.0687
  norm       = 9.09561
  Prefactor  = 0.0001
  Prefactor  = 1.42527
  norm       = 8.52576
  Prefactor  = 10.2738
  Prefactor  = 0.000100001
  Prefactor  = 3.30185
  Prefactor  = 3.13106
  norm       = 4.5387
  norm       = 1.97774
  norm       = 0.191261
  norm       = 0.106819
  Prefactor  = 39.9353
  Prefactor  = 1.80316
  norm       = 3.27636
  norm       = 4.68653
  Prefactor  = 8.36673
  Normalizat = 0.661067
  Prefactor  = 1.2486
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.680     FROM HESSE     STATUS=OK           307 CALLS     3234 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    223.83        .83777E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.069        39.912        .28761E-05   -1.4593    
   3  norm          9.0956        2.6903        .28275E-05   -1.5105    
   4  Prefactor     .10000E-03    11.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4253        3.5399        .94126E-05   -1.5469    
   6  norm          8.5258        12.021        .54913E-05   -1.5124    
   7  Prefactor     10.274        10.282        .50004E-05   -1.5067    
   8  Prefactor     .10000E-03    107.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3019        6.2822        .89113E-05   -1.5345    
  10  Prefactor     3.1311        166.71        .92182E-05   -1.5354    
  11  norm          4.5387        8.5536        .75569E-05   -1.5282    
  12  norm          1.9777        1.7802        .41517E-05   -1.5427    
  13  norm          .19126        26.194        .10659       -1.5621    
  14  norm          .10682        21.149        .89872E-04   -1.5643    
  15  Prefactor     39.935        38.375        .25380E-05   -1.4443    
  16  Prefactor     1.8032        33.978        .12446E-04   -1.5439    
  17  norm          3.2764        1.2075        .21509E-05   -1.5346    
  18  norm          4.6865        6.7057        .74346E-05   -1.5275    
  19  Prefactor     8.3667        22.659        .55450E-05   -1.5129    
  20  Normalizat    .66107        .24041        .14897E-04   -1.0545    
  21  Prefactor     1.2486        .15953        .39408E-04   -.84849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41506e-09
Minuit parameter uncertainties:
  1  0.00019573
  2  39.9463
  3  2.69029
  4  1.63306e-05
  5  3.54044
  6  12.0245
  7  10.2835
  8  0.000630058
  9  6.28342
  10  45.8277
  11  8.55585
  12  1.78025
  13  4.47736
  14  3.00573
  15  38.399
  16  15.6645
  17  1.20749
  18  6.70682
  19  22.6819
  20  0.240795
  21  0.159594
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.913e-01  4.477e+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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.249e+00  1.596e-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:  6.611e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251625/likelihoodResults_394588801_394848001_4FGL_J0809.8+0507_daily_bin599.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) = 7168.66530051
delta logL = 0.0145216297278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7168.59973309
delta logL = 0.0800890441787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9202       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9888       1.0000          .0000       5.0000    
     3 'Normalizat'    .63199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2599       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7168.592     FROM MIGRAD    STATUS=FAILED       120 CALLS      292 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9530        434.85        .14994E-02    .58565E-03
   2  alpha         4.5500        4.5658        .14602       -.17400E-05
   3  Normalizat    .63366        .22855        .37989E-03   -.27113E-04
   4  Prefactor     1.2586        .15960        .19634E-03   -.67908E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7168.592     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      379 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9530        434.85        .24927E-03   -1.5364    
   2  alpha         4.5500        4.5658        .50145E-02    .96141    
   3  Normalizat    .63366        .22855        .18436E-03   -1.0657    
   4  Prefactor     1.2586        .15960        .11791E-03   -.84547    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7168.592     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      412 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9530        11.274        .29987E-03   -.15430E-04
   2  alpha         4.5500        4.7669        .58408E-02   -.41459E-06
   3  Normalizat    .63366        .22936        .15196E-04   -.27083E-04
   4  Prefactor     1.2586        .15778        .39268E-04   -.66935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95298
  alpha      = 4.54999
  Normalizat = 0.633658
  Prefactor  = 1.25859
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.592     FROM HESSE     STATUS=OK            23 CALLS      435 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9530        10.860        .11995E-04   -1.5364    
   2  alpha         4.5500        4.7496        .23363E-03    .96141    
   3  Normalizat    .63366        .22967        .30391E-05   -1.0657    
   4  Prefactor     1.2586        .15790        .78537E-05   -.84547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85538e-12
Minuit parameter uncertainties:
  1  10.8668
  2  3.33463
  3  0.230017
  4  0.157963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251625': 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) = 7168.59187772
delta logL = 0.0879444133143

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.953e+00  1.087e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.550e+00  3.335e+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.259e+00  1.580e-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:  6.337e-01  2.300e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/251625/cmap_HighResolution_394588801_394848001_4FGL_J0809.8+0507_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-08-29 09:11:36.300951', job_id='251625', GAL2='1.26', fit_tolerance='1e-08', EG2='0.63', EG='0.66', time_epoch_completed='1630253496.3', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='8.79e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='599' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:11:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 251625: <4FGL_J0809.8+0507_daily_bin599> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin599> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:37 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:55:39 2021
Terminated at Sun Aug 29 09:11:38 2021
Results reported at Sun Aug 29 09:11:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin599 122.453 5.1313 394588801 394848001 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 :                                   845.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

