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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1320
RA = 204.732, Dec = 11.8956
tmin = 581472001, tmax = 581731201
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='847968', job_status='RUN', time_executed='2021-09-08 07:13:05.197459', time_epoch_executed='1631110385.2' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847968

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847968/ft1_4FGL_J1338.9+1153_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847968/ft2_4FGL_J1338.9+1153_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847968/ft1_4FGL_J1338.9+1153_daily_bin1320.fits outfile=/scratch/kocevski/847968/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1320.fits ra=204.732 dec=11.8956 rad=12.0 tmin=581472001.0 tmax=581731201.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.77
user 2.53
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847968/ft2_4FGL_J1338.9+1153_daily_bin1320.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/847968/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/847968/ft1_filtered_4FGL_J1338.9+1153_daily_bin1320.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.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847968/ft1_filtered_4FGL_J1338.9+1153_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/847968/ft2_4FGL_J1338.9+1153_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/847968/ltcube_581472001_581731201_4FGL_J1338.9+1153_daily_bin1320.fits outfile=/scratch/kocevski/847968/expmap_581472001_581731201_4FGL_J1338.9+1153_daily_bin1320.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/847968/ltcube_581472001_581731201_4FGL_J1338.9+1153_daily_bin1320.fits
.....................!
real 194.49
user 188.02
sys 5.45

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/847968/ft1_filtered_4FGL_J1338.9+1153_daily_bin1320.fits scfile=/scratch/kocevski/847968/ft2_4FGL_J1338.9+1153_daily_bin1320.fits outfile=/scratch/kocevski/847968/cmap_581472001_581731201_4FGL_J1338.9+1153_daily_bin1320.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847968/ft1_filtered_4FGL_J1338.9+1153_daily_bin1320.fits scfile=/scratch/kocevski/847968/ft2_4FGL_J1338.9+1153_daily_bin1320.fits outfile=/scratch/kocevski/847968/cmap_HighResolution_581472001_581731201_4FGL_J1338.9+1153_daily_bin1320.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.707       1.0000         .10000E-03   10000.    
     4 'norm      '    16.649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.668       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.827       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23896E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    133.29       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7012       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .82928       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96432       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=   5591.811     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1897 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.318        26.725       -.17796E-06   -.70683E-05
   2  Prefactor     .10000E-03    10.487       -.26447E-08** at limit **
   3  Prefactor     15.705        15.127        .43843E-06    .37603E-04
   4  norm          16.649        10.352        .25281E-07   -.16869E-05
   5  Prefactor     .10000E-03    3.0755        .91923E-08** at limit **
   6  Prefactor     .10000E-03    8.7396        .15834E-07** at limit **
   7  norm          15.667        11.486        .52820E-07    .33579E-05
   8  Prefactor     34.826        49.576       -.14800E-05   -.35168E-04
   9  Prefactor     .10000E-03    3.7892        .13654E-07** at limit **
  10  Prefactor     .10000E-03    22.947       -.29185E-07** at limit **
  11  Prefactor     2.0954        5.1125        .30469E-06   -.16162E-03
  12  Prefactor     .10000E-03    13.898        .23342E-07** at limit **
  13  Prefactor     .10000E-03    7.8725       -.41420E-08** at limit **
  14  Prefactor     4.2428        28.391       -.43144E-06   -.21544E-04
  15  Prefactor     133.29        50.448        .88466E-06    .98588E-04
  16  Prefactor     22.233        32.130       -.44686E-05   -.14924E-03
  17  Prefactor     5.6996        7.9253        .11384E-05   -.62554E-03
  18  Normalizat    .82939        .19631       -.18840E-06   -.24130E-05
  19  Prefactor     .96425        .14938        .15894E-07   -.10824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3179
  Prefactor  = 0.0001
  Prefactor  = 15.7049
  norm       = 16.6487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6672
  Prefactor  = 34.8255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.2428
  Prefactor  = 133.293
  Prefactor  = 22.2334
  Prefactor  = 5.69963
  Normalizat = 0.82939
  Prefactor  = 0.964253
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.811     FROM HESSE     STATUS=OK           270 CALLS     2167 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.318        26.716        .96242E-04   -1.4875    
   2  Prefactor     .10000E-03    10.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.705        15.187        .10106E-03   -1.4915    
   4  norm          16.649        10.380        .98157E-04   -1.4892    
   5  Prefactor     .10000E-03    3.0820        .12807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.667        11.510        .10119E-03   -1.4916    
   8  Prefactor     34.826        49.632        .67905E-04   -1.4527    
   9  Prefactor     .10000E-03    3.8588        .14198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0954        5.1404        .25334E-03   -1.5418    
  12  Prefactor     .10000E-03    14.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    96.757        .39508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2428        28.386        .19563E-03   -1.5296    
  15  Prefactor     133.29        52.767        .34880E-04   -1.3394    
  16  Prefactor     22.233        32.964        .84931E-04   -1.4765    
  17  Prefactor     5.6996        11.548        .84113E-03   -1.5230    
  18  Normalizat    .82939        .23267        .28087E-03   -.98988    
  19  Prefactor     .96425        .17875        .20926E-03   -.93931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17267e-09
Minuit parameter uncertainties:
  1  26.7347
  2  7.73959e-06
  3  15.1907
  4  10.3807
  5  4.95817e-07
  6  9.29571e-07
  7  11.5119
  8  49.6906
  9  4.72339e-06
  10  6.98682e-06
  11  5.14148
  12  1.37679e-06
  13  0.000316143
  14  21.9633
  15  52.7852
  16  32.9913
  17  11.5524
  18  0.232952
  19  0.178857
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.483e+01  4.969e+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:  9.643e-01  1.789e-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:  8.294e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/847968/likelihoodResults_581472001_581731201_4FGL_J1338.9+1153_daily_bin1320.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) = 5591.08050715
delta logL = 0.729999360303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5591.0770146
delta logL = 0.733491916046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1372       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1145       1.0000          .0000       10.000    
     3 'Normalizat'    .78009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98403       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=   5591.077     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      285 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1294        756.35        .14055E-03   -.28893E-03
   2  Index         3.1149        6.1473        .43657E-02   -.14306E-03
   3  Normalizat    .78009        .34227        .28883E-03    .66974E-03
   4  Prefactor     .98402        .24637        .20723E-03    .59695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.12943
  Index      = 3.11489
  Normalizat = 0.780094
  Prefactor  = 0.984022
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1294        19.250        .56219E-05   -1.5138    
   2  Index         3.1149        .98158        .17463E-03   -.38658    
   3  Normalizat    .78009        .22584        .57765E-04   -1.0081    
   4  Prefactor     .98402        .17745        .41446E-04   -.93264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61672e-09
Minuit parameter uncertainties:
  1  19.2642
  2  0.989079
  3  0.226114
  4  0.177551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847968': 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) = 5591.07701451
delta logL = 0.733492007837

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.129e+00  1.926e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  3.115e+00  9.891e-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:  9.840e-01  1.776e-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.801e-01  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 204.732 11.896
Photon Index (Free Index): 3.11 +/- 0.99
Photon Flux (Free Index): 6.64e-08 +/- 6.14e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.04e-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/847968/cmap_HighResolution_581472001_581731201_4FGL_J1338.9+1153_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='7.33e-01', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-09-08 07:21:58.404508', photon_index_error2='0.99', photon_index2='3.11', ts='0.67', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.89e-08', energy_flux_error2='1.04e-05', EG='0.83', time_epoch_completed='1631110918.4', return_code='0', job_id='847968', GAL2='0.98', EG2='0.78', return_code2='0', photon_flux_error2='6.14e-08', ts2='2.18', photon_index='2.04' WHERE bin_id='1320' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:21:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 847968: <4FGL_J1338.9+1153_daily_bin1320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1320 204.732 11.8956 581472001 581731201 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 :                                   517.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            675 sec.

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

