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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin135
RA = 122.453, Dec = 5.1313
tmin = 274320001, tmax = 274579201
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='248791', job_status='RUN', time_executed='2021-08-29 08:46:02.553316', time_epoch_executed='1630251962.55' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248791

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248791/ft1_4FGL_J0809.8+0507_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248791/ft2_4FGL_J0809.8+0507_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248791/ft1_4FGL_J0809.8+0507_daily_bin135.fits outfile=/scratch/kocevski/248791/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin135.fits ra=122.453 dec=5.1313 rad=12.0 tmin=274320001.0 tmax=274579201.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.18
user 3.45
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248791/ft2_4FGL_J0809.8+0507_daily_bin135.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/248791/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/248791/ft1_filtered_4FGL_J0809.8+0507_daily_bin135.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.07
user 0.33
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248791/ft1_filtered_4FGL_J0809.8+0507_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/248791/ft2_4FGL_J0809.8+0507_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/248791/ltcube_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.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/248791/ft2_4FGL_J0809.8+0507_daily_bin135.fits
.....................!
real 12.55
user 11.61
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248791/ft1_filtered_4FGL_J0809.8+0507_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/248791/ft2_4FGL_J0809.8+0507_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/248791/ltcube_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.fits outfile=/scratch/kocevski/248791/expmap_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.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/248791/ltcube_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.fits
.....................!
real 190.37
user 184.72
sys 5.26

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/248791/ft1_filtered_4FGL_J0809.8+0507_daily_bin135.fits scfile=/scratch/kocevski/248791/ft2_4FGL_J0809.8+0507_daily_bin135.fits outfile=/scratch/kocevski/248791/cmap_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.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.09
user 0.37
sys 0.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248791/ft1_filtered_4FGL_J0809.8+0507_daily_bin135.fits scfile=/scratch/kocevski/248791/ft2_4FGL_J0809.8+0507_daily_bin135.fits outfile=/scratch/kocevski/248791/cmap_HighResolution_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.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.09
user 0.37
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.5747       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61535       1.0000         .10000E-03   10000.    
     6 'norm      '    .98104       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9220       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0226       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.599       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6702       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.785       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86509       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2372       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=   6647.450     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2206 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.174        .77762E-06** at limit **
   2  Prefactor     5.5734        20.287        .23664E-05    .27738E-04
   3  norm          3.0965        2.2238       -.91353E-07   -.16740E-03
   4  Prefactor     .10000E-03    14.518        .73602E-07** at limit **
   5  Prefactor     .61946        7.2012        .40818E-05   -.75844E-04
   6  norm          1.0226        130.14        .13254E-04    .21104E-04
   7  Prefactor     25.619        19.147       -.15072E-05    .29761E-03
   8  Prefactor     .10000E-03    90.845       -.57348E-06** at limit **
   9  Prefactor     .10000E-03    3.4417       -.18104E-07** at limit **
  10  Prefactor     9.9238        25.222        .78443E-06    .56383E-04
  11  norm          .10000E-03    3.0233       -.38971E-07** at limit **
  12  norm          2.0226        1.8134       -.16726E-07   -.28774E-04
  13  norm          .10000E-03    17.800       -.52872E-06** at limit **
  14  norm          .10000E-03    3.3394       -.59688E-07** at limit **
  15  Prefactor     .10000E-03    32.257       -.48449E-06** at limit **
  16  Prefactor     17.599        17.813        .13730E-06    .61146E-04
  17  norm          1.6703        .91755        .14160E-08   -.30079E-04
  18  norm          .10000E-03    5.2745       -.55082E-07** at limit **
  19  Prefactor     29.766        40.206        .13146E-05    .15557E-05
  20  Normalizat    .86505        .22996       -.15928E-05    .15456E-03
  21  Prefactor     1.2373        .15077        .10629E-05    .56038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.57338
  norm       = 3.09649
  Prefactor  = 0.0001
  Prefactor  = 0.619459
  norm       = 1.0226
  Prefactor  = 25.6194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.92381
  norm       = 0.0001
  norm       = 2.0226
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5987
  norm       = 1.67026
  norm       = 0.0001
  Prefactor  = 29.7656
  Normalizat = 0.865051
  Prefactor  = 1.23725
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.450     FROM HESSE     STATUS=OK           325 CALLS     2531 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5734        20.216        .85077E-03   -1.5236    
   3  norm          3.0965        2.2269        .97458E-04   -1.5356    
   4  Prefactor     .10000E-03    14.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61946        7.3732        .22354E-02   -1.5551    
   6  norm          1.0226        13.048        .15856       -1.5506    
   7  Prefactor     25.619        16.793        .79071E-04   -1.4695    
   8  Prefactor     .10000E-03    90.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4509        .14771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9238        25.225        .12721E-03   -1.5078    
  11  norm          .10000E-03    3.0275        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0226        1.8182        .10116E-03   -1.5424    
  13  norm          .10000E-03    17.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4382        .29083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.599        17.837        .95472E-04   -1.4869    
  17  norm          1.6703        .91285        .55880E-04   -1.5449    
  18  norm          .10000E-03    5.3425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.766        40.068        .73413E-04   -1.4616    
  20  Normalizat    .86505        .25530        .34129E-03   -.97699    
  21  Prefactor     1.2373        .17194        .20202E-03   -.85192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55345e-08
Minuit parameter uncertainties:
  1  2.51117e-05
  2  20.2406
  3  2.22694
  4  4.88605e-06
  5  4.27462
  6  7.30707
  7  16.7966
  8  1.34457e-05
  9  4.02871e-06
  10  25.2516
  11  5.22598e-06
  12  1.81825
  13  1.43505e-05
  14  1.44475e-05
  15  7.34968e-05
  16  17.8423
  17  0.912862
  18  1.47337e-05
  19  40.1038
  20  0.255653
  21  0.172014
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.435e-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:  1.237e+00  1.720e-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.651e-01  2.557e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248791/likelihoodResults_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.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) = 6647.4501146
delta logL = -0.000264854751549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6647.39784144
delta logL = 0.0520083110869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4203       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0254       1.0000          .0000       5.0000    
     3 'Normalizat'    .86389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2358       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=   6647.398     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      261 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4263        12.882        .54682E-02    .25223E-03
   2  alpha         1.0256        2.8916        .50000       -.21501E-04
   3  Normalizat    .86696        .21073        .77021E-01    .11376E-03
   4  Prefactor     1.2337        .14737        .33835E-01    .14060E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.42633
  alpha      = 1.02556
  Normalizat = 0.866957
  Prefactor  = 1.23374
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.398     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4263        11.859        .21873E-03   -1.5338    
   2  alpha         1.0256        2.9662        .10067       -.63078    
   3  Normalizat    .86696        .23928        .34091E-03   -.97631    
   4  Prefactor     1.2337        .16760        .20225E-03   -.85299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91004e-10
Minuit parameter uncertainties:
  1  11.8675
  2  2.45084
  3  0.239572
  4  0.167671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248791': 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) = 6647.39775727
delta logL = 0.0520924796419

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.426e+00  1.187e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.026e+00  2.451e+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:  1.234e+00  1.677e-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.670e-01  2.396e-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/248791/cmap_HighResolution_274320001_274579201_4FGL_J0809.8+0507_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-08-29 08:56:43.420342', job_id='248791', GAL2='1.23', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630252603.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='5.21e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='135' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:56:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 248791: <4FGL_J0809.8+0507_daily_bin135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin135 122.453 5.1313 274320001 274579201 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            659 sec.

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

