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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin527
RA = 122.453, Dec = 5.1313
tmin = 375926401, tmax = 376185601
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='251510', job_status='RUN', time_executed='2021-08-29 08:59:34.956864', time_epoch_executed='1630252774.96' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251510/ft1_4FGL_J0809.8+0507_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251510/ft2_4FGL_J0809.8+0507_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251510/ft1_4FGL_J0809.8+0507_daily_bin527.fits outfile=/scratch/kocevski/251510/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin527.fits ra=122.453 dec=5.1313 rad=12.0 tmin=375926401.0 tmax=376185601.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.41
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251510/ft2_4FGL_J0809.8+0507_daily_bin527.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/251510/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin527.fits evtable="EVENTS" outfile="/scratch/kocevski/251510/ft1_filtered_4FGL_J0809.8+0507_daily_bin527.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251510/ft1_filtered_4FGL_J0809.8+0507_daily_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/251510/ft2_4FGL_J0809.8+0507_daily_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/251510/ltcube_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.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/251510/ft2_4FGL_J0809.8+0507_daily_bin527.fits
.....................!
real 11.82
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251510/ft1_filtered_4FGL_J0809.8+0507_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/251510/ft2_4FGL_J0809.8+0507_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/251510/ltcube_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.fits outfile=/scratch/kocevski/251510/expmap_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.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/251510/ltcube_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.fits
.....................!
real 192.16
user 187.68
sys 4.11

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/251510/ft1_filtered_4FGL_J0809.8+0507_daily_bin527.fits scfile=/scratch/kocevski/251510/ft2_4FGL_J0809.8+0507_daily_bin527.fits outfile=/scratch/kocevski/251510/cmap_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251510/ft1_filtered_4FGL_J0809.8+0507_daily_bin527.fits scfile=/scratch/kocevski/251510/ft2_4FGL_J0809.8+0507_daily_bin527.fits outfile=/scratch/kocevski/251510/cmap_HighResolution_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4967       1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.814       1.0000         .10000E-03   10000.    
     8 'Prefactor '    90.336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .77767E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3850       1.0000         .10000E-03   10000.    
    13 'norm      '    .25762       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2562       1.0000         .10000E-03   10000.    
    18 'norm      '    6.4396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14224E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2172       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90159       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=   7676.669     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     3007 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.231        .18142E-02** at limit **
   2  Prefactor     .10000E-03    76.722        .18142E-02** at limit **
   3  norm          7.8084        2.3806        .70945E-04   -.29325E-03
   4  Prefactor     24.384        29.413        .81104E-04   -.22989E-04
   5  Prefactor     4.5033        4.3477        .15941E-03   -.26395E-03
   6  norm          .10000E-03    13.002        .18142E-02** at limit **
   7  Prefactor     12.828        17.128        .11190E-03   -.24424E-03
   8  Prefactor     90.115        125.34        .21139E-03    .33882E-05
   9  Prefactor     19.077        10.457        .91613E-04   -.15350E-03
  10  Prefactor     .10000E-03    11.523        .18142E-02** at limit **
  11  norm          .21413        87.036        .37536E-02   -.39337E-04
  12  norm          3.3848        2.5114        .11488E-03   -.15428E-03
  13  norm          .30697        238.90        .52121E-02   -.15634E-03
  14  norm          .10000E-03    1.7276        .11191E-02** at limit **
  15  Prefactor     .10000E-03    19.663        .18142E-02** at limit **
  16  Prefactor     .10000E-03    21.550        .18142E-02** at limit **
  17  norm          1.2567        .82845        .62702E-04   -.23009E-03
  18  norm          6.4416        5.3452        .15816E-03   -.45357E-04
  19  Prefactor     .10085E-03    20.705        .12827    ** at limit **
  20  Normalizat    1.2164        .23299        .28862E-03   -.45737E-03
  21  Prefactor     .90184        .15271        .22381E-03   -.45478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.80836
  Prefactor  = 24.384
  Prefactor  = 4.50326
  norm       = 0.000100001
  Prefactor  = 12.8278
  Prefactor  = 90.1147
  Prefactor  = 19.0774
  Prefactor  = 0.0001
  norm       = 0.214134
  norm       = 3.38477
  norm       = 0.30697
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25668
  norm       = 6.44159
  Prefactor  = 0.000100847
  Normalizat = 1.21637
  Prefactor  = 0.901837
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.669     FROM HESSE     STATUS=OK           311 CALLS     3318 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    76.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8084        2.3803        .28378E-05   -1.5149    
   4  Prefactor     24.384        29.416        .32441E-05   -1.4720    
   5  Prefactor     4.5033        4.3447        .63763E-05   -1.5284    
   6  norm          .10000E-03    13.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.828        17.123        .44760E-05   -1.4991    
   8  Prefactor     90.115        125.34        .84555E-05   -1.3807    
   9  Prefactor     19.077        10.402        .36645E-05   -1.4834    
  10  Prefactor     .10000E-03    11.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .21413        87.913        .15014E-03   -1.5615    
  12  norm          3.3848        2.5112        .45952E-05   -1.5340    
  13  norm          .30697        245.85        .20849E-02   -1.5597    
  14  norm          .10000E-03    1.7278        .22382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2567        .82834        .25081E-05   -1.5484    
  18  norm          6.4416        5.3446        .63264E-05   -1.5200    
  19  Prefactor     .10085E-03    20.511        .12932       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2164        .23241        .57723E-04   -.86099    
  21  Prefactor     .90184        .15284        .44762E-04   -.96077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22138e-09
Minuit parameter uncertainties:
  1  2.49068e-05
  2  0.000310548
  3  2.3803
  4  29.4331
  5  4.34499
  6  0.000161335
  7  17.1294
  8  125.71
  9  10.4032
  10  6.42795e-06
  11  8.6884
  12  2.51132
  13  17.4438
  14  6.9797e-06
  15  7.01173e-06
  16  0.000127887
  17  0.828349
  18  5.34501
  19  0.00833953
  20  0.232603
  21  0.152909
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.018e-01  1.529e-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.216e+00  2.326e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251510/likelihoodResults_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.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) = 7676.66849844
delta logL = 9.34237650654e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7676.5752994
delta logL = 0.0932924620774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5917       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3576       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89692       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=   7676.575     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      284 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5867        17.586        .15630E-03   -.20780E-03
   2  alpha         1.3581        3.1736        .81700E-02    .11142E-04
   3  Normalizat    1.2177        .21823        .28847E-03    .10081E-03
   4  Prefactor     .89686        .14927        .22435E-03    .14482E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.58666
  alpha      = 1.35808
  Normalizat = 1.21768
  Prefactor  = 0.896862
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.575     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5867        17.661        .62521E-05   -1.5195    
   2  alpha         1.3581        3.1740        .32680E-03   -.47436    
   3  Normalizat    1.2177        .21843        .11539E-04   -.86058    
   4  Prefactor     .89686        .14941        .89741E-05   -.96251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46569e-10
Minuit parameter uncertainties:
  1  17.6752
  2  2.23954
  3  0.218593
  4  0.149474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251510': 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) = 7676.57529921
delta logL = 0.0932926570267

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  6.587e+00  1.768e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.358e+00  2.240e+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.969e-01  1.495e-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.218e+00  2.186e-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/251510/cmap_HighResolution_375926401_376185601_4FGL_J0809.8+0507_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-08-29 09:12:03.545200', job_id='251510', GAL2='0.90', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630253523.55', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.33e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='527' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 251510: <4FGL_J0809.8+0507_daily_bin527> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin527> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:26 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:27 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:27 2021
Terminated at Sun Aug 29 09:12:04 2021
Results reported at Sun Aug 29 09:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin527 122.453 5.1313 375926401 376185601 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 :                                   748.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

