/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 4 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin37
RA = 199.401, Dec = 34.4676
tmin = 248918401, tmax = 249177601
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='441905', job_status='RUN', time_executed='2021-09-07 10:02:52.768153', time_epoch_executed='1631034172.77' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441905

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441905/ft1_4FGL_J1317.6+3428_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441905/ft2_4FGL_J1317.6+3428_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441905/ft1_4FGL_J1317.6+3428_daily_bin37.fits outfile=/scratch/kocevski/441905/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin37.fits ra=199.401 dec=34.4676 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.95
user 1.79
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441905/ft1_filtered_4FGL_J1317.6+3428_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/441905/ft2_4FGL_J1317.6+3428_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/441905/ltcube_248918401_249177601_4FGL_J1317.6+3428_daily_bin37.fits outfile=/scratch/kocevski/441905/expmap_248918401_249177601_4FGL_J1317.6+3428_daily_bin37.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/441905/ltcube_248918401_249177601_4FGL_J1317.6+3428_daily_bin37.fits
.....................!
real 192.37
user 186.50
sys 4.87

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/441905/ft1_filtered_4FGL_J1317.6+3428_daily_bin37.fits scfile=/scratch/kocevski/441905/ft2_4FGL_J1317.6+3428_daily_bin37.fits outfile=/scratch/kocevski/441905/cmap_248918401_249177601_4FGL_J1317.6+3428_daily_bin37.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441905/ft1_filtered_4FGL_J1317.6+3428_daily_bin37.fits scfile=/scratch/kocevski/441905/ft2_4FGL_J1317.6+3428_daily_bin37.fits outfile=/scratch/kocevski/441905/cmap_HighResolution_248918401_249177601_4FGL_J1317.6+3428_daily_bin37.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.009       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8337       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12639E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.1256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2026       1.0000         .10000E-03   10000.    
    12 'norm      '    .85857E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0996       1.0000         .10000E-03   10000.    
    15 'norm      '    16.065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.647       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10886E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    18.191       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2688       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .61121       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=   4407.373     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3296 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9169        7.3352        .48123E-06    .47190E-04
   2  Prefactor     27.008        13.913       -.42839E-07   -.15673E-04
   3  Prefactor     11.207        22.591       -.55030E-06   -.15872E-04
   4  Prefactor     .10000E-03    37.054        .34319E-06** at limit **
   5  Prefactor     .10000E-03    6.7285       -.23590E-06** at limit **
   6  norm          9.8342        5.6031       -.18128E-06   -.48078E-03
   7  Prefactor     .10000E-03    15.678       -.40307E-06** at limit **
   8  Prefactor     .10000E-03    85.879        .70317E-05** at limit **
   9  norm          6.1253        4.4078       -.34123E-07   -.66215E-05
  10  Prefactor     .10000E-03    7.2290       -.11189E-06** at limit **
  11  norm          8.2029        5.7982        .19843E-06   -.17792E-04
  12  norm          .10000E-03    108.66       -.20094E-04** at limit **
  13  norm          .10000E-03    2.6149       -.47479E-06** at limit **
  14  norm          1.0985        4.9701       -.10316E-05    .55897E-05
  15  norm          16.064        19.600       -.60302E-07   -.38092E-06
  16  Prefactor     .10000E-03    2.3722       -.54079E-06** at limit **
  17  Prefactor     6.6784        13.016       -.22127E-05    .50804E-04
  18  Prefactor     .10000E-03    32.992       -.22994E-05** at limit **
  19  Prefactor     14.640        23.693       -.12384E-06    .20982E-04
  20  Prefactor     .10000E-03    28.736       -.87695E-06** at limit **
  21  Prefactor     .10000E-03    25.554        .22118E-05** at limit **
  22  norm          .10000E-03    .70158        .10089E-07** at limit **
  23  Prefactor     .10000E-03    2.1690        .55905E-07** at limit **
  24  norm          18.184        21.625       -.33894E-06   -.19412E-04
  25  Prefactor     .10000E-03    13.506        .16610E-06** at limit **
  26  Normalizat    1.2689        .20147       -.14413E-06   -.28813E-04
  27  Prefactor     .61113        .23683        .59739E-06   -.36418E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91686
  Prefactor  = 27.008
  Prefactor  = 11.207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.83416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.12526
  Prefactor  = 0.0001
  norm       = 8.20292
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.09851
  norm       = 16.0639
  Prefactor  = 0.0001
  Prefactor  = 6.67843
  Prefactor  = 0.0001
  Prefactor  = 14.6399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1837
  Prefactor  = 0.0001
  Normalizat = 1.26892
  Prefactor  = 0.611129
 **********
 **   18 **HESSE 
 **********

 FCN=   4407.373     FROM HESSE     STATUS=OK           488 CALLS     3784 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9169        7.3403        .76273E-03   -1.5182    
   2  Prefactor     27.008        13.916        .77085E-04   -1.4668    
   3  Prefactor     11.207        22.567        .11962E-03   -1.5038    
   4  Prefactor     .10000E-03    37.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9676        .33584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8342        5.5882        .11364E-03   -1.5081    
   7  Prefactor     .10000E-03    15.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    85.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.1253        4.4068        .11404E-03   -1.5213    
  10  Prefactor     .10000E-03    7.2426        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2029        5.7864        .12945E-03   -1.5135    
  12  norm          .10000E-03    104.12        .38973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6452        .10417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0985        4.7310        .27943E-03   -1.5498    
  15  norm          16.064        19.593        .99928E-04   -1.4906    
  16  Prefactor     .10000E-03    2.4235        .99810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6784        12.976        .77639E-03   -1.5191    
  18  Prefactor     .10000E-03    33.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.640        23.875        .10465E-03   -1.4943    
  20  Prefactor     .10000E-03    28.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .71156        .54292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1925        .95439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          18.184        21.678        .93905E-04   -1.4855    
  25  Prefactor     .10000E-03    13.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2689        .23236        .20033E-03   -.84499    
  27  Prefactor     .61113        .26970        .33742E-03   -1.0712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04122e-10
Minuit parameter uncertainties:
  1  7.34121
  2  13.9176
  3  22.5839
  4  8.35595e-06
  5  1.21885e-05
  6  5.58847
  7  1.89617e-05
  8  4.1891e-05
  9  4.40703
  10  1.40439e-05
  11  5.78677
  12  0.000140515
  13  9.95416e-06
  14  4.55982
  15  19.6006
  16  2.40733e-06
  17  12.9817
  18  0.000129306
  19  23.8905
  20  2.3263e-06
  21  0.000130604
  22  3.00759e-08
  23  3.05551e-06
  24  21.6872
  25  9.07636e-06
  26  0.232554
  27  0.270271
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.407e-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:  6.111e-01  2.703e-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.269e+00  2.326e-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: 8.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441905/likelihoodResults_248918401_249177601_4FGL_J1317.6+3428_daily_bin37.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): 0
logL (Free Index) = 4407.37466055
delta logL = -0.00196048119415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4407.37270017
delta logL = -1.00007127912e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4407.373     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      226 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    134.36        .10016E-01** at limit **
   2  Index         2.2054        6.7515        .93787E-01    .16777E-06
   3  Normalizat    1.2689        .35497E-01    .20033E-03    .20587E-03
   4  Prefactor     .61113        .43069E-01    .33742E-03    .16361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20536
  Normalizat = 1.26892
  Prefactor  = 0.61113
 **********
 **   18 **HESSE 
 **********

 FCN=   4407.373     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5984        .10350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2054        5.9952        .37515E-02   -.59309    
   3  Normalizat    1.2689        .21917        .40066E-04   -.84499    
   4  Prefactor     .61113        .26573        .13497E-04   -1.0712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37952e-10
Minuit parameter uncertainties:
  1  1.92257e-06
  2  185.188
  3  0.219325
  4  0.26628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441905': 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) = 4407.37269872
delta logL = 1.35448317451e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  6.111e-01  2.663e-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.269e+00  2.193e-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/441905/cmap_HighResolution_248918401_249177601_4FGL_J1317.6+3428_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2021-09-07 10:13:27.295034', job_id='441905', GAL2='0.61', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631034807.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='37' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:13:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 441905: <4FGL_J1317.6+3428_daily_bin37> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin37> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 10:01:00 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:39 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:02:39 2021
Terminated at Tue Sep  7 10:13:28 2021
Results reported at Tue Sep  7 10:13:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin37 199.401 34.4676 248918401 249177601 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 :                                   632.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             352.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            748 sec.

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

