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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1507
RA = 204.732, Dec = 11.8956
tmin = 629942401, tmax = 630201601
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='850003', job_status='RUN', time_executed='2021-09-08 07:16:24.232472', time_epoch_executed='1631110584.23' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850003/ft1_4FGL_J1338.9+1153_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850003/ft2_4FGL_J1338.9+1153_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850003/ft1_4FGL_J1338.9+1153_daily_bin1507.fits outfile=/scratch/kocevski/850003/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1507.fits ra=204.732 dec=11.8956 rad=12.0 tmin=629942401.0 tmax=630201601.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 4.68
user 4.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/850003/ft1_filtered_4FGL_J1338.9+1153_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/850003/ft2_4FGL_J1338.9+1153_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/850003/ltcube_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.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/850003/ft2_4FGL_J1338.9+1153_daily_bin1507.fits
.....................!
real 13.06
user 12.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850003/ft1_filtered_4FGL_J1338.9+1153_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/850003/ft2_4FGL_J1338.9+1153_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/850003/ltcube_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.fits outfile=/scratch/kocevski/850003/expmap_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.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/850003/ltcube_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.fits
.....................!
real 191.81
user 186.13
sys 5.19

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/850003/ft1_filtered_4FGL_J1338.9+1153_daily_bin1507.fits scfile=/scratch/kocevski/850003/ft2_4FGL_J1338.9+1153_daily_bin1507.fits outfile=/scratch/kocevski/850003/cmap_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/850003/ft1_filtered_4FGL_J1338.9+1153_daily_bin1507.fits scfile=/scratch/kocevski/850003/ft2_4FGL_J1338.9+1153_daily_bin1507.fits outfile=/scratch/kocevski/850003/cmap_HighResolution_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.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/850003/ft1_filtered_4FGL_J1338.9+1153_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/850003/ft2_4FGL_J1338.9+1153_daily_bin1507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/850003/Model_4FGL_J1338.9+1153_daily_bin1507.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/850003/ft1_filtered_4FGL_J1338.9+1153_daily_bin1507.fits.....................!
real 46.20
user 44.86
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6140       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3241       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.438       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98031       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1749       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=   5727.326     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1857 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.600       -.17585E-07** at limit **
   2  Prefactor     .10000E-03    6.0693       -.16377E-06** at limit **
   3  Prefactor     2.6106        7.9121        .27524E-05   -.83099E-03
   4  norm          1.3243        3.2630        .36571E-07   -.14710E-03
   5  Prefactor     .10000E-03    3.8476        .72627E-08** at limit **
   6  Prefactor     .10000E-03    13.295        .76564E-06** at limit **
   7  norm          .10000E-03    2.5909        .16274E-07** at limit **
   8  Prefactor     40.923        66.986       -.16459E-04   -.14021E-03
   9  Prefactor     .10000E-03    1.7408        .29100E-07** at limit **
  10  Prefactor     .10000E-03    11.263       -.12571E-06** at limit **
  11  Prefactor     4.9137        5.2468        .49938E-06   -.40076E-04
  12  Prefactor     .10000E-03    5.1613        .14404E-07** at limit **
  13  Prefactor     .10000E-03    3.1796        .31891E-07** at limit **
  14  Prefactor     .10000E-03    13.668       -.62676E-06** at limit **
  15  Prefactor     70.438        31.788        .52981E-07    .11165E-04
  16  Prefactor     .10000E-03    42.607        .22384E-06** at limit **
  17  Prefactor     .10000E-03    2.4732        .98694E-09** at limit **
  18  Normalizat    .98051        .20468        .95853E-06   -.35827E-04
  19  Prefactor     1.1747        .16827       -.35185E-07    .33958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61059
  norm       = 1.32434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.9229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.91371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.980507
  Prefactor  = 1.17468
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.326     FROM HESSE     STATUS=OK           258 CALLS     2115 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6106        18.657        .12614E-02   -1.5385    
   4  norm          1.3243        3.2080        .20939E-03   -1.5478    
   5  Prefactor     .10000E-03    3.8546        .14497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5950        .11895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.923        68.618        .62647E-04   -1.4428    
   9  Prefactor     .10000E-03    1.7700        .97484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9137        5.2430        .17139E-03   -1.5265    
  12  Prefactor     .10000E-03    5.1735        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1865        .13179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     70.438        31.809        .47830E-04   -1.4027    
  16  Prefactor     .10000E-03    43.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4808        .11623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .98051        .24503        .27316E-03   -.93686    
  19  Prefactor     1.1747        .19781        .20953E-03   -.87114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32542e-09
Minuit parameter uncertainties:
  1  6.74539e-06
  2  9.92933e-06
  3  13.9637
  4  3.20838
  5  2.35103e-06
  6  3.38204e-05
  7  1.49837e-06
  8  68.7506
  9  2.38816e-06
  10  8.16139e-06
  11  5.24353
  12  5.76088e-06
  13  1.33868e-06
  14  3.11705e-05
  15  31.8165
  16  3.09198e-05
  17  8.04152e-07
  18  0.245308
  19  0.197939
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  4.092e+01  6.875e+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:  1.175e+00  1.979e-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.805e-01  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/850003/likelihoodResults_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.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) = 5724.76472406
delta logL = 2.56099923768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5724.62756375
delta logL = 2.69815954835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2112       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1127       1.0000          .0000       10.000    
     3 'Normalizat'    .80794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2606       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=   5724.628     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      276 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2076        7.8369        .85203E-02   -.23332E-03
   2  Index         4.1137        1.6251        .55447E-01    .10846E-03
   3  Normalizat    .80801        .65324E-01    .67168E-01    .21903E-04
   4  Prefactor     1.2607        .53688E-01    .33335E-01    .44845E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20758
  Index      = 4.11375
  Normalizat = 0.808007
  Prefactor  = 1.26071
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.628     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2076        12.969        .38131E-04   -1.5488    
   2  Index         4.1137        2.2489        .22892E-02   -.17819    
   3  Normalizat    .80801        .22007        .29717E-03   -.99772    
   4  Prefactor     1.2607        .18050        .20281E-03   -.84483    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15104e-10
Minuit parameter uncertainties:
  1  7.91678
  2  2.33558
  3  0.220318
  4  0.180589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850003': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5724.62756144
delta logL = 2.69816185182

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.208e+00  7.917e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  4.114e+00  2.336e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.261e+00  1.806e-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.080e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 204.732 11.896
Photon Index (Free Index): 4.11 +/- 2.34
Photon Flux (Free Index): 1.53e-07 +/- 7.41e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.32e-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/850003/cmap_HighResolution_629942401_630201601_4FGL_J1338.9+1153_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', comment='SUCCESS', energy_flux2='2.25e-05', dlogl='2.70e+00', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-08 07:25:37.908687', photon_index_error2='2.34', photon_index2='4.11', ts='0.44', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.32e-05', EG='0.98', time_epoch_completed='1631111137.91', return_code='0', job_id='850003', GAL2='1.26', EG2='0.81', return_code2='102', photon_flux_error2='7.41e-08', ts2='6.31', photon_index='2.04' WHERE bin_id='1507' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 850003: <4FGL_J1338.9+1153_daily_bin1507> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1507 204.732 11.8956 629942401 630201601 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 :                                   537.00 sec.
    Max Memory :                                 1133 MB
    Average Memory :                             342.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            590 sec.

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

