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


Performing analysis on: 4FGL_J1338.9+1153_weekly_bin470
RA = 204.732, Dec = 11.8956
tmin = 523238401, tmax = 523843201
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='19385', job_status='RUN', time_executed='2021-07-20 22:36:11.095046', time_epoch_executed='1626845771.1' WHERE source_name='4FGL J1338.9+1153' and cadence='weekly' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19385

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19385/ft1_4FGL_J1338.9+1153_weekly_bin470.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19385/ft1_4FGL_J1338.9+1153_weekly_bin470.fits outfile=/scratch/kocevski/19385/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin470.fits ra=204.732 dec=11.8956 rad=12.0 tmin=523238401.0 tmax=523843201.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.21
user 7.86
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.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/19385/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin470.fits evtable="EVENTS" outfile="/scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.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.37
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/19385/ltcube_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.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/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits
.....................!
real 30.39
user 29.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/19385/ltcube_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.fits outfile=/scratch/kocevski/19385/expmap_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.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/19385/ltcube_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.fits
.....................!
real 192.50
user 187.03
sys 4.74

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.9+1153 @ 204.732 11.8956

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits scfile=/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits outfile=/scratch/kocevski/19385/cmap_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.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=204.732 yref=11.8956 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits scfile=/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits outfile=/scratch/kocevski/19385/cmap_HighResolution_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.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=204.732 yref=11.8956 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.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19385/Model_4FGL_J1338.9+1153_weekly_bin470.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/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits.....................!
real 99.02
user 97.35
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits', '/scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits', expMap='/scratch/kocevski/19385/expmap_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.fits', expCube='/scratch/kocevski/19385/ltcube_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19385/Model_4FGL_J1338.9+1153_weekly_bin470.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.9+1153'

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.644e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/19385/ft1_filtered_4FGL_J1338.9+1153_weekly_bin470.fits
Spacecraft file(s): /scratch/kocevski/19385/ft2_4FGL_J1338.9+1153_weekly_bin470.fits
Exposure map: /scratch/kocevski/19385/expmap_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.fits
Exposure cube: /scratch/kocevski/19385/ltcube_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19385/Model_4FGL_J1338.9+1153_weekly_bin470.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) = 14676.042515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.583       1.0000         .10000E-03   10000.    
     4 'norm      '    13.361       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    121.32       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14676.01     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1878 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.432       -.96849E-06** at limit **
   2  Prefactor     19.425        11.081       -.53149E-06   -.32078E-04
   3  Prefactor     10.583        8.6782        .28261E-06   -.73186E-04
   4  norm          13.362        5.6423       -.19138E-07   -.96430E-04
   5  Prefactor     .10000E-03    4.6437       -.10004E-05** at limit **
   6  Prefactor     .10000E-03    6.4870        .32917E-05** at limit **
   7  norm          .10000E-03    4.6913        .96187E-08** at limit **
   8  Prefactor     30.838        34.325       -.39985E-06   -.11176E-04
   9  Prefactor     3.0662        2.5332       -.15591E-06   -.81287E-03
  10  Prefactor     .10000E-03    7.9885       -.49457E-05** at limit **
  11  Prefactor     .10000E-03    1.9122       -.34635E-07** at limit **
  12  Prefactor     .10000E-03    10.460        .31190E-05** at limit **
  13  Prefactor     3.5685        7.3732       -.61453E-06   -.34756E-03
  14  Prefactor     .10000E-03    4.0029        .48019E-06** at limit **
  15  Prefactor     121.32        30.891        .23671E-05   -.11219E-04
  16  Prefactor     47.798        23.339       -.18253E-05   -.32718E-05
  17  Prefactor     .10000E-03    3.0948       -.99766E-07** at limit **
  18  Normalizat    1.0605        .14567        .50406E-07   -.55566E-04
  19  Prefactor     1.1529        .11119       -.75679E-07   -.23730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.4248
  Prefactor  = 10.583
  norm       = 13.3617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.8381
  Prefactor  = 3.06623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56849
  Prefactor  = 0.0001
  Prefactor  = 121.319
  Prefactor  = 47.7978
  Prefactor  = 0.0001
  Normalizat = 1.06054
  Prefactor  = 1.15294
 **********
 **   18 **HESSE 
 **********

 FCN=   14676.01     FROM HESSE     STATUS=OK           266 CALLS     2144 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.425        11.114        .90867E-04   -1.4826    
   3  Prefactor     10.583        8.6711        .12316E-03   -1.5057    
   4  norm          13.362        5.6418        .10958E-03   -1.4977    
   5  Prefactor     .10000E-03    4.6866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.7966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.838        34.357        .72151E-04   -1.4597    
   9  Prefactor     3.0662        2.5484        .16875E-03   -1.5358    
  10  Prefactor     .10000E-03    7.9469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0029        .32699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5685        7.4611        .21394E-03   -1.5330    
  14  Prefactor     .10000E-03    4.0220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     121.32        30.741        .36539E-04   -1.3501    
  16  Prefactor     47.798        23.347        .57998E-04   -1.4324    
  17  Prefactor     .10000E-03    3.1132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0605        .17374        .29598E-03   -.91029    
  19  Prefactor     1.1529        .13231        .22567E-03   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50137e-10
Minuit parameter uncertainties:
  1  1.55016e-05
  2  11.1156
  3  8.6721
  4  5.64202
  5  4.21958e-06
  6  3.95995e-07
  7  1.37576e-06
  8  34.3788
  9  2.54844
  10  5.46505e-06
  11  4.90706e-07
  12  2.55275e-05
  13  7.46303
  14  2.44558e-06
  15  30.7446
  16  23.3511
  17  1.72859e-05
  18  0.173829
  19  0.13235
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.084e+01  3.438e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.153e+00  1.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.061e+00  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19385/likelihoodResults_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.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) = 14674.3434073
delta logL = 1.67012863885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14673.8560343
delta logL = 2.15750164739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2548       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4481       1.0000          .0000       10.000    
     3 'Normalizat'    .97772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1907       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14673.86     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      255 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2450        25.242        .48834E-02    .90125E-03
   2  Index         3.4491        1.4319        .10452        .41718E-03
   3  Normalizat    .97785        .42308E-01    .69342E-01    .38205E-04
   4  Prefactor     1.1906        .32101E-01    .50331E-01    .55794E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.24496
  Index      = 3.44908
  Normalizat = 0.977846
  Prefactor  = 1.19062
 **********
 **   18 **HESSE 
 **********

 FCN=   14673.86     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2450        49.659        .11775E-03   -1.5296    
   2  Index         3.4491        2.5459        .35772E-02   -.31539    
   3  Normalizat    .97785        .16760        .30676E-03   -.93776    
   4  Prefactor     1.1906        .12840        .22251E-03   -.86620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32298e-09
Minuit parameter uncertainties:
  1  29.0679
  2  2.68667
  3  0.167694
  4  0.128431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19385': 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) = 14673.8560329
delta logL = 2.15750305635

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  4.245e+00  2.907e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  3.449e+00  2.687e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.191e+00  1.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.778e-01  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 204.732 11.896
Photon Index (Free Index): 3.45 +/- 2.69
Photon Flux (Free Index): 8.53e-08 +/- 5.91e-08
Energy Flux (Free Index): 1.44e-05 +/- 8.11e-06

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/19385/cmap_HighResolution_523238401_523843201_4FGL_J1338.9+1153_weekly_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='2.16e+00', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-07-20 22:51:32.279615', photon_index_error2='2.69', photon_index2='3.45', ts='1.00', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='5.92e-08', energy_flux_error2='8.11e-06', EG='1.06', time_epoch_completed='1626846692.28', return_code='0', job_id='19385', GAL2='1.19', EG2='0.98', return_code2='102', photon_flux_error2='5.91e-08', ts2='5.51', photon_index='2.04' WHERE bin_id='470' AND source_name='4FGL J1338.9+1153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 22:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 19385: <4FGL_J1338.9+1153_weekly_bin470> in cluster <slac> Done

Job <4FGL_J1338.9+1153_weekly_bin470> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Jul 20 22:35:33 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 22:35:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 20 22:35:58 2021
Terminated at Tue Jul 20 22:51:33 2021
Results reported at Tue Jul 20 22:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_weekly_bin470 204.732 11.8956 523238401 523843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.9+1153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   908.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            960 sec.

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

