aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 74 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17085
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.9+1153_weekly_bin757
RA = 204.732, Dec = 11.8956
tmin = 696816001, tmax = 697420801
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='267184', job_status='RUN', time_executed='2023-02-07 01:22:08.551720', time_epoch_executed='1675761728.55' WHERE source_name='4FGL J1338.9+1153' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267184

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267184/ft1_4FGL_J1338.9+1153_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267184/ft1_4FGL_J1338.9+1153_weekly_bin757.fits outfile=/scratch/kocevski/267184/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin757.fits ra=204.732 dec=11.8956 rad=12.0 tmin=696816001.0 tmax=697420801.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.77
user 7.36
sys 0.37

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

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

Number of photons that the gtmktime cut: 1423

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/267184/ltcube_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.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/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits
.....................!
real 37.56
user 36.77
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/267184/ltcube_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.fits outfile=/scratch/kocevski/267184/expmap_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.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/267184/ltcube_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.fits
.....................!
real 194.94
user 188.54
sys 5.55

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/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits scfile=/scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits outfile=/scratch/kocevski/267184/cmap_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.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.61
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits scfile=/scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits outfile=/scratch/kocevski/267184/cmap_HighResolution_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.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/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267184/Model_4FGL_J1338.9+1153_weekly_bin757.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/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits.....................!
real 106.73
user 103.97
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits', '/scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits', expMap='/scratch/kocevski/267184/expmap_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.fits', expCube='/scratch/kocevski/267184/ltcube_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/267184/Model_4FGL_J1338.9+1153_weekly_bin757.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  0.000e+00  1.000e+06 ( 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/267184/ft1_filtered_4FGL_J1338.9+1153_weekly_bin757.fits
Spacecraft file(s): /scratch/kocevski/267184/ft2_4FGL_J1338.9+1153_weekly_bin757.fits
Exposure map: /scratch/kocevski/267184/expmap_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.fits
Exposure cube: /scratch/kocevski/267184/ltcube_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/267184/Model_4FGL_J1338.9+1153_weekly_bin757.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) = 15917.0264106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.863       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5915       1.0000          .0000       .10000E+07
     3 'norm      '    50.814       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.5726       1.0000          .0000       .10000E+07
     5 'Prefactor '    .81258E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .13711E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22894E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.3221       1.0000          .0000       .10000E+07
     9 'Prefactor '    8.2814       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79679       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16471E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .93602E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .70666E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    100.28       1.0000          .0000       .10000E+07
    15 'Prefactor '    .43894E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0256       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15916.03     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      747 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.718        1.7553        .16029E-07   -.23046E-01
   2  Prefactor     6.6253        5.9566        .33340E-06    .29118E-02
   3  norm          50.919        7.7543        .24356E-06    .12309E-01
   4  Prefactor     4.5724        4.2903        .38420E-06    .31206E-03
   5  Prefactor     .99920E-09    7.6237       -.97174E-07** at limit **
   6  norm          .55511E-10    2.1807       -.51498E-06** at limit **
   7  Prefactor     .73053E-07    11.652       -.96541E-07** at limit **
   8  Prefactor     3.3218        2.1670       -.10952E-07   -.13412E-03
   9  Prefactor     8.2332        1.0125       -.50947E-08   -.35293E-02
  10  Prefactor     .79580        1.2963       -.10264E-06    .33614E-04
  11  Prefactor     .55511E-10    2.5512        .11119E-06** at limit **
  12  Prefactor     .24708E-06    14.279       -.50821E-06** at limit **
  13  Prefactor      .0000        1.8672       -.25165E-06** at limit **
  14  Prefactor     100.38        8.3965        .52363E-07   -.16993    
  15  Prefactor     .61062E-09    3.8320       -.86380E-06** at limit **
  16  Normalizat    1.0258        .15434       -.73955E-05    .62503E-05
  17  Prefactor     1.0828        .12169        .75042E-05    .19813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.718
  Prefactor  = 6.62526
  norm       = 50.9189
  Prefactor  = 4.57235
  Prefactor  = 9.99201e-10
  norm       = 5.55112e-11
  Prefactor  = 7.30527e-08
  Prefactor  = 3.32185
  Prefactor  = 8.23322
  Prefactor  = 0.795796
  Prefactor  = 5.55112e-11
  Prefactor  = 2.4708e-07
  Prefactor  = 0
  Prefactor  = 100.382
  Prefactor  = 6.10623e-10
  Normalizat = 1.02579
  Prefactor  = 1.08285
 **********
 **   18 **HESSE 
 **********

 FCN=   15916.03     FROM HESSE     STATUS=OK           255 CALLS     1002 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.718        8.9860        .27904E-03   -1.5637    
   2  Prefactor     6.6253        6.1757        .39063E-03   -1.5656    
   3  norm          50.919        7.7448        .14030E-03   -1.5565    
   4  Prefactor     4.5724        4.2875        .47050E-03   -1.5665    
   5  Prefactor     .99920E-09    7.6300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    2.1810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73053E-07    12.060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3218        2.1731        .55513E-03   -1.5672    
   9  Prefactor     8.2332        9.0516        .34813E-03   -1.5651    
  10  Prefactor     .79580        1.3088        .53175E-03   -1.5690    
  11  Prefactor     .55511E-10    2.5511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24708E-06    15.336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.8670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     100.38        23.962        .99866E-04   -1.5508    
  15  Prefactor     .61062E-09    3.8199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0258        .12973        .64597E-01   -.92171    
  17  Prefactor     1.0828        .10146        .38276E-01   -.90017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97302e-07
Minuit parameter uncertainties:
  1  8.98597
  2  6.17571
  3  7.74479
  4  4.28754
  5  0.000173167
  6  1.80435e-05
  7  0.00187722
  8  2.17311
  9  9.05158
  10  1.30878
  11  2.12589e-05
  12  0.00389327
  13  8.88901e-06
  14  23.9619
  15  9.79503e-05
  16  0.129765
  17  0.101481
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  7.305e-08  1.877e-03  0.000e+00  1.000e+06 ( 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.083e+00  1.015e-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.026e+00  1.298e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267184/likelihoodResults_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.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) = 15916.0659398
delta logL = -0.0397528903195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15915.9664565
delta logL = 0.0597304894036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10886       1.0000          .0000       .10000E+07
     2 'Index     '    4.0467       1.0000          .0000       10.000    
     3 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0890       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=   15915.97     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      228 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11069        .94732        .21857E-02** at limit **
   2  Index         4.0430        .93187        .20534        .88720E-04
   3  Normalizat    1.0115        .94478E-02    .65020E-01    .61786E-04
   4  Prefactor     1.0892        .75479E-02    .38021E-01    .73805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.110689
  Index      = 4.04303
  Normalizat = 1.01146
  Prefactor  = 1.08917
 **********
 **   18 **HESSE 
 **********

 FCN=   15915.97     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      263 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11069        40.827        .80180E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0430        5.1634        .78691E-02   -.19258    
   3  Normalizat    1.0115        .75186E-01    .28758E-03   -.92647    
   4  Prefactor     1.0892        .59560E-01    .22126E-03   -.89814    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83653e-06
Minuit parameter uncertainties:
  1  4.25164
  2  13.1981
  3  0.0751934
  4  0.0595634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267184': 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) = 15915.9664519
delta logL = 0.059735040415

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.107e-01  4.252e+00  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  4.043e+00  1.320e+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:  1.089e+00  5.956e-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:  1.011e+00  7.519e-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/267184/cmap_HighResolution_696816001_697420801_4FGL_J1338.9+1153_weekly_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-03', job_status='DONE', photon_flux_upper_limit='2.94e-08', time_completed='2023-02-07 01:35:04.518686', job_id='267184', GAL2='1.09', fit_tolerance='1e-08', EG2='1.01', EG='1.03', time_epoch_completed='1675762504.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.97e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='757' AND source_name='4FGL J1338.9+1153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 01:35:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 267184: <4FGL_J1338.9+1153_weekly_bin757> in cluster <slac> Done

Job <4FGL_J1338.9+1153_weekly_bin757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb  7 01:20:21 2023
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 01:20:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 01:20:46 2023
Terminated at Tue Feb  7 01:35:05 2023
Results reported at Tue Feb  7 01:35:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_weekly_bin757 204.732 11.8956 696816001 697420801 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            884 sec.

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

