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 5 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 = 17289
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.9+1153_weekly_bin130
RA = 204.732, Dec = 11.8956
tmin = 317606401, tmax = 318211201
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='15811', job_status='RUN', time_executed='2021-07-20 22:22:28.584640', time_epoch_executed='1626844948.58' WHERE source_name='4FGL J1338.9+1153' and cadence='weekly' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15811

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15811/ft1_4FGL_J1338.9+1153_weekly_bin130.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15811/ft1_4FGL_J1338.9+1153_weekly_bin130.fits outfile=/scratch/kocevski/15811/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin130.fits ra=204.732 dec=11.8956 rad=12.0 tmin=317606401.0 tmax=318211201.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.09
user 6.75
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.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/15811/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin130.fits evtable="EVENTS" outfile="/scratch/kocevski/15811/ft1_filtered_4FGL_J1338.9+1153_weekly_bin130.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.55
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15811/ft1_filtered_4FGL_J1338.9+1153_weekly_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/15811/ltcube_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.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/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits
.....................!
real 31.11
user 30.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15811/ft1_filtered_4FGL_J1338.9+1153_weekly_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/15811/ltcube_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.fits outfile=/scratch/kocevski/15811/expmap_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.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/15811/ltcube_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.fits
.....................!
real 192.34
user 186.20
sys 5.59

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/15811/ft1_filtered_4FGL_J1338.9+1153_weekly_bin130.fits scfile=/scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits outfile=/scratch/kocevski/15811/cmap_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.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.60
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15811/ft1_filtered_4FGL_J1338.9+1153_weekly_bin130.fits scfile=/scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits outfile=/scratch/kocevski/15811/cmap_HighResolution_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.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.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15811/ft1_filtered_4FGL_J1338.9+1153_weekly_bin130.fits', '/scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits', expMap='/scratch/kocevski/15811/expmap_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.fits', expCube='/scratch/kocevski/15811/ltcube_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15811/Model_4FGL_J1338.9+1153_weekly_bin130.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/15811/ft1_filtered_4FGL_J1338.9+1153_weekly_bin130.fits
Spacecraft file(s): /scratch/kocevski/15811/ft2_4FGL_J1338.9+1153_weekly_bin130.fits
Exposure map: /scratch/kocevski/15811/expmap_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.fits
Exposure cube: /scratch/kocevski/15811/ltcube_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15811/Model_4FGL_J1338.9+1153_weekly_bin130.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) = 13105.3301459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38199E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.342       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20381E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .90125       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    19.325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7857       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.007       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .44076       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3391       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80372       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=   13105.18     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1679 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.078       -.15189E-05** at limit **
   2  Prefactor     16.345        9.0766        .32374E-06    .83241E-04
   3  Prefactor     .10000E-03    14.006       -.20139E-06** at limit **
   4  norm          .90103        2.6264        .46228E-06   -.57443E-03
   5  Prefactor     .10000E-03    1.5313       -.26951E-08** at limit **
   6  Prefactor     .10000E-03    5.0425        .44000E-07** at limit **
   7  norm          19.307        6.6530        .52773E-06    .30698E-03
   8  Prefactor     16.108        19.204       -.10961E-05   -.61040E-04
   9  Prefactor     4.8366        2.5177        .39966E-07   -.80945E-04
  10  Prefactor     1.7631        20.984       -.16905E-06   -.49871E-04
  11  Prefactor     1.4163        2.7693        .41863E-06   -.38519E-03
  12  Prefactor     3.5077        5.0772        .68484E-07   -.92672E-04
  13  Prefactor     .10000E-03    4.5843       -.55395E-07** at limit **
  14  Prefactor     5.7833        7.5757       -.63750E-06   -.12297E-03
  15  Prefactor     18.029        18.025       -.11096E-05   -.95280E-04
  16  Prefactor     .10000E-03    4.5412        .68941E-07** at limit **
  17  Prefactor     .43598        2.4967        .26336E-06   -.26738E-03
  18  Normalizat    1.3390        .13313       -.29592E-06   -.25285E-05
  19  Prefactor     .80376        .10481        .86646E-07   -.69568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.3451
  Prefactor  = 0.0001
  norm       = 0.901025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.3067
  Prefactor  = 16.1076
  Prefactor  = 4.83664
  Prefactor  = 1.7631
  Prefactor  = 1.41628
  Prefactor  = 3.50766
  Prefactor  = 0.0001
  Prefactor  = 5.78332
  Prefactor  = 18.0289
  Prefactor  = 0.0001
  Prefactor  = 0.435982
  Normalizat = 1.33896
  Prefactor  = 0.803756
 **********
 **   18 **HESSE 
 **********

 FCN=   13105.18     FROM HESSE     STATUS=OK           276 CALLS     1955 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.181        .21285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.345        9.0970        .99077E-04   -1.4899    
   3  Prefactor     .10000E-03    14.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .90103        3.2290        .36472E-03   -1.5518    
   5  Prefactor     .10000E-03    1.5339        .13834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.307        6.9291        .91111E-04   -1.4829    
   8  Prefactor     16.108        19.259        .99659E-04   -1.4905    
   9  Prefactor     4.8366        2.5175        .12602E-03   -1.5268    
  10  Prefactor     1.7631        21.443        .32587E-03   -1.5442    
  11  Prefactor     1.4163        2.8945        .26775E-03   -1.5470    
  12  Prefactor     3.5077        5.0771        .21587E-03   -1.5333    
  13  Prefactor     .10000E-03    4.6689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7833        7.5940        .16697E-03   -1.5227    
  15  Prefactor     18.029        17.989        .94384E-04   -1.4859    
  16  Prefactor     .10000E-03    4.5459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .43598        7.1405        .35154E-02   -1.5576    
  18  Normalizat    1.3390        .16086        .23790E-03   -.82411    
  19  Prefactor     .80376        .12644        .23766E-03   -.99590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11125e-08
Minuit parameter uncertainties:
  1  6.98036e-05
  2  9.09781
  3  2.6119e-05
  4  3.22966
  5  1.66653e-07
  6  1.44891e-06
  7  6.92935
  8  19.2662
  9  2.51751
  10  12.3023
  11  2.8948
  12  5.07774
  13  1.09745e-07
  14  7.59531
  15  17.9946
  16  2.51702e-06
  17  3.5289
  18  0.160916
  19  0.126487
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.611e+01  1.927e+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:  8.038e-01  1.265e-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.339e+00  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 9.12e-09 +/- 1.09e-08
Energy Flux (Fixed Index): 5.79e-06 +/- 6.92e-06

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

Saving results to:
/scratch/kocevski/15811/likelihoodResults_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.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) = 13105.180959
delta logL = 0.00336850292297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13105.1793301
delta logL = 0.00499736958227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.458       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9596       1.0000          .0000       10.000    
     3 'Normalizat'    1.3399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80336       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13105.18     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.456        25.292        .95855E-04    .88477E-04
   2  Index         1.9604        .76576        .97786E-02    .35027E-04
   3  Normalizat    1.3398        .15614        .23783E-03   -.40941E-03
   4  Prefactor     .80337        .12492        .23771E-03   -.48276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4558
  Index      = 1.96036
  Normalizat = 1.33981
  Prefactor  = 0.803372
 **********
 **   18 **HESSE 
 **********

 FCN=   13105.18     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.456        24.284        .38342E-05   -1.4872    
   2  Index         1.9604        .73592        .39114E-03   -.65345    
   3  Normalizat    1.3398        .15625        .47566E-04   -.82386    
   4  Prefactor     .80337        .12504        .95083E-05   -.99604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39371e-10
Minuit parameter uncertainties:
  1  24.2977
  2  0.7402
  3  0.15631
  4  0.125084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15811': 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) = 13105.1793293
delta logL = 0.00499817245691

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.746e+01  2.430e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.960e+00  7.402e-01  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:  8.034e-01  1.251e-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.340e+00  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.96 +/- 0.74
Photon Flux (Free Index): 8.42e-09 +/- 1.23e-08
Energy Flux (Free Index): 6.43e-06 +/- 1.03e-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/15811/cmap_HighResolution_317606401_318211201_4FGL_J1338.9+1153_weekly_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-03', comment='SUCCESS', photon_flux='9.12e-09', energy_flux2='6.43e-06', photon_flux_error='1.09e-08', dlogl='5.00e-03', energy_flux='5.79e-06', photon_flux2='8.42e-09', job_status='DONE', time_completed='2021-07-20 22:36:50.629783', photon_index_error2='0.74', photon_index2='1.96', ts='1.24', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='3.94e-08', energy_flux_error2='1.03e-05', EG='1.34', time_epoch_completed='1626845810.63', return_code='0', job_id='15811', GAL2='0.80', EG2='1.34', return_code2='0', energy_flux_error='6.92e-06', photon_flux_error2='1.23e-08', ts2='1.25', photon_index='2.04' WHERE bin_id='130' AND source_name='4FGL J1338.9+1153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 22:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 15811: <4FGL_J1338.9+1153_weekly_bin130> in cluster <slac> Done

Job <4FGL_J1338.9+1153_weekly_bin130> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jul 20 22:21:34 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 22:22:15 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:22:15 2021
Terminated at Tue Jul 20 22:36:51 2021
Results reported at Tue Jul 20 22:36:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_weekly_bin130 204.732 11.8956 317606401 318211201 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 :                                   843.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            917 sec.

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

