/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 199 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_bin322
RA = 122.453, Dec = 5.1313
tmin = 322790401, tmax = 323049601
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='250127', job_status='RUN', time_executed='2021-08-29 08:54:30.913517', time_epoch_executed='1630252470.91' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250127/ft1_4FGL_J0809.8+0507_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250127/ft2_4FGL_J0809.8+0507_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250127/ft1_4FGL_J0809.8+0507_daily_bin322.fits outfile=/scratch/kocevski/250127/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin322.fits ra=122.453 dec=5.1313 rad=12.0 tmin=322790401.0 tmax=323049601.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 13.62
user 11.54
sys 2.03

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250127/ft1_filtered_4FGL_J0809.8+0507_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/250127/ft2_4FGL_J0809.8+0507_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/250127/ltcube_322790401_323049601_4FGL_J0809.8+0507_daily_bin322.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/250127/ft2_4FGL_J0809.8+0507_daily_bin322.fits
.....................!
real 13.56
user 11.31
sys 2.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250127/ft1_filtered_4FGL_J0809.8+0507_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/250127/ft2_4FGL_J0809.8+0507_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/250127/ltcube_322790401_323049601_4FGL_J0809.8+0507_daily_bin322.fits outfile=/scratch/kocevski/250127/expmap_322790401_323049601_4FGL_J0809.8+0507_daily_bin322.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/250127/ltcube_322790401_323049601_4FGL_J0809.8+0507_daily_bin322.fits
.....................!
real 192.39
user 185.08
sys 6.92

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

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

This is gtbin version HEAD
real 2.21
user 0.37
sys 1.83

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

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

This is gtbin version HEAD
real 2.23
user 0.37
sys 1.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .90441       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4266       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.095       1.0000         .10000E-03   10000.    
     8 'Prefactor '    123.76       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.328       1.0000         .10000E-03   10000.    
    10 'Prefactor '    96.351       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4690       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.971       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73492       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97364       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=   2090.336     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2168 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    302.74       -.34907E-05** at limit **
   2  Prefactor     .10000E-03    54.431        .94703E-05** at limit **
   3  norm          .90294        4.1531        .81114E-07   -.69769E-04
   4  Prefactor     .10000E-03    41.760        .15118E-05** at limit **
   5  Prefactor     3.4265        5.8506        .10174E-06   -.32488E-04
   6  norm          .10000E-03    41.580        .20874E-05** at limit **
   7  Prefactor     32.097        27.301       -.15159E-05   -.23335E-04
   8  Prefactor     123.77        184.37        .10273E-04    .55602E-05
   9  Prefactor     13.327        23.368       -.45943E-06   -.31237E-05
  10  Prefactor     96.364        88.722        .72164E-05    .23098E-04
  11  norm          .10000E-03    11.481        .56690E-07** at limit **
  12  norm          .10000E-03    8.0943       -.56475E-07** at limit **
  13  norm          .10000E-03    23.723       -.19632E-06** at limit **
  14  norm          1.6066        2.7277        .47728E-06   -.90078E-03
  15  Prefactor     .10000E-03    49.961       -.12758E-04** at limit **
  16  Prefactor     .10000E-03    12.882        .26375E-07** at limit **
  17  norm          1.4689        2.4625        .10051E-06   -.24811E-04
  18  norm          .10000E-03    9.4346        .11451E-06** at limit **
  19  Prefactor     25.974        53.321        .24990E-05    .10141E-05
  20  Normalizat    .73493        .34352       -.29589E-05    .16061E-04
  21  Prefactor     .97366        .22030        .16911E-06   -.35470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.902943
  Prefactor  = 0.0001
  Prefactor  = 3.42652
  norm       = 0.0001
  Prefactor  = 32.0972
  Prefactor  = 123.771
  Prefactor  = 13.327
  Prefactor  = 96.3641
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.60662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46887
  norm       = 0.0001
  Prefactor  = 25.9736
  Normalizat = 0.734927
  Prefactor  = 0.973656
 **********
 **   18 **HESSE 
 **********

 FCN=   2090.336     FROM HESSE     STATUS=OK           311 CALLS     2479 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    303.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .90294        4.1149        .17355E-03   -1.5518    
   4  Prefactor     .10000E-03    41.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4265        5.8287        .12913E-03   -1.5338    
   6  norm          .10000E-03    41.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.097        27.298        .70729E-04   -1.4574    
   8  Prefactor     123.77        184.10        .36181E-04   -1.3478    
   9  Prefactor     13.327        23.346        .10972E-03   -1.4978    
  10  Prefactor     96.364        92.241        .40949E-04   -1.3741    
  11  norm          .10000E-03    11.495        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.1457        .12673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6066        8.4307        .12392E-02   -1.5454    
  15  Prefactor     .10000E-03    50.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.896        .16028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4689        2.4423        .83179E-04   -1.5466    
  18  norm          .10000E-03    9.4632        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.974        53.407        .78608E-04   -1.4688    
  20  Normalizat    .73493        .39207        .31432E-03   -1.0253    
  21  Prefactor     .97366        .25430        .19487E-03   -.93613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77525e-09
Minuit parameter uncertainties:
  1  2.3887e-05
  2  0.000123518
  3  3.85537
  4  2.00442e-05
  5  5.82967
  6  0.000122714
  7  27.3082
  8  184.96
  9  23.3618
  10  92.3785
  11  6.01914e-06
  12  1.48194e-05
  13  4.93772e-05
  14  7.3621
  15  0.000218911
  16  4.93473e-06
  17  2.44243
  18  6.62419e-06
  19  53.5053
  20  0.393582
  21  0.254609
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.938e-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:  9.737e-01  2.546e-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:  7.349e-01  3.936e-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: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250127/likelihoodResults_322790401_323049601_4FGL_J0809.8+0507_daily_bin322.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) = 2090.33657484
delta logL = -0.000200386584311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2090.3363853
delta logL = -1.08459057628e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25159E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    .26959       1.0000          .0000       5.0000    
     3 'Normalizat'    .73502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97364       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=   2090.336     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      193 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7831        .10731E-01** at limit **
   2  alpha         .26973        2.5391        .50000       -.49481E-05
   3  Normalizat    .73493        .30230        .71023E-01    .84346E-05
   4  Prefactor     .97366        .21501        .45937E-01   -.19735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 0.269727
  Normalizat = 0.734926
  Prefactor  = 0.973656
 **********
 **   18 **HESSE 
 **********

 FCN=   2090.336     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7355        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .26973        2.5374        .50000       -1.1020    
   3  Normalizat    .73493        .34434        .31432E-03   -1.0253    
   4  Prefactor     .97366        .24542        .19487E-03   -.93613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75439e-11
Minuit parameter uncertainties:
  1  7.53206e-06
  2  1.1296
  3  0.345357
  4  0.245697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250127': 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) = 2090.33637747
delta logL = -3.01106501865e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  7.532e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.697e-01  1.130e+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.737e-01  2.457e-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:  7.349e-01  3.454e-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/250127/cmap_HighResolution_322790401_323049601_4FGL_J0809.8+0507_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-08-29 09:02:23.060651', job_id='250127', GAL2='0.97', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630252943.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-3.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='322' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:02:23 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin322 122.453 5.1313 322790401 323049601 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 :                                   496.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             208.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

