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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin940
RA = 204.732, Dec = 11.8956
tmin = 482976001, tmax = 483235201
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='845963', job_status='RUN', time_executed='2021-09-08 07:06:09.845528', time_epoch_executed='1631109969.85' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845963/ft1_4FGL_J1338.9+1153_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845963/ft2_4FGL_J1338.9+1153_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845963/ft1_4FGL_J1338.9+1153_daily_bin940.fits outfile=/scratch/kocevski/845963/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin940.fits ra=204.732 dec=11.8956 rad=12.0 tmin=482976001.0 tmax=483235201.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.20
user 3.97
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845963/ft1_filtered_4FGL_J1338.9+1153_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/845963/ft2_4FGL_J1338.9+1153_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/845963/ltcube_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.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/845963/ft2_4FGL_J1338.9+1153_daily_bin940.fits
.....................!
real 14.57
user 14.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845963/ft1_filtered_4FGL_J1338.9+1153_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/845963/ft2_4FGL_J1338.9+1153_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/845963/ltcube_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.fits outfile=/scratch/kocevski/845963/expmap_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.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/845963/ltcube_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.fits
.....................!
real 191.81
user 186.72
sys 4.56

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/845963/ft1_filtered_4FGL_J1338.9+1153_daily_bin940.fits scfile=/scratch/kocevski/845963/ft2_4FGL_J1338.9+1153_daily_bin940.fits outfile=/scratch/kocevski/845963/cmap_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845963/ft1_filtered_4FGL_J1338.9+1153_daily_bin940.fits scfile=/scratch/kocevski/845963/ft2_4FGL_J1338.9+1153_daily_bin940.fits outfile=/scratch/kocevski/845963/cmap_HighResolution_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.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/845963/ft1_filtered_4FGL_J1338.9+1153_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/845963/ft2_4FGL_J1338.9+1153_daily_bin940.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845963/Model_4FGL_J1338.9+1153_daily_bin940.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/845963/ft1_filtered_4FGL_J1338.9+1153_daily_bin940.fits.....................!
real 43.24
user 41.01
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.594       1.0000         .10000E-03   10000.    
     4 'norm      '    10.844       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    25.222       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2809       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.014       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.381       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .72452       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1504       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=   5147.549     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1819 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.031       -.68819E-06** at limit **
   2  Prefactor     .10000E-03    11.083        .40545E-05** at limit **
   3  Prefactor     11.594        14.264       -.15601E-05   -.42038E-04
   4  norm          10.844        7.3929       -.42998E-06   -.26714E-04
   5  Prefactor     4.6177        13.729       -.31326E-05   -.45750E-04
   6  Prefactor     .10000E-03    11.951       -.28463E-05** at limit **
   7  norm          25.222        11.010       -.57505E-06    .22547E-04
   8  Prefactor     24.774        47.420       -.11972E-03    .25211E-04
   9  Prefactor     2.7521        4.2742       -.20389E-06   -.33173E-03
  10  Prefactor     .10000E-03    12.922       -.49014E-05** at limit **
  11  Prefactor     .10000E-03    1.1148        .15938E-06** at limit **
  12  Prefactor     .10000E-03    4.2407        .11574E-06** at limit **
  13  Prefactor     8.2812        10.897       -.19055E-05   -.33133E-04
  14  Prefactor     16.015        17.198        .83159E-07    .18467E-04
  15  Prefactor     49.377        30.595       -.44854E-05    .22464E-04
  16  Prefactor     .10000E-03    17.466        .48276E-05** at limit **
  17  Prefactor     .10000E-03    3.3540        .36599E-07** at limit **
  18  Normalizat    .72445        .20813        .77621E-05   -.14303E-04
  19  Prefactor     1.1505        .16577        .30556E-05    .41727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5939
  norm       = 10.8443
  Prefactor  = 4.61774
  Prefactor  = 0.0001
  norm       = 25.2224
  Prefactor  = 24.7743
  Prefactor  = 2.7521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.28116
  Prefactor  = 16.0152
  Prefactor  = 49.3769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.724446
  Prefactor  = 1.15046
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.549     FROM HESSE     STATUS=OK           268 CALLS     2087 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.594        14.301        .11765E-03   -1.5027    
   4  norm          10.844        7.3982        .12166E-03   -1.5049    
   5  Prefactor     4.6177        13.720        .18723E-03   -1.5278    
   6  Prefactor     .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          25.222        11.026        .79764E-04   -1.4703    
   8  Prefactor     24.774        47.444        .80371E-04   -1.4712    
   9  Prefactor     2.7521        4.2580        .17511E-03   -1.5376    
  10  Prefactor     .10000E-03    12.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1160        .73979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2470        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2812        10.897        .13932E-03   -1.5132    
  14  Prefactor     16.015        17.203        .10009E-03   -1.4907    
  15  Prefactor     49.377        30.602        .57066E-04   -1.4301    
  16  Prefactor     .10000E-03    17.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3608        .12830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .72445        .24198        .29412E-03   -1.0294    
  19  Prefactor     1.1505        .19362        .19802E-03   -.87870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0636e-10
Minuit parameter uncertainties:
  1  2.28815e-05
  2  0.000101361
  3  14.3054
  4  7.39881
  5  13.7297
  6  2.19464e-05
  7  11.0274
  8  47.5164
  9  4.25845
  10  3.23833e-05
  11  1.81453e-05
  12  1.89029e-05
  13  10.8992
  14  17.2088
  15  30.6122
  16  7.52618e-05
  17  3.52513e-06
  18  0.24234
  19  0.193742
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  2.477e+01  4.752e+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.150e+00  1.937e-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:  7.244e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/845963/likelihoodResults_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.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) = 5147.2991674
delta logL = 0.250016931725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5147.28978414
delta logL = 0.259400200707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9703       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8323       1.0000          .0000       10.000    
     3 'Normalizat'    .70009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1602       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=   5147.290     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      316 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9805        640.09        .13382E-03    .50649E-03
   2  Index         2.8321        6.1799        .60534E-02    .19244E-03
   3  Normalizat    .69966        .27295        .29892E-03   -.62696E-03
   4  Prefactor     1.1606        .22012        .19722E-03   -.59878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.98052
  Index      = 2.83205
  Normalizat = 0.699659
  Prefactor  = 1.16056
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.290     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9805        27.400        .53529E-05   -1.5109    
   2  Index         2.8321        1.2406        .24213E-03   -.44847    
   3  Normalizat    .69966        .23502        .59784E-04   -1.0391    
   4  Prefactor     1.1606        .19415        .39445E-04   -.87554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64985e-09
Minuit parameter uncertainties:
  1  27.438
  2  1.2568
  3  0.235356
  4  0.194264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845963': 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) = 5147.28978221
delta logL = 0.25940212809

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.981e+00  2.744e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.832e+00  1.257e+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.161e+00  1.943e-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:  6.997e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 204.732 11.896

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/845963/cmap_HighResolution_482976001_483235201_4FGL_J1338.9+1153_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-08 07:14:46.198317', job_id='845963', GAL2='1.16', fit_tolerance='1e-08', EG2='0.70', EG='0.72', time_epoch_completed='1631110486.2', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.59e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='940' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 845963: <4FGL_J1338.9+1153_daily_bin940> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin940> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 07:05:36 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:05:59 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:05:59 2021
Terminated at Wed Sep  8 07:14:47 2021
Results reported at Wed Sep  8 07:14:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin940 204.732 11.8956 482976001 483235201 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 :                                   512.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            551 sec.

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

