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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin842
RA = 199.401, Dec = 34.4676
tmin = 457574401, tmax = 457833601
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='447363', job_status='RUN', time_executed='2021-09-07 10:21:36.137187', time_epoch_executed='1631035296.14' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='842'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447363

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447363/ft1_4FGL_J1317.6+3428_daily_bin842.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447363/ft2_4FGL_J1317.6+3428_daily_bin842.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447363/ft1_4FGL_J1317.6+3428_daily_bin842.fits outfile=/scratch/kocevski/447363/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin842.fits ra=199.401 dec=34.4676 rad=12.0 tmin=457574401.0 tmax=457833601.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.08
user 4.79
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447363/ft1_filtered_4FGL_J1317.6+3428_daily_bin842.fits" evtable="EVENTS" scfile=/scratch/kocevski/447363/ft2_4FGL_J1317.6+3428_daily_bin842.fits sctable="SC_DATA" outfile=/scratch/kocevski/447363/ltcube_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.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/447363/ft2_4FGL_J1317.6+3428_daily_bin842.fits
.....................!
real 13.73
user 13.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447363/ft1_filtered_4FGL_J1317.6+3428_daily_bin842.fits evtable="EVENTS" scfile=/scratch/kocevski/447363/ft2_4FGL_J1317.6+3428_daily_bin842.fits sctable="SC_DATA" expcube=/scratch/kocevski/447363/ltcube_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.fits outfile=/scratch/kocevski/447363/expmap_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.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/447363/ltcube_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.fits
.....................!
real 191.73
user 185.80
sys 5.31

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/447363/ft1_filtered_4FGL_J1317.6+3428_daily_bin842.fits scfile=/scratch/kocevski/447363/ft2_4FGL_J1317.6+3428_daily_bin842.fits outfile=/scratch/kocevski/447363/cmap_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.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.59
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447363/ft1_filtered_4FGL_J1317.6+3428_daily_bin842.fits scfile=/scratch/kocevski/447363/ft2_4FGL_J1317.6+3428_daily_bin842.fits outfile=/scratch/kocevski/447363/cmap_HighResolution_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48915       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30799E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24370       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5283       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10869E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3038       1.0000         .10000E-03   10000.    
    12 'norm      '    21.482       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12928E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.797       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1656       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.685       1.0000         .10000E-03   10000.    
    22 'norm      '    7.4914       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1864       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1401       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=   5662.083     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3825 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3057        .16066E-06** at limit **
   2  Prefactor     .50442        10.437        .21118E-05   -.17285E-03
   3  Prefactor     .10000E-03    6.4127        .13735E-07** at limit **
   4  Prefactor     .10000E-03    225.30        .10055E-05** at limit **
   5  Prefactor     .26034        8.4696        .31652E-05   -.31208E-03
   6  norm          1.5268        3.1435        .16210E-06    .14646E-03
   7  Prefactor     .10000E-03    39.420        .63332E-06** at limit **
   8  Prefactor     .10000E-03    17.218        .27311E-06** at limit **
   9  norm          .10000E-03    1.3268        .50095E-07** at limit **
  10  Prefactor     .10000E-03    8.9570        .49186E-07** at limit **
  11  norm          6.3017        5.5973       -.24728E-06   -.28428E-03
  12  norm          21.499        15.809        .15407E-06   -.56045E-04
  13  norm          .10000E-03    2.5660        .27296E-06** at limit **
  14  norm          .10000E-03    3.5956        .11676E-06** at limit **
  15  norm          .10043E-03    24.880       -.31156E-05** at limit **
  16  Prefactor     .10001E-03    2.8632        .10591E-05** at limit **
  17  Prefactor     35.807        21.022       -.13956E-05   -.32381E-03
  18  Prefactor     .10000E-03    45.292       -.60817E-06** at limit **
  19  Prefactor     2.1432        60.125        .84757E-06    .20633E-04
  20  Prefactor     .10000E-03    20.650        .31677E-06** at limit **
  21  Prefactor     31.558        92.781        .15354E-05    .33065E-05
  22  norm          7.4911        2.5501       -.43680E-07   -.23178E-03
  23  Prefactor     .10000E-03    4.0711        .35148E-06** at limit **
  24  norm          .10000E-03    8.4196       -.12912E-06** at limit **
  25  Prefactor     .10000E-03    17.238        .45532E-07** at limit **
  26  Normalizat    1.1865        .21732        .31989E-05   -.22210E-03
  27  Prefactor     1.1401        .25676       -.49823E-05   -.43051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.504424
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.260335
  norm       = 1.5268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.30166
  norm       = 21.4994
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100427
  Prefactor  = 0.00010001
  Prefactor  = 35.8067
  Prefactor  = 0.0001
  Prefactor  = 2.14318
  Prefactor  = 0.0001
  Prefactor  = 31.5584
  norm       = 7.49109
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18648
  Prefactor  = 1.1401
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.083     FROM HESSE     STATUS=OK           486 CALLS     4311 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .50442        44.335        .42308E-02   -1.5566    
   3  Prefactor     .10000E-03    6.4147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    227.13        .21379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .26034        15.837        .30363E-02   -1.5606    
   6  norm          1.5268        3.1062        .18566E-03   -1.5461    
   7  Prefactor     .10000E-03    39.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3302        .84662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3017        5.5852        .15987E-03   -1.5206    
  12  norm          21.499        15.811        .86418E-04   -1.4780    
  13  norm          .10000E-03    2.6433        .23579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6421        .13937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10043E-03    183.39        .63350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    19.915        .21408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.807        21.446        .66982E-04   -1.4510    
  18  Prefactor     .10000E-03    45.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1432        60.207        .27987E-03   -1.5415    
  20  Prefactor     .10000E-03    20.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.558        93.150        .71183E-04   -1.4584    
  22  norm          7.4911        2.5526        .67503E-04   -1.5161    
  23  Prefactor     .10000E-03    4.2100        .29685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.4404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1865        .23868        .23880E-03   -.87022    
  27  Prefactor     1.1401        .28146        .30011E-03   -.88195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9601e-09
Minuit parameter uncertainties:
  1  2.99679e-05
  2  9.46438
  3  2.3954e-06
  4  0.00131582
  5  4.06133
  6  3.10657
  7  0.000141076
  8  4.70021e-05
  9  5.16082e-06
  10  8.4931e-06
  11  5.58565
  12  15.8145
  13  1.79644e-05
  14  9.80898e-06
  15  0.0177512
  16  0.000896296
  17  21.4509
  18  0.000173797
  19  22.7435
  20  0.000116419
  21  93.5831
  22  2.55266
  23  5.03701e-05
  24  5.11928e-05
  25  8.08045e-06
  26  0.238897
  27  0.28183
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  8.963e-04  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:  1.140e+00  2.818e-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.186e+00  2.389e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447363/likelihoodResults_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.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) = 5662.08304216
delta logL = -0.000239946488364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5662.08279527
delta logL = 6.94217396813e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21648E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6522       1.0000          .0000       10.000    
     3 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1402       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=   5661.903     FROM MIGRAD    STATUS=CONVERGED    195 CALLS      382 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .34123E-02    .45591E-03** at limit **
   2  Index         8.4343        7.5362        .33562        .89041E-04
   3  Normalizat    1.1457        .30089E-01    .54799E-01    .28711E-04
   4  Prefactor     1.1751        .37165E-01    .66970E-01    .15276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.43429
  Normalizat = 1.14567
  Prefactor  = 1.17511
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.903     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      423 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    .38960E-01    .23063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4343        8.5408        .13065E-01    .75716    
   3  Normalizat    1.1457        .79834E-01    .24232E-03   -.88299    
   4  Prefactor     1.1751        .98200E-01    .29626E-03   -.87101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.007e-08
Minuit parameter uncertainties:
  1  7.16102e-08
  2  11.197
  3  0.0798424
  4  0.0982153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447363': 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) = 5661.9025985
delta logL = 0.180203713847

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  7.161e-08  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  8.434e+00  1.120e+01  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:  1.175e+00  9.822e-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.146e+00  7.984e-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/447363/cmap_HighResolution_457574401_457833601_4FGL_J1317.6+3428_daily_bin842.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-07 10:34:38.498893', job_id='447363', GAL2='1.18', fit_tolerance='1e-08', EG2='1.15', EG='1.19', time_epoch_completed='1631036078.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.80e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='842' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:34:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 447363: <4FGL_J1317.6+3428_daily_bin842> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin842> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:20:44 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:21:19 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:21:19 2021
Terminated at Tue Sep  7 10:34:39 2021
Results reported at Tue Sep  7 10:34:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin842 199.401 34.4676 457574401 457833601 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 :                                   780.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            835 sec.

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

