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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin158
RA = 199.401, Dec = 34.4676
tmin = 280281601, tmax = 280540801
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='443078', job_status='RUN', time_executed='2021-09-07 10:06:58.868326', time_epoch_executed='1631034418.87' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443078/ft1_4FGL_J1317.6+3428_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443078/ft2_4FGL_J1317.6+3428_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443078/ft1_4FGL_J1317.6+3428_daily_bin158.fits outfile=/scratch/kocevski/443078/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin158.fits ra=199.401 dec=34.4676 rad=12.0 tmin=280281601.0 tmax=280540801.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 4.40
user 4.14
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443078/ft1_filtered_4FGL_J1317.6+3428_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/443078/ft2_4FGL_J1317.6+3428_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/443078/ltcube_280281601_280540801_4FGL_J1317.6+3428_daily_bin158.fits outfile=/scratch/kocevski/443078/expmap_280281601_280540801_4FGL_J1317.6+3428_daily_bin158.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/443078/ltcube_280281601_280540801_4FGL_J1317.6+3428_daily_bin158.fits
.....................!
real 192.15
user 186.81
sys 4.09

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/443078/ft1_filtered_4FGL_J1317.6+3428_daily_bin158.fits scfile=/scratch/kocevski/443078/ft2_4FGL_J1317.6+3428_daily_bin158.fits outfile=/scratch/kocevski/443078/cmap_280281601_280540801_4FGL_J1317.6+3428_daily_bin158.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443078/ft1_filtered_4FGL_J1317.6+3428_daily_bin158.fits scfile=/scratch/kocevski/443078/ft2_4FGL_J1317.6+3428_daily_bin158.fits outfile=/scratch/kocevski/443078/cmap_HighResolution_280281601_280540801_4FGL_J1317.6+3428_daily_bin158.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.60
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.212       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.459       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3018       1.0000         .10000E-03   10000.    
     9 'norm      '    7.2291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7509       1.0000         .10000E-03   10000.    
    12 'norm      '    11.727       1.0000         .10000E-03   10000.    
    13 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    25.642       1.0000         .10000E-03   10000.    
    15 'norm      '    21.332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0166       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5413       1.0000         .10000E-03   10000.    
    24 'norm      '    5.1011       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .57383       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.7276       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=   6147.058     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3275 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5938       -.42287E-06** at limit **
   2  Prefactor     29.213        12.604        .19439E-07    .20978E-04
   3  Prefactor     18.457        15.491       -.13321E-06    .52298E-05
   4  Prefactor     .10000E-03    25.923       -.35259E-06** at limit **
   5  Prefactor     .10000E-03    2.5128       -.14355E-07** at limit **
   6  norm          .10000E-03    1.8255       -.43615E-07** at limit **
   7  Prefactor     95.748        69.603        .32807E-05    .24739E-04
   8  Prefactor     8.3050        22.589        .37442E-05    .30106E-04
   9  norm          7.2296        4.3182        .35239E-07   -.42745E-03
  10  Prefactor     .10000E-03    35.139       -.40813E-05** at limit **
  11  norm          2.7477        2.5940        .19896E-06   -.15299E-02
  12  norm          11.727        11.508       -.15045E-06    .19867E-05
  13  norm          .10000E-03    4.3083       -.91001E-07** at limit **
  14  norm          25.649        8.9148       -.52817E-07   -.16317E-04
  15  norm          21.334        22.475        .98267E-06    .15388E-04
  16  Prefactor     3.0150        2.7890       -.94889E-07   -.19596E-03
  17  Prefactor     .10000E-03    28.192        .31697E-05** at limit **
  18  Prefactor     .10000E-03    14.682        .32383E-05** at limit **
  19  Prefactor     .10000E-03    16.463       -.36446E-05** at limit **
  20  Prefactor     .10000E-03    7.7524        .12657E-06** at limit **
  21  Prefactor     .10000E-03    29.801        .36311E-05** at limit **
  22  norm          .10000E-03    .94126        .43275E-07** at limit **
  23  Prefactor     5.5415        3.6787        .20292E-07   -.71420E-06
  24  norm          5.1007        9.6091        .25258E-06   -.45865E-03
  25  Prefactor     .10000E-03    24.833       -.18437E-05** at limit **
  26  Normalizat    .57374        .17869       -.98106E-06    .25743E-04
  27  Prefactor     1.7275        .23076        .65490E-07    .92701E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.2129
  Prefactor  = 18.4571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 95.748
  Prefactor  = 8.30501
  norm       = 7.22955
  Prefactor  = 0.0001
  norm       = 2.74769
  norm       = 11.727
  norm       = 0.0001
  norm       = 25.6492
  norm       = 21.3342
  Prefactor  = 3.01499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.54153
  norm       = 5.10073
  Prefactor  = 0.0001
  Normalizat = 0.573739
  Prefactor  = 1.72755
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.058     FROM HESSE     STATUS=OK           488 CALLS     3763 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.213        12.604        .37064E-03   -1.4626    
   3  Prefactor     18.457        15.489        .93223E-04   -1.4848    
   4  Prefactor     .10000E-03    25.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5234        .12135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.8494        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     95.748        69.553        .41077E-04   -1.3748    
   8  Prefactor     8.3050        22.750        .13914E-03   -1.5132    
   9  norm          7.2296        4.3679        .61476E-03   -1.5170    
  10  Prefactor     .10000E-03    36.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7477        4.2054        .95681E-03   -1.5376    
  12  norm          11.727        11.509        .11698E-03   -1.5023    
  13  norm          .10000E-03    4.4076        .31513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          25.649        8.8594        .79109E-04   -1.4695    
  15  norm          21.334        22.476        .86721E-04   -1.4784    
  16  Prefactor     3.0150        2.7735        .11943E-03   -1.5361    
  17  Prefactor     .10000E-03    29.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8250        .14728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5415        3.6780        .11799E-03   -1.5237    
  24  norm          5.1007        10.654        .89008E-03   -1.5256    
  25  Prefactor     .10000E-03    25.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .57374        .21152        .30889E-03   -1.0911    
  27  Prefactor     1.7275        .27734        .25012E-03   -.71351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06806e-09
Minuit parameter uncertainties:
  1  1.34544e-06
  2  12.6048
  3  15.4926
  4  1.19914e-05
  5  1.25225e-06
  6  9.37364e-06
  7  69.6122
  8  22.7739
  9  4.36813
  10  7.96735e-05
  11  4.20587
  12  11.5113
  13  2.3243e-05
  14  8.85985
  15  22.4851
  16  2.77361
  17  1.00076e-05
  18  4.80249e-05
  19  3.12069e-05
  20  4.83851e-06
  21  8.35573e-05
  22  3.75434e-06
  23  3.67818
  24  10.6581
  25  1.69264e-05
  26  0.211821
  27  0.277593
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.015e+00  2.774e+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:  1.728e+00  2.776e-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:  5.737e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 9.06e-06 +/- 8.33e-06

TS (Fixed Index): 2.09
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443078/likelihoodResults_280281601_280540801_4FGL_J1317.6+3428_daily_bin158.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) = 6146.76931356
delta logL = 0.288362650347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6146.7687807
delta logL = 0.288895507131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3792       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0352       1.0000          .0000       10.000    
     3 'Normalizat'    .58854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7111       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=   6146.769     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3725        140.25        .48116E-02    .27998E-03
   2  Index         2.0337        5.5830        .24480        .87261E-04
   3  Normalizat    .58858        .10639        .68945E-01    .41709E-04
   4  Prefactor     1.7112        .12219        .56763E-01   -.45676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37255
  Index      = 2.03369
  Normalizat = 0.588578
  Prefactor  = 1.71119
 **********
 **   18 **HESSE 
 **********

 FCN=   6146.769     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3725        3.7199        .13342E-03   -1.5290    
   2  Index         2.0337        .58009        .85920E-02   -.63511    
   3  Normalizat    .58858        .20682        .30515E-03   -1.0847    
   4  Prefactor     1.7112        .27447        .25096E-03   -.71784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57055e-10
Minuit parameter uncertainties:
  1  3.72005
  2  0.582121
  3  0.207091
  4  0.274717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443078': 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) = 6146.76877468
delta logL = 0.288901523268

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.711e+00  2.747e-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:  5.886e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.03 +/- 0.58
Photon Flux (Free Index): 2.54e-08 +/- 2.44e-08
Energy Flux (Free Index): 1.62e-05 +/- 2.00e-05

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/443078/cmap_HighResolution_280281601_280540801_4FGL_J1317.6+3428_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='1.62e-05', photon_flux_error='2.98e-08', dlogl='2.89e-01', energy_flux='9.06e-06', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-07 10:19:35.823903', photon_index_error2='0.58', photon_index2='2.03', ts='2.09', fit_tolerance='1e-08', GAL='1.73', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.00e-05', EG='0.57', time_epoch_completed='1631035175.82', return_code='0', job_id='443078', GAL2='1.71', EG2='0.59', return_code2='0', energy_flux_error='8.33e-06', photon_flux_error2='2.44e-08', ts2='2.68', photon_index='2.53' WHERE bin_id='158' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:19:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 443078: <4FGL_J1317.6+3428_daily_bin158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin158 199.401 34.4676 280281601 280540801 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            848 sec.

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

