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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1418
RA = 199.401, Dec = 34.4676
tmin = 606873601, tmax = 607132801
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='449241', job_status='RUN', time_executed='2021-09-07 10:29:30.704684', time_epoch_executed='1631035770.7' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449241/ft1_4FGL_J1317.6+3428_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449241/ft2_4FGL_J1317.6+3428_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449241/ft1_4FGL_J1317.6+3428_daily_bin1418.fits outfile=/scratch/kocevski/449241/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1418.fits ra=199.401 dec=34.4676 rad=12.0 tmin=606873601.0 tmax=607132801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.42
user 5.09
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449241/ft1_filtered_4FGL_J1317.6+3428_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/449241/ft2_4FGL_J1317.6+3428_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/449241/ltcube_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.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/449241/ft2_4FGL_J1317.6+3428_daily_bin1418.fits
.....................!
real 14.90
user 14.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449241/ft1_filtered_4FGL_J1317.6+3428_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/449241/ft2_4FGL_J1317.6+3428_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/449241/ltcube_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.fits outfile=/scratch/kocevski/449241/expmap_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.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/449241/ltcube_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.fits
.....................!
real 192.00
user 186.66
sys 4.90

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/449241/ft1_filtered_4FGL_J1317.6+3428_daily_bin1418.fits scfile=/scratch/kocevski/449241/ft2_4FGL_J1317.6+3428_daily_bin1418.fits outfile=/scratch/kocevski/449241/cmap_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.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.59
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449241/ft1_filtered_4FGL_J1317.6+3428_daily_bin1418.fits scfile=/scratch/kocevski/449241/ft2_4FGL_J1317.6+3428_daily_bin1418.fits outfile=/scratch/kocevski/449241/cmap_HighResolution_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4931       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8897       1.0000         .10000E-03   10000.    
     6 'norm      '    .14764       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.424       1.0000         .10000E-03   10000.    
    12 'norm      '    19.757       1.0000         .10000E-03   10000.    
    13 'norm      '    8.1545       1.0000         .10000E-03   10000.    
    14 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0497       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.071       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3442       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .57056       1.0000         .10000E-03   10000.    
    24 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83845       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1648       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=   4918.606     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3278 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0013        .61820E-07** at limit **
   2  Prefactor     3.4933        7.8802        .21318E-06    .12218E-04
   3  Prefactor     .10000E-03    8.4572       -.87580E-06** at limit **
   4  Prefactor     .10000E-03    119.22       -.12218E-05** at limit **
   5  Prefactor     2.8902        5.6762        .27067E-06    .95215E-04
   6  norm          .96138E-01    3.1466        .69443E-06   -.16247E-03
   7  Prefactor     12.892        42.855       -.10008E-05   -.11434E-05
   8  Prefactor     .10000E-03    31.204        .20151E-06** at limit **
   9  norm          .10000E-03    1.6863       -.10492E-07** at limit **
  10  Prefactor     .10000E-03    10.671       -.53843E-06** at limit **
  11  norm          11.432        7.0446       -.52874E-08    .35613E-03
  12  norm          19.749        14.759        .45458E-07    .64316E-05
  13  norm          8.1618        4.8809       -.16852E-06    .44208E-03
  14  norm          .10000E-03    4.1188        .52396E-07** at limit **
  15  norm          5.4900        24.448        .39575E-06    .37453E-05
  16  Prefactor     .10003E-03    3.7633       -.18579E-05** at limit **
  17  Prefactor     1.5596        50.303       -.85421E-06    .19476E-03
  18  Prefactor     48.857        47.959       -.52708E-06    .96069E-04
  19  Prefactor     .10000E-03    5.1384       -.53519E-07** at limit **
  20  Prefactor     2.0504        23.684        .94625E-05    .21288E-03
  21  Prefactor     30.010        45.154        .64076E-05    .46549E-04
  22  norm          4.3435        2.3219       -.14990E-08    .34370E-05
  23  Prefactor     .57006        3.8243        .57451E-06    .89026E-04
  24  norm          .10000E-03    3.9298       -.25399E-07** at limit **
  25  Prefactor     .10000E-03    6.7204        .13199E-06** at limit **
  26  Normalizat    .83884        .17633        .34836E-07    .20818E-03
  27  Prefactor     1.1646        .21881       -.87108E-06    .15180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.49334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89016
  norm       = 0.0961375
  Prefactor  = 12.8923
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4322
  norm       = 19.7495
  norm       = 8.16179
  norm       = 0.0001
  norm       = 5.49005
  Prefactor  = 0.000100035
  Prefactor  = 1.55964
  Prefactor  = 48.8566
  Prefactor  = 0.0001
  Prefactor  = 2.05045
  Prefactor  = 30.0101
  norm       = 4.34347
  Prefactor  = 0.57006
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.838839
  Prefactor  = 1.16457
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.606     FROM HESSE     STATUS=OK           490 CALLS     3768 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0250        .15317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4933        7.8700        .21634E-03   -1.5334    
   3  Prefactor     .10000E-03    8.4652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    119.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8902        5.6519        .22372E-03   -1.5368    
   6  norm          .96138E-01    52.553        .22663E-02   -1.5646    
   7  Prefactor     12.892        42.882        .11160E-03   -1.4990    
   8  Prefactor     .10000E-03    31.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7153        .88921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.432        6.9563        .11853E-03   -1.5032    
  12  norm          19.749        14.756        .90110E-04   -1.4819    
  13  norm          8.1618        4.8256        .10528E-03   -1.5137    
  14  norm          .10000E-03    4.1298        .13865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4900        24.433        .17151E-03   -1.5239    
  16  Prefactor     .10003E-03    9.2321        .19215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5596        36.054        .34648E-03   -1.5458    
  18  Prefactor     48.857        47.596        .28687E-03   -1.4309    
  19  Prefactor     .10000E-03    5.1437        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0504        24.749        .14438E-02   -1.5422    
  21  Prefactor     30.010        45.405        .73063E-04   -1.4612    
  22  norm          4.3435        2.3228        .75301E-04   -1.5291    
  23  Prefactor     .57006        3.8798        .26098E-03   -1.5557    
  24  norm          .10000E-03    3.9322        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.7223        .17757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83884        .21055        .23325E-03   -.98644    
  27  Prefactor     1.1646        .26110        .25851E-03   -.87429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9978e-09
Minuit parameter uncertainties:
  1  3.23413e-07
  2  7.87237
  3  9.32476e-06
  4  5.14854e-05
  5  5.65297
  6  4.49712
  7  42.9845
  8  3.92202e-05
  9  3.36315e-08
  10  4.51337e-06
  11  6.95679
  12  14.7591
  13  4.82588
  14  1.48701e-05
  15  23.1791
  16  0.00113628
  17  15.0072
  18  47.6333
  19  1.50923e-06
  20  14.2544
  21  45.4574
  22  2.32282
  23  2.97439
  24  5.27655e-06
  25  6.31279e-07
  26  0.21076
  27  0.26139
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.136e-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:  1.165e+00  2.614e-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:  8.388e-01  2.108e-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: 9.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449241/likelihoodResults_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.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) = 4918.60622815
delta logL = -0.000517917360412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4918.6057104
delta logL = -1.70442035596e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5257       1.0000          .0000       10.000    
     3 'Normalizat'    .83885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1646       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=   4918.606     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      235 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9595        .59669E-01** at limit **
   2  Index         2.5165        6.2245        .50000        .89553E-05
   3  Normalizat    .83884        .51024E-02    .44115E-01    .33533E-06
   4  Prefactor     1.1646        .65818E-02    .58457E-01   -.42289E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51655
  Normalizat = 0.838838
  Prefactor  = 1.16457
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.606     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1069.2        .19396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5165        8.4498        .50000       -.51978    
   3  Normalizat    .83884        .55094E-01    .23325E-03   -.98644    
   4  Prefactor     1.1646        .70892E-01    .25851E-03   -.87429    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.00553e-09
Minuit parameter uncertainties:
  1  0.000163155
  2  47.5795
  3  0.0550974
  4  0.0708977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449241': 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): 102
logL (Free Index) = 4918.6057102
delta logL = 3.76739990315e-08

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.632e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.517e+00  4.758e+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:  1.165e+00  7.090e-02  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:  8.388e-01  5.510e-02  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/449241/cmap_HighResolution_606873601_607132801_4FGL_J1317.6+3428_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-09-07 10:40:51.821702', job_id='449241', GAL2='1.16', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631036451.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1418' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 449241: <4FGL_J1317.6+3428_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1418> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:26:12 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26:42 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:26:42 2021
Terminated at Tue Sep  7 10:40:52 2021
Results reported at Tue Sep  7 10:40:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1418 199.401 34.4676 606873601 607132801 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 :                                   678.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            880 sec.

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

