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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin434
RA = 122.453, Dec = 5.1313
tmin = 351820801, tmax = 352080001
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='250309', job_status='RUN', time_executed='2021-08-29 08:52:54.563621', time_epoch_executed='1630252374.56' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250309

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250309/ft1_4FGL_J0809.8+0507_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250309/ft2_4FGL_J0809.8+0507_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250309/ft1_4FGL_J0809.8+0507_daily_bin434.fits outfile=/scratch/kocevski/250309/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin434.fits ra=122.453 dec=5.1313 rad=12.0 tmin=351820801.0 tmax=352080001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.92
user 3.41
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250309/ft2_4FGL_J0809.8+0507_daily_bin434.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/250309/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin434.fits evtable="EVENTS" outfile="/scratch/kocevski/250309/ft1_filtered_4FGL_J0809.8+0507_daily_bin434.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.77
user 0.34
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250309/ft1_filtered_4FGL_J0809.8+0507_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/250309/ft2_4FGL_J0809.8+0507_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/250309/ltcube_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.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/250309/ft2_4FGL_J0809.8+0507_daily_bin434.fits
.....................!
real 15.04
user 14.36
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250309/ft1_filtered_4FGL_J0809.8+0507_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/250309/ft2_4FGL_J0809.8+0507_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/250309/ltcube_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.fits outfile=/scratch/kocevski/250309/expmap_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.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/250309/ltcube_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.fits
.....................!
real 190.95
user 185.91
sys 4.66

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/250309/ft1_filtered_4FGL_J0809.8+0507_daily_bin434.fits scfile=/scratch/kocevski/250309/ft2_4FGL_J0809.8+0507_daily_bin434.fits outfile=/scratch/kocevski/250309/cmap_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.453 yref=5.1313 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.80
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250309/ft1_filtered_4FGL_J0809.8+0507_daily_bin434.fits scfile=/scratch/kocevski/250309/ft2_4FGL_J0809.8+0507_daily_bin434.fits outfile=/scratch/kocevski/250309/cmap_HighResolution_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.453 yref=5.1313 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.85
user 0.39
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.498       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3686       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.765       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3116       1.0000         .10000E-03   10000.    
     6 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3509       1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.893       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0376       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32767       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17727E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88783       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=   5631.587     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     2619 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.361        70.794        .25635E-03    .69317E-04
   2  Prefactor     33.518        43.154        .69235E-04    .11658E-04
   3  norm          1.3687        1.6151        .10017E-03   -.69235E-05
   4  Prefactor     19.760        18.316        .90092E-04    .74452E-05
   5  Prefactor     1.3117        1.7550        .11297E-03   -.25562E-04
   6  norm          .10000E-03    18.652        .18142E-02** at limit **
   7  Prefactor     26.007        13.918        .78549E-04    .18381E-04
   8  Prefactor     .10000E-03    38.148        .18142E-02** at limit **
   9  Prefactor     7.3527        9.4813        .14793E-03   -.19981E-05
  10  Prefactor     54.875        36.068        .54140E-04    .52497E-05
  11  norm          .10000E-03    3.8878        .14436E-02** at limit **
  12  norm          2.0381        2.5458        .12937E-03   -.15730E-04
  13  norm          .10000E-03    24.262        .18142E-02** at limit **
  14  norm          5.5639        4.4654        .13692E-03   -.21340E-04
  15  Prefactor     .10000E-03    149.40        .18142E-02** at limit **
  16  Prefactor     .10000E-03    4.1747        .14966E-02** at limit **
  17  norm          .32764        .61133        .21091E-03   -.31145E-03
  18  norm          .10000E-03    2.5345        .11655E-02** at limit **
  19  Prefactor     .86121E-01    23.667        .11168        .10326E-03
  20  Normalizat    1.2274        .24255        .27028E-03    .35669E-04
  21  Prefactor     .88746        .17129        .21800E-03    .77494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.3615
  Prefactor  = 33.5177
  norm       = 1.36867
  Prefactor  = 19.7602
  Prefactor  = 1.31171
  norm       = 0.0001
  Prefactor  = 26.0068
  Prefactor  = 0.0001
  Prefactor  = 7.35271
  Prefactor  = 54.8747
  norm       = 0.0001
  norm       = 2.03808
  norm       = 0.0001
  norm       = 5.56392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.327644
  norm       = 0.0001
  Prefactor  = 0.0861213
  Normalizat = 1.22736
  Prefactor  = 0.887456
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.587     FROM HESSE     STATUS=OK           305 CALLS     2924 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.361        70.798        .10254E-04   -1.4140    
   2  Prefactor     33.518        43.153        .27694E-05   -1.4549    
   3  norm          1.3687        1.6150        .40066E-05   -1.5474    
   4  Prefactor     19.760        18.317        .36037E-05   -1.4819    
   5  Prefactor     1.3117        1.7549        .45186E-05   -1.5479    
   6  norm          .10000E-03    18.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.007        13.918        .31420E-05   -1.4688    
   8  Prefactor     .10000E-03    38.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3527        9.4810        .59173E-05   -1.5166    
  10  Prefactor     54.875        36.091        .21656E-05   -1.4225    
  11  norm          .10000E-03    3.8880        .28872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0381        2.5458        .51748E-05   -1.5422    
  13  norm          .10000E-03    24.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5639        4.4654        .54766E-05   -1.5236    
  15  Prefactor     .10000E-03    149.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1748        .29932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32764        .61126        .84366E-05   -1.5593    
  18  norm          .10000E-03    2.5346        .23310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .86121E-01    23.199        .11347       -1.5649    
  20  Normalizat    1.2274        .24278        .10811E-04   -.85762    
  21  Prefactor     .88746        .17146        .87201E-05   -.96581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4463e-10
Minuit parameter uncertainties:
  1  70.8948
  2  43.1934
  3  1.61505
  4  18.3226
  5  1.75498
  6  1.1256e-05
  7  13.9197
  8  1.22976e-05
  9  9.48293
  10  36.105
  11  2.23783e-06
  12  2.54591
  13  1.97994e-05
  14  4.46568
  15  2.9269e-05
  16  1.77293e-06
  17  0.611275
  18  1.77847e-06
  19  2.82644
  20  0.243007
  21  0.171563
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.980e-05  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.875e-01  1.716e-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.227e+00  2.430e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250309/likelihoodResults_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.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) = 5631.5872519
delta logL = -0.000196372968276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.58705585
delta logL = -3.22328560287e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10970E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8043       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88745       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=   5631.587     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      186 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.473        .90712E-02** at limit **
   2  alpha         2.8150        3.6258        .41543       -.23000E-05
   3  Normalizat    1.2274        .20025        .61109E-01    .19128E-04
   4  Prefactor     .88746        .14061        .44845E-01    .19247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.81502
  Normalizat = 1.22736
  Prefactor  = 0.887456
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.587     FROM HESSE     STATUS=OK            29 CALLS      215 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8150        3.6160        .16617        .12634    
   3  Normalizat    1.2274        .23138        .27028E-03   -.85762    
   4  Prefactor     .88746        .16256        .21801E-03   -.96581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8617e-12
Minuit parameter uncertainties:
  1  3.10746e-05
  2  2.48045
  3  0.231569
  4  0.162648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250309': 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) = 5631.58705552
delta logL = -6.54836185277e-11

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  3.107e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  2.480e+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.875e-01  1.626e-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.227e+00  2.316e-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/250309/cmap_HighResolution_351820801_352080001_4FGL_J0809.8+0507_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-05', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-08-29 09:03:10.962492', job_id='250309', GAL2='0.89', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630252990.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-6.55e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='434' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 250309: <4FGL_J0809.8+0507_daily_bin434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin434 122.453 5.1313 351820801 352080001 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

