/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin57
RA = 199.401, Dec = 34.4676
tmin = 254102401, tmax = 254361601
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='441936', job_status='RUN', time_executed='2021-09-07 10:03:03.404877', time_epoch_executed='1631034183.4' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441936/ft1_4FGL_J1317.6+3428_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441936/ft2_4FGL_J1317.6+3428_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441936/ft1_4FGL_J1317.6+3428_daily_bin57.fits outfile=/scratch/kocevski/441936/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin57.fits ra=199.401 dec=34.4676 rad=12.0 tmin=254102401.0 tmax=254361601.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.06
user 1.86
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441936/ft1_filtered_4FGL_J1317.6+3428_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/441936/ft2_4FGL_J1317.6+3428_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/441936/ltcube_254102401_254361601_4FGL_J1317.6+3428_daily_bin57.fits outfile=/scratch/kocevski/441936/expmap_254102401_254361601_4FGL_J1317.6+3428_daily_bin57.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/441936/ltcube_254102401_254361601_4FGL_J1317.6+3428_daily_bin57.fits
.....................!
real 193.58
user 187.84
sys 4.78

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/441936/ft1_filtered_4FGL_J1317.6+3428_daily_bin57.fits scfile=/scratch/kocevski/441936/ft2_4FGL_J1317.6+3428_daily_bin57.fits outfile=/scratch/kocevski/441936/cmap_254102401_254361601_4FGL_J1317.6+3428_daily_bin57.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441936/ft1_filtered_4FGL_J1317.6+3428_daily_bin57.fits scfile=/scratch/kocevski/441936/ft2_4FGL_J1317.6+3428_daily_bin57.fits outfile=/scratch/kocevski/441936/cmap_HighResolution_254102401_254361601_4FGL_J1317.6+3428_daily_bin57.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48221       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.278       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.7931       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9117       1.0000         .10000E-03   10000.    
    14 'norm      '    6.3860       1.0000         .10000E-03   10000.    
    15 'norm      '    .32948E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.618       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4225       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28982E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .55461E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3601       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62091       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=   4372.863     FROM MIGRAD    STATUS=FAILED      1157 CALLS     4270 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6962        .15400E-02** at limit **
   2  Prefactor     .10000E-03    7.6248        .17794E-02** at limit **
   3  Prefactor     .10000E-03    7.6071        .17810E-02** at limit **
   4  Prefactor     .10000E-03    38.915        .18142E-02** at limit **
   5  Prefactor     .48527        10.866        .28575E-02    .23214E-02
   6  norm          .10000E-03    2.1533        .94562E-03** at limit **
   7  Prefactor     .10000E-03    16.254        .18142E-02** at limit **
   8  Prefactor     20.279        26.209        .88945E-04   -.13531E-03
   9  norm          4.5605        4.5514        .13577E-03    .69499E-05
  10  Prefactor     .10000E-03    14.072        .18142E-02** at limit **
  11  norm          .10000E-03    2.1623        .94543E-03** at limit **
  12  norm          6.7946        12.521        .15394E-03    .22967E-04
  13  norm          5.9109        5.7559        .11484E-03   -.30272E-03
  14  norm          6.3853        8.9910        .15883E-03    .64420E-05
  15  norm          .10002E-03    22.131        .94203E-01** at limit **
  16  Prefactor     .10000E-03    1.0897        .67287E-03** at limit **
  17  Prefactor     .10000E-03    5.2059        .14722E-02** at limit **
  18  Prefactor     45.610        63.504        .59362E-04   -.66915E-04
  19  Prefactor     .10000E-03    13.349        .18142E-02** at limit **
  20  Prefactor     .10000E-03    11.604        .18142E-02** at limit **
  21  Prefactor     .10000E-03    60.073        .18142E-02** at limit **
  22  norm          1.4220        2.3708        .12548E-03    .20276E-03
  23  Prefactor     .10000E-03    46.564        .17841E-02** at limit **
  24  norm          .10000E-03    177.17        .45236E-02** at limit **
  25  Prefactor     .10000E-03    6.2547        .16152E-02** at limit **
  26  Normalizat    1.3602        .22882        .19459E-03   -.57796E-03
  27  Prefactor     .62079        .27388        .33625E-03   -.24384E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4372.863     FROM SIMPLEX   STATUS=UNCHANGED   1372 CALLS     5642 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6962        .33783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6248        .27630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6071        .33845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.915        .71888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .48527        10.866        .32155E-06   -1.5569    
   6  norm          .10000E-03    2.1533        .78081E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.254        .35208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.279        26.209        .30503E-06   -1.4807    
   9  norm          4.5605        4.5514        .31474E-06   -1.5281    
  10  Prefactor     .10000E-03    14.072        .33236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1623        .14799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.7946        12.521        .31233E-06   -1.5187    
  13  norm          5.9109        5.7559        .31280E-06   -1.5222    
  14  norm          6.3853        8.9910        .31308E-06   -1.5203    
  15  norm          .10002E-03    22.131        .72896E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0897        .43878E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2059        .23086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.610        63.504        .29616E-06   -1.4356    
  19  Prefactor     .10000E-03    13.349        .27004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.604        .37452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    60.073        .48857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4220        2.3708        .31747E-06   -1.5469    
  23  Prefactor     .10000E-03    46.564        .45408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    177.17        .23701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.2547        .72380E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3602        .22882        .16834E-06   -.81786    
  27  Prefactor     .62079        .27388        .21960E-06   -1.0672    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4372.863     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     6117 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6965        .30799E-03** at limit **
   2  Prefactor     .10000E-03    7.6262        .35587E-03** at limit **
   3  Prefactor     .10000E-03    7.6071        .35620E-03** at limit **
   4  Prefactor     .10000E-03    38.916        .36285E-03** at limit **
   5  Prefactor     .48530        10.875        .57150E-03    .94307E-04
   6  norm          .10000E-03    2.1534        .18912E-03** at limit **
   7  Prefactor     .10000E-03    16.254        .36285E-03** at limit **
   8  Prefactor     20.279        26.203        .17789E-04   -.63909E-06
   9  norm          4.5605        4.5511        .54309E-05    .79547E-05
  10  Prefactor     .10000E-03    14.075        .36285E-03** at limit **
  11  norm          .10000E-03    2.1625        .18909E-03** at limit **
  12  norm          6.7945        12.521        .61578E-05    .73850E-07
  13  norm          5.9109        5.7595        .45938E-05   -.49496E-06
  14  norm          6.3852        8.9967        .63532E-05    .71578E-07
  15  norm          .10002E-03    21.875        .95049E-01** at limit **
  16  Prefactor     .10000E-03    1.0897        .13457E-03** at limit **
  17  Prefactor     .10000E-03    5.2061        .29444E-03** at limit **
  18  Prefactor     45.610        63.500        .11872E-04   -.19151E-06
  19  Prefactor     .10000E-03    13.352        .36285E-03** at limit **
  20  Prefactor     .10000E-03    11.605        .36285E-03** at limit **
  21  Prefactor     .10000E-03    60.076        .36285E-03** at limit **
  22  norm          1.4220        2.3705        .50194E-05   -.90599E-06
  23  Prefactor     .10000E-03    48.586        .71363E-04** at limit **
  24  norm          .10000E-03    183.74        .18094E-03** at limit **
  25  Prefactor     .10000E-03    6.2547        .32305E-03** at limit **
  26  Normalizat    1.3602        .22892        .38917E-04    .43819E-05
  27  Prefactor     .62079        .27401        .13450E-04    .38882E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.485295
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2791
  norm       = 4.56051
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.79454
  norm       = 5.91094
  norm       = 6.38524
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.6102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42198
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36023
  Prefactor  = 0.620791
 **********
 **   18 **HESSE 
 **********

 FCN=   4372.863     FROM HESSE     STATUS=OK           472 CALLS     6589 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6965        .61598E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6262        .71174E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6071        .71240E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.916        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .48530        10.870        .11430E-03   -1.5569    
   6  norm          .10000E-03    2.1534        .37825E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.254        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.279        26.202        .35578E-05   -1.4807    
   9  norm          4.5605        4.5495        .10862E-05   -1.5281    
  10  Prefactor     .10000E-03    14.075        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1625        .37817E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.7945        12.520        .61578E-05   -1.5187    
  13  norm          5.9109        5.7618        .91876E-06   -1.5222    
  14  norm          6.3852        8.9985        .63532E-05   -1.5203    
  15  norm          .10002E-03    21.924        .94882E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0897        .26915E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2061        .58887E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.610        63.488        .23745E-05   -1.4356    
  19  Prefactor     .10000E-03    13.352        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.605        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    60.075        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4220        2.3704        .10039E-05   -1.5469    
  23  Prefactor     .10000E-03    48.578        .14273E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    183.74        .36188E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.2547        .64609E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3602        .22867        .77835E-05   -.81786    
  27  Prefactor     .62079        .27350        .26900E-05   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8467e-12
Minuit parameter uncertainties:
  1  3.33713e-07
  2  6.60652e-07
  3  5.67138e-07
  4  1.86672e-06
  5  4.59407
  6  2.48352e-07
  7  2.12621e-07
  8  26.2173
  9  4.54982
  10  4.18003e-06
  11  1.85624e-07
  12  12.5247
  13  5.76235
  14  9.00037
  15  0.00116904
  16  1.00582e-07
  17  4.8461e-07
  18  63.5819
  19  2.32663e-06
  20  1.15375e-06
  21  4.89378e-06
  22  2.37051
  23  5.9138e-05
  24  0.00024001
  25  1.04347e-07
  26  0.228838
  27  0.274089
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.006e-07  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.208e-01  2.741e-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.360e+00  2.288e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441936/likelihoodResults_254102401_254361601_4FGL_J1317.6+3428_daily_bin57.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) = 4372.86754652
delta logL = -0.00408950531619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4372.86345679
delta logL = 2.3328448151e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5220       1.0000          .0000       10.000    
     3 'Normalizat'    1.3602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62082       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=   4372.863     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      246 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.048        .67758E-02** at limit **
   2  Index         2.0165        8.9675        .50000        .28303E-06
   3  Normalizat    1.3602        .16546E-01    .19459E-03   -.17877E-02
   4  Prefactor     .62079        .20152E-01    .33625E-03   -.10354E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01651
  Normalizat = 1.36022
  Prefactor  = 0.620787
 **********
 **   18 **HESSE 
 **********

 FCN=   4372.863     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    133.34        .72857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0165        8.9450        .50000       -.63938    
   3  Normalizat    1.3602        .54578E-01    .38917E-04   -.81786    
   4  Prefactor     .62079        .66464E-01    .67250E-04   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86447e-09
Minuit parameter uncertainties:
  1  3.75425e-05
  2  773.426
  3  0.05458
  4  0.0664726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441936': 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) = 4372.8634504
delta logL = 6.62181537336e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.754e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.017e+00  7.734e+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.208e-01  6.647e-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.360e+00  5.458e-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/441936/cmap_HighResolution_254102401_254361601_4FGL_J1317.6+3428_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-07 10:16:18.245034', job_id='441936', GAL2='0.62', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631034978.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='6.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='57' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:16:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 441936: <4FGL_J1317.6+3428_daily_bin57> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin57 199.401 34.4676 254102401 254361601 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 :                                   792.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            917 sec.

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

