/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 99 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 = 7377
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1346
RA = 204.732, Dec = 11.8956
tmin = 588211201, tmax = 588470401
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='848006', job_status='RUN', time_executed='2021-09-08 07:13:59.157941', time_epoch_executed='1631110439.16' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848006/ft1_4FGL_J1338.9+1153_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848006/ft2_4FGL_J1338.9+1153_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848006/ft1_4FGL_J1338.9+1153_daily_bin1346.fits outfile=/scratch/kocevski/848006/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1346.fits ra=204.732 dec=11.8956 rad=12.0 tmin=588211201.0 tmax=588470401.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.90
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848006/ft1_filtered_4FGL_J1338.9+1153_daily_bin1346.fits" evtable="EVENTS" scfile=/scratch/kocevski/848006/ft2_4FGL_J1338.9+1153_daily_bin1346.fits sctable="SC_DATA" outfile=/scratch/kocevski/848006/ltcube_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.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/848006/ft2_4FGL_J1338.9+1153_daily_bin1346.fits
.....................!
real 17.46
user 16.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848006/ft1_filtered_4FGL_J1338.9+1153_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/848006/ft2_4FGL_J1338.9+1153_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/848006/ltcube_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.fits outfile=/scratch/kocevski/848006/expmap_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.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/848006/ltcube_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.fits
.....................!
real 193.61
user 187.83
sys 4.90

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/848006/ft1_filtered_4FGL_J1338.9+1153_daily_bin1346.fits scfile=/scratch/kocevski/848006/ft2_4FGL_J1338.9+1153_daily_bin1346.fits outfile=/scratch/kocevski/848006/cmap_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848006/ft1_filtered_4FGL_J1338.9+1153_daily_bin1346.fits scfile=/scratch/kocevski/848006/ft2_4FGL_J1338.9+1153_daily_bin1346.fits outfile=/scratch/kocevski/848006/cmap_HighResolution_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.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/848006/ft1_filtered_4FGL_J1338.9+1153_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/848006/ft2_4FGL_J1338.9+1153_daily_bin1346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/848006/Model_4FGL_J1338.9+1153_daily_bin1346.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/848006/ft1_filtered_4FGL_J1338.9+1153_daily_bin1346.fits.....................!
real 49.75
user 47.43
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20084E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.785       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19019       1.0000         .10000E-03   10000.    
     7 'norm      '    14.204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.110       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7684       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6967       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.127       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11964E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11917E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    332.50       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96686       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2228       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=   6224.618     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1919 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.400        .31045E-07** at limit **
   2  Prefactor     28.772        15.650       -.14913E-05   -.35216E-06
   3  Prefactor     .10000E-03    17.818       -.29564E-06** at limit **
   4  norm          .92002E-01    6.4352        .11991E-05   -.96133E-04
   5  Prefactor     .10000E-03    4.9284        .66674E-08** at limit **
   6  Prefactor     .51865E-01    38.524       -.42182E-05    .14135E-03
   7  norm          14.227        9.0739       -.17015E-05   -.32662E-03
   8  Prefactor     65.084        62.798        .43605E-04    .19618E-04
   9  Prefactor     3.7650        3.9878       -.24890E-06   -.39177E-03
  10  Prefactor     .10000E-03    17.661        .84293E-06** at limit **
  11  Prefactor     4.6965        3.3902       -.38961E-06    .68701E-04
  12  Prefactor     17.127        13.171       -.14453E-05   -.31776E-04
  13  Prefactor     .10000E-03    13.703        .18310E-05** at limit **
  14  Prefactor     .10000E-03    7.3027        .38360E-06** at limit **
  15  Prefactor     332.48        57.315        .61226E-05   -.89520E-05
  16  Prefactor     .10000E-03    13.849       -.14902E-05** at limit **
  17  Prefactor     .10000E-03    2.8956       -.52041E-07** at limit **
  18  Normalizat    .96725        .21784       -.25541E-05   -.10251E-04
  19  Prefactor     1.2229        .17483       -.15230E-05    .42309E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.7725
  Prefactor  = 0.0001
  norm       = 0.0920016
  Prefactor  = 0.0001
  Prefactor  = 0.0518646
  norm       = 14.227
  Prefactor  = 65.0838
  Prefactor  = 3.765
  Prefactor  = 0.0001
  Prefactor  = 4.69646
  Prefactor  = 17.1271
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 332.481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.967245
  Prefactor  = 1.22292
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.618     FROM HESSE     STATUS=OK           284 CALLS     2203 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.772        15.682        .74674E-04   -1.4635    
   3  Prefactor     .10000E-03    18.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .92002E-01    7.6393        .56754E-01   -1.5647    
   5  Prefactor     .10000E-03    4.9391        .17104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .51865E-01    39.927        .13530       -1.5662    
   7  norm          14.227        9.1225        .10627E-03   -1.4953    
   8  Prefactor     65.084        62.799        .49736E-04   -1.4093    
   9  Prefactor     3.7650        3.9841        .15539E-03   -1.5320    
  10  Prefactor     .10000E-03    17.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6965        3.3924        .12005E-03   -1.5275    
  12  Prefactor     17.127        13.174        .96779E-04   -1.4880    
  13  Prefactor     .10000E-03    13.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.346        .41435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     332.48        57.293        .11155E-03   -1.2041    
  16  Prefactor     .10000E-03    13.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8985        .13111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .96725        .26614        .30669E-03   -.94136    
  19  Prefactor     1.2229        .21339        .22799E-03   -.85629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46112e-10
Minuit parameter uncertainties:
  1  0.000129156
  2  15.6846
  3  0.000177317
  4  1.67601
  5  5.32295e-07
  6  2.87719
  7  9.12339
  8  62.8625
  9  3.98441
  10  2.38459e-05
  11  3.3925
  12  13.1764
  13  5.41222e-05
  14  0.000369002
  15  57.3025
  16  1.10536e-05
  17  7.8789e-06
  18  0.266504
  19  0.21354
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  6.508e+01  6.286e+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.223e+00  2.135e-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.672e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 2.26e-05

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

Saving results to:
/scratch/kocevski/848006/likelihoodResults_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.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) = 6224.61643796
delta logL = 0.00117648280047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6224.61317676
delta logL = 0.0044376791584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.190       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1929       1.0000          .0000       10.000    
     3 'Normalizat'    .95944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2260       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6224.613     FROM MIGRAD    STATUS=FAILED       103 CALLS      306 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.356        1999.5        .54488E-04    .70940E-05
   2  Index         2.1899        5.2761        .82329E-02    .67205E-03
   3  Normalizat    .95937        .40363        .30783E-03   -.39516E-05
   4  Prefactor     1.2263        .22650        .22771E-03    .61509E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6224.613     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      394 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.356        1999.5        .39726E-03    .70940E-05
   2  Index         2.1899        5.2761        .79888E-03    .67205E-03
   3  Normalizat    .95937        .40363        .36216E-03   -.39516E-05
   4  Prefactor     1.2263        .22650        .27770E-03    .61509E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6224.613     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      423 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.354        201.71        .21795E-05   -.26081E-04
   2  Index         2.1899        2.4071        .16466E-02   -.11524E-04
   3  Normalizat    .95937        .28915        .12313E-04   -.68323E-05
   4  Prefactor     1.2263        .22254        .45542E-04    .37494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.3542
  Index      = 2.18993
  Normalizat = 0.95937
  Prefactor  = 1.22634
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.613     FROM HESSE     STATUS=OK            25 CALLS      448 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.354        151.02        .43590E-06   -1.4232    
   2  Index         2.1899        1.8516        .65863E-04   -.59682    
   3  Normalizat    .95937        .27385        .24627E-05   -.94404    
   4  Prefactor     1.2263        .21707        .91084E-05   -.85525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16792e-11
Minuit parameter uncertainties:
  1  152.103
  2  1.91976
  3  0.274249
  4  0.217225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848006': 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) = 6224.6131722
delta logL = 0.00444224061812

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  5.435e+01  1.521e+02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.190e+00  1.920e+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.226e+00  2.172e-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.594e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 204.732 11.896
Photon Index (Free Index): 2.19 +/- 1.92
Photon Flux (Free Index): 4.35e-08 +/- 8.68e-08
Energy Flux (Free Index): 1.99e-05 +/- 4.12e-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/848006/cmap_HighResolution_588211201_588470401_4FGL_J1338.9+1153_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='1.99e-05', photon_flux_error='3.56e-08', dlogl='4.44e-03', energy_flux='2.34e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-09-08 07:24:11.332066', photon_index_error2='1.92', photon_index2='2.19', ts='1.47', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='4.12e-05', EG='0.97', time_epoch_completed='1631111051.33', return_code='0', job_id='848006', GAL2='1.23', EG2='0.96', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='8.68e-08', ts2='1.48', photon_index='2.04' WHERE bin_id='1346' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:24:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 848006: <4FGL_J1338.9+1153_daily_bin1346> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1346> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 07:10:46 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:12: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 07:12:04 2021
Terminated at Wed Sep  8 07:24:12 2021
Results reported at Wed Sep  8 07:24:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1346 204.732 11.8956 588211201 588470401 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 :                                   580.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            806 sec.

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

