/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 24 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 = 7361
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1067
RA = 204.732, Dec = 11.8956
tmin = 515894401, tmax = 516153601
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='846183', job_status='RUN', time_executed='2021-09-08 07:07:05.336838', time_epoch_executed='1631110025.34' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846183/ft1_4FGL_J1338.9+1153_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846183/ft2_4FGL_J1338.9+1153_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846183/ft1_4FGL_J1338.9+1153_daily_bin1067.fits outfile=/scratch/kocevski/846183/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1067.fits ra=204.732 dec=11.8956 rad=12.0 tmin=515894401.0 tmax=516153601.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.82
user 3.58
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846183/ft2_4FGL_J1338.9+1153_daily_bin1067.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/846183/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1067.fits evtable="EVENTS" outfile="/scratch/kocevski/846183/ft1_filtered_4FGL_J1338.9+1153_daily_bin1067.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.54
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846183/ft1_filtered_4FGL_J1338.9+1153_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/846183/ft2_4FGL_J1338.9+1153_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/846183/ltcube_515894401_516153601_4FGL_J1338.9+1153_daily_bin1067.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/846183/ft2_4FGL_J1338.9+1153_daily_bin1067.fits
.....................!
real 17.12
user 16.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846183/ft1_filtered_4FGL_J1338.9+1153_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/846183/ft2_4FGL_J1338.9+1153_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/846183/ltcube_515894401_516153601_4FGL_J1338.9+1153_daily_bin1067.fits outfile=/scratch/kocevski/846183/expmap_515894401_516153601_4FGL_J1338.9+1153_daily_bin1067.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/846183/ltcube_515894401_516153601_4FGL_J1338.9+1153_daily_bin1067.fits
.....................!
real 192.76
user 187.76
sys 4.35

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/846183/ft1_filtered_4FGL_J1338.9+1153_daily_bin1067.fits scfile=/scratch/kocevski/846183/ft2_4FGL_J1338.9+1153_daily_bin1067.fits outfile=/scratch/kocevski/846183/cmap_515894401_516153601_4FGL_J1338.9+1153_daily_bin1067.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846183/ft1_filtered_4FGL_J1338.9+1153_daily_bin1067.fits scfile=/scratch/kocevski/846183/ft2_4FGL_J1338.9+1153_daily_bin1067.fits outfile=/scratch/kocevski/846183/cmap_HighResolution_515894401_516153601_4FGL_J1338.9+1153_daily_bin1067.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6568       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.097       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7816       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6723       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1300       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3598       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6176       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .52517       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=   5479.339     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1942 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.744        .90712E-02** at limit **
   2  Prefactor     .10001E-03    10.461        .90712E-02** at limit **
   3  Prefactor     .10000E-03    8.2479        .90712E-01** at limit **
   4  norm          8.6607        6.8581        .34060E-02    .32287E-02
   5  Prefactor     6.5677        10.084        .39141E-02    .18296E-02
   6  Prefactor     .10000E-03    40.578        .90712E-02** at limit **
   7  norm          .10001E-03    5.7198        .58135E-01** at limit **
   8  Prefactor     45.099        40.597        .14926E-02   -.67769E-03
   9  Prefactor     .10412        2.3652        .70748E-01    .25326E-03
  10  Prefactor     .10000E-03    9.7836        .90712E-02** at limit **
  11  Prefactor     6.7815        5.2521        .38519E-02   -.14531E-02
  12  Prefactor     9.6713        11.287        .32213E-02    .94825E-03
  13  Prefactor     6.1244        11.609        .40538E-02    .17419E-03
  14  Prefactor     .10000E-03    4.6149        .90712E-02** at limit **
  15  Prefactor     .10000E-03    12.135        .90712E-02** at limit **
  16  Prefactor     13.933        25.603        .26824E-02    .53208E-03
  17  Prefactor     4.3583        9.2372        .48226E-02    .23230E-03
  18  Normalizat    1.6181        .20622        .48372E-01    .24123E-04
  19  Prefactor     .52485        .15399        .62164E-01    .26107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  norm       = 8.66068
  Prefactor  = 6.56774
  Prefactor  = 0.000100002
  norm       = 0.000100009
  Prefactor  = 45.0987
  Prefactor  = 0.104121
  Prefactor  = 0.000100005
  Prefactor  = 6.78152
  Prefactor  = 9.67128
  Prefactor  = 6.12438
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 13.9332
  Prefactor  = 4.35831
  Normalizat = 1.61813
  Prefactor  = 0.524854
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.339     FROM HESSE     STATUS=OK           270 CALLS     2212 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    10.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    68.258        .40541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6607        6.5044        .13624E-03   -1.5119    
   5  Prefactor     6.5677        10.090        .78283E-03   -1.5195    
   6  Prefactor     .10000E-03    41.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    20.799        .32421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.099        40.598        .59702E-04   -1.4364    
   9  Prefactor     .10412        42.198        .21385E-02   -1.5643    
  10  Prefactor     .10000E-03    9.7899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7815        5.2447        .14324E-03   -1.5187    
  12  Prefactor     9.6713        11.281        .64426E-03   -1.5086    
  13  Prefactor     6.1244        11.655        .16215E-03   -1.5213    
  14  Prefactor     .10000E-03    4.6222        .15530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.933        25.607        .10729E-03   -1.4961    
  17  Prefactor     4.3583        9.2269        .19290E-03   -1.5290    
  18  Normalizat    1.6181        .24305        .21383E-03   -.74511    
  19  Prefactor     .52485        .18108        .27506E-03   -1.1085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12496e-08
Minuit parameter uncertainties:
  1  0.000623253
  2  0.000734262
  3  0.000632136
  4  6.50493
  5  10.0925
  6  0.000638885
  7  0.000874151
  8  40.6227
  9  4.1932
  10  0.000435497
  11  5.24506
  12  11.2836
  13  11.6593
  14  2.33037e-06
  15  0.00032076
  16  25.6276
  17  9.22993
  18  0.243232
  19  0.18128
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  4.510e+01  4.062e+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:  5.249e-01  1.813e-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.618e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.34
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.46e-05

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) = 5478.84405323
delta logL = 0.494945174682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5478.82472058
delta logL = 0.514277825411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.360       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3773       1.0000          .0000       10.000    
     3 'Normalizat'    1.6335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52013       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=   5478.825     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.374        56.134        .53912E-04    .92785E-05
   2  Index         1.3774        .60784        .10023E-01   -.69680E-05
   3  Normalizat    1.6334        .23058        .21305E-03   -.67450E-04
   4  Prefactor     .52024        .17987        .27627E-03    .61725E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.3744
  Index      = 1.37739
  Normalizat = 1.63339
  Prefactor  = 0.520244
 **********
 **   18 **HESSE 
 **********

 FCN=   5478.825     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.374        56.688        .10782E-04   -1.4218    
   2  Index         1.3774        .61385        .40091E-03   -.81034    
   3  Normalizat    1.6334        .23075        .42609E-04   -.74096    
   4  Prefactor     .52024        .18001        .11051E-04   -1.1106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2198e-11
Minuit parameter uncertainties:
  1  56.7429
  2  0.617148
  3  0.230903
  4  0.180208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846183': 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) = 5478.82472028
delta logL = 0.514278130487

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  5.537e+01  5.674e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.377e+00  6.171e-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:  5.202e-01  1.802e-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.633e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.38
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.38 +/- 0.62
Photon Flux (Free Index): 1.02e-08 +/- 1.39e-08
Energy Flux (Free Index): 4.83e-05 +/- 6.94e-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/846183/cmap_HighResolution_515894401_516153601_4FGL_J1338.9+1153_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='4.83e-05', photon_flux_error='2.30e-08', dlogl='5.14e-01', energy_flux='1.62e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-08 07:15:59.172684', photon_index_error2='0.62', photon_index2='1.38', ts='6.34', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='6.94e-05', EG='1.62', time_epoch_completed='1631110559.17', return_code='0', job_id='846183', GAL2='0.52', EG2='1.63', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='1.39e-08', ts2='7.38', photon_index='2.04' WHERE bin_id='1067' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 846183: <4FGL_J1338.9+1153_daily_bin1067> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1067> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 07:05:53 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:06:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 07:06:21 2021
Terminated at Wed Sep  8 07:16:00 2021
Results reported at Wed Sep  8 07:16:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1067 204.732 11.8956 515894401 516153601 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 :                                   502.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            607 sec.

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

