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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin119
RA = 204.732, Dec = 11.8956
tmin = 270172801, tmax = 270432001
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='838991', job_status='RUN', time_executed='2021-09-08 06:46:18.259343', time_epoch_executed='1631108778.26' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838991/ft1_4FGL_J1338.9+1153_daily_bin119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838991/ft2_4FGL_J1338.9+1153_daily_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838991/ft1_4FGL_J1338.9+1153_daily_bin119.fits outfile=/scratch/kocevski/838991/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin119.fits ra=204.732 dec=11.8956 rad=12.0 tmin=270172801.0 tmax=270432001.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.67
user 1.48
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838991/ft2_4FGL_J1338.9+1153_daily_bin119.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/838991/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin119.fits evtable="EVENTS" outfile="/scratch/kocevski/838991/ft1_filtered_4FGL_J1338.9+1153_daily_bin119.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.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838991/ft1_filtered_4FGL_J1338.9+1153_daily_bin119.fits" evtable="EVENTS" scfile=/scratch/kocevski/838991/ft2_4FGL_J1338.9+1153_daily_bin119.fits sctable="SC_DATA" outfile=/scratch/kocevski/838991/ltcube_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.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/838991/ft2_4FGL_J1338.9+1153_daily_bin119.fits
.....................!
real 17.95
user 17.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838991/ft1_filtered_4FGL_J1338.9+1153_daily_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/838991/ft2_4FGL_J1338.9+1153_daily_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/838991/ltcube_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.fits outfile=/scratch/kocevski/838991/expmap_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.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/838991/ltcube_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.fits
.....................!
real 192.98
user 187.34
sys 5.06

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/838991/ft1_filtered_4FGL_J1338.9+1153_daily_bin119.fits scfile=/scratch/kocevski/838991/ft2_4FGL_J1338.9+1153_daily_bin119.fits outfile=/scratch/kocevski/838991/cmap_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838991/ft1_filtered_4FGL_J1338.9+1153_daily_bin119.fits scfile=/scratch/kocevski/838991/ft2_4FGL_J1338.9+1153_daily_bin119.fits outfile=/scratch/kocevski/838991/cmap_HighResolution_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=204.732 yref=11.8956 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9633       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7438       1.0000         .10000E-03   10000.    
     4 'norm      '    23.264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.774       1.0000         .10000E-03   10000.    
     7 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2364       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30180E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.601       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13226E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0444       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=   9007.915     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1911 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.760       -.11741E-06** at limit **
   2  Prefactor     7.9610        9.3936       -.34628E-06   -.86398E-04
   3  Prefactor     7.7415        10.997       -.23213E-06   -.56744E-04
   4  norm          23.263        7.5757        .49201E-06    .40518E-03
   5  Prefactor     9.5116        8.3060        .17496E-06    .34884E-04
   6  Prefactor     11.774        16.076       -.29480E-06   -.21856E-04
   7  norm          .10000E-03    2.2947       -.75041E-08** at limit **
   8  Prefactor     .10000E-03    29.822       -.15880E-06** at limit **
   9  Prefactor     .10000E-03    1.5044       -.21017E-07** at limit **
  10  Prefactor     1.9318        36.476       -.16140E-06   -.34647E-04
  11  Prefactor     5.2388        2.7673        .72775E-06   -.27043E-02
  12  Prefactor     .10003E-03    4.7561        .10307E-06** at limit **
  13  Prefactor     4.9908        9.1943       -.85359E-07   -.77328E-04
  14  Prefactor     .10000E-03    5.2465        .68677E-08** at limit **
  15  Prefactor     31.568        23.439       -.42490E-05   -.51658E-03
  16  Prefactor     23.569        24.092       -.15679E-05   -.12827E-03
  17  Prefactor     .10000E-03    3.1463        .59604E-06** at limit **
  18  Normalizat    1.0097        .16885        .31446E-06   -.11476E-03
  19  Prefactor     1.0443        .12982        .82927E-07   -.11537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.961
  Prefactor  = 7.74154
  norm       = 23.2633
  Prefactor  = 9.51156
  Prefactor  = 11.7739
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93177
  Prefactor  = 5.23883
  Prefactor  = 0.000100027
  Prefactor  = 4.99079
  Prefactor  = 0.0001
  Prefactor  = 31.5677
  Prefactor  = 23.569
  Prefactor  = 0.000100001
  Normalizat = 1.00973
  Prefactor  = 1.04434
 **********
 **   18 **HESSE 
 **********

 FCN=   9007.915     FROM HESSE     STATUS=OK           280 CALLS     2191 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9610        9.3887        .14209E-03   -1.5144    
   3  Prefactor     7.7415        11.003        .14410E-03   -1.5151    
   4  norm          23.263        7.6018        .83047E-04   -1.4743    
   5  Prefactor     9.5116        8.3065        .12994E-03   -1.5091    
   6  Prefactor     11.774        16.078        .11675E-03   -1.5022    
   7  norm          .10000E-03    2.3019        .14037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5355        .11360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9318        36.917        .29856E-03   -1.5430    
  11  Prefactor     5.2388        4.0342        .80385E-03   -1.5250    
  12  Prefactor     .10003E-03    6.0929        .72562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9908        9.2301        .18003E-03   -1.5261    
  14  Prefactor     .10000E-03    5.2713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.568        24.277        .71277E-04   -1.4584    
  16  Prefactor     23.569        24.170        .82497E-04   -1.4737    
  17  Prefactor     .10000E-03    16.774        .32341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0097        .19949        .27154E-03   -.92705    
  19  Prefactor     1.0443        .15356        .21495E-03   -.91266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88609e-09
Minuit parameter uncertainties:
  1  3.51697e-06
  2  9.39048
  3  11.0063
  4  7.6021
  5  8.30747
  6  16.0836
  7  5.51098e-06
  8  3.06583e-05
  9  2.32369e-06
  10  16.9013
  11  4.03437
  12  0.000806927
  13  9.23276
  14  9.4587e-07
  15  24.2845
  16  24.1796
  17  0.000229286
  18  0.19964
  19  0.153621
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.066e-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.044e+00  1.536e-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.010e+00  1.996e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838991/likelihoodResults_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.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) = 9007.91502166
delta logL = -0.000159437133334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9007.91486237
delta logL = -1.43956640386e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9629       1.0000          .0000       10.000    
     3 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0443       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=   9007.915     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    706.65        .90712E-02** at limit **
   2  Index         1.9869        7.8095        .50000       -.73951E-05
   3  Normalizat    1.0097        .20521E-01    .46289E-01   -.22997E-04
   4  Prefactor     1.0443        .16573E-01    .40253E-01    .50927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.98688
  Normalizat = 1.00973
  Prefactor  = 1.04434
 **********
 **   18 **HESSE 
 **********

 FCN=   9007.915     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1650.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9869        5.4068        .50000       -.64679    
   3  Normalizat    1.0097        .33395E-01    .27154E-03   -.92705    
   4  Prefactor     1.0443        .26980E-01    .21495E-03   -.91266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19132e-08
Minuit parameter uncertainties:
  1  0.00287251
  2  31.5475
  3  0.033396
  4  0.02698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838991': 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) = 9007.91486232
delta logL = -9.35342541197e-08

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.873e-03  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.987e+00  3.155e+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.044e+00  2.698e-02  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.010e+00  3.340e-02  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/838991/cmap_HighResolution_270172801_270432001_4FGL_J1338.9+1153_daily_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-09-08 06:57:17.690831', job_id='838991', GAL2='1.04', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631109437.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-9.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='119' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:57:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 838991: <4FGL_J1338.9+1153_daily_bin119> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin119> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 06:45:26 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:46:04 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:46:04 2021
Terminated at Wed Sep  8 06:57:19 2021
Results reported at Wed Sep  8 06:57:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin119 204.732 11.8956 270172801 270432001 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 :                                   654.28 sec.
    Max Memory :                                 1219 MB
    Average Memory :                             350.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            713 sec.

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

