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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin28
RA = 204.732, Dec = 11.8956
tmin = 246585601, tmax = 246844801
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='838859', job_status='RUN', time_executed='2021-09-08 06:49:19.657634', time_epoch_executed='1631108959.66' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838859

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838859/ft1_4FGL_J1338.9+1153_daily_bin28.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838859/ft2_4FGL_J1338.9+1153_daily_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838859/ft1_4FGL_J1338.9+1153_daily_bin28.fits outfile=/scratch/kocevski/838859/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin28.fits ra=204.732 dec=11.8956 rad=12.0 tmin=246585601.0 tmax=246844801.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 1.47
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838859/ft1_filtered_4FGL_J1338.9+1153_daily_bin28.fits" evtable="EVENTS" scfile=/scratch/kocevski/838859/ft2_4FGL_J1338.9+1153_daily_bin28.fits sctable="SC_DATA" outfile=/scratch/kocevski/838859/ltcube_246585601_246844801_4FGL_J1338.9+1153_daily_bin28.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/838859/ft2_4FGL_J1338.9+1153_daily_bin28.fits
.....................!
real 18.11
user 17.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838859/ft1_filtered_4FGL_J1338.9+1153_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/838859/ft2_4FGL_J1338.9+1153_daily_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/838859/ltcube_246585601_246844801_4FGL_J1338.9+1153_daily_bin28.fits outfile=/scratch/kocevski/838859/expmap_246585601_246844801_4FGL_J1338.9+1153_daily_bin28.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/838859/ltcube_246585601_246844801_4FGL_J1338.9+1153_daily_bin28.fits
.....................!
real 191.39
user 186.58
sys 4.21

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/838859/ft1_filtered_4FGL_J1338.9+1153_daily_bin28.fits scfile=/scratch/kocevski/838859/ft2_4FGL_J1338.9+1153_daily_bin28.fits outfile=/scratch/kocevski/838859/cmap_246585601_246844801_4FGL_J1338.9+1153_daily_bin28.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1385       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.687       1.0000         .10000E-03   10000.    
     7 'norm      '    12.890       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.782       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6710       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1568       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9850       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0580       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0360       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=   9353.608     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1629 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.257        20.470        .97131E-06    .11544E-03
   2  Prefactor     .10000E-03    2.5779       -.25451E-06** at limit **
   3  Prefactor     5.1394        7.9282        .71742E-07   -.56123E-04
   4  norm          .10000E-03    3.5739        .16348E-06** at limit **
   5  Prefactor     8.6038        9.3801        .71891E-07   -.41063E-04
   6  Prefactor     43.684        30.325       -.13040E-05   -.19249E-03
   7  norm          12.888        6.9598        .28606E-06   -.50762E-03
   8  Prefactor     54.869        39.930       -.15969E-05   -.17001E-03
   9  Prefactor     .10000E-03    2.6563        .23311E-06** at limit **
  10  Prefactor     18.780        19.888       -.13969E-05   -.19214E-03
  11  Prefactor     1.6718        3.1536        .22742E-06   -.33269E-03
  12  Prefactor     .10000E-03    5.0889        .41061E-06** at limit **
  13  Prefactor     2.1581        6.6909        .32548E-06   -.17252E-03
  14  Prefactor     1.2720        12.517        .13881E-05   -.17758E-03
  15  Prefactor     6.9843        13.026       -.48568E-06   -.71574E-04
  16  Prefactor     .10000E-03    13.286        .80920E-06** at limit **
  17  Prefactor     1.0590        3.4449        .10588E-05   -.41648E-03
  18  Normalizat    1.0326        .15541        .10115E-06   -.93393E-04
  19  Prefactor     1.0360        .12447       -.11560E-06   -.85216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2568
  Prefactor  = 0.0001
  Prefactor  = 5.13942
  norm       = 0.0001
  Prefactor  = 8.60382
  Prefactor  = 43.6845
  norm       = 12.8881
  Prefactor  = 54.8693
  Prefactor  = 0.0001
  Prefactor  = 18.7798
  Prefactor  = 1.67182
  Prefactor  = 0.0001
  Prefactor  = 2.15807
  Prefactor  = 1.27203
  Prefactor  = 6.98425
  Prefactor  = 0.0001
  Prefactor  = 1.059
  Normalizat = 1.03264
  Prefactor  = 1.03597
 **********
 **   18 **HESSE 
 **********

 FCN=   9353.608     FROM HESSE     STATUS=OK           270 CALLS     1899 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.257        20.621        .99339E-04   -1.4901    
   2  Prefactor     .10000E-03    2.5954        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1394        7.9528        .17735E-03   -1.5255    
   4  norm          .10000E-03    3.6278        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6038        9.3993        .13666E-03   -1.5121    
   6  Prefactor     43.684        30.978        .60654E-04   -1.4385    
   7  norm          12.888        7.1741        .55785E-03   -1.4990    
   8  Prefactor     54.869        40.712        .54149E-04   -1.4225    
   9  Prefactor     .10000E-03    2.7776        .30764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.780        20.084        .92418E-04   -1.4841    
  11  Prefactor     1.6718        3.1864        .23099E-03   -1.5449    
  12  Prefactor     .10000E-03    5.1274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1581        6.8120        .28051E-03   -1.5414    
  14  Prefactor     1.2720        13.791        .39495E-03   -1.5482    
  15  Prefactor     6.9843        13.049        .15179E-03   -1.5179    
  16  Prefactor     .10000E-03    13.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0590        3.6500        .33674E-03   -1.5502    
  18  Normalizat    1.0326        .18653        .26484E-03   -.91945    
  19  Prefactor     1.0360        .14946        .21439E-03   -.91540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38897e-10
Minuit parameter uncertainties:
  1  20.6297
  2  1.42295e-05
  3  7.95444
  4  7.46602e-06
  5  9.40088
  6  30.9895
  7  7.17461
  8  40.7327
  9  1.01756e-05
  10  20.0908
  11  3.18673
  12  2.89473e-05
  13  6.81443
  14  8.37894
  15  13.0545
  16  8.54013e-05
  17  3.65072
  18  0.186653
  19  0.149519
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  5.487e+01  4.073e+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.036e+00  1.495e-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.033e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/838859/likelihoodResults_246585601_246844801_4FGL_J1338.9+1153_daily_bin28.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) = 9353.50864144
delta logL = 0.0992935723716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9353.49712924
delta logL = 0.11080576641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.154       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3040       1.0000          .0000       10.000    
     3 'Normalizat'    1.0191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0412       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=   9353.497     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      302 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.123        50.420        .62486E-04   -.28150E-03
   2  Index         2.3037        .67023        .66351E-02   -.10538E-03
   3  Normalizat    1.0190        .18585        .26621E-03    .95063E-04
   4  Prefactor     1.0416        .14913        .21385E-03   -.32871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.1231
  Index      = 2.30366
  Normalizat = 1.01898
  Prefactor  = 1.04159
 **********
 **   18 **HESSE 
 **********

 FCN=   9353.497     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.123        44.157        .12497E-04   -1.4425    
   2  Index         2.3037        .58644        .26540E-03   -.56957    
   3  Normalizat    1.0190        .18511        .10648E-04   -.92397    
   4  Prefactor     1.0416        .14893        .42770E-04   -.91356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67595e-10
Minuit parameter uncertainties:
  1  44.1923
  2  0.588352
  3  0.185227
  4  0.148987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838859': 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) = 9353.49711935
delta logL = 0.110815661656

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  4.112e+01  4.419e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.304e+00  5.884e-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.042e+00  1.490e-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.019e+00  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 204.732 11.896
Photon Index (Free Index): 2.30 +/- 0.59
Photon Flux (Free Index): 4.29e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.25e-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/838859/cmap_HighResolution_246585601_246844801_4FGL_J1338.9+1153_daily_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='1.61e-05', photon_flux_error='2.30e-08', dlogl='1.11e-01', energy_flux='1.97e-05', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-08 06:59:59.670395', photon_index_error2='0.59', photon_index2='2.30', ts='3.42', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.26e-08', energy_flux_error2='1.25e-05', EG='1.03', time_epoch_completed='1631109599.67', return_code='0', job_id='838859', GAL2='1.04', EG2='1.02', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.83e-08', ts2='3.64', photon_index='2.04' WHERE bin_id='28' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:59:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 838859: <4FGL_J1338.9+1153_daily_bin28> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin28 204.732 11.8956 246585601 246844801 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 :                                   638.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            882 sec.

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

