/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 8 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 = 7474
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin562
RA = 199.401, Dec = 34.4676
tmin = 384998401, tmax = 385257601
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='444698', job_status='RUN', time_executed='2021-09-07 10:13:59.191527', time_epoch_executed='1631034839.19' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444698/ft1_4FGL_J1317.6+3428_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444698/ft2_4FGL_J1317.6+3428_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444698/ft1_4FGL_J1317.6+3428_daily_bin562.fits outfile=/scratch/kocevski/444698/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin562.fits ra=199.401 dec=34.4676 rad=12.0 tmin=384998401.0 tmax=385257601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.72
user 3.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444698/ft1_filtered_4FGL_J1317.6+3428_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/444698/ft2_4FGL_J1317.6+3428_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/444698/ltcube_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.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/444698/ft2_4FGL_J1317.6+3428_daily_bin562.fits
.....................!
real 15.90
user 15.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444698/ft1_filtered_4FGL_J1317.6+3428_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/444698/ft2_4FGL_J1317.6+3428_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/444698/ltcube_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.fits outfile=/scratch/kocevski/444698/expmap_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.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/444698/ltcube_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.fits
.....................!
real 192.63
user 186.59
sys 4.55

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/444698/ft1_filtered_4FGL_J1317.6+3428_daily_bin562.fits scfile=/scratch/kocevski/444698/ft2_4FGL_J1317.6+3428_daily_bin562.fits outfile=/scratch/kocevski/444698/cmap_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.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/444698/ft1_filtered_4FGL_J1317.6+3428_daily_bin562.fits scfile=/scratch/kocevski/444698/ft2_4FGL_J1317.6+3428_daily_bin562.fits outfile=/scratch/kocevski/444698/cmap_HighResolution_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.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.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74852       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7560       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6371       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6844       1.0000         .10000E-03   10000.    
    12 'norm      '    20.279       1.0000         .10000E-03   10000.    
    13 'norm      '    .72088       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8869       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0393       1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.748       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.782       1.0000         .10000E-03   10000.    
    22 'norm      '    8.3488       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10576E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.636       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0893       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89637       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=   5989.418     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3330 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5231        10.688        .51479E-07   -.12172E-04
   2  Prefactor     28.702        13.673        .10028E-07   -.33679E-04
   3  Prefactor     19.230        21.974       -.25275E-06   -.29886E-04
   4  Prefactor     .10000E-03    87.664        .15247E-05** at limit **
   5  Prefactor     .74806        8.5214       -.51055E-06   -.21375E-04
   6  norm          4.4722        4.7186       -.32652E-06   -.35655E-03
   7  Prefactor     .10000E-03    24.350       -.10977E-05** at limit **
   8  Prefactor     .10000E-03    27.311        .58259E-06** at limit **
   9  norm          7.7561        4.6462       -.35443E-07   -.22793E-03
  10  Prefactor     1.6390        22.618        .82298E-05   -.74153E-05
  11  norm          3.6844        4.1193       -.48084E-06   -.11398E-03
  12  norm          20.278        15.319        .54309E-07    .25922E-04
  13  norm          .72165        13.674        .29236E-05   -.18086E-03
  14  norm          1.8871        8.5723       -.22707E-05   -.61584E-04
  15  norm          .10000E-03    40.941        .87001E-06** at limit **
  16  Prefactor     .10000E-03    1.5918       -.78539E-07** at limit **
  17  Prefactor     .10000E-03    8.2530       -.91932E-07** at limit **
  18  Prefactor     .10000E-03    20.187        .21051E-06** at limit **
  19  Prefactor     1.0187        13.296       -.22206E-05    .27560E-04
  20  Prefactor     63.752        28.731       -.14647E-06   -.12462E-03
  21  Prefactor     24.767        54.230        .23913E-05    .92287E-04
  22  norm          8.3490        2.7620        .52044E-07    .46698E-03
  23  Prefactor     .10000E-03    2.1424        .35437E-07** at limit **
  24  norm          .10000E-03    52.382       -.15198E-05** at limit **
  25  Prefactor     23.638        21.390        .28732E-06    .11486E-03
  26  Normalizat    1.0892        .18276       -.23979E-06    .11527E-03
  27  Prefactor     .89651        .21189       -.51033E-06    .40371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52314
  Prefactor  = 28.7021
  Prefactor  = 19.2299
  Prefactor  = 0.000100001
  Prefactor  = 0.748058
  norm       = 4.47223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.75609
  Prefactor  = 1.63897
  norm       = 3.68442
  norm       = 20.2784
  norm       = 0.721655
  norm       = 1.88714
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01869
  Prefactor  = 63.7516
  Prefactor  = 24.7672
  norm       = 8.34901
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.6375
  Normalizat = 1.08925
  Prefactor  = 0.896508
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.418     FROM HESSE     STATUS=OK           488 CALLS     3818 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5231        10.687        .12986E-03   -1.5091    
   2  Prefactor     28.702        13.674        .74780E-04   -1.4636    
   3  Prefactor     19.230        21.778        .91339E-04   -1.4831    
   4  Prefactor     .10000E-03    87.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .74806        8.2011        .40382E-03   -1.5535    
   6  norm          4.4722        4.7153        .16422E-03   -1.5285    
   7  Prefactor     .10000E-03    24.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7561        4.6513        .12458E-03   -1.5151    
  10  Prefactor     1.6390        23.199        .16516E-02   -1.5452    
  11  norm          3.6844        4.1155        .15687E-03   -1.5324    
  12  norm          20.278        15.321        .88944E-04   -1.4807    
  13  norm          .72165        14.321        .28951E-03   -1.5538    
  14  norm          1.8871        8.8471        .23923E-03   -1.5433    
  15  norm          .10000E-03    41.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6138        .95292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0187        76.296        .49188E-02   -1.5506    
  20  Prefactor     63.752        28.893        .50261E-04   -1.4109    
  21  Prefactor     24.767        54.691        .80468E-04   -1.4712    
  22  norm          8.3490        2.7662        .71084E-04   -1.5130    
  23  Prefactor     .10000E-03    2.1723        .11056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    53.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.638        21.412        .82392E-04   -1.4735    
  26  Normalizat    1.0892        .21326        .23646E-03   -.90098    
  27  Prefactor     .89651        .24711        .30824E-03   -.96263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97991e-10
Minuit parameter uncertainties:
  1  10.6889
  2  13.6755
  3  21.7866
  4  0.000440925
  5  4.95428
  6  4.71571
  7  0.000170737
  8  6.53288e-05
  9  4.6515
  10  12.3379
  11  4.11582
  12  15.3236
  13  6.43088
  14  8.17383
  15  9.55524e-07
  16  3.73219e-06
  17  3.70766e-06
  18  2.34196e-05
  19  17.6546
  20  28.8993
  21  54.8015
  22  2.76621
  23  4.04028e-06
  24  4.16817e-05
  25  21.4193
  26  0.213433
  27  0.247422
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.732e-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:  8.965e-01  2.474e-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.089e+00  2.134e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444698/likelihoodResults_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.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) = 5989.42046614
delta logL = -0.00294016563112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5989.4175261
delta logL = -1.24804500956e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5307       1.0000          .0000       10.000    
     3 'Normalizat'    1.0893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89652       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=   5989.418     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    62.281        .95351E-03** at limit **
   2  Index         2.5044        5.6360        .50000        .15515E-04
   3  Normalizat    1.0892        .28070E-01    .23646E-03   -.29136E-04
   4  Prefactor     .89651        .33661E-01    .30824E-03    .92208E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100134
  Index      = 2.50436
  Normalizat = 1.08925
  Prefactor  = 0.89651
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.418     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    229.49        .19070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5044        5.5839        .50000       -.52259    
   3  Normalizat    1.0892        .65459E-01    .94584E-05   -.90098    
   4  Prefactor     .89651        .78397E-01    .12329E-04   -.96263    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33175e-08
Minuit parameter uncertainties:
  1  0.0111266
  2  962.981
  3  0.0654637
  4  0.0784064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444698': 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) = 5989.4175259
delta logL = 7.95016603661e-08

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.001e-04  1.113e-02  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.504e+00  9.630e+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:  8.965e-01  7.841e-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.089e+00  6.546e-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/444698/cmap_HighResolution_384998401_385257601_4FGL_J1317.6+3428_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-09-07 10:26:11.531172', job_id='444698', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631035571.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='562' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:26:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 444698: <4FGL_J1317.6+3428_daily_bin562> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin562> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep  7 10:10:39 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:13:42 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:13:42 2021
Terminated at Tue Sep  7 10:26:12 2021
Results reported at Tue Sep  7 10:26:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin562 199.401 34.4676 384998401 385257601 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 :                                   727.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            933 sec.

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

