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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin235
RA = 122.453, Dec = 5.1313
tmin = 300240001, tmax = 300499201
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='248938', job_status='RUN', time_executed='2021-08-29 08:49:07.225676', time_epoch_executed='1630252147.23' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248938/ft1_4FGL_J0809.8+0507_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248938/ft2_4FGL_J0809.8+0507_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248938/ft1_4FGL_J0809.8+0507_daily_bin235.fits outfile=/scratch/kocevski/248938/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin235.fits ra=122.453 dec=5.1313 rad=12.0 tmin=300240001.0 tmax=300499201.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.00
user 3.17
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248938/ft2_4FGL_J0809.8+0507_daily_bin235.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/248938/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin235.fits evtable="EVENTS" outfile="/scratch/kocevski/248938/ft1_filtered_4FGL_J0809.8+0507_daily_bin235.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.08
user 0.32
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248938/ft1_filtered_4FGL_J0809.8+0507_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/248938/ft2_4FGL_J0809.8+0507_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/248938/ltcube_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.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/248938/ft2_4FGL_J0809.8+0507_daily_bin235.fits
.....................!
real 12.24
user 11.32
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248938/ft1_filtered_4FGL_J0809.8+0507_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/248938/ft2_4FGL_J0809.8+0507_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/248938/ltcube_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.fits outfile=/scratch/kocevski/248938/expmap_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.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/248938/ltcube_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.fits
.....................!
real 192.31
user 187.10
sys 4.85

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/248938/ft1_filtered_4FGL_J0809.8+0507_daily_bin235.fits scfile=/scratch/kocevski/248938/ft2_4FGL_J0809.8+0507_daily_bin235.fits outfile=/scratch/kocevski/248938/cmap_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.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.13
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248938/ft1_filtered_4FGL_J0809.8+0507_daily_bin235.fits scfile=/scratch/kocevski/248938/ft2_4FGL_J0809.8+0507_daily_bin235.fits outfile=/scratch/kocevski/248938/cmap_HighResolution_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.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.15
user 0.37
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.696       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24919E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9535       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    172.93       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.320       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7603       1.0000         .10000E-03   10000.    
    13 'norm      '    38.902       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5841       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83227       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2425       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=   6132.132     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     2847 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.690        108.07        .10823E-03   -.18277E-04
   2  Prefactor     .10000E-03    51.128        .13765    ** at limit **
   3  norm          4.5865        2.4082        .82899E-04   -.32337E-03
   4  Prefactor     14.258        38.463        .10600E-03    .12334E-04
   5  Prefactor     2.9552        3.9068        .16364E-03   -.35432E-04
   6  norm          .10000E-03    7.1855        .18142E-02** at limit **
   7  Prefactor     7.6485        7.4748        .14500E-03    .39987E-05
   8  Prefactor     172.77        163.99        .15342E-03    .37214E-04
   9  Prefactor     5.5732        5.6621        .17018E-03    .14230E-04
  10  Prefactor     52.322        44.323        .55448E-04   -.17018E-04
  11  norm          .10000E-03    3.1297        .13525E-02** at limit **
  12  norm          3.7604        3.0156        .11766E-03   -.71115E-04
  13  norm          38.902        29.096        .64262E-04   -.10084E-04
  14  norm          2.6843        3.2757        .15186E-03   -.35858E-04
  15  Prefactor     .10000E-03    12.765        .18142E-02** at limit **
  16  Prefactor     .10000E-03    4.4563        .16132E-02** at limit **
  17  norm          3.5842        1.3297        .52759E-04   -.47406E-04
  18  norm          .10000E-03    14.046        .36285E-03** at limit **
  19  Prefactor     .10000E-03    14.279        .18142E-02** at limit **
  20  Normalizat    .83230        .25262        .34672E-03   -.18749E-03
  21  Prefactor     1.2425        .18268        .20706E-03   -.72289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6901
  Prefactor  = 0.000100004
  norm       = 4.58647
  Prefactor  = 14.2583
  Prefactor  = 2.95515
  norm       = 0.0001
  Prefactor  = 7.64854
  Prefactor  = 172.766
  Prefactor  = 5.57318
  Prefactor  = 52.3222
  norm       = 0.0001
  norm       = 3.76043
  norm       = 38.9017
  norm       = 2.68431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58418
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.832299
  Prefactor  = 1.24245
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.132     FROM HESSE     STATUS=OK           305 CALLS     3152 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.690        107.81        .43293E-05   -1.4968    
   2  Prefactor     .10000E-03    52.194        .13591       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5865        2.4081        .33159E-05   -1.5280    
   4  Prefactor     14.258        38.452        .42399E-05   -1.4953    
   5  Prefactor     2.9552        3.9062        .65456E-05   -1.5364    
   6  norm          .10000E-03    7.1861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6485        7.4747        .58000E-05   -1.5155    
   8  Prefactor     172.77        163.99        .30684E-04   -1.3072    
   9  Prefactor     5.5732        5.6619        .68070E-05   -1.5236    
  10  Prefactor     52.322        44.337        .22179E-05   -1.4260    
  11  norm          .10000E-03    3.1297        .27049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7604        3.0155        .47064E-05   -1.5320    
  13  norm          38.902        29.103        .25705E-05   -1.4460    
  14  norm          2.6843        3.2757        .60746E-05   -1.5380    
  15  Prefactor     .10000E-03    12.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4565        .32263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5842        1.3297        .21104E-05   -1.5329    
  18  norm          .10000E-03    14.047        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .83230        .25276        .13869E-04   -.98882    
  21  Prefactor     1.2425        .18280        .41412E-04   -.85035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63713e-10
Minuit parameter uncertainties:
  1  77.0282
  2  0.000946602
  3  2.40818
  4  38.5186
  5  3.9065
  6  3.19043e-06
  7  7.47557
  8  164.425
  9  5.66249
  10  44.365
  11  1.99856e-06
  12  3.01566
  13  29.114
  14  3.27588
  15  6.53428e-06
  16  8.0535e-07
  17  1.32974
  18  8.81905e-06
  19  2.20425e-06
  20  0.253119
  21  0.182889
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.890e+01  2.911e+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:  1.242e+00  1.829e-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:  8.323e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.23e-05

TS (Fixed Index): 3.05
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248938/likelihoodResults_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.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) = 6130.08252102
delta logL = 2.04900987146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6130.05139483
delta logL = 2.08013606523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.491       1.0000         .10000E-03   10000.    
     2 'alpha     '    .55262       1.0000          .0000       5.0000    
     3 'Normalizat'    .89191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2105       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=   6130.051     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.491        21.185        .17850E-02    .78786E-03
   2  alpha         .55260        .75492        .50000        .12767E-04
   3  Normalizat    .89189        .21187        .75958E-01    .20155E-04
   4  Prefactor     1.2105        .15171        .34387E-01    .39374E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 31.4907
  alpha      = 0.552598
  Normalizat = 0.891894
  Prefactor  = 1.21052
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.051     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.491        27.523        .71402E-04   -1.4585    
   2  alpha         .55260        .84260        .33573E-01   -.89301    
   3  Normalizat    .89189        .23672        .33618E-03   -.96746    
   4  Prefactor     1.2105        .16991        .20904E-03   -.86008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56377e-09
Minuit parameter uncertainties:
  1  27.5338
  2  0.88958
  3  0.236994
  4  0.169982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248938': 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) = 6130.05139482
delta logL = 2.08013607588

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.211e+00  1.700e-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:  8.919e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 122.453 5.131
Photon Index (Free Index): 0.55 +/- 0.89
Photon Flux (Free Index): 2.83e-08 +/- 2.00e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.33e-05

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/248938/cmap_HighResolution_300240001_300499201_4FGL_J0809.8+0507_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-05', comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='2.22e-05', photon_flux_error='4.67e-08', dlogl='2.08e+00', energy_flux='1.64e-05', photon_flux2='2.83e-08', job_status='DONE', time_completed='2021-08-29 08:59:54.484829', photon_index_error2='0.89', photon_index2='0.55', ts='3.05', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.33e-05', EG='0.83', time_epoch_completed='1630252794.48', return_code='0', job_id='248938', GAL2='1.21', EG2='0.89', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.00e-08', ts2='7.24', photon_index='2.82' WHERE bin_id='235' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:59:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 248938: <4FGL_J0809.8+0507_daily_bin235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin235 122.453 5.1313 300240001 300499201 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 :                                   655.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            842 sec.

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

