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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin19
RA = 204.732, Dec = 11.8956
tmin = 244252801, tmax = 244512001
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='838845', job_status='RUN', time_executed='2021-09-08 06:48:25.568966', time_epoch_executed='1631108905.57' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838845/ft1_4FGL_J1338.9+1153_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838845/ft2_4FGL_J1338.9+1153_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838845/ft1_4FGL_J1338.9+1153_daily_bin19.fits outfile=/scratch/kocevski/838845/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin19.fits ra=204.732 dec=11.8956 rad=12.0 tmin=244252801.0 tmax=244512001.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.41
user 2.22
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838845/ft1_filtered_4FGL_J1338.9+1153_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/838845/ft2_4FGL_J1338.9+1153_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/838845/ltcube_244252801_244512001_4FGL_J1338.9+1153_daily_bin19.fits outfile=/scratch/kocevski/838845/expmap_244252801_244512001_4FGL_J1338.9+1153_daily_bin19.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/838845/ltcube_244252801_244512001_4FGL_J1338.9+1153_daily_bin19.fits
.....................!
real 190.32
user 185.52
sys 4.32

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/838845/ft1_filtered_4FGL_J1338.9+1153_daily_bin19.fits scfile=/scratch/kocevski/838845/ft2_4FGL_J1338.9+1153_daily_bin19.fits outfile=/scratch/kocevski/838845/cmap_244252801_244512001_4FGL_J1338.9+1153_daily_bin19.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.14

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34736E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.3611       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9228       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1695       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=   5511.899     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1840 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.024       -.10064E-05** at limit **
   2  Prefactor     .10000E-03    4.8082       -.13689E-06** at limit **
   3  Prefactor     .10000E-03    19.290        .47741E-05** at limit **
   4  norm          6.3749        7.9294       -.20454E-05   -.23982E-03
   5  Prefactor     15.795        9.3116        .13701E-07    .17662E-04
   6  Prefactor     .10000E-03    9.8327       -.15363E-05** at limit **
   7  norm          1.7127        11.670        .38885E-05   -.39552E-03
   8  Prefactor     39.118        37.177        .13540E-04    .74379E-05
   9  Prefactor     1.9228        4.4067       -.18943E-05   -.77965E-03
  10  Prefactor     8.9946        27.961       -.40196E-05   -.20354E-04
  11  Prefactor     3.1070        3.8594       -.10463E-05   -.13497E-03
  12  Prefactor     .10000E-03    10.148       -.23024E-05** at limit **
  13  Prefactor     .10000E-03    7.2423       -.10272E-05** at limit **
  14  Prefactor     .10000E-03    11.599        .17572E-05** at limit **
  15  Prefactor     .10000E-03    11.053       -.14295E-05** at limit **
  16  Prefactor     .10000E-03    8.6384        .35745E-05** at limit **
  17  Prefactor     .10000E-03    2.4824       -.10268E-06** at limit **
  18  Normalizat    1.0517        .21033        .69748E-07   -.30098E-04
  19  Prefactor     1.1697        .17111        .10083E-06   -.19994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.37493
  Prefactor  = 15.7952
  Prefactor  = 0.0001
  norm       = 1.71272
  Prefactor  = 39.1182
  Prefactor  = 1.92279
  Prefactor  = 8.99461
  Prefactor  = 3.10698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05171
  Prefactor  = 1.16974
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.899     FROM HESSE     STATUS=OK           268 CALLS     2108 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8209        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.986        .42654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.3749        7.7548        .15914E-03   -1.5203    
   5  Prefactor     15.795        9.3155        .10078E-03   -1.4913    
   6  Prefactor     .10000E-03    9.8335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7127        10.911        .31856E-03   -1.5446    
   8  Prefactor     39.118        36.918        .64094E-04   -1.4456    
   9  Prefactor     1.9228        4.4971        .22833E-03   -1.5431    
  10  Prefactor     8.9946        27.980        .13363E-03   -1.5108    
  11  Prefactor     3.1070        3.8569        .15785E-03   -1.5355    
  12  Prefactor     .10000E-03    10.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4854        .11424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0517        .24892        .27296E-03   -.91318    
  19  Prefactor     1.1697        .20288        .21383E-03   -.87268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27395e-09
Minuit parameter uncertainties:
  1  3.35838e-06
  2  2.24251e-06
  3  0.000123506
  4  7.75604
  5  9.3164
  6  4.57049e-06
  7  8.64802
  8  36.9394
  9  4.49789
  10  28.0209
  11  3.85718
  12  6.96118e-06
  13  2.0256e-06
  14  3.34416e-05
  15  2.21436e-07
  16  1.10258e-08
  17  4.71964e-08
  18  0.249198
  19  0.203013
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.912e+01  3.694e+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.170e+00  2.030e-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.052e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.10
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.33e-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) = 5510.8257421
delta logL = 1.07276242376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5510.81722241
delta logL = 1.08128211182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.527       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0072       1.0000          .0000       10.000    
     3 'Normalizat'    1.0641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1690       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=   5510.817     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.457        44.674       -.43177E-04   -.69942E-04
   2  Index         1.0058        .67984       -.21134E-03    .24901E-04
   3  Normalizat    1.0635        .20626        .14712E-05    .10043E-02
   4  Prefactor     1.1691        .17016        .45187E-06    .11173E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.4567
  Index      = 1.00585
  Normalizat = 1.06348
  Prefactor  = 1.16905
 **********
 **   18 **HESSE 
 **********

 FCN=   5510.817     FROM HESSE     STATUS=OK            27 CALLS      234 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.457        43.218        .69206E-04   -1.4550    
   2  Index         1.0058        .65834        .12022E-01   -.92535    
   3  Normalizat    1.0635        .24450        .27163E-03   -.90933    
   4  Prefactor     1.1691        .20191        .21390E-03   -.87289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43329e-09
Minuit parameter uncertainties:
  1  43.2588
  2  0.663709
  3  0.244759
  4  0.202046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838845': 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) = 5510.81721015
delta logL = 1.08129437089

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.346e+01  4.326e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.006e+00  6.637e-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.169e+00  2.020e-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.063e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.01 +/- 0.66
Photon Flux (Free Index): 5.29e-09 +/- 6.22e-09
Energy Flux (Free Index): 7.54e-05 +/- 1.08e-04

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/838845/cmap_HighResolution_244252801_244512001_4FGL_J1338.9+1153_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='7.54e-05', photon_flux_error='2.09e-08', dlogl='1.08e+00', energy_flux='1.41e-05', photon_flux2='5.29e-09', job_status='DONE', time_completed='2021-09-08 06:56:25.468714', photon_index_error2='0.66', photon_index2='1.01', ts='7.10', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.08e-04', EG='1.05', time_epoch_completed='1631109385.47', return_code='0', job_id='838845', GAL2='1.17', EG2='1.06', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.22e-09', ts2='9.26', photon_index='2.04' WHERE bin_id='19' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 838845: <4FGL_J1338.9+1153_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin19 204.732 11.8956 244252801 244512001 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 :                                   480.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            669 sec.

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

