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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1404
RA = 204.732, Dec = 11.8956
tmin = 603244801, tmax = 603504001
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='848090', job_status='RUN', time_executed='2021-09-08 07:15:33.078275', time_epoch_executed='1631110533.08' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848090/ft1_4FGL_J1338.9+1153_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848090/ft2_4FGL_J1338.9+1153_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848090/ft1_4FGL_J1338.9+1153_daily_bin1404.fits outfile=/scratch/kocevski/848090/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1404.fits ra=204.732 dec=11.8956 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.97
user 2.71
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/848090/ft2_4FGL_J1338.9+1153_daily_bin1404.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/848090/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1404.fits evtable="EVENTS" outfile="/scratch/kocevski/848090/ft1_filtered_4FGL_J1338.9+1153_daily_bin1404.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848090/ft1_filtered_4FGL_J1338.9+1153_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/848090/ft2_4FGL_J1338.9+1153_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/848090/ltcube_603244801_603504001_4FGL_J1338.9+1153_daily_bin1404.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/848090/ft2_4FGL_J1338.9+1153_daily_bin1404.fits
.....................!
real 15.79
user 15.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848090/ft1_filtered_4FGL_J1338.9+1153_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/848090/ft2_4FGL_J1338.9+1153_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/848090/ltcube_603244801_603504001_4FGL_J1338.9+1153_daily_bin1404.fits outfile=/scratch/kocevski/848090/expmap_603244801_603504001_4FGL_J1338.9+1153_daily_bin1404.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/848090/ltcube_603244801_603504001_4FGL_J1338.9+1153_daily_bin1404.fits
.....................!
real 194.41
user 188.53
sys 5.23

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/848090/ft1_filtered_4FGL_J1338.9+1153_daily_bin1404.fits scfile=/scratch/kocevski/848090/ft2_4FGL_J1338.9+1153_daily_bin1404.fits outfile=/scratch/kocevski/848090/cmap_603244801_603504001_4FGL_J1338.9+1153_daily_bin1404.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.93
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848090/ft1_filtered_4FGL_J1338.9+1153_daily_bin1404.fits scfile=/scratch/kocevski/848090/ft2_4FGL_J1338.9+1153_daily_bin1404.fits outfile=/scratch/kocevski/848090/cmap_HighResolution_603244801_603504001_4FGL_J1338.9+1153_daily_bin1404.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 1.15
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.242       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2967       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4381       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4636       1.0000         .10000E-03   10000.    
    15 'Prefactor '    84.096       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2553       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79164       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=   5402.166     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1820 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.228        66.362       -.79874E-05   -.22531E-03
   2  Prefactor     .10000E-03    13.460        .76808E-06** at limit **
   3  Prefactor     .10000E-03    7.6083        .29103E-06** at limit **
   4  norm          .10000E-03    3.2484        .22257E-07** at limit **
   5  Prefactor     7.2971        11.022        .21713E-07   -.23171E-04
   6  Prefactor     .10000E-03    14.615       -.14216E-05** at limit **
   7  norm          14.683        9.4926       -.39374E-08   -.50718E-06
   8  Prefactor     62.307        46.740        .18403E-06    .26237E-04
   9  Prefactor     3.4380        4.1864       -.25563E-06   -.23734E-03
  10  Prefactor     .10000E-03    11.283        .21223E-06** at limit **
  11  Prefactor     3.6951        3.6305        .12144E-05   -.17724E-02
  12  Prefactor     .10000E-03    6.2483       -.89640E-07** at limit **
  13  Prefactor     .10000E-03    12.564        .13657E-05** at limit **
  14  Prefactor     3.4625        12.247       -.30072E-06   -.68530E-04
  15  Prefactor     84.095        35.133       -.29047E-06   -.39013E-04
  16  Prefactor     .10000E-03    10.272       -.11734E-05** at limit **
  17  Prefactor     .10000E-03    3.1724        .47221E-08** at limit **
  18  Normalizat    1.2554        .21027        .33051E-06   -.46944E-04
  19  Prefactor     .79154        .16217       -.23997E-06   -.10621E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.2278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.29707
  Prefactor  = 0.0001
  norm       = 14.6827
  Prefactor  = 62.3068
  Prefactor  = 3.43803
  Prefactor  = 0.0001
  Prefactor  = 3.69507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46246
  Prefactor  = 84.0954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25543
  Prefactor  = 0.791543
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.166     FROM HESSE     STATUS=OK           262 CALLS     2082 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.228        70.056        .54462E-04   -1.4234    
   2  Prefactor     .10000E-03    13.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2560        .12933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2971        11.023        .14849E-03   -1.5168    
   6  Prefactor     .10000E-03    14.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.683        9.5124        .10453E-03   -1.4941    
   8  Prefactor     62.307        46.799        .50835E-04   -1.4128    
   9  Prefactor     3.4380        4.1833        .15785E-03   -1.5337    
  10  Prefactor     .10000E-03    11.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6951        4.7498        .87289E-03   -1.5323    
  12  Prefactor     .10000E-03    6.2635        .17943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4625        12.289        .21729E-03   -1.5336    
  15  Prefactor     84.095        35.175        .43804E-04   -1.3871    
  16  Prefactor     .10000E-03    10.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1819        .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2554        .25670        .24689E-03   -.84907    
  19  Prefactor     .79154        .19764        .23418E-03   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53803e-09
Minuit parameter uncertainties:
  1  70.1631
  2  0.000155842
  3  2.70241e-05
  4  1.94138e-07
  5  11.0261
  6  0.000137374
  7  9.51338
  8  46.8261
  9  4.18363
  10  1.96198e-05
  11  4.75029
  12  8.26938e-06
  13  0.000102034
  14  12.2978
  15  35.1833
  16  9.52355e-05
  17  2.38913e-07
  18  0.256959
  19  0.197813
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  6.231e+01  4.683e+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:  7.915e-01  1.978e-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.255e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.68e-05

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) = 5402.11658597
delta logL = 0.0495185928394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5402.10958568
delta logL = 0.0565188832152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.879       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8540       1.0000          .0000       10.000    
     3 'Normalizat'    1.2624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78849       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=   5402.110     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      307 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.880        66.206        .46401E-04   -.58558E-04
   2  Index         1.8540        .53645        .71351E-02    .24512E-03
   3  Normalizat    1.2626        .25277        .24629E-03   -.58808E-04
   4  Prefactor     .78831        .19579        .23460E-03   -.50155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.8804
  Index      = 1.85402
  Normalizat = 1.26263
  Prefactor  = 0.788314
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.110     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.880        64.982        .92801E-05   -1.3975    
   2  Index         1.8540        .52652        .14270E-02   -.68052    
   3  Normalizat    1.2626        .25302        .98515E-05   -.84689    
   4  Prefactor     .78831        .19603        .93842E-05   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78642e-11
Minuit parameter uncertainties:
  1  65.0439
  2  0.52814
  3  0.25327
  4  0.196203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848090': 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) = 5402.10958529
delta logL = 0.0565192703398

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  7.488e+01  6.504e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.854e+00  5.281e-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:  7.883e-01  1.962e-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.263e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.85 +/- 0.53
Photon Flux (Free Index): 2.91e-08 +/- 2.83e-08
Energy Flux (Free Index): 2.97e-05 +/- 3.49e-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/848090/cmap_HighResolution_603244801_603504001_4FGL_J1338.9+1153_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='2.97e-05', photon_flux_error='2.65e-08', dlogl='5.65e-02', energy_flux='2.24e-05', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-09-08 07:24:15.221141', photon_index_error2='0.53', photon_index2='1.85', ts='4.39', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='1.26', time_epoch_completed='1631111055.22', return_code='0', job_id='848090', GAL2='0.79', EG2='1.26', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='2.83e-08', ts2='4.51', photon_index='2.04' WHERE bin_id='1404' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:24:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 848090: <4FGL_J1338.9+1153_daily_bin1404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1404 204.732 11.8956 603244801 603504001 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 :                                   482.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            804 sec.

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

