aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 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 = 17189
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1317.6+3428_weekly_bin524
RA = 199.401, Dec = 34.4676
tmin = 555897601, tmax = 556502401
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='788189', job_status='RUN', time_executed='2021-07-20 09:06:30.519367', time_epoch_executed='1626797190.52' WHERE source_name='4FGL J1317.6+3428' and cadence='weekly' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788189

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788189/ft1_4FGL_J1317.6+3428_weekly_bin524.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788189/ft2_4FGL_J1317.6+3428_weekly_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788189/ft1_4FGL_J1317.6+3428_weekly_bin524.fits outfile=/scratch/kocevski/788189/ft1_filteredMKT_4FGL_J1317.6+3428_weekly_bin524.fits ra=199.401 dec=34.4676 rad=12.0 tmin=555897601.0 tmax=556502401.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 7.98
user 7.60
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788189/ft2_4FGL_J1317.6+3428_weekly_bin524.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/788189/ft1_filteredMKT_4FGL_J1317.6+3428_weekly_bin524.fits evtable="EVENTS" outfile="/scratch/kocevski/788189/ft1_filtered_4FGL_J1317.6+3428_weekly_bin524.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.37
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788189/ft1_filtered_4FGL_J1317.6+3428_weekly_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/788189/ft2_4FGL_J1317.6+3428_weekly_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/788189/ltcube_555897601_556502401_4FGL_J1317.6+3428_weekly_bin524.fits outfile=/scratch/kocevski/788189/expmap_555897601_556502401_4FGL_J1317.6+3428_weekly_bin524.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/788189/ltcube_555897601_556502401_4FGL_J1317.6+3428_weekly_bin524.fits
.....................!
real 192.34
user 185.20
sys 4.86

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/788189/ft1_filtered_4FGL_J1317.6+3428_weekly_bin524.fits scfile=/scratch/kocevski/788189/ft2_4FGL_J1317.6+3428_weekly_bin524.fits outfile=/scratch/kocevski/788189/cmap_555897601_556502401_4FGL_J1317.6+3428_weekly_bin524.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788189/ft1_filtered_4FGL_J1317.6+3428_weekly_bin524.fits scfile=/scratch/kocevski/788189/ft2_4FGL_J1317.6+3428_weekly_bin524.fits outfile=/scratch/kocevski/788189/cmap_HighResolution_555897601_556502401_4FGL_J1317.6+3428_weekly_bin524.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.189       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48513E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.258       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8059       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.099       1.0000         .10000E-03   10000.    
    12 'norm      '    10.226       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4340       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2930       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1348       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.505       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3034       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8154       1.0000         .10000E-03   10000.    
    24 'norm      '    .46072E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91453       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0461       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=   6955.118     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3280 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1815        .19205E-07** at limit **
   2  Prefactor     .10000E-03    9.3393        .72157E-07** at limit **
   3  Prefactor     12.196        20.019        .96914E-06    .11284E-03
   4  Prefactor     .10012E-03    578.94       -.18239E-04** at limit **
   5  Prefactor     .10000E-03    5.1890        .33964E-06** at limit **
   6  norm          14.259        5.9767       -.24683E-07    .33115E-03
   7  Prefactor     .10000E-03    16.861        .59922E-06** at limit **
   8  Prefactor     4.8224        31.404       -.15138E-05   -.47925E-04
   9  norm          3.8493        2.7482        .88672E-08    .21664E-05
  10  Prefactor     .10000E-03    4.6894        .37176E-07** at limit **
  11  norm          17.100        6.0886       -.14396E-07    .75022E-04
  12  norm          10.226        8.6830        .14144E-07   -.45826E-05
  13  norm          2.4331        2.2506       -.25854E-06   -.50158E-04
  14  norm          .10000E-03    1.7083       -.50740E-07** at limit **
  15  norm          .10000E-03    6.7672        .33660E-07** at limit **
  16  Prefactor     1.2927        1.6200       -.28325E-06   -.17995E-03
  17  Prefactor     6.5281        10.600        .43693E-05    .76615E-04
  18  Prefactor     .10000E-03    12.084        .13736E-06** at limit **
  19  Prefactor     .10000E-03    14.437       -.87059E-06** at limit **
  20  Prefactor     8.1328        15.123       -.10911E-05   -.18701E-03
  21  Prefactor     19.562        38.978       -.34961E-05   -.17005E-03
  22  norm          1.3032        1.0097        .98549E-08    .14247E-03
  23  Prefactor     7.8152        4.3696        .83056E-07    .64317E-04
  24  norm          .10018E-03    5.9977       -.22086E-05** at limit **
  25  Prefactor     .10000E-03    7.6053        .31587E-07** at limit **
  26  Normalizat    .91452        .15046        .10117E-06    .18310E-03
  27  Prefactor     1.0461        .18620       -.79287E-06    .16701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1961
  Prefactor  = 0.000100125
  Prefactor  = 0.0001
  norm       = 14.2586
  Prefactor  = 0.0001
  Prefactor  = 4.82237
  norm       = 3.84935
  Prefactor  = 0.0001
  norm       = 17.0996
  norm       = 10.2255
  norm       = 2.43313
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.29266
  Prefactor  = 6.52812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.1328
  Prefactor  = 19.5622
  norm       = 1.30319
  Prefactor  = 7.81519
  norm       = 0.000100184
  Prefactor  = 0.0001
  Normalizat = 0.914517
  Prefactor  = 1.04614
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.118     FROM HESSE     STATUS=OK           488 CALLS     3768 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1823        .12030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.196        20.015        .11474E-03   -1.5009    
   4  Prefactor     .10012E-03    612.82        .38487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.259        5.9605        .10607E-03   -1.4953    
   7  Prefactor     .10000E-03    16.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8224        31.092        .18352E-03   -1.5269    
   9  norm          3.8493        2.7489        .11359E-03   -1.5316    
  10  Prefactor     .10000E-03    4.6950        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.100        6.0776        .96858E-04   -1.4881    
  12  norm          10.226        8.6843        .12530E-03   -1.5068    
  13  norm          2.4331        2.2473        .11352E-03   -1.5396    
  14  norm          .10000E-03    1.7105        .10640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.7891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2927        1.6004        .11316E-03   -1.5481    
  17  Prefactor     6.5281        10.930        .78534E-03   -1.5197    
  18  Prefactor     .10000E-03    12.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1328        15.255        .14057E-03   -1.5138    
  21  Prefactor     19.562        40.035        .90690E-04   -1.4823    
  22  norm          1.3032        1.0079        .71643E-04   -1.5480    
  23  Prefactor     7.8152        4.3746        .12342E-03   -1.5149    
  24  norm          .10018E-03    25.565        .36697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.6226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91452        .18010        .22974E-03   -.95952    
  27  Prefactor     1.0461        .22226        .27463E-03   -.91207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83683e-09
Minuit parameter uncertainties:
  1  4.66954e-07
  2  3.90355e-06
  3  20.0258
  4  0.0176706
  5  1.37022e-06
  6  5.96077
  7  0.00010572
  8  24.5081
  9  2.74894
  10  1.03885e-06
  11  6.07779
  12  8.68536
  13  2.24741
  14  2.1209e-06
  15  2.85616e-06
  16  1.60047
  17  10.9329
  18  2.36841e-05
  19  8.24273e-05
  20  15.2627
  21  40.0897
  22  1.00788
  23  4.37483
  24  0.00433736
  25  8.19548e-06
  26  0.180217
  27  0.222458
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.293e+00  1.600e+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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.046e+00  2.225e-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.145e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.39e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 3.88e-06 +/- 4.81e-06

TS (Fixed Index): 1.53
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/788189/likelihoodResults_555897601_556502401_4FGL_J1317.6+3428_weekly_bin524.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) = 6954.69799807
delta logL = 0.420152310475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6954.68731664
delta logL = 0.430833741817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5378       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7361       1.0000          .0000       10.000    
     3 'Normalizat'    .92328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0388       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=   6954.687     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5381        1.9392        .85978E-02   -.17403E-03
   2  Index         1.7361        .63287        .27570       -.40452E-04
   3  Normalizat    .92328        .14504        .45198E-01    .12980E-04
   4  Prefactor     1.0388        .18480        .62275E-01    .12339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53812
  Index      = 1.73614
  Normalizat = 0.923284
  Prefactor  = 1.03884
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.687     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5381        1.8421        .11403E-03   -1.5460    
   2  Index         1.7361        .75217        .12223E-01   -.71124    
   3  Normalizat    .92328        .17315        .22878E-03   -.95647    
   4  Prefactor     1.0388        .22062        .27542E-03   -.91446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05289e-09
Minuit parameter uncertainties:
  1  1.84216
  2  0.757199
  3  0.173252
  4  0.220811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788189': 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) = 6954.68731663
delta logL = 0.430833753375

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.538e+00  1.842e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  1.736e+00  7.572e-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.039e+00  2.208e-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.233e-01  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 199.401 34.468
Photon Index (Free Index): 1.74 +/- 0.76
Photon Flux (Free Index): 6.85e-09 +/- 1.00e-08
Energy Flux (Free Index): 9.98e-06 +/- 1.84e-05

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/788189/cmap_HighResolution_555897601_556502401_4FGL_J1317.6+3428_weekly_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', comment='SUCCESS', photon_flux='1.39e-08', energy_flux2='9.98e-06', photon_flux_error='1.72e-08', dlogl='4.31e-01', energy_flux='3.88e-06', photon_flux2='6.85e-09', job_status='DONE', time_completed='2021-07-20 09:21:22.514118', photon_index_error2='0.76', photon_index2='1.74', ts='1.53', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='6.61e-08', energy_flux_error2='1.84e-05', EG='0.91', time_epoch_completed='1626798082.51', return_code='0', job_id='788189', GAL2='1.04', EG2='0.92', return_code2='0', energy_flux_error='4.81e-06', photon_flux_error2='1.00e-08', ts2='2.39', photon_index='2.53' WHERE bin_id='524' AND source_name='4FGL J1317.6+3428' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 09:21:22 PDT 2021


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

Job <4FGL_J1317.6+3428_weekly_bin524> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Jul 20 09:05:33 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 09:06:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 20 09:06:17 2021
Terminated at Tue Jul 20 09:21:23 2021
Results reported at Tue Jul 20 09:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_weekly_bin524 199.401 34.4676 555897601 556502401 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 :                                   848.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            950 sec.

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

