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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1201
RA = 204.732, Dec = 11.8956
tmin = 550627201, tmax = 550886401
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='847796', job_status='RUN', time_executed='2021-09-08 07:14:58.613957', time_epoch_executed='1631110498.61' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847796

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847796/ft1_4FGL_J1338.9+1153_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847796/ft2_4FGL_J1338.9+1153_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847796/ft1_4FGL_J1338.9+1153_daily_bin1201.fits outfile=/scratch/kocevski/847796/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1201.fits ra=204.732 dec=11.8956 rad=12.0 tmin=550627201.0 tmax=550886401.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 4.13
user 3.73
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847796/ft1_filtered_4FGL_J1338.9+1153_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/847796/ft2_4FGL_J1338.9+1153_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/847796/ltcube_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.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/847796/ft2_4FGL_J1338.9+1153_daily_bin1201.fits
.....................!
real 14.73
user 14.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847796/ft1_filtered_4FGL_J1338.9+1153_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/847796/ft2_4FGL_J1338.9+1153_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/847796/ltcube_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.fits outfile=/scratch/kocevski/847796/expmap_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.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/847796/ltcube_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.fits
.....................!
real 193.10
user 186.57
sys 5.35

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/847796/ft1_filtered_4FGL_J1338.9+1153_daily_bin1201.fits scfile=/scratch/kocevski/847796/ft2_4FGL_J1338.9+1153_daily_bin1201.fits outfile=/scratch/kocevski/847796/cmap_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.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.61
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847796/ft1_filtered_4FGL_J1338.9+1153_daily_bin1201.fits scfile=/scratch/kocevski/847796/ft2_4FGL_J1338.9+1153_daily_bin1201.fits outfile=/scratch/kocevski/847796/cmap_HighResolution_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.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.64
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.593       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.324       1.0000         .10000E-03   10000.    
     4 'norm      '    7.4472       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    32.713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1906       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.373       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6926       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.752       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9292       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .74056       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0423       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=   5894.453     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1912 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.127        .71281E-06** at limit **
   2  Prefactor     18.590        15.030        .16455E-06    .12522E-05
   3  Prefactor     28.314        19.559        .11834E-06   -.10278E-04
   4  norm          7.4547        15.211       -.49249E-06    .93940E-07
   5  Prefactor     .10000E-03    24.414       -.12247E-04** at limit **
   6  Prefactor     .10000E-03    47.227       -.23449E-05** at limit **
   7  norm          32.690        24.259        .59585E-06    .70992E-04
   8  Prefactor     12.312        31.324        .49003E-06    .12757E-04
   9  Prefactor     6.1900        3.8340       -.83733E-06    .68292E-03
  10  Prefactor     .10000E-03    9.7132        .23453E-06** at limit **
  11  Prefactor     10.373        5.9448        .18665E-06    .10933E-03
  12  Prefactor     15.640        13.525        .58623E-07    .23518E-05
  13  Prefactor     .10000E-03    9.9580       -.46513E-06** at limit **
  14  Prefactor     .10000E-03    20.720       -.44374E-05** at limit **
  15  Prefactor     7.6363        32.217        .70402E-05    .14324E-03
  16  Prefactor     21.746        32.582        .67982E-06    .46072E-04
  17  Prefactor     9.9324        10.639       -.23461E-06   -.29772E-04
  18  Normalizat    .74086        .20746       -.10249E-05    .13506E-03
  19  Prefactor     1.0421        .15194        .76204E-07   -.43433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.5899
  Prefactor  = 28.3142
  norm       = 7.45474
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 32.6896
  Prefactor  = 12.3117
  Prefactor  = 6.19002
  Prefactor  = 0.0001
  Prefactor  = 10.3729
  Prefactor  = 15.6397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63635
  Prefactor  = 21.7462
  Prefactor  = 9.93238
  Normalizat = 0.740864
  Prefactor  = 1.04213
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.453     FROM HESSE     STATUS=OK           276 CALLS     2188 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.590        15.016        .92886E-04   -1.4845    
   3  Prefactor     28.314        19.616        .75278E-04   -1.4643    
   4  norm          7.4547        15.121        .14696E-03   -1.5162    
   5  Prefactor     .10000E-03    24.390        .33641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          32.690        24.159        .70059E-04   -1.4564    
   8  Prefactor     12.312        31.322        .11415E-03   -1.5006    
   9  Prefactor     6.1900        3.9363        .57174E-03   -1.5210    
  10  Prefactor     .10000E-03    9.7443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.373        5.9423        .12441E-03   -1.5064    
  12  Prefactor     15.640        13.530        .10127E-03   -1.4917    
  13  Prefactor     .10000E-03    9.9873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6363        33.912        .14458E-03   -1.5155    
  16  Prefactor     21.746        32.589        .85882E-04   -1.4775    
  17  Prefactor     9.9324        10.637        .12717E-03   -1.5078    
  18  Normalizat    .74086        .24326        .30241E-03   -1.0230    
  19  Prefactor     1.0421        .18092        .20257E-03   -.91338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2631e-10
Minuit parameter uncertainties:
  1  7.38446e-05
  2  15.0186
  3  19.6205
  4  15.1284
  5  0.000280516
  6  0.000254781
  7  24.1662
  8  31.3642
  9  3.93647
  10  4.92719e-05
  11  5.94265
  12  13.5323
  13  3.81682e-05
  14  0.000187936
  15  32.2149
  16  32.6157
  17  10.6389
  18  0.24362
  19  0.181022
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
518   Normalization:  7.409e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/847796/likelihoodResults_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.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) = 5894.38459239
delta logL = 0.0684551938748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5894.36764481
delta logL = 0.085402774399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5095       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6494       1.0000          .0000       10.000    
     3 'Normalizat'    .73004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       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=   5894.368     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      297 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5102        36.773        .14635E-03    .64243E-04
   2  Index         2.6492        2.0680        .10419E-01    .42000E-04
   3  Normalizat    .72989        .23241        .30451E-03    .10681E-03
   4  Prefactor     1.0457        .18051        .20224E-03    .20918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.51017
  Index      = 2.64923
  Normalizat = 0.729887
  Prefactor  = 1.04568
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.368     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5102        23.139        .58539E-05   -1.5160    
   2  Index         2.6492        1.4686        .41676E-03   -.48947    
   3  Normalizat    .72989        .23052        .12180E-04   -1.0272    
   4  Prefactor     1.0457        .17978        .40448E-04   -.91222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6642e-11
Minuit parameter uncertainties:
  1  23.1662
  2  1.49716
  3  0.230823
  4  0.179887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847796': 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) = 5894.36764455
delta logL = 0.085403038338

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  7.510e+00  2.317e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.649e+00  1.497e+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.046e+00  1.799e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  7.299e-01  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 204.732 11.896

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/847796/cmap_HighResolution_550627201_550886401_4FGL_J1338.9+1153_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-08 07:24:12.575744', job_id='847796', GAL2='1.05', fit_tolerance='1e-08', EG2='0.73', EG='0.74', time_epoch_completed='1631111052.58', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.54e-02', ts2='0.39', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1201' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:24:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 847796: <4FGL_J1338.9+1153_daily_bin1201> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1201 204.732 11.8956 550627201 550886401 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 :                                   538.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            820 sec.

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

