/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 5 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_bin1119
RA = 199.401, Dec = 34.4676
tmin = 529372801, tmax = 529632001
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='448785', job_status='RUN', time_executed='2021-09-07 10:25:50.995986', time_epoch_executed='1631035551.0' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448785/ft1_4FGL_J1317.6+3428_daily_bin1119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448785/ft2_4FGL_J1317.6+3428_daily_bin1119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448785/ft1_4FGL_J1317.6+3428_daily_bin1119.fits outfile=/scratch/kocevski/448785/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1119.fits ra=199.401 dec=34.4676 rad=12.0 tmin=529372801.0 tmax=529632001.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.54
user 3.27
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448785/ft1_filtered_4FGL_J1317.6+3428_daily_bin1119.fits" evtable="EVENTS" scfile=/scratch/kocevski/448785/ft2_4FGL_J1317.6+3428_daily_bin1119.fits sctable="SC_DATA" outfile=/scratch/kocevski/448785/ltcube_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.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/448785/ft2_4FGL_J1317.6+3428_daily_bin1119.fits
.....................!
real 16.17
user 15.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448785/ft1_filtered_4FGL_J1317.6+3428_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/448785/ft2_4FGL_J1317.6+3428_daily_bin1119.fits sctable="SC_DATA" expcube=/scratch/kocevski/448785/ltcube_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.fits outfile=/scratch/kocevski/448785/expmap_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.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/448785/ltcube_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.fits
.....................!
real 193.89
user 187.89
sys 5.29

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/448785/ft1_filtered_4FGL_J1317.6+3428_daily_bin1119.fits scfile=/scratch/kocevski/448785/ft2_4FGL_J1317.6+3428_daily_bin1119.fits outfile=/scratch/kocevski/448785/cmap_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448785/ft1_filtered_4FGL_J1317.6+3428_daily_bin1119.fits scfile=/scratch/kocevski/448785/ft2_4FGL_J1317.6+3428_daily_bin1119.fits outfile=/scratch/kocevski/448785/cmap_HighResolution_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7072       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83873       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6663       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4379       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.002       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66058E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.2847       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.585       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1581       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81355       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=   5124.115     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2803 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7088        7.8965       -.27704E-06   -.10186E-03
   2  Prefactor     .84028        8.8448       -.38388E-06   -.39975E-04
   3  Prefactor     .10000E-03    21.949        .55494E-05** at limit **
   4  Prefactor     .10000E-03    53.980        .85919E-05** at limit **
   5  Prefactor     6.6694        7.0762       -.94925E-06   -.17905E-03
   6  norm          1.7883        3.0040       -.61402E-08   -.11902E-03
   7  Prefactor     .10000E-03    15.737       -.53267E-05** at limit **
   8  Prefactor     .10000E-03    7.7923       -.33376E-05** at limit **
   9  norm          1.4117        3.1615        .62366E-07   -.20485E-03
  10  Prefactor     2.4302        11.959        .52212E-05   -.77790E-03
  11  norm          .10000E-03    1.9932       -.14748E-06** at limit **
  12  norm          .10000E-03    7.5290        .19948E-05** at limit **
  13  norm          .10000E-03    .87772       -.66038E-08** at limit **
  14  norm          .10000E-03    1.2762       -.13307E-08** at limit **
  15  norm          10.005        16.203       -.26620E-07   -.43295E-05
  16  Prefactor     .88234E-01    1.4229       -.54407E-07   -.15532E-03
  17  Prefactor     .10000E-03    4.7340       -.68331E-08** at limit **
  18  Prefactor     .10000E-03    17.411        .65743E-05** at limit **
  19  Prefactor     .10000E-03    24.911       -.92384E-05** at limit **
  20  Prefactor     .10000E-03    8.6199        .15946E-05** at limit **
  21  Prefactor     .10000E-03    88.211       -.84448E-05** at limit **
  22  norm          4.2848        1.9753        .19865E-08    .22023E-04
  23  Prefactor     .10000E-03    3.0651        .41423E-07** at limit **
  24  norm          .10000E-03    3.2100        .69003E-08** at limit **
  25  Prefactor     26.587        21.347        .60649E-07    .52451E-05
  26  Normalizat    1.1579        .17186       -.28528E-07    .10724E-03
  27  Prefactor     .81356        .21355       -.11937E-06    .62531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70879
  Prefactor  = 0.840276
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 6.66941
  norm       = 1.78832
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.41169
  Prefactor  = 2.4302
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.005
  Prefactor  = 0.0882335
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.28481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.5868
  Normalizat = 1.15791
  Prefactor  = 0.813555
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.115     FROM HESSE     STATUS=OK           486 CALLS     3289 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7088        7.8929        .24756E-03   -1.5379    
   2  Prefactor     .84028        23.898        .41084E-02   -1.5525    
   3  Prefactor     .10000E-03    22.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6694        7.6383        .15542E-03   -1.5191    
   6  norm          1.7883        2.9756        .15572E-03   -1.5441    
   7  Prefactor     .10000E-03    15.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4117        3.1382        .18373E-03   -1.5470    
  10  Prefactor     2.4302        34.599        .13102E-02   -1.5396    
  11  norm          .10000E-03    2.0051        .98681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.5564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .88023        .65471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2764        .78973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.005        16.187        .12670E-03   -1.5075    
  16  Prefactor     .88234E-01    16.631        .16159E-02   -1.5649    
  17  Prefactor     .10000E-03    4.7429        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    88.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2848        1.9768        .66140E-04   -1.5294    
  23  Prefactor     .10000E-03    3.1586        .24450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.2110        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.587        21.348        .77696E-04   -1.4676    
  26  Normalizat    1.1579        .20681        .20012E-03   -.87914    
  27  Prefactor     .81356        .25445        .29399E-03   -.99231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81456e-08
Minuit parameter uncertainties:
  1  7.89589
  2  8.9657
  3  0.000296256
  4  0.000762135
  5  7.63937
  6  2.97586
  7  0.000260513
  8  0.000113345
  9  3.13858
  10  18.3518
  11  2.05337e-06
  12  6.58797e-05
  13  6.21989e-08
  14  1.84123e-08
  15  16.1945
  16  2.42205
  17  3.31938e-07
  18  0.000336824
  19  0.000489765
  20  5.90733e-05
  21  0.000965759
  22  1.97688
  23  7.57332e-07
  24  3.88243e-08
  25  21.3538
  26  0.206956
  27  0.254817
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  8.823e-02  2.422e+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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.136e-01  2.548e-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.158e+00  2.070e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448785/likelihoodResults_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.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) = 5124.09779635
delta logL = 0.0176905908347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5124.08764426
delta logL = 0.0278426742852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26648       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2956       1.0000          .0000       10.000    
     3 'Normalizat'    1.1475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82050       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=   5124.088     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      250 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26607        4.5214        .24060E-01    .51546E-03
   2  Index         3.2981        1.0662        .50000       -.46240E-04
   3  Normalizat    1.1476        .10189E-01    .36329E-01   -.51395E-04
   4  Prefactor     .82042        .12844E-01    .66204E-01   -.28894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.266068
  Index      = 3.29812
  Normalizat = 1.14758
  Prefactor  = 0.820424
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.088     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26607        6.0917        .11969E-02   -1.5605    
   2  Index         3.2981        6.6123        .64379E-02   -.34732    
   3  Normalizat    1.1476        .20485        .20092E-03   -.88238    
   4  Prefactor     .82042        .25197        .29288E-03   -.98980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76598e-10
Minuit parameter uncertainties:
  1  2.54602
  2  4.94491
  3  0.204996
  4  0.252322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448785': 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): 0
logL (Free Index) = 5124.08764363
delta logL = 0.0278433060712

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  2.661e-01  2.546e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  3.298e+00  4.945e+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:  8.204e-01  2.523e-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.148e+00  2.050e-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/448785/cmap_HighResolution_529372801_529632001_4FGL_J1317.6+3428_daily_bin1119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-07 10:36:50.871260', job_id='448785', GAL2='0.82', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1631036210.87', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.78e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1119' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 448785: <4FGL_J1317.6+3428_daily_bin1119> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1119> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:31 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:25:36 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:25:36 2021
Terminated at Tue Sep  7 10:36:51 2021
Results reported at Tue Sep  7 10:36:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1119 199.401 34.4676 529372801 529632001 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 :                                   658.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            680 sec.

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

