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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1318
RA = 204.732, Dec = 11.8956
tmin = 580953601, tmax = 581212801
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='847965', job_status='RUN', time_executed='2021-09-08 07:14:24.451215', time_epoch_executed='1631110464.45' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847965/ft1_4FGL_J1338.9+1153_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847965/ft2_4FGL_J1338.9+1153_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847965/ft1_4FGL_J1338.9+1153_daily_bin1318.fits outfile=/scratch/kocevski/847965/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1318.fits ra=204.732 dec=11.8956 rad=12.0 tmin=580953601.0 tmax=581212801.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.65
user 2.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847965/ft2_4FGL_J1338.9+1153_daily_bin1318.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/847965/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/847965/ft1_filtered_4FGL_J1338.9+1153_daily_bin1318.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.68
user 0.29
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847965/ft1_filtered_4FGL_J1338.9+1153_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/847965/ft2_4FGL_J1338.9+1153_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/847965/ltcube_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.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/847965/ft2_4FGL_J1338.9+1153_daily_bin1318.fits
.....................!
real 13.51
user 12.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847965/ft1_filtered_4FGL_J1338.9+1153_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/847965/ft2_4FGL_J1338.9+1153_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/847965/ltcube_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.fits outfile=/scratch/kocevski/847965/expmap_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.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/847965/ltcube_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.fits
.....................!
real 160.40
user 151.40
sys 8.32

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.9+1153 @ 204.732 11.8956

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/847965/ft1_filtered_4FGL_J1338.9+1153_daily_bin1318.fits scfile=/scratch/kocevski/847965/ft2_4FGL_J1338.9+1153_daily_bin1318.fits outfile=/scratch/kocevski/847965/cmap_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.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.89
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847965/ft1_filtered_4FGL_J1338.9+1153_daily_bin1318.fits scfile=/scratch/kocevski/847965/ft2_4FGL_J1338.9+1153_daily_bin1318.fits outfile=/scratch/kocevski/847965/cmap_HighResolution_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.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.59
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86276E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    26.069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .87895       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.416       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.701       1.0000         .10000E-03   10000.    
    16 'Prefactor '    107.07       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93461       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0745       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=   6839.433     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1864 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.330       -.60924E-06** at limit **
   2  Prefactor     .10000E-03    13.497       -.75066E-06** at limit **
   3  Prefactor     .10002E-03    4.8310       -.34982E-06** at limit **
   4  norm          26.066        7.8827       -.40397E-06    .34529E-04
   5  Prefactor     .10000E-03    10.960       -.10808E-05** at limit **
   6  Prefactor     .10000E-03    8.6113        .11277E-07** at limit **
   7  norm          .10000E-03    4.4529       -.19028E-07** at limit **
   8  Prefactor     57.031        52.282       -.26870E-04   -.39432E-04
   9  Prefactor     1.2927        1.3698        .39252E-06   -.27203E-02
  10  Prefactor     .10000E-03    45.041       -.71513E-06** at limit **
  11  Prefactor     .88168        2.7979        .81571E-06    .57708E-03
  12  Prefactor     18.411        15.031        .21453E-06   -.20785E-04
  13  Prefactor     .10000E-03    6.1494       -.33142E-07** at limit **
  14  Prefactor     .10000E-03    12.062        .15862E-05** at limit **
  15  Prefactor     67.688        38.970       -.10099E-04   -.27461E-04
  16  Prefactor     107.06        57.736       -.99688E-05   -.19025E-04
  17  Prefactor     .10000E-03    3.9327        .15347E-06** at limit **
  18  Normalizat    .93465        .19342        .41708E-05   -.55961E-04
  19  Prefactor     1.0745        .15161        .51589E-06    .10156E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 26.0662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.0309
  Prefactor  = 1.29269
  Prefactor  = 0.0001
  Prefactor  = 0.881678
  Prefactor  = 18.4111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.6881
  Prefactor  = 107.056
  Prefactor  = 0.0001
  Normalizat = 0.934648
  Prefactor  = 1.07448
 **********
 **   18 **HESSE 
 **********

 FCN=   6839.433     FROM HESSE     STATUS=OK           264 CALLS     2128 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    44.285        .35173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.066        7.9041        .78460E-04   -1.4686    
   5  Prefactor     .10000E-03    11.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.5050        .17023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.031        52.280        .53109E-04   -1.4196    
   9  Prefactor     1.2927        6.5573        .19323E-02   -1.5481    
  10  Prefactor     .10000E-03    45.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .88168        2.8052        .23607E-03   -1.5520    
  12  Prefactor     18.411        15.001        .93330E-04   -1.4850    
  13  Prefactor     .10000E-03    6.1982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     67.688        39.011        .48781E-04   -1.4061    
  16  Prefactor     107.06        57.728        .19433E-03   -1.3635    
  17  Prefactor     .10000E-03    3.9669        .16015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .93465        .22863        .28527E-03   -.95253    
  19  Prefactor     1.0745        .17738        .21569E-03   -.90287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93833e-08
Minuit parameter uncertainties:
  1  3.1271e-05
  2  0.00010953
  3  0.00187547
  4  7.90442
  5  1.83767e-05
  6  2.93849e-06
  7  1.35835e-05
  8  52.3218
  9  5.82366
  10  5.97819e-05
  11  2.80566
  12  15.0045
  13  2.7451e-05
  14  5.84201e-06
  15  39.0254
  16  57.7578
  17  2.69375e-05
  18  0.228869
  19  0.177479
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  5.703e+01  5.232e+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.074e+00  1.775e-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.346e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.88e-05

TS (Fixed Index): 1.95
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847965/likelihoodResults_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.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) = 6838.87744
delta logL = 0.555817274477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.85365747
delta logL = 0.579599805857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.487       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0959       1.0000          .0000       10.000    
     3 'Normalizat'    .94742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0794       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=   6838.854     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.242        80.535        .31893E-03   -.96958E-05
   2  Index         1.0937        .98283        .12519E-02   -.13985E-05
   3  Normalizat    .94769        .21837        .28335E-03    .12899E-03
   4  Prefactor     1.0792        .17764        .21535E-03   -.41636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.242
  Index      = 1.09365
  Normalizat = 0.947687
  Prefactor  = 1.07919
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.854     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.242        81.377        .12757E-04   -1.4454    
   2  Index         1.0937        .99280        .50077E-04   -.89670    
   3  Normalizat    .94769        .21860        .11334E-04   -.94804    
   4  Prefactor     1.0792        .17784        .43069E-04   -.90134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06604e-09
Minuit parameter uncertainties:
  1  81.609
  2  1.01035
  3  0.218803
  4  0.177939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847965': 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) = 6838.85365171
delta logL = 0.579605559284

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  3.924e+01  8.161e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.094e+00  1.010e+00  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.079e+00  1.779e-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.477e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.09 +/- 1.01
Photon Flux (Free Index): 6.13e-09 +/- 1.30e-08
Energy Flux (Free Index): 6.95e-05 +/- 9.43e-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/847965/cmap_HighResolution_580953601_581212801_4FGL_J1338.9+1153_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='6.95e-05', photon_flux_error='2.96e-08', dlogl='5.80e-01', energy_flux='2.05e-05', photon_flux2='6.13e-09', job_status='DONE', time_completed='2021-09-08 07:23:01.045585', photon_index_error2='1.01', photon_index2='1.09', ts='1.95', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='9.43e-05', EG='0.93', time_epoch_completed='1631110981.05', return_code='0', job_id='847965', GAL2='1.08', EG2='0.95', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='1.30e-08', ts2='3.10', photon_index='2.04' WHERE bin_id='1318' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:23:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 847965: <4FGL_J1338.9+1153_daily_bin1318> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1318> 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) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:11:58 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:58 2021
Terminated at Wed Sep  8 07:23:01 2021
Results reported at Wed Sep  8 07:23:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1318 204.732 11.8956 580953601 581212801 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            737 sec.

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

