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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1239
RA = 199.401, Dec = 34.4676
tmin = 560476801, tmax = 560736001
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='448977', job_status='RUN', time_executed='2021-09-07 10:30:01.333668', time_epoch_executed='1631035801.33' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448977

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448977/ft1_4FGL_J1317.6+3428_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448977/ft2_4FGL_J1317.6+3428_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448977/ft1_4FGL_J1317.6+3428_daily_bin1239.fits outfile=/scratch/kocevski/448977/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1239.fits ra=199.401 dec=34.4676 rad=12.0 tmin=560476801.0 tmax=560736001.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.78
user 3.55
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448977/ft1_filtered_4FGL_J1317.6+3428_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/448977/ft2_4FGL_J1317.6+3428_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/448977/ltcube_560476801_560736001_4FGL_J1317.6+3428_daily_bin1239.fits outfile=/scratch/kocevski/448977/expmap_560476801_560736001_4FGL_J1317.6+3428_daily_bin1239.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/448977/ltcube_560476801_560736001_4FGL_J1317.6+3428_daily_bin1239.fits
.....................!
real 191.48
user 186.09
sys 4.58

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/448977/ft1_filtered_4FGL_J1317.6+3428_daily_bin1239.fits scfile=/scratch/kocevski/448977/ft2_4FGL_J1317.6+3428_daily_bin1239.fits outfile=/scratch/kocevski/448977/cmap_560476801_560736001_4FGL_J1317.6+3428_daily_bin1239.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448977/ft1_filtered_4FGL_J1317.6+3428_daily_bin1239.fits scfile=/scratch/kocevski/448977/ft2_4FGL_J1317.6+3428_daily_bin1239.fits outfile=/scratch/kocevski/448977/cmap_HighResolution_560476801_560736001_4FGL_J1317.6+3428_daily_bin1239.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8695       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    239.61       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12854E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.013       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9223       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.313       1.0000         .10000E-03   10000.    
    11 'norm      '    11.031       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14552E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    22.253       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.844       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    62.899       1.0000         .10000E-03   10000.    
    21 'Prefactor '    165.99       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0831       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    15.286       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87636       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86636       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=   2898.528     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3335 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8588        15.305        .67037E-06   -.56294E-04
   2  Prefactor     .10000E-03    11.817        .20918E-06** at limit **
   3  Prefactor     .10000E-03    18.593       -.45513E-06** at limit **
   4  Prefactor     239.66        139.61       -.10067E-05    .73132E-04
   5  Prefactor     .10009E-03    10.687       -.12566E-05** at limit **
   6  norm          5.3321        6.5586        .52423E-07   -.72980E-04
   7  Prefactor     50.012        62.956        .17636E-06   -.63207E-05
   8  Prefactor     4.7725        89.663       -.16488E-05    .10348E-04
   9  norm          .10000E-03    2.5866       -.69861E-08** at limit **
  10  Prefactor     29.325        24.934        .37708E-07    .74517E-04
  11  norm          11.032        9.1741       -.99201E-08    .56999E-04
  12  norm          .10000E-03    7.1595        .24461E-08** at limit **
  13  norm          .10000E-03    11.823        .46521E-05** at limit **
  14  norm          22.281        11.620       -.93748E-06   -.73325E-04
  15  norm          .10000E-03    16.841        .44510E-06** at limit **
  16  Prefactor     10.784        7.8242       -.13532E-06    .39394E-04
  17  Prefactor     17.842        23.629       -.16744E-06    .98748E-05
  18  Prefactor     .10000E-03    99.988       -.45610E-06** at limit **
  19  Prefactor     .10000E-03    11.449       -.18272E-06** at limit **
  20  Prefactor     62.908        39.487        .27603E-07   -.15762E-04
  21  Prefactor     166.00        100.49       -.19883E-06    .37211E-04
  22  norm          4.0834        2.7971        .13034E-07    .58600E-04
  23  Prefactor     .10000E-03    6.4397       -.17575E-05** at limit **
  24  norm          15.273        22.265       -.62349E-08    .25673E-04
  25  Prefactor     .10000E-03    12.149        .14103E-06** at limit **
  26  Normalizat    .87583        .25039       -.50929E-06    .60818E-04
  27  Prefactor     .86718        .28899        .13763E-06    .21369E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 239.661
  Prefactor  = 0.000100085
  norm       = 5.33211
  Prefactor  = 50.012
  Prefactor  = 4.77253
  norm       = 0.0001
  Prefactor  = 29.3249
  norm       = 11.0322
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 22.2807
  norm       = 0.0001
  Prefactor  = 10.7838
  Prefactor  = 17.8423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.908
  Prefactor  = 166.002
  norm       = 4.0834
  Prefactor  = 0.000100001
  norm       = 15.2734
  Prefactor  = 0.0001
  Normalizat = 0.875834
  Prefactor  = 0.867182
 **********
 **   18 **HESSE 
 **********

 FCN=   2898.528     FROM HESSE     STATUS=OK           498 CALLS     3833 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8588        15.328        .18229E-03   -1.5267    
   2  Prefactor     .10000E-03    11.884        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     239.66        139.66        .13078E-03   -1.2599    
   5  Prefactor     .10009E-03    9.6982        .51488E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3321        6.5039        .13298E-03   -1.5246    
   7  Prefactor     50.012        62.959        .56706E-04   -1.4292    
   8  Prefactor     4.7725        88.465        .18129E-03   -1.5271    
   9  norm          .10000E-03    2.6057        .84559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.325        25.000        .73999E-04   -1.4624    
  11  norm          11.032        9.1693        .12062E-03   -1.5044    
  12  norm          .10000E-03    7.1610        .14070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.011        .21934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.281        11.671        .84911E-04   -1.4764    
  15  norm          .10000E-03    16.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.784        7.8585        .10470E-03   -1.5051    
  17  Prefactor     17.842        23.636        .94815E-04   -1.4863    
  18  Prefactor     .10000E-03    100.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.472        .17791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     62.908        39.544        .50597E-04   -1.4120    
  21  Prefactor     166.00        100.91        .15654E-03   -1.3124    
  22  norm          4.0834        2.7948        .71670E-04   -1.5304    
  23  Prefactor     .10000E-03    15.752        .19990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.273        22.268        .10244E-03   -1.4926    
  25  Prefactor     .10000E-03    12.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87583        .29696        .23954E-03   -.97315    
  27  Prefactor     .86718        .34392        .29621E-03   -.97297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80407e-10
Minuit parameter uncertainties:
  1  15.3407
  2  3.18435e-05
  3  0.000143897
  4  139.86
  5  0.00181777
  6  6.50472
  7  63.0426
  8  41.1653
  9  4.23952e-06
  10  25.0092
  11  9.17046
  12  1.23997e-06
  13  0.000244104
  14  11.672
  15  0.00013025
  16  7.85928
  17  23.6484
  18  0.000419373
  19  5.33717e-05
  20  39.5609
  21  101.011
  22  2.79486
  23  0.000277341
  24  22.28
  25  2.99678e-05
  26  0.29752
  27  0.344783
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.672e-01  3.448e-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:  8.758e-01  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.54
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 8.43e-08
Energy Flux (Fixed Index): 3.24e-05 +/- 2.36e-05

TS (Fixed Index): 3.54
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 2.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448977/likelihoodResults_560476801_560736001_4FGL_J1317.6+3428_daily_bin1239.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) = 2896.08327794
delta logL = 2.44496936932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2896.04355391
delta logL = 2.48469339179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0628       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3942       1.0000          .0000       10.000    
     3 'Normalizat'    .75112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97969       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=   2896.044     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      248 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0652        7.6677        .51769E-02    .20725E-03
   2  Index         4.3930        2.8204        .58109E-01    .77304E-04
   3  Normalizat    .75139        .10101        .42969E-01    .15727E-04
   4  Prefactor     .97933        .12446        .46013E-01   -.43482E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06519
  Index      = 4.39297
  Normalizat = 0.751389
  Prefactor  = 0.979335
 **********
 **   18 **HESSE 
 **********

 FCN=   2896.044     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0652        13.120        .23000E-04   -1.5502    
   2  Index         4.3930        3.6139        .25074E-02   -.12171    
   3  Normalizat    .75139        .28625        .25494E-03   -1.0190    
   4  Prefactor     .97933        .35185        .28039E-03   -.93422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22542e-10
Minuit parameter uncertainties:
  1  7.47834
  2  4.0481
  3  0.286825
  4  0.352674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448977': 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) = 2896.04355272
delta logL = 2.48469458041

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.793e-01  3.527e-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:  7.514e-01  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.15
Ra Dec: 199.401 34.468
Photon Index (Free Index): 4.39 +/- 4.05
Photon Flux (Free Index): 2.19e-07 +/- 9.72e-08
Energy Flux (Free Index): 3.10e-05 +/- 2.18e-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/448977/cmap_HighResolution_560476801_560736001_4FGL_J1317.6+3428_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='3.10e-05', photon_flux_error='8.43e-08', dlogl='2.48e+00', energy_flux='3.24e-05', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-07 10:39:00.547603', photon_index_error2='4.05', photon_index2='4.39', ts='3.54', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.60e-07', energy_flux_error2='2.18e-05', EG='0.88', time_epoch_completed='1631036340.55', return_code='0', job_id='448977', GAL2='0.98', EG2='0.75', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='9.72e-08', ts2='9.15', photon_index='2.53' WHERE bin_id='1239' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:39:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 448977: <4FGL_J1317.6+3428_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1239> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:48 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26:05 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:26:05 2021
Terminated at Tue Sep  7 10:39:01 2021
Results reported at Tue Sep  7 10:39:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1239 199.401 34.4676 560476801 560736001 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 :                                   537.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             199.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            793 sec.

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

