/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 39 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 = 7401
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin355
RA = 199.401, Dec = 34.4676
tmin = 331344001, tmax = 331603201
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='443383', job_status='RUN', time_executed='2021-09-07 10:09:32.481488', time_epoch_executed='1631034572.48' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443383/ft1_4FGL_J1317.6+3428_daily_bin355.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443383/ft2_4FGL_J1317.6+3428_daily_bin355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443383/ft1_4FGL_J1317.6+3428_daily_bin355.fits outfile=/scratch/kocevski/443383/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin355.fits ra=199.401 dec=34.4676 rad=12.0 tmin=331344001.0 tmax=331603201.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 2.66
user 2.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443383/ft2_4FGL_J1317.6+3428_daily_bin355.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/443383/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin355.fits evtable="EVENTS" outfile="/scratch/kocevski/443383/ft1_filtered_4FGL_J1317.6+3428_daily_bin355.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.44
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443383/ft1_filtered_4FGL_J1317.6+3428_daily_bin355.fits" evtable="EVENTS" scfile=/scratch/kocevski/443383/ft2_4FGL_J1317.6+3428_daily_bin355.fits sctable="SC_DATA" outfile=/scratch/kocevski/443383/ltcube_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.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/443383/ft2_4FGL_J1317.6+3428_daily_bin355.fits
.....................!
real 10.71
user 10.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443383/ft1_filtered_4FGL_J1317.6+3428_daily_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/443383/ft2_4FGL_J1317.6+3428_daily_bin355.fits sctable="SC_DATA" expcube=/scratch/kocevski/443383/ltcube_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.fits outfile=/scratch/kocevski/443383/expmap_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.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/443383/ltcube_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.fits
.....................!
real 158.49
user 153.83
sys 4.35

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/443383/ft1_filtered_4FGL_J1317.6+3428_daily_bin355.fits scfile=/scratch/kocevski/443383/ft2_4FGL_J1317.6+3428_daily_bin355.fits outfile=/scratch/kocevski/443383/cmap_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443383/ft1_filtered_4FGL_J1317.6+3428_daily_bin355.fits scfile=/scratch/kocevski/443383/ft2_4FGL_J1317.6+3428_daily_bin355.fits outfile=/scratch/kocevski/443383/cmap_HighResolution_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.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.48
user 0.35
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .25835       1.0000         .10000E-03   10000.    
    12 'norm      '    .56895       1.0000         .10000E-03   10000.    
    13 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11835E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.233       1.0000         .10000E-03   10000.    
    22 'norm      '    9.0540       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15671E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .63156       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83967       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0757       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=   5304.680     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3340 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8038        .26402E-07** at limit **
   2  Prefactor     .10000E-03    5.0470        .15475E-06** at limit **
   3  Prefactor     .10000E-03    5.8828        .91244E-07** at limit **
   4  Prefactor     34.195        61.348       -.78649E-07   -.12494E-04
   5  Prefactor     .10000E-03    1.4279        .45717E-07** at limit **
   6  norm          .10000E-03    3.6729        .37579E-07** at limit **
   7  Prefactor     .10000E-03    48.561        .48423E-06** at limit **
   8  Prefactor     .10000E-03    16.488        .23058E-06** at limit **
   9  norm          .10000E-03    1.9927        .20075E-06** at limit **
  10  Prefactor     .10000E-03    3.5517       -.69396E-08** at limit **
  11  norm          .25871        3.7499        .36972E-05    .26411E-03
  12  norm          .57881        7.8547        .31384E-06   -.26413E-04
  13  norm          .10004E-03    1.8316       -.37259E-06** at limit **
  14  norm          .10000E-03    2.9388        .61942E-07** at limit **
  15  norm          12.970        19.815        .14559E-05    .45534E-04
  16  Prefactor     .10000E-03    1.9433       -.26638E-06** at limit **
  17  Prefactor     5.9472        13.264       -.30565E-06    .77092E-04
  18  Prefactor     .10000E-03    41.529       -.44526E-07** at limit **
  19  Prefactor     .10000E-03    50.858        .12027E-05** at limit **
  20  Prefactor     .10000E-03    25.528        .55805E-06** at limit **
  21  Prefactor     17.151        66.343       -.41249E-05   -.84688E-04
  22  norm          9.0541        2.4566       -.20029E-07   -.90149E-04
  23  Prefactor     .10001E-03    1.5122        .23274E-06** at limit **
  24  norm          .10000E-03    12.606       -.86103E-06** at limit **
  25  Prefactor     .61289        12.226        .54166E-06   -.78973E-04
  26  Normalizat    .83993        .17414        .38373E-05   -.33178E-03
  27  Prefactor     1.0753        .21796       -.55424E-05   -.21361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1946
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.258715
  norm       = 0.578815
  norm       = 0.000100042
  norm       = 0.0001
  norm       = 12.9699
  Prefactor  = 0.0001
  Prefactor  = 5.94723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1511
  norm       = 9.05412
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.612888
  Normalizat = 0.839933
  Prefactor  = 1.07528
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.680     FROM HESSE     STATUS=OK           486 CALLS     3826 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8040        .95533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0788        .15982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8868        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.195        61.241        .68519E-04   -1.4538    
   5  Prefactor     .10000E-03    1.4301        .84990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.7821        .27183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0533        .20087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5550        .13405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25871        3.9829        .27654E-03   -1.5606    
  12  norm          .57881        48.544        .39372E-02   -1.5556    
  13  norm          .10004E-03    25.441        .17985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9519        .12181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.970        19.844        .55615E-03   -1.4988    
  16  Prefactor     .10000E-03    3.3056        .18474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9472        12.313        .16454E-03   -1.5220    
  18  Prefactor     .10000E-03    41.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    52.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.151        66.946        .96481E-04   -1.4879    
  22  norm          9.0541        2.4563        .57424E-04   -1.5106    
  23  Prefactor     .10001E-03    17.251        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .61289        73.061        .49330E-02   -1.5551    
  26  Normalizat    .83993        .18869        .21747E-03   -.98604    
  27  Prefactor     1.0753        .23694        .24966E-03   -.90261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12581e-08
Minuit parameter uncertainties:
  1  4.32248e-07
  2  7.51454e-06
  3  4.77683e-06
  4  61.3536
  5  2.23726e-07
  6  1.58484e-05
  7  0.000106303
  8  2.41811e-05
  9  8.1561e-06
  10  4.49492e-06
  11  2.02996
  12  10.6095
  13  0.00205754
  14  6.2731e-06
  15  19.8544
  16  5.55715e-06
  17  12.3178
  18  0.000155217
  19  4.08741e-05
  20  1.0943e-05
  21  67.2412
  22  2.45628
  23  0.00077014
  24  3.98147e-05
  25  13.399
  26  0.188834
  27  0.237171
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.557e-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:  1.075e+00  2.372e-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:  8.399e-01  1.888e-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: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443383/likelihoodResults_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.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) = 5304.68157941
delta logL = -0.00144339655253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5304.68013818
delta logL = -2.16502667172e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5763       1.0000          .0000       10.000    
     3 'Normalizat'    .83996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0753       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5304.680     FROM MIGRAD    STATUS=FAILED        95 CALLS      263 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    635.93        .18784E-02** at limit **
   2  Index         2.6270        5.3600        .50000       -.13494E-03
   3  Normalizat    .83994        .64938E-01    .21746E-03    .55182E-03
   4  Prefactor     1.0753        .83017E-01    .24967E-03    .45906E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5304.680     FROM SIMPLEX   STATUS=UNCHANGED    170 CALLS      433 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    635.93        .33007E-03** at limit **
   2  Index         2.6270        5.3600        .14282E-04   -.13494E-03
   3  Normalizat    .83994        .64938E-01    .44777E-06    .55182E-03
   4  Prefactor     1.0753        .83017E-01    .13544E-06    .45906E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5304.586     FROM MIGRAD    STATUS=FAILED       128 CALLS      561 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58489E-01    15.887        .39392E-04   -.23793E-02
   2  Index         4.5779        6.6978        .11166E-01   -.13174E-04
   3  Normalizat    .81607        .14315        .86986E-05    .15396E-03
   4  Prefactor     1.0940        .18122        .99866E-05    .33355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0584886
  Index      = 4.57787
  Normalizat = 0.816066
  Prefactor  = 1.09404
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.586     FROM HESSE     STATUS=OK            25 CALLS      586 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58489E-01    .65065        .15757E-05   -1.5660    
   2  Index         4.5779        3.3828        .44665E-03   -.84528E-01
   3  Normalizat    .81607        .18646        .17397E-05   -.99475    
   4  Prefactor     1.0940        .23412        .19973E-05   -.89657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50107e-10
Minuit parameter uncertainties:
  1  0.389829
  2  3.71855
  3  0.18661
  4  0.234339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443383': 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): 1
logL (Free Index) = 5304.58621315
delta logL = 0.0939228656871

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.849e-02  3.898e-01  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  4.578e+00  3.719e+00  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.094e+00  2.343e-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:  8.161e-01  1.866e-01  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/443383/cmap_HighResolution_331344001_331603201_4FGL_J1317.6+3428_daily_bin355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-09-07 10:19:14.847981', job_id='443383', GAL2='1.09', fit_tolerance='1e-08', EG2='0.82', EG='0.84', time_epoch_completed='1631035154.85', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.39e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='355' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:19:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 443383: <4FGL_J1317.6+3428_daily_bin355> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin355> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 10:05:53 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:08:32 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:08:32 2021
Terminated at Tue Sep  7 10:19:15 2021
Results reported at Tue Sep  7 10:19:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin355 199.401 34.4676 331344001 331603201 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 :                                   581.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            802 sec.

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

