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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin50
RA = 199.401, Dec = 34.4676
tmin = 252288001, tmax = 252547201
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='441926', job_status='RUN', time_executed='2021-09-07 10:03:01.337023', time_epoch_executed='1631034181.34' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441926/ft1_4FGL_J1317.6+3428_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441926/ft2_4FGL_J1317.6+3428_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441926/ft1_4FGL_J1317.6+3428_daily_bin50.fits outfile=/scratch/kocevski/441926/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin50.fits ra=199.401 dec=34.4676 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.66
user 2.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441926/ft2_4FGL_J1317.6+3428_daily_bin50.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/441926/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/441926/ft1_filtered_4FGL_J1317.6+3428_daily_bin50.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/441926/ft1_filtered_4FGL_J1317.6+3428_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/441926/ft2_4FGL_J1317.6+3428_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/441926/ltcube_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.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/441926/ft2_4FGL_J1317.6+3428_daily_bin50.fits
.....................!
real 17.07
user 16.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441926/ft1_filtered_4FGL_J1317.6+3428_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/441926/ft2_4FGL_J1317.6+3428_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/441926/ltcube_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.fits outfile=/scratch/kocevski/441926/expmap_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.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/441926/ltcube_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.fits
.....................!
real 192.04
user 186.30
sys 5.29

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/441926/ft1_filtered_4FGL_J1317.6+3428_daily_bin50.fits scfile=/scratch/kocevski/441926/ft2_4FGL_J1317.6+3428_daily_bin50.fits outfile=/scratch/kocevski/441926/cmap_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441926/ft1_filtered_4FGL_J1317.6+3428_daily_bin50.fits scfile=/scratch/kocevski/441926/ft2_4FGL_J1317.6+3428_daily_bin50.fits outfile=/scratch/kocevski/441926/cmap_HighResolution_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.475       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.316       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1101       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .81879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8070       1.0000         .10000E-03   10000.    
    12 'norm      '    16.504       1.0000         .10000E-03   10000.    
    13 'norm      '    .11855E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    7.6159       1.0000         .10000E-03   10000.    
    15 'norm      '    .25042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21084E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4405       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .65862E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    2.7319       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25690       1.0000         .10000E-03   10000.    
    24 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0389       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74473       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=   5856.053     FROM MIGRAD    STATUS=CONVERGED   1223 CALLS     3934 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2868        8.1306        .11165E-02    .83677E-04
   2  Prefactor     21.471        10.035        .86432E-04    .29595E-04
   3  Prefactor     18.313        13.907        .93586E-04    .23445E-04
   4  Prefactor     46.780        50.599        .29279E-03   -.58165E-04
   5  Prefactor     2.1115        3.3329        .17117E-03    .73526E-04
   6  norm          .10000E-03    1.1138        .78758E-03** at limit **
   7  Prefactor     .10000E-03    32.315        .18142E-02** at limit **
   8  Prefactor     .10000E-03    7.5590        .18142E-02** at limit **
   9  norm          .81764        2.4955        .20562E-03   -.19130E-04
  10  Prefactor     .10000E-03    15.461        .36285E-03** at limit **
  11  norm          2.8062        2.9002        .12852E-03    .14489E-03
  12  norm          16.502        11.367        .98588E-04    .22602E-04
  13  norm          .10058E-03    56.671        .17172E-02** at limit **
  14  norm          7.6146        5.0263        .13326E-03   -.19724E-03
  15  norm          .10001E-03    42.830        .41123E-02** at limit **
  16  Prefactor     .10010E-03    16.523        .16891E-02** at limit **
  17  Prefactor     7.4255        10.652        .14703E-03    .91548E-04
  18  Prefactor     .10000E-03    25.484        .18142E-02** at limit **
  19  Prefactor     .10000E-03    14.351        .18142E-02** at limit **
  20  Prefactor     .10000E-03    7.3084        .18142E-02** at limit **
  21  Prefactor     .10002E-03    73.814        .17935    ** at limit **
  22  norm          2.7323        1.7573        .78675E-04    .18294E-03
  23  Prefactor     .25662        4.9528        .21781E-02    .22328E-03
  24  norm          .10000E-03    9.8830        .18142E-02** at limit **
  25  Prefactor     .10000E-03    6.7054        .18142E-02** at limit **
  26  Normalizat    1.0388        .18934        .20149E-03    .22760E-03
  27  Prefactor     .74496        .22854        .28793E-03    .34825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28679
  Prefactor  = 21.4711
  Prefactor  = 18.3134
  Prefactor  = 46.7802
  Prefactor  = 2.11149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.817643
  Prefactor  = 0.0001
  norm       = 2.80616
  norm       = 16.5023
  norm       = 0.000100577
  norm       = 7.61457
  norm       = 0.000100013
  Prefactor  = 0.000100103
  Prefactor  = 7.42554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 2.73233
  Prefactor  = 0.256617
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03879
  Prefactor  = 0.744958
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.053     FROM HESSE     STATUS=OK           474 CALLS     4408 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2868        8.1285        .44661E-04   -1.5345    
   2  Prefactor     21.471        10.035        .34573E-05   -1.4781    
   3  Prefactor     18.313        13.908        .37434E-05   -1.4852    
   4  Prefactor     46.780        50.596        .11712E-04   -1.4339    
   5  Prefactor     2.1115        3.3328        .68466E-05   -1.5417    
   6  norm          .10000E-03    1.1139        .15752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .81764        2.4951        .82247E-05   -1.5527    
  10  Prefactor     .10000E-03    15.461        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8062        2.9000        .51410E-05   -1.5373    
  12  norm          16.502        11.367        .39435E-05   -1.4895    
  13  norm          .10058E-03    57.792        .68688E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.6146        4.9683        .53304E-05   -1.5156    
  15  norm          .10001E-03    43.464        .82246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    16.743        .33781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4255        10.619        .58813E-05   -1.5163    
  18  Prefactor     .10000E-03    25.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    83.273        .16624       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7323        1.7572        .31470E-05   -1.5377    
  23  Prefactor     .25662        4.9510        .87122E-04   -1.5607    
  24  norm          .10000E-03    9.8857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.7054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0388        .18956        .40299E-04   -.91742    
  27  Prefactor     .74496        .22873        .11517E-04   -1.0179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69182e-08
Minuit parameter uncertainties:
  1  8.1312
  2  10.0357
  3  13.9102
  4  50.6428
  5  3.33309
  6  2.1059e-05
  7  5.2651e-05
  8  2.68894e-05
  9  2.49543
  10  1.24719e-08
  11  2.90014
  12  11.3687
  13  0.011565
  14  4.96859
  15  0.00150779
  16  0.0026212
  17  10.6213
  18  1.03472e-05
  19  5.08108e-05
  20  1.46426e-05
  21  0.00287893
  22  1.75728
  23  2.25411
  24  2.74891e-05
  25  4.58409e-06
  26  0.18968
  27  0.229025
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.001e-04  2.621e-03  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:  7.450e-01  2.290e-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.039e+00  1.897e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441926/likelihoodResults_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.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) = 5856.05339239
delta logL = -0.000292091548545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5856.05310036
delta logL = -5.39166649105e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64715E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6609       1.0000          .0000       10.000    
     3 'Normalizat'    1.0388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74501       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=   5856.051     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      289 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96555E-01    4.3210        .42676E-01   -.57096E-03
   2  Index         3.0457        2.4440        .50000        .33157E-05
   3  Normalizat    1.0364        .88200E-02    .41379E-01   -.88016E-04
   4  Prefactor     .74640        .10897E-01    .65024E-01   -.11548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0965548
  Index      = 3.04573
  Normalizat = 1.03639
  Prefactor  = 0.746401
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.051     FROM HESSE     STATUS=OK            33 CALLS      322 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96555E-01    6.4512        .12967E-02   -1.5770    
   2  Index         3.0457        3.6771        .17459E-01   -.40156    
   3  Normalizat    1.0364        .18472        .20170E-03   -.91821    
   4  Prefactor     .74640        .22492        .28767E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44741e-08
Minuit parameter uncertainties:
  1  1.57783
  2  4.25986
  3  0.184832
  4  0.225192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441926': 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) = 5856.05103097
delta logL = 0.00206933437312

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  9.655e-02  1.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  3.046e+00  4.260e+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.464e-01  2.252e-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.036e+00  1.848e-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/441926/cmap_HighResolution_252288001_252547201_4FGL_J1317.6+3428_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-07 10:15:58.054574', job_id='441926', GAL2='0.75', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631034958.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.07e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='50' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 441926: <4FGL_J1317.6+3428_daily_bin50> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin50> 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) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:45 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:45 2021
Terminated at Tue Sep  7 10:15:58 2021
Results reported at Tue Sep  7 10:15:58 2021

Your job looked like:

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

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

