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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin205
RA = 122.453, Dec = 5.1313
tmin = 292464001, tmax = 292723201
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='248894', job_status='RUN', time_executed='2021-08-29 08:49:08.697851', time_epoch_executed='1630252148.7' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248894/ft1_4FGL_J0809.8+0507_daily_bin205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248894/ft2_4FGL_J0809.8+0507_daily_bin205.fits


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

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

Done.
real 4.51
user 3.38
sys 1.11

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248894/ft1_filtered_4FGL_J0809.8+0507_daily_bin205.fits" evtable="EVENTS" scfile=/scratch/kocevski/248894/ft2_4FGL_J0809.8+0507_daily_bin205.fits sctable="SC_DATA" outfile=/scratch/kocevski/248894/ltcube_292464001_292723201_4FGL_J0809.8+0507_daily_bin205.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/248894/ft2_4FGL_J0809.8+0507_daily_bin205.fits
.....................!
real 13.08
user 11.73
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248894/ft1_filtered_4FGL_J0809.8+0507_daily_bin205.fits evtable="EVENTS" scfile=/scratch/kocevski/248894/ft2_4FGL_J0809.8+0507_daily_bin205.fits sctable="SC_DATA" expcube=/scratch/kocevski/248894/ltcube_292464001_292723201_4FGL_J0809.8+0507_daily_bin205.fits outfile=/scratch/kocevski/248894/expmap_292464001_292723201_4FGL_J0809.8+0507_daily_bin205.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/248894/ltcube_292464001_292723201_4FGL_J0809.8+0507_daily_bin205.fits
.....................!
real 192.50
user 186.82
sys 5.35

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

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

This is gtbin version HEAD
real 1.43
user 0.35
sys 1.05

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

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

This is gtbin version HEAD
real 1.41
user 0.36
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.642       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2598       1.0000         .10000E-03   10000.    
     6 'norm      '    5.1480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .68375       1.0000         .10000E-03   10000.    
    13 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.585       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.228       1.0000         .10000E-03   10000.    
    17 'norm      '    .63450       1.0000         .10000E-03   10000.    
    18 'norm      '    .20415E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6158       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4158       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77808       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=   6594.543     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2202 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.621        37.270        .12562E-05   -.67182E-05
   2  Prefactor     44.640        40.444       -.10354E-06   -.26325E-04
   3  norm          6.7143        2.3561        .49096E-07   -.18009E-03
   4  Prefactor     20.593        19.883        .22108E-06   -.17933E-04
   5  Prefactor     7.2585        4.0888       -.15079E-06   -.30378E-04
   6  norm          5.1443        13.994        .39443E-07    .48032E-05
   7  Prefactor     .10000E-03    6.7745       -.32222E-06** at limit **
   8  Prefactor     .10000E-03    52.903        .13095E-06** at limit **
   9  Prefactor     .10000E-03    4.2812        .11452E-06** at limit **
  10  Prefactor     .10000E-03    13.640       -.86134E-06** at limit **
  11  norm          .10000E-03    4.1113        .16372E-06** at limit **
  12  norm          .68463        1.6923        .16945E-05    .14233E-02
  13  norm          .10000E-03    8.1788       -.14068E-05** at limit **
  14  norm          .10000E-03    3.4916        .54044E-07** at limit **
  15  Prefactor     11.517        37.969       -.33991E-05   -.14003E-03
  16  Prefactor     27.225        17.833       -.53758E-06   -.11747E-03
  17  norm          .63330        1.0268        .59912E-07   -.21504E-03
  18  norm          .10012E-03    7.1410        .38080E-05** at limit **
  19  Prefactor     8.6045        33.369       -.58681E-06   -.22703E-04
  20  Normalizat    1.4163        .24105        .55992E-05   -.44790E-03
  21  Prefactor     .77773        .15122       -.54348E-05   -.51749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6212
  Prefactor  = 44.6397
  norm       = 6.71433
  Prefactor  = 20.5934
  Prefactor  = 7.25849
  norm       = 5.14433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.684628
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5166
  Prefactor  = 27.225
  norm       = 0.633304
  norm       = 0.000100117
  Prefactor  = 8.60446
  Normalizat = 1.41628
  Prefactor  = 0.777732
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.543     FROM HESSE     STATUS=OK           321 CALLS     2523 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.621        37.305        .10853E-03   -1.4970    
   2  Prefactor     44.640        40.410        .60005E-04   -1.4371    
   3  norm          6.7143        2.3555        .69908E-04   -1.5190    
   4  Prefactor     20.593        19.888        .88268E-04   -1.4800    
   5  Prefactor     7.2585        4.0884        .11559E-03   -1.5169    
   6  norm          5.1443        13.961        .17719E-03   -1.5254    
   7  Prefactor     .10000E-03    6.7888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3068        .16399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.1218        .16080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .68463        1.7137        .17156E-02   -1.5542    
  13  norm          .10000E-03    8.2294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5820        .29618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.517        38.268        .11770E-03   -1.5029    
  16  Prefactor     27.225        17.820        .76774E-04   -1.4664    
  17  norm          .63330        .93140        .98087E-03   -1.5549    
  18  norm          .10012E-03    18.280        .33096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6045        33.387        .13656E-03   -1.5121    
  20  Normalizat    1.4163        .24866        .26905E-03   -.80159    
  21  Prefactor     .77773        .15922        .23498E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16293e-08
Minuit parameter uncertainties:
  1  37.3684
  2  40.4346
  3  2.35556
  4  19.894
  5  4.0886
  6  13.9701
  7  2.83872e-05
  8  8.02586e-05
  9  1.38854e-06
  10  0.000124726
  11  7.83264e-06
  12  1.71386
  13  0.000127006
  14  4.983e-06
  15  38.3499
  16  17.8233
  17  0.931425
  18  0.00292903
  19  33.4599
  20  0.24887
  21  0.15931
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.270e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.777e-01  1.593e-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.416e+00  2.489e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248894/likelihoodResults_292464001_292723201_4FGL_J0809.8+0507_daily_bin205.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) = 6594.54395502
delta logL = -0.000577272095143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6594.54337775
delta logL = -7.35599314794e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8097       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77775       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=   6594.543     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      228 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    836.25        .18142E-01** at limit **
   2  alpha         2.1739        3.5865        .83115E-01    .41035E-09
   3  Normalizat    1.4163        .59338E-01    .26904E-03   -.21128E-06
   4  Prefactor     .77773        .39930E-01    .23499E-03   -.30963E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.17388
  Normalizat = 1.41628
  Prefactor  = 0.777732
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.543     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.8517        .23549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1739        2.6987        .33246E-02   -.13082    
   3  Normalizat    1.4163        .22845        .10762E-04   -.80159    
   4  Prefactor     .77773        .15385        .93994E-05   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24541e-13
Minuit parameter uncertainties:
  1  4.21132e-06
  2  691.979
  3  0.228611
  4  0.15394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248894': 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) = 6594.54337732
delta logL = 4.24805875809e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.211e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.174e+00  6.920e+02  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:  7.777e-01  1.539e-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.416e+00  2.286e-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/248894/cmap_HighResolution_292464001_292723201_4FGL_J0809.8+0507_daily_bin205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-05', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-08-29 08:59:47.518810', job_id='248894', GAL2='0.78', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630252787.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='205' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:59:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 248894: <4FGL_J0809.8+0507_daily_bin205> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin205 122.453 5.1313 292464001 292723201 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 :                                   652.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

