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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1164
RA = 199.401, Dec = 34.4676
tmin = 541036801, tmax = 541296001
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='448857', job_status='RUN', time_executed='2021-09-07 10:26:02.006843', time_epoch_executed='1631035562.01' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448857

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448857/ft1_4FGL_J1317.6+3428_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448857/ft2_4FGL_J1317.6+3428_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448857/ft1_4FGL_J1317.6+3428_daily_bin1164.fits outfile=/scratch/kocevski/448857/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1164.fits ra=199.401 dec=34.4676 rad=12.0 tmin=541036801.0 tmax=541296001.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.74
user 3.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448857/ft1_filtered_4FGL_J1317.6+3428_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/448857/ft2_4FGL_J1317.6+3428_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/448857/ltcube_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.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/448857/ft2_4FGL_J1317.6+3428_daily_bin1164.fits
.....................!
real 16.49
user 15.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448857/ft1_filtered_4FGL_J1317.6+3428_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/448857/ft2_4FGL_J1317.6+3428_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/448857/ltcube_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.fits outfile=/scratch/kocevski/448857/expmap_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.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/448857/ltcube_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.fits
.....................!
real 197.02
user 189.09
sys 5.53

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/448857/ft1_filtered_4FGL_J1317.6+3428_daily_bin1164.fits scfile=/scratch/kocevski/448857/ft2_4FGL_J1317.6+3428_daily_bin1164.fits outfile=/scratch/kocevski/448857/cmap_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448857/ft1_filtered_4FGL_J1317.6+3428_daily_bin1164.fits scfile=/scratch/kocevski/448857/ft2_4FGL_J1317.6+3428_daily_bin1164.fits outfile=/scratch/kocevski/448857/cmap_HighResolution_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.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.60
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2746       1.0000         .10000E-03   10000.    
     6 'norm      '    7.4917       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.0134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11270E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0335       1.0000         .10000E-03   10000.    
    12 'norm      '    28.096       1.0000         .10000E-03   10000.    
    13 'norm      '    5.6839       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1751       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.881       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3089       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    33.973       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2722       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81436       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=   6129.904     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3241 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6048       -.46675E-06** at limit **
   2  Prefactor     .10000E-03    3.1067        .83259E-07** at limit **
   3  Prefactor     .10000E-03    4.7052       -.94246E-07** at limit **
   4  Prefactor     15.505        55.109        .60629E-04   -.17172E-05
   5  Prefactor     1.2730        3.7257       -.62150E-06   -.77610E-03
   6  norm          7.4928        4.9541       -.24062E-05   -.23126E-03
   7  Prefactor     .10000E-03    17.560        .22320E-05** at limit **
   8  Prefactor     .10000E-03    10.920        .89461E-06** at limit **
   9  norm          9.0140        4.5356        .66457E-06   -.13400E-03
  10  Prefactor     .10000E-03    22.406       -.32864E-05** at limit **
  11  norm          4.0333        3.9405        .12334E-05   -.16153E-06
  12  norm          28.094        15.631        .67787E-05   -.21612E-04
  13  norm          5.6862        5.1155       -.10428E-05   -.68716E-03
  14  norm          .10000E-03    2.8691        .10897E-06** at limit **
  15  norm          .10000E-03    12.742       -.15041E-05** at limit **
  16  Prefactor     .10000E-03    2.7534        .66325E-07** at limit **
  17  Prefactor     .10000E-03    7.7218        .73167E-06** at limit **
  18  Prefactor     .10000E-03    22.913        .12860E-05** at limit **
  19  Prefactor     1.1677        40.099        .12755E-04   -.24595E-03
  20  Prefactor     .10000E-03    6.1813        .48973E-06** at limit **
  21  Prefactor     22.038        82.041        .11514E-03   -.89962E-05
  22  norm          1.3090        1.4651        .11759E-07   -.49238E-03
  23  Prefactor     .10000E-03    1.8846        .63811E-07** at limit **
  24  norm          33.969        22.279       -.98623E-05   -.95953E-04
  25  Prefactor     .10000E-03    6.5603       -.53338E-06** at limit **
  26  Normalizat    1.2713        .18303       -.56452E-05    .14721E-03
  27  Prefactor     .81528        .21159       -.69600E-06   -.33554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5055
  Prefactor  = 1.27301
  norm       = 7.49285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.01403
  Prefactor  = 0.0001
  norm       = 4.03331
  norm       = 28.0938
  norm       = 5.68623
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.16767
  Prefactor  = 0.0001
  Prefactor  = 22.0376
  norm       = 1.30898
  Prefactor  = 0.0001
  norm       = 33.969
  Prefactor  = 0.0001
  Normalizat = 1.27131
  Prefactor  = 0.815283
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.904     FROM HESSE     STATUS=OK           484 CALLS     3725 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1102        .13477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7062        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.505        55.025        .10150E-03   -1.4920    
   5  Prefactor     1.2730        3.6669        .25012E-03   -1.5482    
   6  norm          7.4928        4.9440        .13166E-03   -1.5160    
   7  Prefactor     .10000E-03    17.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.0140        4.5349        .11414E-03   -1.5107    
  10  Prefactor     .10000E-03    22.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0333        3.9355        .14832E-03   -1.5306    
  12  norm          28.094        15.628        .75582E-04   -1.4647    
  13  norm          5.6862        5.1105        .15303E-03   -1.5231    
  14  norm          .10000E-03    2.8721        .12933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8193        .25271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1677        40.636        .42261E-03   -1.5492    
  20  Prefactor     .10000E-03    6.1848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.038        82.174        .85627E-04   -1.4769    
  22  norm          1.3090        1.4500        .97005E-04   -1.5479    
  23  Prefactor     .10000E-03    1.8981        .10492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          33.969        22.333        .68751E-04   -1.4542    
  25  Prefactor     .10000E-03    6.5619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2713        .22375        .22140E-03   -.84427    
  27  Prefactor     .81528        .25686        .32172E-03   -.99167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57703e-09
Minuit parameter uncertainties:
  1  3.53723e-05
  2  2.671e-06
  3  4.58176e-06
  4  55.2058
  5  3.6675
  6  4.94428
  7  6.18034e-06
  8  4.23199e-05
  9  4.53506
  10  8.41544e-05
  11  3.93572
  12  15.6301
  13  5.11087
  14  2.42344e-05
  15  2.92032e-05
  16  5.54932e-06
  17  1.56484e-05
  18  4.95918e-05
  19  13.7862
  20  3.602e-06
  21  82.6006
  22  1.45007
  23  8.4732e-06
  24  22.3386
  25  1.42227e-05
  26  0.223917
  27  0.257235
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.549e-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:  8.153e-01  2.572e-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.271e+00  2.239e-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: 8.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448857/likelihoodResults_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.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) = 6129.9061184
delta logL = -0.00169096528134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6129.90442806
delta logL = -6.32651790511e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5629       1.0000          .0000       10.000    
     3 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81558       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6129.885     FROM MIGRAD    STATUS=FAILED       165 CALLS      325 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148        9.0377        .26075E-02   -.86954E-01
   2  Index         4.0922        1.4596        .50000       -.96404E-07
   3  Normalizat    1.2560        .17624E-01    .22140E-03   -.73120E-04
   4  Prefactor     .82684        .21090E-01    .32172E-03   -.47705E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6129.885     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      396 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148        9.0377        .13501E-03   -.86954E-01
   2  Index         4.0922        1.4596        .21433E-02   -.96404E-07
   3  Normalizat    1.2560        .17624E-01    .99322E-04   -.73120E-04
   4  Prefactor     .82684        .21090E-01    .58208E-04   -.47705E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6129.885     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      432 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148        1.1435        .52149E-03   -.34755E-02
   2  Index         4.0922        2.9339        .57077E-02   -.12290E-05
   3  Normalizat    1.2560        .22489        .44280E-04   -.46471E-04
   4  Prefactor     .82684        .25985        .12869E-04    .65373E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.101478
  Index      = 4.09217
  Normalizat = 1.25599
  Prefactor  = 0.826843
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.885     FROM HESSE     STATUS=OK            27 CALLS      459 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148        1.3712        .10430E-03   -1.5772    
   2  Index         4.0922        3.1491        .22831E-03   -.18258    
   3  Normalizat    1.2560        .22542        .88561E-05   -.84890    
   4  Prefactor     .82684        .26027        .25738E-05   -.98746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59886e-11
Minuit parameter uncertainties:
  1  0.7457
  2  3.41776
  3  0.225591
  4  0.260656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448857': 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) = 6129.88471556
delta logL = 0.0197118744381

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.015e-01  7.457e-01  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  4.092e+00  3.418e+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:  8.268e-01  2.607e-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.256e+00  2.256e-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/448857/cmap_HighResolution_541036801_541296001_4FGL_J1317.6+3428_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-07 10:38:47.747519', job_id='448857', GAL2='0.83', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1631036327.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.97e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1164' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:38:47 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1164 199.401 34.4676 541036801 541296001 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 :                                   757.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            791 sec.

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

