/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 113 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.9+1153_daily_bin78
RA = 204.732, Dec = 11.8956
tmin = 259545601, tmax = 259804801
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='838933', job_status='RUN', time_executed='2021-09-08 06:47:59.081841', time_epoch_executed='1631108879.08' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838933

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838933/ft1_4FGL_J1338.9+1153_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838933/ft2_4FGL_J1338.9+1153_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838933/ft1_4FGL_J1338.9+1153_daily_bin78.fits outfile=/scratch/kocevski/838933/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin78.fits ra=204.732 dec=11.8956 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.71
user 1.49
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838933/ft1_filtered_4FGL_J1338.9+1153_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/838933/ft2_4FGL_J1338.9+1153_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/838933/ltcube_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.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/838933/ft2_4FGL_J1338.9+1153_daily_bin78.fits
.....................!
real 16.72
user 16.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838933/ft1_filtered_4FGL_J1338.9+1153_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/838933/ft2_4FGL_J1338.9+1153_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/838933/ltcube_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.fits outfile=/scratch/kocevski/838933/expmap_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.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/838933/ltcube_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.fits
.....................!
real 192.49
user 186.55
sys 5.37

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/838933/ft1_filtered_4FGL_J1338.9+1153_daily_bin78.fits scfile=/scratch/kocevski/838933/ft2_4FGL_J1338.9+1153_daily_bin78.fits outfile=/scratch/kocevski/838933/cmap_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838933/ft1_filtered_4FGL_J1338.9+1153_daily_bin78.fits scfile=/scratch/kocevski/838933/ft2_4FGL_J1338.9+1153_daily_bin78.fits outfile=/scratch/kocevski/838933/cmap_HighResolution_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.2161       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1286       1.0000         .10000E-03   10000.    
     7 'norm      '    36.196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.358       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3110       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98548       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=   8634.732     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1856 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.347        43.771       -.19541E-05    .11942E-05
   2  Prefactor     1.6169        2.9095        .99200E-07   -.32733E-03
   3  Prefactor     .10000E-03    15.445       -.80837E-06** at limit **
   4  norm          6.2160        7.2523       -.54274E-07   -.20362E-03
   5  Prefactor     .10000E-03    5.4406        .73514E-07** at limit **
   6  Prefactor     7.1291        17.654        .68923E-07   -.34733E-04
   7  norm          36.196        12.708        .31505E-08    .62548E-06
   8  Prefactor     32.073        35.498        .28800E-05    .69780E-06
   9  Prefactor     .10000E-03    1.2592       -.10785E-07** at limit **
  10  Prefactor     25.361        22.296        .16691E-05   -.64082E-06
  11  Prefactor     .10000E-03    1.7534       -.82185E-08** at limit **
  12  Prefactor     .10000E-03    11.083        .31104E-06** at limit **
  13  Prefactor     .10000E-03    3.7933        .84969E-08** at limit **
  14  Prefactor     .10000E-03    6.0066       -.15438E-06** at limit **
  15  Prefactor     .10000E-03    36.536       -.11407E-04** at limit **
  16  Prefactor     .10000E-03    34.250        .11521E-04** at limit **
  17  Prefactor     .10000E-03    3.2986        .16286E-07** at limit **
  18  Normalizat    1.3111        .17229       -.42135E-07    .20680E-04
  19  Prefactor     .98540        .13590       -.18903E-06    .24231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.347
  Prefactor  = 1.61693
  Prefactor  = 0.0001
  norm       = 6.21599
  Prefactor  = 0.0001
  Prefactor  = 7.12909
  norm       = 36.1962
  Prefactor  = 32.073
  Prefactor  = 0.0001
  Prefactor  = 25.3608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31107
  Prefactor  = 0.985403
 **********
 **   18 **HESSE 
 **********

 FCN=   8634.732     FROM HESSE     STATUS=OK           264 CALLS     2120 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.347        47.050        .57085E-04   -1.4302    
   2  Prefactor     1.6169        23.058        .16639E-02   -1.5454    
   3  Prefactor     .10000E-03    15.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.2160        7.3558        .80506E-03   -1.5209    
   5  Prefactor     .10000E-03    5.5258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1291        17.692        .75121E-03   -1.5174    
   7  norm          36.196        12.720        .66613E-04   -1.4504    
   8  Prefactor     32.073        35.521        .70755E-04   -1.4575    
   9  Prefactor     .10000E-03    1.2705        .10179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.361        22.307        .79549E-04   -1.4700    
  11  Prefactor     .10000E-03    1.7842        .12013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8071        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3214        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3111        .21221        .26028E-03   -.83237    
  19  Prefactor     .98540        .16535        .23318E-03   -.93218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80751e-10
Minuit parameter uncertainties:
  1  47.0852
  2  12.2172
  3  2.49116e-05
  4  7.35691
  5  1.59155e-07
  6  17.7048
  7  12.7212
  8  35.5447
  9  6.49969e-07
  10  22.314
  11  9.31738e-07
  12  9.09815e-07
  13  8.52218e-07
  14  5.76189e-06
  15  0.000102083
  16  5.97274e-05
  17  2.34586e-06
  18  0.21235
  19  0.165431
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.207e+01  3.554e+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.854e-01  1.654e-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.311e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 1.81e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/838933/likelihoodResults_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.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) = 8634.73078816
delta logL = 0.00142339018748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8634.72996052
delta logL = 0.00225102983859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.841       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9823       1.0000          .0000       10.000    
     3 'Normalizat'    1.3124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98484       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=   8634.730     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.841        47.818        .68885E-04   -.24426E-04
   2  Index         1.9821        .82389        .10713E-01    .34660E-03
   3  Normalizat    1.3126        .20815        .26015E-03   -.24472E-04
   4  Prefactor     .98467        .16482        .23325E-03    .47083E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8413
  Index      = 1.9821
  Normalizat = 1.31258
  Prefactor  = 0.98467
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.841        45.397        .27554E-05   -1.4544    
   2  Index         1.9821        .78296        .21425E-02   -.64798    
   3  Normalizat    1.3126        .20813        .10406E-04   -.83192    
   4  Prefactor     .98467        .16491        .93300E-05   -.93242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1668e-11
Minuit parameter uncertainties:
  1  45.4431
  2  0.78808
  3  0.208267
  4  0.16499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838933': 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) = 8634.72995995
delta logL = 0.00225160542141

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.384e+01  4.544e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.982e+00  7.881e-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.847e-01  1.650e-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.313e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.98 +/- 0.79
Photon Flux (Free Index): 1.71e-08 +/- 2.46e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.90e-05

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/838933/cmap_HighResolution_259545601_259804801_4FGL_J1338.9+1153_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', comment='SUCCESS', photon_flux='1.81e-08', energy_flux2='1.23e-05', photon_flux_error='2.01e-08', dlogl='2.25e-03', energy_flux='1.15e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-08 06:58:35.664965', photon_index_error2='0.79', photon_index2='1.98', ts='1.20', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.76e-08', energy_flux_error2='1.90e-05', EG='1.31', time_epoch_completed='1631109515.67', return_code='0', job_id='838933', GAL2='0.98', EG2='1.31', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='2.46e-08', ts2='1.21', photon_index='2.04' WHERE bin_id='78' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:58:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 838933: <4FGL_J1338.9+1153_daily_bin78> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin78> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 06:45:23 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:45:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 06:45:56 2021
Terminated at Wed Sep  8 06:58:36 2021
Results reported at Wed Sep  8 06:58:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin78 204.732 11.8956 259545601 259804801 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 :                                   636.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            793 sec.

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

