/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 9 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 = 7232
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.9+1153_daily_bin400
RA = 204.732, Dec = 11.8956
tmin = 343008001, tmax = 343267201
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='842079', job_status='RUN', time_executed='2021-09-08 06:56:02.182323', time_epoch_executed='1631109362.18' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842079/ft1_4FGL_J1338.9+1153_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842079/ft2_4FGL_J1338.9+1153_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842079/ft1_4FGL_J1338.9+1153_daily_bin400.fits outfile=/scratch/kocevski/842079/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin400.fits ra=204.732 dec=11.8956 rad=12.0 tmin=343008001.0 tmax=343267201.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.88
user 3.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842079/ft1_filtered_4FGL_J1338.9+1153_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/842079/ft2_4FGL_J1338.9+1153_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/842079/ltcube_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.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/842079/ft2_4FGL_J1338.9+1153_daily_bin400.fits
.....................!
real 15.71
user 15.28
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842079/ft1_filtered_4FGL_J1338.9+1153_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/842079/ft2_4FGL_J1338.9+1153_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/842079/ltcube_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.fits outfile=/scratch/kocevski/842079/expmap_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.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/842079/ltcube_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.fits
.....................!
real 194.14
user 188.56
sys 4.93

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/842079/ft1_filtered_4FGL_J1338.9+1153_daily_bin400.fits scfile=/scratch/kocevski/842079/ft2_4FGL_J1338.9+1153_daily_bin400.fits outfile=/scratch/kocevski/842079/cmap_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.732 yref=11.8956 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842079/ft1_filtered_4FGL_J1338.9+1153_daily_bin400.fits scfile=/scratch/kocevski/842079/ft2_4FGL_J1338.9+1153_daily_bin400.fits outfile=/scratch/kocevski/842079/cmap_HighResolution_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    157.09       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2768       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8341       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5124       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5326       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .85422       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2755       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=   7219.210     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1843 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     157.17        98.368       -.23282E-06    .85328E-04
   2  Prefactor     10.485        19.768        .44241E-06   -.35442E-04
   3  Prefactor     .10000E-03    10.566       -.90979E-06** at limit **
   4  norm          7.2636        6.7594        .15268E-07   -.19216E-04
   5  Prefactor     .10000E-03    18.892        .76900E-06** at limit **
   6  Prefactor     .10000E-03    13.968       -.26294E-07** at limit **
   7  norm          5.2782        7.3228        .91023E-07   -.10158E-04
   8  Prefactor     .10000E-03    23.003       -.13764E-06** at limit **
   9  Prefactor     7.8345        4.8787        .89200E-07   -.35374E-04
  10  Prefactor     .10000E-03    14.319        .46029E-07** at limit **
  11  Prefactor     4.5123        3.5100       -.16924E-07   -.39799E-04
  12  Prefactor     .10000E-03    2.5829        .12376E-07** at limit **
  13  Prefactor     10.296        13.397       -.42599E-07   -.17503E-04
  14  Prefactor     .10000E-03    3.7694        .98839E-08** at limit **
  15  Prefactor     .10000E-03    19.573        .42026E-07** at limit **
  16  Prefactor     35.920        28.867       -.20981E-06   -.91414E-04
  17  Prefactor     5.5314        7.4821        .32545E-05    .78034E-04
  18  Normalizat    .85367        .20455        .16198E-05   -.70941E-04
  19  Prefactor     1.2760        .15849       -.14108E-05    .10283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 157.171
  Prefactor  = 10.4848
  Prefactor  = 0.0001
  norm       = 7.26358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.2782
  Prefactor  = 0.0001
  Prefactor  = 7.83455
  Prefactor  = 0.0001
  Prefactor  = 4.51226
  Prefactor  = 0.0001
  Prefactor  = 10.2958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.92
  Prefactor  = 5.53135
  Normalizat = 0.853675
  Prefactor  = 1.27597
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.210     FROM HESSE     STATUS=OK           264 CALLS     2107 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     157.17        97.582        .16084E-03   -1.3194    
   2  Prefactor     10.485        19.764        .12361E-03   -1.5060    
   3  Prefactor     .10000E-03    10.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2636        6.7505        .14883E-03   -1.5169    
   5  Prefactor     .10000E-03    19.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2782        7.3115        .17497E-03   -1.5248    
   8  Prefactor     .10000E-03    23.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8345        4.8825        .13947E-03   -1.5148    
  10  Prefactor     .10000E-03    14.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5123        3.5109        .13631E-03   -1.5283    
  12  Prefactor     .10000E-03    2.5837        .13336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.296        13.432        .12486E-03   -1.5066    
  14  Prefactor     .10000E-03    3.7760        .16110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.920        28.847        .66852E-04   -1.4509    
  17  Prefactor     5.5314        7.5256        .85405E-03   -1.5238    
  18  Normalizat    .85367        .24310        .31579E-03   -.98108    
  19  Prefactor     1.2760        .18781        .21246E-03   -.84024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12843e-10
Minuit parameter uncertainties:
  1  97.6829
  2  19.7762
  3  1.06023e-05
  4  6.75121
  5  6.66715e-05
  6  2.37587e-05
  7  7.31271
  8  7.81821e-05
  9  4.88276
  10  1.28079e-05
  11  3.51101
  12  5.1514e-07
  13  13.4357
  14  1.87615e-07
  15  1.38126e-05
  16  28.8584
  17  7.52685
  18  0.243413
  19  0.187914
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  7.818e-05  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.276e+00  1.879e-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.537e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842079/likelihoodResults_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.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): 102
logL (Free Index) = 7219.21037298
delta logL = -0.00020686460266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7219.21016711
delta logL = -9.94266883936e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1946       1.0000          .0000       10.000    
     3 'Normalizat'    .85368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2760       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=   7219.210     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      280 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10310E-03    6.1232        .18142E-01** at limit **
   2  Index         2.1087        7.6712        .50000        .25723E-04
   3  Normalizat    .85368        .26557E-02    .31579E-03   -.85969E-03
   4  Prefactor     1.2760        .21494E-02    .21246E-03   -.12933E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103103
  Index      = 2.10867
  Normalizat = 0.853675
  Prefactor  = 1.27596
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.210     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10310E-03    39.900        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1087        8.1791        .50000       -.61660    
   3  Normalizat    .85368        .67790E-02    .63157E-04   -.98108    
   4  Prefactor     1.2760        .54866E-02    .42493E-04   -.84025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10062e-09
Minuit parameter uncertainties:
  1  0.0222671
  2  96.8818
  3  0.00677903
  4  0.0054866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842079': 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) = 7219.2101666
delta logL = -4.86579665449e-07

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.031e-04  2.227e-02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.109e+00  9.688e+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:  1.276e+00  5.487e-03  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.537e-01  6.779e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.732 11.896

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/842079/cmap_HighResolution_343008001_343267201_4FGL_J1338.9+1153_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-09-08 07:05:56.180374', job_id='842079', GAL2='1.28', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631109956.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='-4.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='400' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:05:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 842079: <4FGL_J1338.9+1153_daily_bin400> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin400> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 06:55:24 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:55:44 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:55:44 2021
Terminated at Wed Sep  8 07:05:56 2021
Results reported at Wed Sep  8 07:05:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin400 204.732 11.8956 343008001 343267201 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 :                                   584.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            632 sec.

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

