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


Performing analysis on: 4FGL_J1338.9+1153_weekly_bin601
RA = 204.732, Dec = 11.8956
tmin = 602467201, tmax = 603072001
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='19595', job_status='RUN', time_executed='2021-07-20 22:38:09.206561', time_epoch_executed='1626845889.21' WHERE source_name='4FGL J1338.9+1153' and cadence='weekly' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19595

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19595/ft1_4FGL_J1338.9+1153_weekly_bin601.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19595/ft2_4FGL_J1338.9+1153_weekly_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19595/ft1_4FGL_J1338.9+1153_weekly_bin601.fits outfile=/scratch/kocevski/19595/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin601.fits ra=204.732 dec=11.8956 rad=12.0 tmin=602467201.0 tmax=603072001.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 6.70
user 6.27
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19595/ft1_filtered_4FGL_J1338.9+1153_weekly_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/19595/ft2_4FGL_J1338.9+1153_weekly_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/19595/ltcube_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.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/19595/ft2_4FGL_J1338.9+1153_weekly_bin601.fits
.....................!
real 36.84
user 36.23
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19595/ft1_filtered_4FGL_J1338.9+1153_weekly_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/19595/ft2_4FGL_J1338.9+1153_weekly_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/19595/ltcube_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.fits outfile=/scratch/kocevski/19595/expmap_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.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/19595/ltcube_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.fits
.....................!
real 194.90
user 187.87
sys 5.36

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/19595/ft1_filtered_4FGL_J1338.9+1153_weekly_bin601.fits scfile=/scratch/kocevski/19595/ft2_4FGL_J1338.9+1153_weekly_bin601.fits outfile=/scratch/kocevski/19595/cmap_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19595/ft1_filtered_4FGL_J1338.9+1153_weekly_bin601.fits scfile=/scratch/kocevski/19595/ft2_4FGL_J1338.9+1153_weekly_bin601.fits outfile=/scratch/kocevski/19595/cmap_HighResolution_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.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.59
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.555       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7702       1.0000         .10000E-03   10000.    
     4 'norm      '    8.0043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.5819       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.712       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    97.724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13324E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .76208       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2352       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=   12174.08     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1623 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.633        .78086E-06** at limit **
   2  Prefactor     13.565        12.393        .22726E-05    .58846E-03
   3  Prefactor     2.7585        9.1480       -.64792E-06   -.18404E-03
   4  norm          8.0043        5.5155       -.63192E-06   -.13766E-04
   5  Prefactor     2.3366        3.8811       -.35854E-07   -.33022E-03
   6  Prefactor     .10000E-03    9.9030       -.49953E-06** at limit **
   7  norm          6.5812        6.9294        .27805E-05   -.15577E-02
   8  Prefactor     .10000E-03    7.4809        .46509E-06** at limit **
   9  Prefactor     .75559        2.6279        .18499E-05   -.69646E-03
  10  Prefactor     .10000E-03    6.7415       -.12700E-07** at limit **
  11  Prefactor     7.0248        3.5448        .40609E-07   -.18387E-03
  12  Prefactor     .10000E-03    2.2580       -.31914E-09** at limit **
  13  Prefactor     10.712        7.3103        .29763E-06   -.72529E-05
  14  Prefactor     .10000E-03    2.9467       -.16092E-07** at limit **
  15  Prefactor     97.736        23.151        .27366E-05    .16308E-02
  16  Prefactor     .10000E-03    7.7804        .75048E-07** at limit **
  17  Prefactor     .10000E-03    2.4150       -.23597E-06** at limit **
  18  Normalizat    .76214        .15049       -.23473E-05    .29373E-04
  19  Prefactor     1.2352        .11609        .94405E-07   -.12654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.5649
  Prefactor  = 2.75847
  norm       = 8.00429
  Prefactor  = 2.33658
  Prefactor  = 0.0001
  norm       = 6.58124
  Prefactor  = 0.0001
  Prefactor  = 0.755592
  Prefactor  = 0.0001
  Prefactor  = 7.0248
  Prefactor  = 0.0001
  Prefactor  = 10.7119
  Prefactor  = 0.0001
  Prefactor  = 97.7362
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.762136
  Prefactor  = 1.23516
 **********
 **   18 **HESSE 
 **********

 FCN=   12174.08     FROM HESSE     STATUS=OK           268 CALLS     1891 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.565        12.546        .10879E-03   -1.4971    
   3  Prefactor     2.7585        9.1788        .24452E-03   -1.5376    
   4  norm          8.0043        5.6123        .14172E-03   -1.5142    
   5  Prefactor     2.3366        3.8720        .26825E-03   -1.5402    
   6  Prefactor     .10000E-03    9.9237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5812        7.6958        .78210E-03   -1.5195    
   8  Prefactor     .10000E-03    7.4887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .75559        2.7119        .31674E-03   -1.5534    
  10  Prefactor     .10000E-03    6.7560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0248        3.5413        .14165E-03   -1.5178    
  12  Prefactor     .10000E-03    2.2677        .16190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.712        7.3085        .12241E-03   -1.5053    
  14  Prefactor     .10000E-03    2.9574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     97.736        24.534        .40663E-04   -1.3727    
  16  Prefactor     .10000E-03    7.8150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6425        .33084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .76214        .17488        .30805E-03   -1.0149    
  19  Prefactor     1.2352        .13682        .20182E-03   -.85256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25648e-09
Minuit parameter uncertainties:
  1  7.98558e-05
  2  12.5488
  3  9.18347
  4  5.61267
  5  3.87244
  6  4.7478e-05
  7  7.69691
  8  4.73795e-05
  9  2.71235
  10  5.19374e-06
  11  3.54136
  12  4.90176e-08
  13  7.3091
  14  2.58157e-06
  15  24.5362
  16  1.08446e-05
  17  0.000241044
  18  0.175011
  19  0.136855
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  4.738e-05  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.235e+00  1.369e-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:  7.621e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/19595/likelihoodResults_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.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) = 12174.0836656
delta logL = -0.000634716820059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12174.0830308
delta logL = 1.42383214552e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0053       1.0000          .0000       10.000    
     3 'Normalizat'    .76218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2351       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=   12174.08     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10194E-03    61.817        .18142E-02** at limit **
   2  Index         1.9394        8.4900        .50000        .25613E-04
   3  Normalizat    .76213        .92240E-02    .30805E-03   -.66430E-06
   4  Prefactor     1.2352        .75570E-02    .20181E-03   -.10140E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010194
  Index      = 1.93945
  Normalizat = 0.762135
  Prefactor  = 1.23516
 **********
 **   18 **HESSE 
 **********

 FCN=   12174.08     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10194E-03    262.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9394        8.9980        .50000       -.65873    
   3  Normalizat    .76213        .19613E-01    .12322E-04   -1.0149    
   4  Prefactor     1.2352        .16068E-01    .80726E-05   -.85256    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.24014e-08
Minuit parameter uncertainties:
  1  0.045371
  2  438.992
  3  0.0196129
  4  0.0160683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19595': 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) = 12174.0830303
delta logL = 5.68979885429e-07

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.019e-04  4.537e-02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.939e+00  4.390e+02  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.235e+00  1.607e-02  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:  7.621e-01  1.961e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.732 11.896

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/19595/cmap_HighResolution_602467201_603072001_4FGL_J1338.9+1153_weekly_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-03', job_status='DONE', photon_flux_upper_limit='2.35e-08', time_completed='2021-07-20 22:52:10.792286', job_id='19595', GAL2='1.24', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1626846730.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='5.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='601' AND source_name='4FGL J1338.9+1153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 22:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 19595: <4FGL_J1338.9+1153_weekly_bin601> in cluster <slac> Done

Job <4FGL_J1338.9+1153_weekly_bin601> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Jul 20 22:35:51 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 22:37:54 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:37:54 2021
Terminated at Tue Jul 20 22:52:11 2021
Results reported at Tue Jul 20 22:52:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_weekly_bin601 204.732 11.8956 602467201 603072001 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            980 sec.

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

