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


Performing analysis on: 4FGL_J1808.2+3500_daily_bin678
RA = 272.066, Dec = 35.0104
tmin = 415065601, tmax = 415324801
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='616617', job_status='RUN', time_executed='2021-09-19 18:15:32.497742', time_epoch_executed='1632100532.5' WHERE source_name='4FGL J1808.2+3500' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/616617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/616617/ft1_4FGL_J1808.2+3500_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/616617/ft1_4FGL_J1808.2+3500_daily_bin678.fits outfile=/scratch/kocevski/616617/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin678.fits ra=272.066 dec=35.0104 rad=12.0 tmin=415065601.0 tmax=415324801.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.64
user 3.43
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.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/616617/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin678.fits evtable="EVENTS" outfile="/scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/616617/ltcube_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.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/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits
.....................!
real 12.08
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/616617/ltcube_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.fits outfile=/scratch/kocevski/616617/expmap_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.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/616617/ltcube_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.fits
.....................!
real 191.09
user 185.76
sys 4.90

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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1808.2+3500 @ 272.066 35.0104

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits scfile=/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits outfile=/scratch/kocevski/616617/cmap_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.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=272.066 yref=35.0104 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits scfile=/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits outfile=/scratch/kocevski/616617/cmap_HighResolution_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.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=272.066 yref=35.0104 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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/616617/Model_4FGL_J1808.2+3500_daily_bin678.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/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits.................!
real 14.89
user 13.61
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits', '/scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits', expMap='/scratch/kocevski/616617/expmap_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.fits', expCube='/scratch/kocevski/616617/ltcube_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/616617/Model_4FGL_J1808.2+3500_daily_bin678.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1808.2+3500'

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/616617/ft1_filtered_4FGL_J1808.2+3500_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/616617/ft2_4FGL_J1808.2+3500_daily_bin678.fits
Exposure map: /scratch/kocevski/616617/expmap_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.fits
Exposure cube: /scratch/kocevski/616617/ltcube_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/616617/Model_4FGL_J1808.2+3500_daily_bin678.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) = 220.576908903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    253.28       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64793E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10884E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12481E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15404E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12216E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    98.492       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.326       1.0000         .10000E-03   10000.    
    19 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .21220E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.420       1.0000         .10000E-03   10000.    
    23 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.801       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10917E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .59741       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   220.3692     FROM MIGRAD    STATUS=CONVERGED     80 CALLS     3342 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          253.29        1.5923        .19046E-05   -.17753E-02
   2  Prefactor     .10625E-03    7.6363       -.12279E-03** at limit **
   3  norm          .10220E-03    70.575       -.15553E-03** at limit **
   4  Prefactor     .27700E-02    87.185       -.44215E-03    .13841E-02
   5  Prefactor     .90407E-03    102.54       -.47283E-03** at limit **
   6  Prefactor     .12212E-03    51.333        .25653E-03** at limit **
   7  Prefactor     .12221E-03    51.364        .25671E-03** at limit **
   8  Prefactor     .16699E-03    61.656       -.23993E-03** at limit **
   9  Prefactor     .10339E-03    42.066        .19346E-03** at limit **
  10  Prefactor     .16044E-03    79.920       -.32290E-03** at limit **
  11  Prefactor     .10010E-03    65.973       -.12190E-03** at limit **
  12  norm          .10000E-03    31.005        .17289E-04** at limit **
  13  norm          .10233E-02    98.551       -.46449E-03** at limit **
  14  norm          .15854E-03    48.622       -.16356E-03** at limit **
  15  Prefactor     .10614E-03    33.678        .73124E-04** at limit **
  16  norm          .10001E-03    78.827        .34135E-04** at limit **
  17  Prefactor     98.452        5.7615       -.13389E-04    .24188E-02
  18  Prefactor     18.290        5.9094       -.32552E-04    .18650E-02
  19  norm          .12825E-03    53.510        .26835E-03** at limit **
  20  Prefactor     .10000E-03    34.376        .11946E-04** at limit **
  21  norm          .10004E-03    122.44       -.47845E-03** at limit **
  22  norm          13.422        1.0300        .77054E-06    .11212E-04
  23  norm          .10000E-03    18.452        .15786E-04** at limit **
  24  Prefactor     25.780        2.3894       -.88319E-05   -.17415E-03
  25  Prefactor     .16314E-03    53.314       -.19371E-03** at limit **
  26  Prefactor     .11598E-03    33.513        .20981E-04** at limit **
  27  Normalizat    .10000E-01    1.2795        .14039E-05** at limit **
  28  Prefactor     .59735        .18741       -.14988E-05   -.16093E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 253.292
  Prefactor  = 0.000106246
  norm       = 0.000102202
  Prefactor  = 0.00277
  Prefactor  = 0.000904068
  Prefactor  = 0.000122124
  Prefactor  = 0.000122209
  Prefactor  = 0.000166989
  Prefactor  = 0.000103394
  Prefactor  = 0.000160442
  Prefactor  = 0.000100098
  norm       = 0.0001
  norm       = 0.00102331
  norm       = 0.000158537
  Prefactor  = 0.000106142
  norm       = 0.000100013
  Prefactor  = 98.4524
  Prefactor  = 18.2901
  norm       = 0.00012825
  Prefactor  = 0.0001
  norm       = 0.000100043
  norm       = 13.4221
  norm       = 0.0001
  Prefactor  = 25.7802
  Prefactor  = 0.00016314
  Prefactor  = 0.000115979
  Normalizat = 0.01
  Prefactor  = 0.597353
 **********
 **   18 **HESSE 
 **********

 FCN=   220.3692     FROM HESSE     STATUS=OK           557 CALLS     3899 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          253.29        343.55        .63645E-03   -1.2511    
   2  Prefactor     .10625E-03    1106.3        .10511E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10220E-03    135.55        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27700E-02    1753.3        .90853E-02   -1.5698    
   5  Prefactor     .90407E-03    1211.0        .90712E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12212E-03    242.28        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12221E-03    242.21        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16699E-03    412.74        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10339E-03    262.32        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16044E-03    460.47        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10010E-03    136.61        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    31.006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10233E-02    1263.1        .90712E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15854E-03    378.22        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10614E-03    297.82        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    78.812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     98.452        123.53        .10126E-02   -1.3720    
  18  Prefactor     18.290        1049.6        .23390E-02   -1.4852    
  19  norm          .12825E-03    238.08        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10004E-03    640.50        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.422        34.310        .27335E-02   -1.4975    
  23  norm          .10000E-03    18.450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.780        51.105        .19716E-02   -1.4692    
  25  Prefactor     .16314E-03    391.06        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11598E-03    313.45        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    1.1988        .23978       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .59735        .22002        .25983E-01   -1.0770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00792e-06
Minuit parameter uncertainties:
  1  346.344
  2  0.169482
  3  0.0346288
  4  4.46493
  5  2.0157
  6  0.147024
  7  0.147286
  8  0.334892
  9  0.0599376
  10  0.33627
  11  0.00731764
  12  5.77879e-05
  13  2.20807
  14  0.299498
  15  0.0859652
  16  0.00203675
  17  123.85
  18  282.477
  19  0.16468
  20  7.94934e-06
  21  0.0106669
  22  34.3609
  23  6.43302e-05
  24  51.1922
  25  0.316357
  26  0.142292
  27  2.05455e-07
  28  0.220338
Done.

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

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.061e-04  8.597e-02  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  5.974e-01  2.203e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.000e-02  2.055e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 272.066 35.010
Photon Flux Upper Limit: 6.33e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/616617/likelihoodResults_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.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) = 220.369169685
delta logL = -1.65944750847e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 220.369153712
delta logL = -6.20692532038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5184       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59742       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   220.3692     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      249 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9230        .90712E-02** at limit **
   2  Index         3.5012        6.7483        .50000        .17757E-05
   3  Normalizat    .10000E-01    .22366E-03    .23978    ** at limit **
   4  Prefactor     .59735        .27276E-02    .25983E-01    .45724E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.50123
  Normalizat = 0.01
  Prefactor  = 0.597354
 **********
 **   18 **HESSE 
 **********

 FCN=   220.3692     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1464.5        .28101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5012        7.7624        .50000       -.30444    
   3  Normalizat    .10000E-01    .43562E-01    .94428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59735        .33870E-01    .11484E-03   -1.0770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78454e-08
Minuit parameter uncertainties:
  1  0.000774366
  2  437.597
  3  5.66795e-07
  4  0.033871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/616617': 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): 102
logL (Free Index) = 220.369153427
delta logL = -3.36383152444e-07

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  7.744e-04  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  3.501e+00  4.376e+02  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  5.974e-01  3.387e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.000e-02  5.668e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 272.066 35.010

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/616617/cmap_HighResolution_415065601_415324801_4FGL_J1808.2+3500_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-01', job_status='DONE', photon_flux_upper_limit='6.33e-06', time_completed='2021-09-19 18:21:20.172448', job_id='616617', GAL2='0.60', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632100880.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='-3.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='678' AND source_name='4FGL J1808.2+3500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 18:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 616617: <4FGL_J1808.2+3500_daily_bin678> in cluster <slac> Done

Job <4FGL_J1808.2+3500_daily_bin678> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 19 18:15:17 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 18:15:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 18:15:19 2021
Terminated at Sun Sep 19 18:21:20 2021
Results reported at Sun Sep 19 18:21:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1808.2+3500_daily_bin678 272.066 35.0104 415065601 415324801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1808.2+3500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   347.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             266.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   361 sec.
    Turnaround time :                            363 sec.

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

