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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1777
RA = 204.732, Dec = 11.8956
tmin = 699926401, tmax = 700185601
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='915763', job_status='RUN', time_executed='2023-03-11 00:45:41.425918', time_epoch_executed='1678524341.43' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915763/ft1_4FGL_J1338.9+1153_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915763/ft2_4FGL_J1338.9+1153_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915763/ft1_4FGL_J1338.9+1153_daily_bin1777.fits outfile=/scratch/kocevski/915763/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1777.fits ra=204.732 dec=11.8956 rad=12.0 tmin=699926401.0 tmax=700185601.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 3.62
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915763/ft2_4FGL_J1338.9+1153_daily_bin1777.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/915763/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/915763/ft1_filtered_4FGL_J1338.9+1153_daily_bin1777.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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915763/ft1_filtered_4FGL_J1338.9+1153_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/915763/ft2_4FGL_J1338.9+1153_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/915763/ltcube_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.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/915763/ft2_4FGL_J1338.9+1153_daily_bin1777.fits
.....................!
real 12.20
user 11.86
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915763/ft1_filtered_4FGL_J1338.9+1153_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/915763/ft2_4FGL_J1338.9+1153_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/915763/ltcube_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.fits outfile=/scratch/kocevski/915763/expmap_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.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/915763/ltcube_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.fits
.....................!
real 189.94
user 185.42
sys 4.13

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/915763/ft1_filtered_4FGL_J1338.9+1153_daily_bin1777.fits scfile=/scratch/kocevski/915763/ft2_4FGL_J1338.9+1153_daily_bin1777.fits outfile=/scratch/kocevski/915763/cmap_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915763/ft1_filtered_4FGL_J1338.9+1153_daily_bin1777.fits scfile=/scratch/kocevski/915763/ft2_4FGL_J1338.9+1153_daily_bin1777.fits outfile=/scratch/kocevski/915763/cmap_HighResolution_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19820E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .30726       1.0000          .0000       .10000E+07
     3 'norm      '    6.8488       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8289       1.0000          .0000       .10000E+07
     5 'Prefactor '    82.504       1.0000          .0000       .10000E+07
     6 'norm      '    6.7704       1.0000          .0000       .10000E+07
     7 'Prefactor '    72.743       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10508E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .38091E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .72670E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.8179       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.9140       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8999       1.0000          .0000       .10000E+07
    14 'Prefactor '    69.093       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13417E-05   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1497       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .78999       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=   6380.477     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     1699 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    5.5073        .12938E-06** at limit **
   2  Prefactor     .45963E-07    67.009        .56761E-05** at limit **
   3  norm          6.8578        5.8944        .56794E-06    .14913E-01
   4  Prefactor     7.8157        3.0315        .35051E-06   -.25904E-01
   5  Prefactor     82.532        2.6654        .56409E-07    .89320E-02
   6  norm          6.7647        4.9985       -.15906E-05   -.38408E-01
   7  Prefactor     72.626        22.921       -.10797E-05    .15331    
   8  Prefactor      .0000        1.3832        .22939E-06** at limit **
   9  Prefactor     .11102E-09    9.8846       -.72364E-06** at limit **
  10  Prefactor      .0000        1.6128       -.87686E-07** at limit **
  11  Prefactor     3.8149        3.2011        .89710E-06    .65834E-02
  12  Prefactor     1.9044        12.327        .50905E-05   -.61428E-03
  13  Prefactor     1.8557        13.229        .19403E-05   -.12664E-02
  14  Prefactor     68.924        32.077       -.96422E-06   -.97385E-01
  15  Prefactor     .55511E-10    2.0376        .41791E-06** at limit **
  16  Normalizat    1.1505        .22842       -.39358E-05    .15491E-04
  17  Prefactor     .79001        .17458        .17413E-05    .15201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 4.59632e-08
  norm       = 6.85782
  Prefactor  = 7.81571
  Prefactor  = 82.5317
  norm       = 6.7647
  Prefactor  = 72.6256
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 3.81494
  Prefactor  = 1.9044
  Prefactor  = 1.85574
  Prefactor  = 68.9236
  Prefactor  = 5.55112e-11
  Normalizat = 1.15054
  Prefactor  = 0.790011
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.477     FROM HESSE     STATUS=OK           261 CALLS     1960 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    5.4966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .45963E-07    8.6435        .10113E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8578        6.5508        .38314E-03   -1.5656    
   4  Prefactor     7.8157        12.420        .35813E-03   -1.5652    
   5  Prefactor     82.532        43.407        .11010E-03   -1.5526    
   6  norm          6.7647        9.3670        .38538E-03   -1.5656    
   7  Prefactor     72.626        51.721        .11725E-03   -1.5538    
   8  Prefactor      .0000        1.3809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    9.9144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.6118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8149        10.917        .51631E-03   -1.5669    
  12  Prefactor     1.9044        17.637        .75102E-03   -1.5680    
  13  Prefactor     1.8557        14.222        .75429E-03   -1.5681    
  14  Prefactor     68.924        35.486        .12031E-03   -1.5542    
  15  Prefactor     .55511E-10    2.0384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1505        .19119        .56235E-01   -.88145    
  17  Prefactor     .79001        .14437        .43587E-01   -1.0010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59234e-06
Minuit parameter uncertainties:
  1  6.2673e-05
  2  0.00126042
  3  6.55083
  4  12.4204
  5  43.4073
  6  9.36707
  7  51.7213
  8  8.14622e-06
  9  7.30809e-05
  10  6.43981e-06
  11  10.9173
  12  11.5911
  13  10.2746
  14  35.486
  15  2.26371e-05
  16  0.191301
  17  0.144442
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  7.263e+01  5.172e+01  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:  7.900e-01  1.444e-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.151e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.28
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.86e-05

TS (Fixed Index): 3.28
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915763/likelihoodResults_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.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) = 6380.09360805
delta logL = 0.382957968915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6380.08615702
delta logL = 0.390408999869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.431       1.0000          .0000       .10000E+07
     2 'Index     '    2.5493       1.0000          .0000       10.000    
     3 'Normalizat'    1.1122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80730       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=   6380.086     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      300 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.435        58.397        .64530E-05    .17283E-02
   2  Index         2.5485        .74076        .40207E-02    .16468E-03
   3  Normalizat    1.1129        .23204        .25218E-03    .14598E-03
   4  Prefactor     .80694        .17714        .22561E-03    .23517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4354
  Index      = 2.54854
  Normalizat = 1.11293
  Prefactor  = 0.806945
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.086     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.435        48.171        .12906E-05   -1.5584    
   2  Index         2.5485        .61127        .16083E-03   -.51243    
   3  Normalizat    1.1129        .23049        .10087E-04   -.89338    
   4  Prefactor     .80694        .17644        .90244E-05   -.99473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53631e-10
Minuit parameter uncertainties:
  1  48.1715
  2  0.613293
  3  0.230699
  4  0.176565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915763': 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) = 6380.08615
delta logL = 0.390416012376

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.844e+01  4.817e+01  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  2.549e+00  6.133e-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.069e-01  1.766e-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.113e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 204.732 11.896
Photon Index (Free Index): 2.55 +/- 0.61
Photon Flux (Free Index): 7.27e-08 +/- 5.48e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/915763/cmap_HighResolution_699926401_700185601_4FGL_J1338.9+1153_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='2.00e-05', photon_flux_error='2.93e-08', dlogl='3.90e-01', energy_flux='2.61e-05', photon_flux2='7.27e-08', job_status='DONE', time_completed='2023-03-11 00:54:24.990261', photon_index_error2='0.61', photon_index2='2.55', ts='3.28', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.29e-05', EG='1.15', time_epoch_completed='1678524864.99', return_code='0', job_id='915763', GAL2='0.81', EG2='1.11', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='5.48e-08', ts2='4.06', photon_index='2.04' WHERE bin_id='1777' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:54:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0179>
Subject: Job 915763: <4FGL_J1338.9+1153_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1777> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 11 00:45:18 2023
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:45:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:45:19 2023
Terminated at Sat Mar 11 00:54:25 2023
Results reported at Sat Mar 11 00:54:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1777 204.732 11.8956 699926401 700185601 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 :                                   525.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            547 sec.

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

