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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin656
RA = 199.401, Dec = 34.4676
tmin = 409363201, tmax = 409622401
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='445915', job_status='RUN', time_executed='2021-09-07 10:16:09.432273', time_epoch_executed='1631034969.43' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445915/ft1_4FGL_J1317.6+3428_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445915/ft1_4FGL_J1317.6+3428_daily_bin656.fits outfile=/scratch/kocevski/445915/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin656.fits ra=199.401 dec=34.4676 rad=12.0 tmin=409363201.0 tmax=409622401.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 5.73
user 5.29
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.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/445915/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin656.fits evtable="EVENTS" outfile="/scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/445915/ltcube_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.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/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits
.....................!
real 15.76
user 15.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/445915/ltcube_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.fits outfile=/scratch/kocevski/445915/expmap_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.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/445915/ltcube_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.fits
.....................!
real 190.80
user 185.68
sys 4.66

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

Setting source of interest to:
4FGL J1317.6+3428 @ 199.401 34.4676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits scfile=/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits outfile=/scratch/kocevski/445915/cmap_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.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=199.401 yref=34.4676 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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits scfile=/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits outfile=/scratch/kocevski/445915/cmap_HighResolution_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.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=199.401 yref=34.4676 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445915/Model_4FGL_J1317.6+3428_daily_bin656.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/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits.....................!
real 41.85
user 40.47
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits', '/scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits', expMap='/scratch/kocevski/445915/expmap_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.fits', expCube='/scratch/kocevski/445915/ltcube_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/445915/Model_4FGL_J1317.6+3428_daily_bin656.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1317.6+3428'

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.307e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/445915/ft1_filtered_4FGL_J1317.6+3428_daily_bin656.fits
Spacecraft file(s): /scratch/kocevski/445915/ft2_4FGL_J1317.6+3428_daily_bin656.fits
Exposure map: /scratch/kocevski/445915/expmap_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.fits
Exposure cube: /scratch/kocevski/445915/ltcube_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/445915/Model_4FGL_J1317.6+3428_daily_bin656.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) = 4371.50934869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    195.85       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8891       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.491       1.0000         .10000E-03   10000.    
     9 'norm      '    6.6549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8778       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.9322       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    26.023       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7502       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0177       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5338       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .69459E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   4371.501     FROM MIGRAD    STATUS=CONVERGED   1174 CALLS     4261 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8782        .16887E-02** at limit **
   2  Prefactor     8.6872        14.373        .13601E-03   -.89274E-04
   3  Prefactor     .10000E-03    7.8068        .18030E-02** at limit **
   4  Prefactor     195.86        101.74        .14433E-03   -.74987E-04
   5  Prefactor     6.8900        5.9355        .13968E-03   -.80905E-04
   6  norm          .10000E-03    3.6478        .12274E-02** at limit **
   7  Prefactor     .10000E-03    16.183        .18142E-02** at limit **
   8  Prefactor     21.496        30.982        .86401E-04   -.15063E-03
   9  norm          6.6552        4.8792        .12109E-03   -.59261E-03
  10  Prefactor     1.8761        11.763        .30384E-03   -.28145E-03
  11  norm          .10000E-03    1.4653        .78128E-03** at limit **
  12  norm          .10000E-03    3.6898        .12404E-02** at limit **
  13  norm          9.9319        5.9938        .11289E-03   -.82349E-03
  14  norm          .10000E-03    3.6701        .12348E-02** at limit **
  15  norm          .10000E-03    7.4110        .17580E-02** at limit **
  16  Prefactor     .10000E-03    1.8752        .87608E-03** at limit **
  17  Prefactor     .10000E-03    18.276        .18142E-02** at limit **
  18  Prefactor     .10000E-03    32.500        .18142E-02** at limit **
  19  Prefactor     .87747        156.48        .50458E-02    .51832E-03
  20  Prefactor     .10005E-03    41.123        .10249    ** at limit **
  21  Prefactor     .10000E-03    26.800        .18142E-02** at limit **
  22  norm          26.024        4.2733        .53547E-04   -.13439E-03
  23  Prefactor     4.7505        3.6714        .10763E-03   -.29754E-03
  24  norm          6.0188        12.954        .16368E-03   -.73486E-04
  25  Prefactor     .10000E-03    7.4734        .17654E-02** at limit **
  26  Normalizat    1.5336        .25270        .18650E-03   -.31950E-03
  27  Prefactor     .69579E-01    .26740        .83038E-02   -.57897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.6872
  Prefactor  = 0.0001
  Prefactor  = 195.858
  Prefactor  = 6.89003
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.4964
  norm       = 6.6552
  Prefactor  = 1.87614
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.93186
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.877468
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  norm       = 26.0237
  Prefactor  = 4.75046
  norm       = 6.0188
  Prefactor  = 0.0001
  Normalizat = 1.53359
  Prefactor  = 0.0695791
 **********
 **   18 **HESSE 
 **********

 FCN=   4371.501     FROM HESSE     STATUS=OK           474 CALLS     4735 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8795        .33774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6872        14.370        .54402E-05   -1.5118    
   3  Prefactor     .10000E-03    7.8072        .36061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     195.86        101.73        .28866E-04   -1.2900    
   5  Prefactor     6.8900        5.9336        .55870E-05   -1.5183    
   6  norm          .10000E-03    3.6481        .24548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.496        30.939        .17280E-04   -1.4780    
   9  norm          6.6552        4.8790        .48436E-05   -1.5192    
  10  Prefactor     1.8761        11.755        .12153E-04   -1.5434    
  11  norm          .10000E-03    1.4653        .15626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6899        .24807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.9319        5.9901        .45155E-05   -1.5078    
  14  norm          .10000E-03    3.6701        .24696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.4110        .35159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8755        .17522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .87747        152.32        .10092E-02   -1.5521    
  20  Prefactor     .10005E-03    38.436        .10604       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          26.024        4.2728        .21419E-05   -1.4687    
  23  Prefactor     4.7505        3.6709        .43054E-05   -1.5272    
  24  norm          6.0188        12.951        .65472E-05   -1.5217    
  25  Prefactor     .10000E-03    7.4734        .35307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5336        .23433        .37300E-04   -.76839    
  27  Prefactor     .69579E-01    .24826        .33215E-03   -1.4038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31609e-09
Minuit parameter uncertainties:
  1  1.65439e-05
  2  14.376
  3  1.99088e-05
  4  101.82
  5  5.9341
  6  0.000133069
  7  7.15203e-06
  8  30.9621
  9  4.87931
  10  9.39488
  11  5.16261e-06
  12  3.66606e-06
  13  5.99046
  14  4.29885e-05
  15  1.62303e-05
  16  3.21389e-05
  17  0.000123797
  18  0.000257609
  19  23.1809
  20  0.00268944
  21  0.00020496
  22  4.27284
  23  3.67106
  24  12.9566
  25  3.01662e-05
  26  0.234499
  27  0.252111
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.214e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  6.958e-02  2.521e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.534e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445915/likelihoodResults_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.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) = 4371.50306632
delta logL = -0.00249098370205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4371.50057794
delta logL = -2.61176319327e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4371.501     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8039        .90712E-02** at limit **
   2  Index         2.5340        7.8346        .50000        .39383E-06
   3  Normalizat    1.5336        .66778E-02    .29567E-01   -.27524E-03
   4  Prefactor     .69582E-01    .68820E-02    .20727        .71944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53403
  Normalizat = 1.53358
  Prefactor  = 0.0695821
 **********
 **   18 **HESSE 
 **********

 FCN=   4371.501     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.58        .87610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5340        7.3690        .50000       -.51576    
   3  Normalizat    1.5336        .36624E-01    .18650E-03   -.76839    
   4  Prefactor     .69582E-01    .41726E-01    .83044E-02   -1.4038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04989e-08
Minuit parameter uncertainties:
  1  0.000114067
  2  778.695
  3  0.0366247
  4  0.0417431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445915': 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) = 4371.50057533
delta logL = 4.54747350886e-11

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.141e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  7.787e+02  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  6.958e-02  4.174e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.534e+00  3.662e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.401 34.468

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/445915/cmap_HighResolution_409363201_409622401_4FGL_J1317.6+3428_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-07 10:28:06.238134', job_id='445915', GAL2='0.07', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631035686.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.07', dlogl='4.55e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='656' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:28:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 445915: <4FGL_J1317.6+3428_daily_bin656> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin656> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 10:15:25 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:15:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:15:54 2021
Terminated at Tue Sep  7 10:28:07 2021
Results reported at Tue Sep  7 10:28:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin656 199.401 34.4676 409363201 409622401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1317.6+3428 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            762 sec.

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

