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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1337
RA = 204.732, Dec = 11.8956
tmin = 585878401, tmax = 586137601
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='847993', job_status='RUN', time_executed='2021-09-08 07:13:10.823733', time_epoch_executed='1631110390.82' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847993/ft1_4FGL_J1338.9+1153_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847993/ft2_4FGL_J1338.9+1153_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847993/ft1_4FGL_J1338.9+1153_daily_bin1337.fits outfile=/scratch/kocevski/847993/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1337.fits ra=204.732 dec=11.8956 rad=12.0 tmin=585878401.0 tmax=586137601.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.91
user 2.63
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847993/ft1_filtered_4FGL_J1338.9+1153_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/847993/ft2_4FGL_J1338.9+1153_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/847993/ltcube_585878401_586137601_4FGL_J1338.9+1153_daily_bin1337.fits outfile=/scratch/kocevski/847993/expmap_585878401_586137601_4FGL_J1338.9+1153_daily_bin1337.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/847993/ltcube_585878401_586137601_4FGL_J1338.9+1153_daily_bin1337.fits
.....................!
real 191.48
user 186.38
sys 4.48

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/847993/ft1_filtered_4FGL_J1338.9+1153_daily_bin1337.fits scfile=/scratch/kocevski/847993/ft2_4FGL_J1338.9+1153_daily_bin1337.fits outfile=/scratch/kocevski/847993/cmap_585878401_586137601_4FGL_J1338.9+1153_daily_bin1337.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.55
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847993/ft1_filtered_4FGL_J1338.9+1153_daily_bin1337.fits scfile=/scratch/kocevski/847993/ft2_4FGL_J1338.9+1153_daily_bin1337.fits outfile=/scratch/kocevski/847993/cmap_HighResolution_585878401_586137601_4FGL_J1338.9+1153_daily_bin1337.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.104       1.0000         .10000E-03   10000.    
     4 'norm      '    12.707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14139E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5514       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.258       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94592       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1277       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=   9240.541     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1567 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.451       -.21257E-05** at limit **
   2  Prefactor     .10000E-03    4.8337       -.32814E-05** at limit **
   3  Prefactor     23.103        11.610       -.53761E-06    .63604E-04
   4  norm          12.707        8.1771        .82854E-07   -.18097E-04
   5  Prefactor     .10000E-03    7.7898       -.49880E-05** at limit **
   6  Prefactor     .10000E-03    6.0022        .27832E-05** at limit **
   7  norm          2.7650        7.7694       -.10637E-05   -.43756E-03
   8  Prefactor     14.229        16.866       -.12629E-05    .34531E-06
   9  Prefactor     .10000E-03    1.1014       -.49363E-07** at limit **
  10  Prefactor     .10000E-03    11.888        .44355E-05** at limit **
  11  Prefactor     .10000E-03    1.9436        .43705E-06** at limit **
  12  Prefactor     24.039        11.756       -.75710E-06   -.32145E-04
  13  Prefactor     1.5502        13.184       -.27427E-05   -.42579E-03
  14  Prefactor     .10000E-03    3.2176       -.16058E-06** at limit **
  15  Prefactor     22.249        22.174       -.10839E-04   -.91952E-05
  16  Prefactor     .10000E-03    5.7261        .24014E-05** at limit **
  17  Prefactor     .10000E-03    2.6451        .15881E-06** at limit **
  18  Normalizat    .94604        .16266        .11883E-05    .85250E-04
  19  Prefactor     1.1277        .12942        .57774E-06    .11792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1029
  norm       = 12.7067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76501
  Prefactor  = 14.2292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.0392
  Prefactor  = 1.55022
  Prefactor  = 0.0001
  Prefactor  = 22.2488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.946035
  Prefactor  = 1.12768
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.541     FROM HESSE     STATUS=OK           266 CALLS     1833 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.103        11.626        .83334E-04   -1.4746    
   4  norm          12.707        8.0733        .11237E-03   -1.4995    
   5  Prefactor     .10000E-03    7.9307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7650        7.7073        .24478E-03   -1.5375    
   8  Prefactor     14.229        16.862        .10618E-03   -1.4953    
   9  Prefactor     .10000E-03    1.1138        .98465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9280        .25868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.039        11.734        .81693E-04   -1.4727    
  13  Prefactor     1.5502        13.814        .34193E-03   -1.5459    
  14  Prefactor     .10000E-03    3.2290        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.249        22.015        .84902E-04   -1.4764    
  16  Prefactor     .10000E-03    5.7220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6579        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94604        .19069        .27341E-03   -.94861    
  19  Prefactor     1.1277        .15202        .20768E-03   -.88587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64841e-09
Minuit parameter uncertainties:
  1  1.90534e-06
  2  5.28676e-07
  3  11.6276
  4  8.07402
  5  2.68841e-07
  6  2.32852e-06
  7  7.71003
  8  16.868
  9  3.52036e-06
  10  2.47809e-05
  11  9.89221e-05
  12  11.7348
  13  9.25786
  14  5.03294e-06
  15  22.0235
  16  1.74241e-06
  17  2.3222e-05
  18  0.190831
  19  0.152081
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.423e+01  1.687e+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.128e+00  1.521e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.460e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 8.05e-09 +/- 9.54e-09
Energy Flux (Fixed Index): 5.11e-06 +/- 6.06e-06

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

Saving results to:
/scratch/kocevski/847993/likelihoodResults_585878401_586137601_4FGL_J1338.9+1153_daily_bin1337.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) = 9240.25658932
delta logL = 0.284906974039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9240.25631636
delta logL = 0.285179942093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.780       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5226       1.0000          .0000       10.000    
     3 'Normalizat'    .94991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       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.

 FCN=   9240.256     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.898        1071.5        .20118E-02   -.95141E-04
   2  Index         1.5262        5.3045        .29556       -.44477E-04
   3  Normalizat    .94993        .69020E-01    .45536E-01    .28748E-04
   4  Prefactor     1.1253        .48423E-01    .36691E-01   -.36914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8979
  Index      = 1.52616
  Normalizat = 0.949934
  Prefactor  = 1.12534
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.256     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.898        28.587        .80471E-04   -1.4710    
   2  Index         1.5262        .61050        .11104E-01   -.76810    
   3  Normalizat    .94993        .18228        .27290E-03   -.94727    
   4  Prefactor     1.1253        .15058        .20785E-03   -.88661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41908e-10
Minuit parameter uncertainties:
  1  28.6027
  2  0.613467
  3  0.182397
  4  0.150637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847993': 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) = 9240.25628455
delta logL = 0.285211750099

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  2.490e+01  2.860e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.526e+00  6.135e-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.125e+00  1.506e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.499e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.53 +/- 0.61
Photon Flux (Free Index): 5.48e-09 +/- 7.00e-09
Energy Flux (Free Index): 1.59e-05 +/- 2.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/847993/cmap_HighResolution_585878401_586137601_4FGL_J1338.9+1153_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-03', comment='SUCCESS', photon_flux='8.05e-09', energy_flux2='1.59e-05', photon_flux_error='9.54e-09', dlogl='2.85e-01', energy_flux='5.11e-06', photon_flux2='5.48e-09', job_status='DONE', time_completed='2021-09-08 07:24:11.161439', photon_index_error2='0.61', photon_index2='1.53', ts='1.91', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='4.12e-08', energy_flux_error2='2.91e-05', EG='0.95', time_epoch_completed='1631111051.16', return_code='0', job_id='847993', GAL2='1.13', EG2='0.95', return_code2='0', energy_flux_error='6.06e-06', photon_flux_error2='7.00e-09', ts2='2.49', photon_index='2.04' WHERE bin_id='1337' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:24:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 847993: <4FGL_J1338.9+1153_daily_bin1337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1337 204.732 11.8956 585878401 586137601 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 :                                   636.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            807 sec.

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

