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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin391
RA = 199.401, Dec = 34.4676
tmin = 340675201, tmax = 340934401
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='444454', job_status='RUN', time_executed='2021-09-07 10:11:09.274763', time_epoch_executed='1631034669.27' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444454

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444454/ft1_4FGL_J1317.6+3428_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444454/ft2_4FGL_J1317.6+3428_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444454/ft1_4FGL_J1317.6+3428_daily_bin391.fits outfile=/scratch/kocevski/444454/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin391.fits ra=199.401 dec=34.4676 rad=12.0 tmin=340675201.0 tmax=340934401.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 5.14
user 4.75
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444454/ft1_filtered_4FGL_J1317.6+3428_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/444454/ft2_4FGL_J1317.6+3428_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/444454/ltcube_340675201_340934401_4FGL_J1317.6+3428_daily_bin391.fits outfile=/scratch/kocevski/444454/expmap_340675201_340934401_4FGL_J1317.6+3428_daily_bin391.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/444454/ltcube_340675201_340934401_4FGL_J1317.6+3428_daily_bin391.fits
.....................!
real 171.68
user 152.60
sys 4.16

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/444454/ft1_filtered_4FGL_J1317.6+3428_daily_bin391.fits scfile=/scratch/kocevski/444454/ft2_4FGL_J1317.6+3428_daily_bin391.fits outfile=/scratch/kocevski/444454/cmap_340675201_340934401_4FGL_J1317.6+3428_daily_bin391.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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444454/ft1_filtered_4FGL_J1317.6+3428_daily_bin391.fits scfile=/scratch/kocevski/444454/ft2_4FGL_J1317.6+3428_daily_bin391.fits outfile=/scratch/kocevski/444454/cmap_HighResolution_340675201_340934401_4FGL_J1317.6+3428_daily_bin391.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.51
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.674       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8989       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2043       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.6986       1.0000         .10000E-03   10000.    
    13 'norm      '    12.587       1.0000         .10000E-03   10000.    
    14 'norm      '    .23228E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4544       1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.904       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21771E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.9852       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.974       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.148       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1087       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92449       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=   5002.303     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     2917 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.103       -.21969E-06** at limit **
   2  Prefactor     19.676        10.603       -.99073E-08    .39109E-04
   3  Prefactor     1.3820        88.089        .22418E-04    .35465E-04
   4  Prefactor     1.9412        307.49       -.98188E-05   -.11347E-05
   5  Prefactor     .10000E-03    3.2418       -.59030E-07** at limit **
   6  norm          .10000E-03    2.4803        .45347E-06** at limit **
   7  Prefactor     .10000E-03    27.908       -.47060E-07** at limit **
   8  Prefactor     .10007E-03    35.129        .36089E-06** at limit **
   9  norm          4.2045        3.6896        .45528E-07    .32653E-04
  10  Prefactor     .10000E-03    8.7113       -.81070E-07** at limit **
  11  norm          .10000E-03    4.6722       -.12320E-06** at limit **
  12  norm          7.6997        11.664        .23398E-07    .11167E-05
  13  norm          12.576        6.6982        .88539E-07   -.47434E-03
  14  norm          .10006E-03    10.338        .14287E-05** at limit **
  15  norm          5.0997        13.005        .12500E-06    .64757E-05
  16  Prefactor     .10000E-03    1.8859        .70966E-07** at limit **
  17  Prefactor     5.4473        16.476        .61084E-06   -.25303E-04
  18  Prefactor     59.914        54.298       -.77320E-06   -.12929E-04
  19  Prefactor     .10000E-03    28.630        .11522E-04** at limit **
  20  Prefactor     .10000E-03    16.334       -.10199E-06** at limit **
  21  Prefactor     .10000E-03    47.241        .89415E-06** at limit **
  22  norm          8.9854        2.8236        .41535E-08   -.13950E-04
  23  Prefactor     .10000E-03    2.2036       -.10249E-06** at limit **
  24  norm          20.977        16.264        .29865E-08   -.63279E-05
  25  Prefactor     18.147        18.471        .10311E-07    .16154E-06
  26  Normalizat    1.1088        .19067       -.23629E-06   -.18709E-04
  27  Prefactor     .92436        .23279        .82767E-07    .60680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.6755
  Prefactor  = 1.38197
  Prefactor  = 1.94117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100074
  norm       = 4.20451
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.69969
  norm       = 12.5765
  norm       = 0.000100064
  norm       = 5.09968
  Prefactor  = 0.0001
  Prefactor  = 5.44728
  Prefactor  = 59.9141
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.98541
  Prefactor  = 0.0001
  norm       = 20.977
  Prefactor  = 18.1466
  Normalizat = 1.10876
  Prefactor  = 0.924361
 **********
 **   18 **HESSE 
 **********

 FCN=   5002.303     FROM HESSE     STATUS=OK           502 CALLS     3419 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.676        10.604        .90300E-04   -1.4821    
   3  Prefactor     1.3820        125.53        .18498E-02   -1.5473    
   4  Prefactor     1.9412        307.18        .30184E-03   -1.5429    
   5  Prefactor     .10000E-03    3.2528        .12436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5094        .10906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    258.78        .75291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2045        3.6885        .12334E-03   -1.5298    
  10  Prefactor     .10000E-03    8.7303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7947        .29841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.6997        11.661        .14453E-03   -1.5153    
  13  norm          12.576        6.6723        .49079E-03   -1.4999    
  14  norm          .10006E-03    11.363        .56236E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0997        12.995        .17805E-03   -1.5256    
  16  Prefactor     .10000E-03    1.8970        .94570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4473        16.361        .17205E-03   -1.5241    
  18  Prefactor     59.914        54.281        .25919E-03   -1.4158    
  19  Prefactor     .10000E-03    51.463        .46906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.9854        2.8246        .64435E-04   -1.5108    
  23  Prefactor     .10000E-03    2.2270        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.977        16.261        .87457E-04   -1.4792    
  25  Prefactor     18.147        18.473        .94018E-04   -1.4856    
  26  Normalizat    1.1088        .22357        .22287E-03   -.89471    
  27  Prefactor     .92436        .27636        .30303E-03   -.95295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.323e-10
Minuit parameter uncertainties:
  1  6.47931e-05
  2  10.605
  3  26.3987
  4  49.0949
  5  1.27727e-05
  6  4.98005e-05
  7  4.63271e-05
  8  0.00876077
  9  3.68871
  10  2.37031e-05
  11  2.43224e-05
  12  11.6642
  13  6.67269
  14  0.00171146
  15  13.0017
  16  4.33479e-06
  17  16.3746
  18  54.3261
  19  0.000907447
  20  4.73137e-05
  21  0.000139473
  22  2.82461
  23  1.40801e-05
  24  16.2648
  25  18.4788
  26  0.223763
  27  0.276784
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.335e-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:  9.244e-01  2.768e-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.109e+00  2.238e-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: 7.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444454/likelihoodResults_340675201_340934401_4FGL_J1317.6+3428_daily_bin391.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) = 5002.30514804
delta logL = -0.00250088642861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5002.30264722
delta logL = -6.73962858855e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5406       1.0000          .0000       10.000    
     3 'Normalizat'    1.1088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92437       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=   5002.303     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6478        .94706E-03** at limit **
   2  Index         2.5472        6.2550        .50000       -.30764E-04
   3  Normalizat    1.1088        .21492        .22287E-03   -.27545E-04
   4  Prefactor     .92436        .27014        .30303E-03    .93041E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.54715
  Normalizat = 1.10877
  Prefactor  = 0.924359
 **********
 **   18 **HESSE 
 **********

 FCN=   5002.303     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9245        .18941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5472        6.2702        .50000       -.51274    
   3  Normalizat    1.1088        .21516        .89149E-05   -.89471    
   4  Prefactor     .92436        .27045        .12121E-04   -.95295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13796e-09
Minuit parameter uncertainties:
  1  0.000118337
  2  4.38256
  3  0.215332
  4  0.270841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444454': 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) = 5002.30264706
delta logL = 8.94515324035e-08

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.183e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.547e+00  4.383e+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.244e-01  2.708e-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.109e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.401 34.468

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/444454/cmap_HighResolution_340675201_340934401_4FGL_J1317.6+3428_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='7.90e-08', time_completed='2021-09-07 10:21:16.684811', job_id='444454', GAL2='0.92', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631035276.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='391' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:21:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 444454: <4FGL_J1317.6+3428_daily_bin391> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin391> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep  7 10:10:21 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:10:55 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:10:55 2021
Terminated at Tue Sep  7 10:21:17 2021
Results reported at Tue Sep  7 10:21:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin391 199.401 34.4676 340675201 340934401 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 :                                   558.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            656 sec.

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

