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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1049
RA = 204.732, Dec = 11.8956
tmin = 511228801, tmax = 511488001
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='846154', job_status='RUN', time_executed='2021-09-08 07:09:30.543776', time_epoch_executed='1631110170.54' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846154/ft1_4FGL_J1338.9+1153_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846154/ft2_4FGL_J1338.9+1153_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846154/ft1_4FGL_J1338.9+1153_daily_bin1049.fits outfile=/scratch/kocevski/846154/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1049.fits ra=204.732 dec=11.8956 rad=12.0 tmin=511228801.0 tmax=511488001.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.51
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846154/ft1_filtered_4FGL_J1338.9+1153_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/846154/ft2_4FGL_J1338.9+1153_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/846154/ltcube_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.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/846154/ft2_4FGL_J1338.9+1153_daily_bin1049.fits
.....................!
real 15.94
user 15.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846154/ft1_filtered_4FGL_J1338.9+1153_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/846154/ft2_4FGL_J1338.9+1153_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/846154/ltcube_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.fits outfile=/scratch/kocevski/846154/expmap_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.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/846154/ltcube_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.fits
.....................!
real 198.92
user 186.24
sys 7.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/846154/ft1_filtered_4FGL_J1338.9+1153_daily_bin1049.fits scfile=/scratch/kocevski/846154/ft2_4FGL_J1338.9+1153_daily_bin1049.fits outfile=/scratch/kocevski/846154/cmap_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846154/ft1_filtered_4FGL_J1338.9+1153_daily_bin1049.fits scfile=/scratch/kocevski/846154/ft2_4FGL_J1338.9+1153_daily_bin1049.fits outfile=/scratch/kocevski/846154/cmap_HighResolution_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.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.62
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63054       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.917       1.0000         .10000E-03   10000.    
     4 'norm      '    .61711E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6790       1.0000         .10000E-03   10000.    
     7 'norm      '    .27086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0159       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4138       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5410       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .66594       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=   5730.467     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1962 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.235        57.454        .68348E-05   -.15219E-03
   2  Prefactor     .60464        119.21       -.31725E-04    .47071E-04
   3  Prefactor     19.936        15.167        .13667E-05   -.18809E-03
   4  norm          .10621E-03    6.7121        .69659E-06** at limit **
   5  Prefactor     .10000E-03    3.3505       -.21456E-06** at limit **
   6  Prefactor     3.6810        41.489        .26919E-06    .12348E-04
   7  norm          .37318        8.7553        .17483E-05    .46572E-04
   8  Prefactor     55.113        49.021        .55664E-06    .91213E-04
   9  Prefactor     1.0165        4.3723        .25809E-06    .53612E-03
  10  Prefactor     .10000E-03    13.195       -.22487E-06** at limit **
  11  Prefactor     .10000E-03    6.1593       -.81377E-06** at limit **
  12  Prefactor     7.9526        13.146       -.15318E-06    .13071E-03
  13  Prefactor     16.337        11.228       -.15369E-06    .19415E-03
  14  Prefactor     .10000E-03    2.7557       -.38861E-07** at limit **
  15  Prefactor     40.699        36.086       -.25763E-06    .10375E-03
  16  Prefactor     .10000E-03    23.078       -.41017E-06** at limit **
  17  Prefactor     6.4195        8.4821       -.33958E-06    .11752E-03
  18  Normalizat    1.5411        .20787       -.43802E-06    .57772E-03
  19  Prefactor     .66582        .15310        .26236E-05    .10036E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2349
  Prefactor  = 0.604636
  Prefactor  = 19.9359
  norm       = 0.000106209
  Prefactor  = 0.0001
  Prefactor  = 3.68096
  norm       = 0.373182
  Prefactor  = 55.1134
  Prefactor  = 1.01647
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.95256
  Prefactor  = 16.3367
  Prefactor  = 0.0001
  Prefactor  = 40.6989
  Prefactor  = 0.0001
  Prefactor  = 6.41951
  Normalizat = 1.54107
  Prefactor  = 0.665824
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.467     FROM HESSE     STATUS=OK           278 CALLS     2240 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.235        73.087        .10289E-03   -1.4927    
   2  Prefactor     .60464        166.76        .47262E-02   -1.5552    
   3  Prefactor     19.936        15.461        .89748E-04   -1.4815    
   4  norm          .10621E-03    8.1758        .51884E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3602        .13539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6810        41.519        .21057E-03   -1.5324    
   7  norm          .37318        50.261        .38269E-02   -1.5586    
   8  Prefactor     55.113        49.051        .54020E-04   -1.4222    
   9  Prefactor     1.0165        4.5758        .29784E-03   -1.5506    
  10  Prefactor     .10000E-03    13.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9526        13.164        .14226E-03   -1.5144    
  13  Prefactor     16.337        11.252        .99089E-04   -1.4899    
  14  Prefactor     .10000E-03    2.7567        .12273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.699        36.096        .62818E-04   -1.4431    
  16  Prefactor     .10000E-03    23.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4195        8.4654        .15848E-03   -1.5201    
  18  Normalizat    1.5411        .24973        .22985E-03   -.76631    
  19  Prefactor     .66582        .18448        .26119E-03   -1.0488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52508e-09
Minuit parameter uncertainties:
  1  66.87
  2  20.1382
  3  15.464
  4  0.014252
  5  3.34797e-05
  6  24.7461
  7  8.66799
  8  49.0873
  9  4.31365
  10  5.98143e-05
  11  0.000185381
  12  13.1691
  13  11.2539
  14  5.08291e-06
  15  36.1151
  16  0.000174498
  17  8.46697
  18  0.249933
  19  0.184648
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  5.511e+01  4.909e+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:  6.658e-01  1.846e-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.541e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/846154/likelihoodResults_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.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) = 5730.4102645
delta logL = 0.0568039654008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5730.40776622
delta logL = 0.0593022468056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.178       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8169       1.0000          .0000       10.000    
     3 'Normalizat'    1.5488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66283       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=   5730.408     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      299 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.248        66.633        .24485E-03    .84924E-04
   2  Index         1.8184        .62006        .72745E-02    .17010E-03
   3  Normalizat    1.5488        .23140        .22938E-03   -.10535E-03
   4  Prefactor     .66277        .18167        .26173E-03    .11758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.2485
  Index      = 1.81839
  Normalizat = 1.54881
  Prefactor  = 0.662769
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.408     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.248        65.579        .97938E-05   -1.4066    
   2  Index         1.8184        .61020        .14549E-02   -.68972    
   3  Normalizat    1.5488        .23151        .45876E-04   -.76416    
   4  Prefactor     .66277        .18180        .10469E-04   -1.0500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70331e-10
Minuit parameter uncertainties:
  1  65.6493
  2  0.612777
  3  0.231672
  4  0.181963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846154': 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) = 5730.40776095
delta logL = 0.0593075119159

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  6.725e+01  6.565e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.818e+00  6.128e-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:  6.628e-01  1.820e-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.549e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.82 +/- 0.61
Photon Flux (Free Index): 2.43e-08 +/- 2.97e-08
Energy Flux (Free Index): 2.76e-05 +/- 3.71e-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/846154/cmap_HighResolution_511228801_511488001_4FGL_J1338.9+1153_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='2.76e-05', photon_flux_error='2.78e-08', dlogl='5.93e-02', energy_flux='1.98e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-09-08 07:18:50.006584', photon_index_error2='0.61', photon_index2='1.82', ts='2.12', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='9.77e-08', energy_flux_error2='3.71e-05', EG='1.54', time_epoch_completed='1631110730.01', return_code='0', job_id='846154', GAL2='0.66', EG2='1.55', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='2.97e-08', ts2='2.24', photon_index='2.04' WHERE bin_id='1049' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:18:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 846154: <4FGL_J1338.9+1153_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1049> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 07:05:49 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:06: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:06:16 2021
Terminated at Wed Sep  8 07:18:50 2021
Results reported at Wed Sep  8 07:18:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1049 204.732 11.8956 511228801 511488001 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 :                                   552.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             202.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            781 sec.

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

