aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 183 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17510
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1317.6+3428_weekly_bin759
RA = 199.401, Dec = 34.4676
tmin = 698025601, tmax = 698630401
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='591007', job_status='RUN', time_executed='2023-02-21 03:38:35.473621', time_epoch_executed='1676979515.47' WHERE source_name='4FGL J1317.6+3428' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591007

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591007/ft1_4FGL_J1317.6+3428_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591007/ft1_4FGL_J1317.6+3428_weekly_bin759.fits outfile=/scratch/kocevski/591007/ft1_filteredMKT_4FGL_J1317.6+3428_weekly_bin759.fits ra=199.401 dec=34.4676 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.55
user 8.21
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.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/591007/ft1_filteredMKT_4FGL_J1317.6+3428_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/591007/ft1_filtered_4FGL_J1317.6+3428_weekly_bin759.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.59
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 812

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591007/ft1_filtered_4FGL_J1317.6+3428_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/591007/ltcube_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.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/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits
.....................!
real 27.31
user 26.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591007/ft1_filtered_4FGL_J1317.6+3428_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/591007/ltcube_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.fits outfile=/scratch/kocevski/591007/expmap_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.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/591007/ltcube_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.fits
.....................!
real 192.14
user 187.30
sys 4.43

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/591007/ft1_filtered_4FGL_J1317.6+3428_weekly_bin759.fits scfile=/scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits outfile=/scratch/kocevski/591007/cmap_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591007/ft1_filtered_4FGL_J1317.6+3428_weekly_bin759.fits scfile=/scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits outfile=/scratch/kocevski/591007/cmap_HighResolution_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.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.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591007/ft1_filtered_4FGL_J1317.6+3428_weekly_bin759.fits', '/scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits', expMap='/scratch/kocevski/591007/expmap_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.fits', expCube='/scratch/kocevski/591007/ltcube_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591007/Model_4FGL_J1317.6+3428_weekly_bin759.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  0.000e+00  1.000e+06 ( 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/591007/ft1_filtered_4FGL_J1317.6+3428_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/591007/ft2_4FGL_J1317.6+3428_weekly_bin759.fits
Exposure map: /scratch/kocevski/591007/expmap_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.fits
Exposure cube: /scratch/kocevski/591007/ltcube_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591007/Model_4FGL_J1317.6+3428_weekly_bin759.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) = 8903.84537365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54952E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.245       1.0000          .0000       .10000E+07
     3 'Prefactor '    .53215E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .36551E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .84295E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .26184E-05   1.0000          .0000       .10000E+07
     7 'norm      '    1.0476       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11309E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .18049E-04   1.0000          .0000       .10000E+07
    10 'norm      '    7.9582       1.0000          .0000       .10000E+07
    11 'norm      '    40.073       1.0000          .0000       .10000E+07
    12 'norm      '    5.7680       1.0000          .0000       .10000E+07
    13 'norm      '    23.130       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12352E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18632E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .16634E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30529E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.5585       1.0000          .0000       .10000E+07
    19 'norm      '    .96299       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.6466       1.0000          .0000       .10000E+07
    21 'norm      '    .32683E-05   1.0000          .0000       .10000E+07
    22 'Normalizat'    .96682       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8903.799     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1460 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.7524        .58208E-07** at limit **
   2  Prefactor     11.246        7.7701       -.57710E-07    .24421E-01
   3  Prefactor     .79492E-07    15.060       -.17923E-06** at limit **
   4  Prefactor     .13528E-05    61.201        .95475E-06** at limit **
   5  norm           .0000        1.8393       -.68783E-07** at limit **
   6  Prefactor     .96256E-07    6.3048        .30550E-06** at limit **
   7  norm          1.0537        1.9889        .66164E-07    .18899E-02
   8  Prefactor      .0000        3.7153        .19102E-06** at limit **
   9  norm           .0000        1.8102        .40664E-07** at limit **
  10  norm          7.9597        2.9310        .43494E-07    .78879E-01
  11  norm          40.002        4.3761       -.14689E-07   -.26240E-02
  12  norm          5.7705        3.2215       -.46771E-07    .23646E-02
  13  norm          22.546        4.0403        .33313E-07   -.52133E-01
  14  Prefactor      .0000        1.2306       -.66386E-07** at limit **
  15  Prefactor     .13223E-06    6.1581       -.84859E-07** at limit **
  16  Prefactor     .27337E-05    15.373       -.21642E-06** at limit **
  17  Prefactor     .40271E-05    8.9634       -.47165E-06** at limit **
  18  Prefactor     6.5476        5.5556        .17130E-06   -.42585E-01
  19  norm          .96171        .87902       -.28086E-07   -.19305E-02
  20  Prefactor     8.6126        3.7496       -.21702E-07    .16234E-02
  21  norm          .33307E-09    4.9792       -.11269E-06** at limit **
  22  Normalizat    .96738        .16422        .26799E-05    .32641E-03
  23  Prefactor     1.0453        .20086        .75013E-06    .25157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 11.2456
  Prefactor  = 7.9492e-08
  Prefactor  = 1.35275e-06
  norm       = 0
  Prefactor  = 9.62563e-08
  norm       = 1.05369
  Prefactor  = 0
  norm       = 0
  norm       = 7.95967
  norm       = 40.0024
  norm       = 5.77053
  norm       = 22.5456
  Prefactor  = 0
  Prefactor  = 1.32228e-07
  Prefactor  = 2.7337e-06
  Prefactor  = 4.02706e-06
  Prefactor  = 6.54757
  norm       = 0.961712
  Prefactor  = 8.61264
  norm       = 3.33067e-10
  Normalizat = 0.967384
  Prefactor  = 1.04528
 **********
 **   18 **HESSE 
 **********

 FCN=   8903.799     FROM HESSE     STATUS=OK           422 CALLS     1882 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.7578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.246        7.8946        .29851E-03   -1.5641    
   3  Prefactor     .79492E-07    16.186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13528E-05    3.2655        .60038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.8339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .96256E-07    7.0469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0537        2.3291        .41617E-02   -1.5687    
   8  Prefactor      .0000        3.7264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.8047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9597        8.6886        .35519E-03   -1.5652    
  11  norm          40.002        7.1155        .15799E-03   -1.5581    
  12  norm          5.7705        8.7813        .41796E-03   -1.5660    
  13  norm          22.546        17.903        .20798E-03   -1.5613    
  14  Prefactor      .0000        1.2274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13223E-06    6.9521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27337E-05    22.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40271E-05    21.586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5476        16.505        .39163E-03   -1.5657    
  19  norm          .96171        .88415        .42450E-03   -1.5688    
  20  Prefactor     8.6126        3.7505        .34065E-03   -1.5649    
  21  norm          .33307E-09    5.0089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96738        .13959        .45750E-01   -.94131    
  23  Prefactor     1.0453        .16921        .64913E-01   -.91235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24623e-07
Minuit parameter uncertainties:
  1  1.55421e-05
  2  7.89462
  3  0.00226891
  4  0.00420352
  5  6.08512e-06
  6  0.00164719
  7  2.3291
  8  4.20661e-06
  9  4.415e-06
  10  8.68858
  11  7.11548
  12  8.78135
  13  17.9034
  14  3.55712e-06
  15  0.00191743
  16  0.0155697
  17  0.0186472
  18  16.5053
  19  0.884147
  20  3.75048
  21  8.40256e-05
  22  0.139642
  23  0.169298
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  0.000e+00  3.557e-06  0.000e+00  1.000e+06 ( 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.045e+00  1.693e-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.674e-01  1.396e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591007/likelihoodResults_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.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) = 8903.80488152
delta logL = -0.00570821915244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8903.79917588
delta logL = -2.58669206232e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10449E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4650       1.0000          .0000       10.000    
     3 'Normalizat'    .96768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0450       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=   8903.799     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      258 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    .33824E-02    .42118E-03** at limit **
   2  Index         2.9943        7.3116        .50000        .13642E-09
   3  Normalizat    .96738        .19470E-03    .45761E-01   -.39518E-03
   4  Prefactor     1.0453        .24237E-03    .64913E-01   -.27153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 2.9943
  Normalizat = 0.967383
  Prefactor  = 1.04528
 **********
 **   18 **HESSE 
 **********

 FCN=   8903.799     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      289 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    .54500E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9943        6.0455        .50000       -.41276    
   3  Normalizat    .96738        .77670E-03    .23996E-03   -.94131    
   4  Prefactor     1.0453        .96629E-03    .28712E-03   -.91235    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25491e-12
Minuit parameter uncertainties:
  1  4.37202e-06
  2  19283.5
  3  0.000776697
  4  0.000966289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591007': 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) = 8903.7991733
delta logL = -7.45785655454e-11

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.110e-10  4.372e-06  0.000e+00  1.000e+06 ( 1.000e-12)
320        Index:  2.994e+00  1.928e+04  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.045e+00  9.663e-04  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.674e-01  7.767e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/591007/cmap_HighResolution_698025601_698630401_4FGL_J1317.6+3428_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2023-02-21 03:50:22.535182', job_id='591007', GAL2='1.05', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1676980222.54', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-7.46e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='759' AND source_name='4FGL J1317.6+3428' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:50:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 591007: <4FGL_J1317.6+3428_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1317.6+3428_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:35:22 2023
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:35:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:35:24 2023
Terminated at Tue Feb 21 03:50:23 2023
Results reported at Tue Feb 21 03:50:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_weekly_bin759 199.401 34.4676 698025601 698630401 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

