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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1565
RA = 204.732, Dec = 11.8956
tmin = 644976001, tmax = 645235201
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='850066', job_status='RUN', time_executed='2021-09-08 07:17:51.831632', time_epoch_executed='1631110671.83' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850066

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850066/ft1_4FGL_J1338.9+1153_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850066/ft2_4FGL_J1338.9+1153_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850066/ft1_4FGL_J1338.9+1153_daily_bin1565.fits outfile=/scratch/kocevski/850066/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1565.fits ra=204.732 dec=11.8956 rad=12.0 tmin=644976001.0 tmax=645235201.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.12
user 2.84
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850066/ft1_filtered_4FGL_J1338.9+1153_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/850066/ft2_4FGL_J1338.9+1153_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/850066/ltcube_644976001_645235201_4FGL_J1338.9+1153_daily_bin1565.fits outfile=/scratch/kocevski/850066/expmap_644976001_645235201_4FGL_J1338.9+1153_daily_bin1565.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/850066/ltcube_644976001_645235201_4FGL_J1338.9+1153_daily_bin1565.fits
.....................!
real 192.35
user 186.13
sys 4.62

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/850066/ft1_filtered_4FGL_J1338.9+1153_daily_bin1565.fits scfile=/scratch/kocevski/850066/ft2_4FGL_J1338.9+1153_daily_bin1565.fits outfile=/scratch/kocevski/850066/cmap_644976001_645235201_4FGL_J1338.9+1153_daily_bin1565.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.55
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/850066/ft1_filtered_4FGL_J1338.9+1153_daily_bin1565.fits scfile=/scratch/kocevski/850066/ft2_4FGL_J1338.9+1153_daily_bin1565.fits outfile=/scratch/kocevski/850066/cmap_HighResolution_644976001_645235201_4FGL_J1338.9+1153_daily_bin1565.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.167       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .97688       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7472       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9030       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.455       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2937       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95707       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93258       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=   6532.661     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1849 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.714       -.48762E-07** at limit **
   2  Prefactor     16.165        13.762       -.24246E-06   -.35512E-03
   3  Prefactor     .94935        10.967       -.15559E-05   -.12969E-03
   4  norm          .10000E-03    1.0760        .51586E-07** at limit **
   5  Prefactor     .10000E-03    4.1699        .45520E-08** at limit **
   6  Prefactor     .10000E-03    13.793       -.25460E-06** at limit **
   7  norm          .10000E-03    1.1631        .42449E-07** at limit **
   8  Prefactor     26.908        51.622        .17982E-05   -.43144E-04
   9  Prefactor     1.7486        5.3094        .52649E-06   -.10271E-03
  10  Prefactor     .10000E-03    13.307        .23443E-06** at limit **
  11  Prefactor     7.9033        6.2844       -.12675E-06   -.27865E-03
  12  Prefactor     .10000E-03    4.9919       -.15028E-06** at limit **
  13  Prefactor     10.608        10.457        .61749E-07   -.60715E-04
  14  Prefactor     .10000E-03    16.630        .25488E-06** at limit **
  15  Prefactor     75.447        37.034       -.23429E-06   -.46360E-04
  16  Prefactor     .10000E-03    49.354        .18126E-06** at limit **
  17  Prefactor     2.2912        6.1787        .50562E-05   -.12287E-03
  18  Normalizat    .95704        .18401        .44441E-06   -.30533E-03
  19  Prefactor     .93261        .14104       -.11787E-05   -.42130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.1646
  Prefactor  = 0.949345
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.9081
  Prefactor  = 1.74862
  Prefactor  = 0.0001
  Prefactor  = 7.90332
  Prefactor  = 0.0001
  Prefactor  = 10.6079
  Prefactor  = 0.0001
  Prefactor  = 75.4474
  Prefactor  = 0.0001
  Prefactor  = 2.29123
  Normalizat = 0.957044
  Prefactor  = 0.932608
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.661     FROM HESSE     STATUS=OK           262 CALLS     2111 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.165        13.542        .99611E-04   -1.4904    
   3  Prefactor     .94935        31.830        .45340E-02   -1.5513    
   4  norm          .10000E-03    1.0780        .81886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1853        .16117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1640        .85133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.908        51.644        .77199E-04   -1.4670    
   9  Prefactor     1.7486        5.2884        .29878E-03   -1.5443    
  10  Prefactor     .10000E-03    13.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9033        6.2828        .14263E-03   -1.5146    
  12  Prefactor     .10000E-03    5.0028        .17638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.608        10.475        .12301E-03   -1.5056    
  14  Prefactor     .10000E-03    16.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     75.447        37.042        .46224E-04   -1.3969    
  16  Prefactor     .10000E-03    49.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2912        6.2291        .13551E-02   -1.5405    
  18  Normalizat    .95704        .21718        .26004E-03   -.94484    
  19  Prefactor     .93261        .16719        .21148E-03   -.95011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29576e-08
Minuit parameter uncertainties:
  1  6.99565e-06
  2  13.5444
  3  10.9999
  4  3.80176e-06
  5  1.55434e-06
  6  1.31169e-05
  7  3.32732e-06
  8  51.7299
  9  5.28979
  10  5.4073e-06
  11  6.28335
  12  2.4284e-05
  13  10.4768
  14  4.75679e-05
  15  37.0535
  16  9.58916e-05
  17  6.23082
  18  0.217377
  19  0.167279
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  2.691e+01  5.173e+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:  9.326e-01  1.673e-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:  9.570e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/850066/likelihoodResults_644976001_645235201_4FGL_J1338.9+1153_daily_bin1565.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) = 6530.85798664
delta logL = 1.80329652551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6530.79664922
delta logL = 1.8646339466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0400       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5931       1.0000          .0000       10.000    
     3 'Normalizat'    .84271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98079       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=   6530.797     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      291 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0396        56.965        .85379E-04   -.15482E-02
   2  Index         3.5931        2.7009        .28902E-02   -.51634E-03
   3  Normalizat    .84268        .21063        .27469E-03   -.36868E-03
   4  Prefactor     .98080        .16469        .20639E-03   -.46788E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03957
  Index      = 3.5931
  Normalizat = 0.842685
  Prefactor  = 0.980795
 **********
 **   18 **HESSE 
 **********

 FCN=   6530.797     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0396        9.6293        .34152E-05   -1.5306    
   2  Index         3.5931        .90415        .11561E-03   -.28523    
   3  Normalizat    .84268        .21510        .10988E-04   -.98504    
   4  Prefactor     .98080        .16852        .41279E-04   -.93372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4053e-09
Minuit parameter uncertainties:
  1  9.63299
  2  0.909593
  3  0.215322
  4  0.168608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850066': 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) = 6530.7966492
delta logL = 1.86463396934

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  4.040e+00  9.633e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  3.593e+00  9.096e-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:  9.808e-01  1.686e-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:  8.427e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.29
Ra Dec: 204.732 11.896
Photon Index (Free Index): 3.59 +/- 0.91
Photon Flux (Free Index): 1.20e-07 +/- 7.26e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.13e-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/850066/cmap_HighResolution_644976001_645235201_4FGL_J1338.9+1153_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', comment='SUCCESS', energy_flux2='1.96e-05', dlogl='1.86e+00', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-08 07:27:15.156751', photon_index_error2='0.91', photon_index2='3.59', ts='0.33', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='8.43e-08', energy_flux_error2='1.13e-05', EG='0.96', time_epoch_completed='1631111235.16', return_code='0', job_id='850066', GAL2='0.98', EG2='0.84', return_code2='0', photon_flux_error2='7.26e-08', ts2='4.29', photon_index='2.04' WHERE bin_id='1565' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:27:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 850066: <4FGL_J1338.9+1153_daily_bin1565> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1565> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 07:15:55 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:16:18 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:16:18 2021
Terminated at Wed Sep  8 07:27:16 2021
Results reported at Wed Sep  8 07:27:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1565 204.732 11.8956 644976001 645235201 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 :                                   551.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            681 sec.

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

