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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin413
RA = 199.401, Dec = 34.4676
tmin = 346377601, tmax = 346636801
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='444487', job_status='RUN', time_executed='2021-09-07 10:11:41.931587', time_epoch_executed='1631034701.93' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444487/ft1_4FGL_J1317.6+3428_daily_bin413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444487/ft1_4FGL_J1317.6+3428_daily_bin413.fits outfile=/scratch/kocevski/444487/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin413.fits ra=199.401 dec=34.4676 rad=12.0 tmin=346377601.0 tmax=346636801.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.40
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.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/444487/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin413.fits evtable="EVENTS" outfile="/scratch/kocevski/444487/ft1_filtered_4FGL_J1317.6+3428_daily_bin413.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/444487/ft1_filtered_4FGL_J1317.6+3428_daily_bin413.fits" evtable="EVENTS" scfile=/scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits sctable="SC_DATA" outfile=/scratch/kocevski/444487/ltcube_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.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/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits
.....................!
real 17.18
user 16.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444487/ft1_filtered_4FGL_J1317.6+3428_daily_bin413.fits evtable="EVENTS" scfile=/scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits sctable="SC_DATA" expcube=/scratch/kocevski/444487/ltcube_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.fits outfile=/scratch/kocevski/444487/expmap_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.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/444487/ltcube_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.fits
.....................!
real 192.15
user 186.15
sys 5.36

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/444487/ft1_filtered_4FGL_J1317.6+3428_daily_bin413.fits scfile=/scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits outfile=/scratch/kocevski/444487/cmap_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444487/ft1_filtered_4FGL_J1317.6+3428_daily_bin413.fits scfile=/scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits outfile=/scratch/kocevski/444487/cmap_HighResolution_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.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.58
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/444487/ft1_filtered_4FGL_J1317.6+3428_daily_bin413.fits', '/scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits', expMap='/scratch/kocevski/444487/expmap_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.fits', expCube='/scratch/kocevski/444487/ltcube_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/444487/Model_4FGL_J1317.6+3428_daily_bin413.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/444487/ft1_filtered_4FGL_J1317.6+3428_daily_bin413.fits
Spacecraft file(s): /scratch/kocevski/444487/ft2_4FGL_J1317.6+3428_daily_bin413.fits
Exposure map: /scratch/kocevski/444487/expmap_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.fits
Exposure cube: /scratch/kocevski/444487/ltcube_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/444487/Model_4FGL_J1317.6+3428_daily_bin413.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) = 5659.9636054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20928E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2860       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19565E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17313E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3891       1.0000         .10000E-03   10000.    
    12 'norm      '    9.4795       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3645       1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    46.711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.585       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1860       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.957       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3729       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3593       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .50703       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.

 FCN=   5659.930     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2820 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0031       -.33336E-07** at limit **
   2  Prefactor     13.975        9.4188       -.23098E-07   -.10716E-03
   3  Prefactor     .10000E-03    5.3042        .54028E-07** at limit **
   4  Prefactor     .10000E-03    509.63        .64009E-04** at limit **
   5  Prefactor     .10000E-03    1.7852        .69734E-07** at limit **
   6  norm          6.2895        5.0521       -.10384E-05   -.11286E-02
   7  Prefactor     .10000E-03    37.907        .32423E-05** at limit **
   8  Prefactor     .10000E-03    73.226       -.11132E-05** at limit **
   9  norm          5.6085        3.8374        .73975E-07   -.58328E-04
  10  Prefactor     .10020E-03    7.1359        .20353E-05** at limit **
  11  norm          1.3884        3.7465        .50439E-05   -.22461E-03
  12  norm          9.4793        9.1073       -.12987E-07   -.22289E-04
  13  norm          2.3637        3.0017        .70394E-07   -.26765E-03
  14  norm          .10000E-03    2.9461        .19856E-08** at limit **
  15  norm          46.714        24.395        .49068E-07   -.15179E-04
  16  Prefactor     .10000E-03    1.0995        .15998E-06** at limit **
  17  Prefactor     .10000E-03    8.7871        .12221E-06** at limit **
  18  Prefactor     48.593        42.631       -.83662E-06   -.44604E-04
  19  Prefactor     .10000E-03    32.667        .14263E-05** at limit **
  20  Prefactor     5.1839        16.351        .40484E-06   -.23986E-04
  21  Prefactor     .10000E-03    52.525       -.28432E-05** at limit **
  22  norm          15.957        3.1821        .68625E-07   -.35439E-04
  23  Prefactor     .10000E-03    1.3147       -.72857E-08** at limit **
  24  norm          .10000E-03    6.4892       -.56878E-07** at limit **
  25  Prefactor     8.3735        17.494        .30739E-06   -.33001E-06
  26  Normalizat    1.3593        .17918       -.82946E-06   -.75999E-03
  27  Prefactor     .50703        .21376       -.11741E-05   -.37179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.9746
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 6.28955
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.60852
  Prefactor  = 0.000100199
  norm       = 1.3884
  norm       = 9.4793
  norm       = 2.36374
  norm       = 0.0001
  norm       = 46.7145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.5928
  Prefactor  = 0.0001
  Prefactor  = 5.18385
  Prefactor  = 0.0001
  norm       = 15.9568
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.37347
  Normalizat = 1.35932
  Prefactor  = 0.507033
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.930     FROM HESSE     STATUS=OK           482 CALLS     3302 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0084        .12733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.975        9.4204        .10715E-03   -1.4960    
   3  Prefactor     .10000E-03    5.3059        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    511.76        .20188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7904        .98156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.2895        5.0644        .14365E-03   -1.5206    
   7  Prefactor     .10000E-03    37.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    74.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6085        3.8360        .11771E-03   -1.5234    
  10  Prefactor     .10020E-03    30.475        .37259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3884        3.7511        .11638E-02   -1.5472    
  12  norm          9.4793        9.1097        .13016E-03   -1.5092    
  13  norm          2.3637        2.9721        .13832E-03   -1.5400    
  14  norm          .10000E-03    2.9512        .12572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          46.714        24.391        .58667E-04   -1.4340    
  16  Prefactor     .10000E-03    1.1125        .76986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.593        42.641        .57529E-04   -1.4313    
  19  Prefactor     .10000E-03    33.536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1839        16.319        .17652E-03   -1.5253    
  21  Prefactor     .10000E-03    52.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.957        3.1850        .57982E-04   -1.4909    
  23  Prefactor     .10000E-03    1.3210        .84218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.5130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.3735        17.491        .13854E-03   -1.5129    
  26  Normalizat    1.3593        .19830        .19735E-03   -.81813    
  27  Prefactor     .50703        .23447        .37106E-03   -1.1166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14431e-09
Minuit parameter uncertainties:
  1  6.07729e-07
  2  9.42143
  3  7.79749e-07
  4  0.00240897
  5  5.72263e-07
  6  5.06472
  7  9.89027e-05
  8  0.000455187
  9  3.83616
  10  0.00492952
  11  3.75178
  12  9.11107
  13  2.97225
  14  1.87617e-06
  15  24.3961
  16  2.22059e-06
  17  1.32164e-05
  18  42.6678
  19  5.59378e-05
  20  16.3334
  21  4.99228e-05
  22  3.18498
  23  1.65769e-06
  24  3.172e-06
  25  17.5017
  26  0.198415
  27  0.23492
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.221e-06  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:  5.070e-01  2.349e-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.359e+00  1.984e-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: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444487/likelihoodResults_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.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) = 5659.93458751
delta logL = -0.00416719208897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5659.93042004
delta logL = 2.83652298094e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5187       1.0000          .0000       10.000    
     3 'Normalizat'    1.3593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50705       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=   5659.930     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      218 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3306        .90712E-02** at limit **
   2  Index         2.0818        8.9348        .50000       -.16582E-06
   3  Normalizat    1.3593        .90983E-02    .31819E-01    .10351E-03
   4  Prefactor     .50703        .10992E-01    .83757E-01    .96683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08185
  Normalizat = 1.35932
  Prefactor  = 0.507034
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.930     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.574        .83696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0818        5.5080        .50000       -.62319    
   3  Normalizat    1.3593        .34701E-01    .19735E-03   -.81813    
   4  Prefactor     .50703        .41796E-01    .37106E-03   -1.1166    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65454e-09
Minuit parameter uncertainties:
  1  5.16177e-05
  2  511.354
  3  0.0347017
  4  0.0417987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444487': 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) = 5659.93041368
delta logL = 6.64094568492e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.162e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.082e+00  5.114e+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:  5.070e-01  4.180e-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.359e+00  3.470e-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/444487/cmap_HighResolution_346377601_346636801_4FGL_J1317.6+3428_daily_bin413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-07 10:23:23.946062', job_id='444487', GAL2='0.51', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631035403.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='6.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='413' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:23:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 444487: <4FGL_J1317.6+3428_daily_bin413> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin413> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep  7 10:10:23 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:11:26 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:11:26 2021
Terminated at Tue Sep  7 10:23:24 2021
Results reported at Tue Sep  7 10:23:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin413 199.401 34.4676 346377601 346636801 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 :                                   700.54 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            781 sec.

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

