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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1068
RA = 199.401, Dec = 34.4676
tmin = 516153601, tmax = 516412801
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='447718', job_status='RUN', time_executed='2021-09-07 10:25:25.960632', time_epoch_executed='1631035525.96' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447718/ft1_4FGL_J1317.6+3428_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447718/ft2_4FGL_J1317.6+3428_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447718/ft1_4FGL_J1317.6+3428_daily_bin1068.fits outfile=/scratch/kocevski/447718/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1068.fits ra=199.401 dec=34.4676 rad=12.0 tmin=516153601.0 tmax=516412801.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.59
user 3.29
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447718/ft1_filtered_4FGL_J1317.6+3428_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/447718/ft2_4FGL_J1317.6+3428_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/447718/ltcube_516153601_516412801_4FGL_J1317.6+3428_daily_bin1068.fits outfile=/scratch/kocevski/447718/expmap_516153601_516412801_4FGL_J1317.6+3428_daily_bin1068.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/447718/ltcube_516153601_516412801_4FGL_J1317.6+3428_daily_bin1068.fits
.....................!
real 194.62
user 188.34
sys 4.36

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/447718/ft1_filtered_4FGL_J1317.6+3428_daily_bin1068.fits scfile=/scratch/kocevski/447718/ft2_4FGL_J1317.6+3428_daily_bin1068.fits outfile=/scratch/kocevski/447718/cmap_516153601_516412801_4FGL_J1317.6+3428_daily_bin1068.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447718/ft1_filtered_4FGL_J1317.6+3428_daily_bin1068.fits scfile=/scratch/kocevski/447718/ft2_4FGL_J1317.6+3428_daily_bin1068.fits outfile=/scratch/kocevski/447718/cmap_HighResolution_516153601_516412801_4FGL_J1317.6+3428_daily_bin1068.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.210       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.496       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.400       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9210       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0955       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .75510       1.0000         .10000E-03   10000.    
    14 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0606       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16843E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5285       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    82.628       1.0000         .10000E-03   10000.    
    22 'norm      '    11.835       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98295       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92876       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=   5681.260     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3320 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4193       -.47071E-07** at limit **
   2  Prefactor     11.211        7.3762       -.15738E-06   -.41842E-04
   3  Prefactor     .10000E-03    5.2226        .86753E-07** at limit **
   4  Prefactor     32.498        45.146       -.25040E-07    .11686E-04
   5  Prefactor     .10000E-03    1.8769        .14372E-06** at limit **
   6  norm          .10000E-03    4.0484        .53538E-09** at limit **
   7  Prefactor     .10000E-03    75.319        .70983E-06** at limit **
   8  Prefactor     33.406        24.951       -.12215E-06    .11754E-03
   9  norm          3.9216        3.2403       -.33262E-07    .29123E-04
  10  Prefactor     2.0955        7.8885        .76528E-05    .39882E-03
  11  norm          .10000E-03    .97443        .60895E-07** at limit **
  12  norm          .10000E-03    6.1464       -.39492E-06** at limit **
  13  norm          .75433        2.4989       -.10839E-06    .13603E-04
  14  norm          .10000E-03    4.8082        .34168E-06** at limit **
  15  norm          6.0618        13.340       -.49853E-07    .60592E-05
  16  Prefactor     .14224E-01    1.4031       -.15634E-05    .22175E-02
  17  Prefactor     .10000E-03    7.7094        .39883E-06** at limit **
  18  Prefactor     .10000E-03    18.505        .46246E-06** at limit **
  19  Prefactor     6.5294        8.4339        .42177E-06    .87863E-04
  20  Prefactor     .10000E-03    11.224       -.47134E-06** at limit **
  21  Prefactor     82.723        82.267       -.93934E-05    .15925E-04
  22  norm          11.836        2.8254        .83079E-07    .10287E-03
  23  Prefactor     .10000E-03    2.1995       -.36359E-07** at limit **
  24  norm          .10000E-03    6.6224        .18940E-06** at limit **
  25  Prefactor     .10000E-03    10.121       -.18518E-06** at limit **
  26  Normalizat    .98272        .17042       -.24103E-05    .20203E-03
  27  Prefactor     .92884        .20206        .39000E-05    .25339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.2109
  Prefactor  = 0.0001
  Prefactor  = 32.4976
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.4057
  norm       = 3.92159
  Prefactor  = 2.09545
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.754333
  norm       = 0.0001
  norm       = 6.06184
  Prefactor  = 0.0142239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.5294
  Prefactor  = 0.0001
  Prefactor  = 82.7233
  norm       = 11.8358
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.982725
  Prefactor  = 0.928843
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.260     FROM HESSE     STATUS=OK           490 CALLS     3810 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4211        .11450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.211        7.3792        .59828E-03   -1.5038    
   3  Prefactor     .10000E-03    5.2236        .16823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.498        45.145        .70292E-04   -1.4567    
   5  Prefactor     .10000E-03    1.8852        .10087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.1175        .29458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.406        24.557        .69337E-04   -1.4551    
   9  norm          3.9216        3.2358        .11943E-03   -1.5312    
  10  Prefactor     2.0955        8.0041        .14257E-02   -1.5418    
  11  norm          .10000E-03    .97514        .72665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.1573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .75433        2.3740        .19671E-03   -1.5534    
  14  norm          .10000E-03    4.8903        .31932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0618        13.327        .16309E-03   -1.5216    
  16  Prefactor     .14224E-01    1.8013        .29128E-01   -1.5684    
  17  Prefactor     .10000E-03    7.8169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5294        8.4350        .78533E-03   -1.5197    
  20  Prefactor     .10000E-03    11.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     82.723        83.052        .22094E-03   -1.3886    
  22  norm          11.836        2.8265        .59791E-04   -1.5020    
  23  Prefactor     .10000E-03    4.3751        .21584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.6422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .98272        .19813        .21644E-03   -.93611    
  27  Prefactor     .92884        .23545        .27831E-03   -.95140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78448e-09
Minuit parameter uncertainties:
  1  2.38503e-06
  2  7.37976
  3  3.56939e-06
  4  45.1929
  5  2.96756e-06
  6  6.76225e-06
  7  0.000170003
  8  24.5643
  9  3.2359
  10  8.00816
  11  3.23211e-07
  12  7.20223e-06
  13  2.37433
  14  1.20514e-05
  15  13.3338
  16  0.31902
  17  1.12928e-05
  18  3.00028e-05
  19  8.43658
  20  2.46207e-05
  21  83.1688
  22  2.82653
  23  1.68886e-05
  24  3.41352e-05
  25  1.27055e-06
  26  0.198277
  27  0.235708
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.422e-02  3.190e-01  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.288e-01  2.357e-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:  9.827e-01  1.983e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447718/likelihoodResults_516153601_516412801_4FGL_J1317.6+3428_daily_bin1068.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) = 5679.79803485
delta logL = 1.46180328178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5679.79707147
delta logL = 1.46276666237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3914       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1282       1.0000          .0000       10.000    
     3 'Normalizat'    .98113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92033       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=   5679.797     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3917        1.3493        .92091E-02   -.33134E-04
   2  Index         1.1283        .33801        .18328       -.75426E-04
   3  Normalizat    .98129        .15662        .45930E-01    .78318E-05
   4  Prefactor     .92014        .19730        .45264E-01    .12408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39171
  Index      = 1.12826
  Normalizat = 0.981287
  Prefactor  = 0.920136
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.797     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3917        1.8344        .81072E-04   -1.5472    
   2  Index         1.1283        .49423        .75898E-02   -.88568    
   3  Normalizat    .98129        .18402        .21635E-03   -.93660    
   4  Prefactor     .92014        .23184        .27912E-03   -.95441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23528e-09
Minuit parameter uncertainties:
  1  1.8345
  2  0.496265
  3  0.184139
  4  0.232085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447718': 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) = 5679.79707106
delta logL = 1.4627670705

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.392e+00  1.835e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  1.128e+00  4.963e-01  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.201e-01  2.321e-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:  9.813e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 199.401 34.468
Photon Index (Free Index): 1.13 +/- 0.50
Photon Flux (Free Index): 6.19e-09 +/- 6.44e-09
Energy Flux (Free Index): 6.37e-05 +/- 8.37e-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/447718/cmap_HighResolution_516153601_516412801_4FGL_J1317.6+3428_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', comment='SUCCESS', energy_flux2='6.37e-05', dlogl='1.46e+00', photon_flux2='6.19e-09', job_status='DONE', time_completed='2021-09-07 10:37:50.808590', photon_index_error2='0.50', photon_index2='1.13', ts='0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='5.48e-08', energy_flux_error2='8.37e-05', EG='0.98', time_epoch_completed='1631036270.81', return_code='0', job_id='447718', GAL2='0.92', EG2='0.98', return_code2='0', photon_flux_error2='6.44e-09', ts2='2.93', photon_index='2.53' WHERE bin_id='1068' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:37:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 447718: <4FGL_J1317.6+3428_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1068 199.401 34.4676 516153601 516412801 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 :                                   737.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            992 sec.

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

