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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin52
RA = 199.401, Dec = 34.4676
tmin = 252806401, tmax = 253065601
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='441929', job_status='RUN', time_executed='2021-09-07 10:05:07.718211', time_epoch_executed='1631034307.72' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441929/ft1_4FGL_J1317.6+3428_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441929/ft2_4FGL_J1317.6+3428_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441929/ft1_4FGL_J1317.6+3428_daily_bin52.fits outfile=/scratch/kocevski/441929/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin52.fits ra=199.401 dec=34.4676 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.44
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441929/ft1_filtered_4FGL_J1317.6+3428_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/441929/ft2_4FGL_J1317.6+3428_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/441929/ltcube_252806401_253065601_4FGL_J1317.6+3428_daily_bin52.fits outfile=/scratch/kocevski/441929/expmap_252806401_253065601_4FGL_J1317.6+3428_daily_bin52.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/441929/ltcube_252806401_253065601_4FGL_J1317.6+3428_daily_bin52.fits
.....................!
real 191.99
user 187.11
sys 4.34

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/441929/ft1_filtered_4FGL_J1317.6+3428_daily_bin52.fits scfile=/scratch/kocevski/441929/ft2_4FGL_J1317.6+3428_daily_bin52.fits outfile=/scratch/kocevski/441929/cmap_252806401_253065601_4FGL_J1317.6+3428_daily_bin52.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441929/ft1_filtered_4FGL_J1317.6+3428_daily_bin52.fits scfile=/scratch/kocevski/441929/ft2_4FGL_J1317.6+3428_daily_bin52.fits outfile=/scratch/kocevski/441929/cmap_HighResolution_252806401_253065601_4FGL_J1317.6+3428_daily_bin52.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85171E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.5790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    39.180       1.0000         .10000E-03   10000.    
    13 'norm      '    11.482       1.0000         .10000E-03   10000.    
    14 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17775E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.990       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3393       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16188E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5822       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0663       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .69943       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=   5410.029     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3306 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.970        .21275E-06** at limit **
   2  Prefactor     13.273        8.2730        .25450E-07   -.66454E-05
   3  Prefactor     .10499E-03    11.558        .25083E-05** at limit **
   4  Prefactor     .10000E-03    39.779       -.13874E-06** at limit **
   5  Prefactor     .10000E-03    1.7522        .21722E-07** at limit **
   6  norm          6.4403        4.4158        .59731E-07   -.66968E-04
   7  Prefactor     .10000E-03    16.431       -.58898E-07** at limit **
   8  Prefactor     .10000E-03    10.876        .17830E-07** at limit **
   9  norm          5.5794        4.5320        .20386E-05    .25351E-03
  10  Prefactor     .10000E-03    6.4689        .36685E-07** at limit **
  11  norm          .10000E-03    2.0198        .27724E-07** at limit **
  12  norm          39.181        19.384        .10250E-06   -.27683E-04
  13  norm          11.483        4.9210       -.96185E-08   -.60840E-04
  14  norm          .10000E-03    9.0927        .46361E-07** at limit **
  15  norm          11.509        13.566       -.17634E-06   -.45938E-05
  16  Prefactor     6.4110        4.0082       -.13949E-06   -.12416E-03
  17  Prefactor     .10000E-03    9.9445        .87480E-07** at limit **
  18  Prefactor     .10009E-03    196.57       -.74044E-05** at limit **
  19  Prefactor     .10000E-03    9.4117        .51050E-07** at limit **
  20  Prefactor     .10000E-03    7.6522        .62876E-07** at limit **
  21  Prefactor     56.978        67.082       -.53742E-06   -.77182E-04
  22  norm          3.3395        1.7523        .24354E-07   -.23530E-04
  23  Prefactor     .10001E-03    1.8154        .35080E-06** at limit **
  24  norm          3.5865        18.983        .10202E-05   -.35280E-05
  25  Prefactor     .10000E-03    10.357        .64863E-07** at limit **
  26  Normalizat    1.0660        .16639       -.22485E-06   -.22826E-03
  27  Prefactor     .69973        .19722       -.12570E-05   -.15006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.2725
  Prefactor  = 0.000104995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.44033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.57935
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 39.1806
  norm       = 11.483
  norm       = 0.0001
  norm       = 11.5093
  Prefactor  = 6.411
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.9784
  norm       = 3.33947
  Prefactor  = 0.000100009
  norm       = 3.58647
  Prefactor  = 0.0001
  Normalizat = 1.06599
  Prefactor  = 0.699727
 **********
 **   18 **HESSE 
 **********

 FCN=   5410.029     FROM HESSE     STATUS=OK           494 CALLS     3800 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.273        8.2725        .10995E-03   -1.4979    
   3  Prefactor     .10499E-03    10.659        .82348E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7557        .95077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4403        4.4125        .12249E-03   -1.5200    
   7  Prefactor     .10000E-03    16.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.5794        4.5536        .67723E-03   -1.5236    
  10  Prefactor     .10000E-03    6.4884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0333        .10204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          39.181        19.380        .64034E-04   -1.4455    
  13  norm          11.483        4.8795        .97212E-04   -1.5030    
  14  norm          .10000E-03    9.2000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.509        13.564        .11809E-03   -1.5029    
  16  Prefactor     6.4110        4.0044        .10680E-03   -1.5202    
  17  Prefactor     .10000E-03    9.9768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    199.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     56.978        67.449        .53140E-04   -1.4197    
  22  norm          3.3395        1.7513        .68371E-04   -1.5342    
  23  Prefactor     .10001E-03    20.952        .18962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5865        18.969        .21351E-03   -1.5329    
  25  Prefactor     .10000E-03    10.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0660        .19524        .20721E-03   -.90851    
  27  Prefactor     .69973        .22928        .30696E-03   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10558e-09
Minuit parameter uncertainties:
  1  2.73234e-05
  2  8.27317
  3  0.0145957
  4  9.95758e-05
  5  1.18941e-07
  6  4.41267
  7  2.70437e-05
  8  8.33414e-07
  9  4.55391
  10  2.76124e-06
  11  2.7995e-06
  12  19.3832
  13  4.87962
  14  6.5301e-06
  15  13.5681
  16  4.00461
  17  3.55511e-05
  18  0.00868386
  19  4.235e-06
  20  1.09255e-05
  21  67.5391
  22  1.75137
  23  0.000877409
  24  16.5043
  25  2.00001e-05
  26  0.195367
  27  0.229589
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  6.411e+00  4.005e+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:  6.997e-01  2.296e-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.066e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 6.89e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.20e-05

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) = 5409.61265189
delta logL = 0.416763243303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.59970022
delta logL = 0.429714914896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0850       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2788       1.0000          .0000       10.000    
     3 'Normalizat'    1.0211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74125       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=   5409.600     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      240 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0849        26.524        .57729E-02    .12230E-02
   2  Index         3.2788        3.1623        .12021        .11235E-03
   3  Normalizat    1.0211        .61495E-01    .43197E-01    .57987E-05
   4  Prefactor     .74122        .70022E-01    .67615E-01    .18364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08495
  Index      = 3.27876
  Normalizat = 1.02112
  Prefactor  = 0.741222
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.600     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0849        6.1338        .64707E-04   -1.5357    
   2  Index         3.2788        1.3560        .46286E-02   -.35144    
   3  Normalizat    1.0211        .19745        .21096E-03   -.92326    
   4  Prefactor     .74122        .23656        .29917E-03   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13092e-08
Minuit parameter uncertainties:
  1  6.13501
  2  1.37562
  3  0.197595
  4  0.236878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441929': 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) = 5409.59970019
delta logL = 0.429714944089

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.085e+00  6.135e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  3.279e+00  1.376e+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:  7.412e-01  2.369e-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.021e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.61
Ra Dec: 199.401 34.468
Photon Index (Free Index): 3.28 +/- 1.38
Photon Flux (Free Index): 1.00e-07 +/- 5.92e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.03e-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/441929/cmap_HighResolution_252806401_253065601_4FGL_J1317.6+3428_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.89e-08', energy_flux2='1.78e-05', photon_flux_error='4.30e-08', dlogl='4.30e-01', energy_flux='1.93e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-07 10:15:40.042923', photon_index_error2='1.38', photon_index2='3.28', ts='4.59', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.07', time_epoch_completed='1631034940.04', return_code='0', job_id='441929', GAL2='0.74', EG2='1.02', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.92e-08', ts2='5.61', photon_index='2.53' WHERE bin_id='52' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:15:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 441929: <4FGL_J1317.6+3428_daily_bin52> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin52> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 10:01:02 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:02:46 2021
Terminated at Tue Sep  7 10:15:40 2021
Results reported at Tue Sep  7 10:15:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin52 199.401 34.4676 252806401 253065601 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 :                                   631.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            878 sec.

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

