/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 4 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.9+1153_daily_bin171
RA = 204.732, Dec = 11.8956
tmin = 283651201, tmax = 283910401
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='840252', job_status='RUN', time_executed='2021-09-08 06:51:37.522886', time_epoch_executed='1631109097.52' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840252

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840252/ft1_4FGL_J1338.9+1153_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840252/ft2_4FGL_J1338.9+1153_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840252/ft1_4FGL_J1338.9+1153_daily_bin171.fits outfile=/scratch/kocevski/840252/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin171.fits ra=204.732 dec=11.8956 rad=12.0 tmin=283651201.0 tmax=283910401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.31
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840252/ft1_filtered_4FGL_J1338.9+1153_daily_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/840252/ft2_4FGL_J1338.9+1153_daily_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/840252/ltcube_283651201_283910401_4FGL_J1338.9+1153_daily_bin171.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/840252/ft2_4FGL_J1338.9+1153_daily_bin171.fits
.....................!
real 14.63
user 14.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840252/ft1_filtered_4FGL_J1338.9+1153_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/840252/ft2_4FGL_J1338.9+1153_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/840252/ltcube_283651201_283910401_4FGL_J1338.9+1153_daily_bin171.fits outfile=/scratch/kocevski/840252/expmap_283651201_283910401_4FGL_J1338.9+1153_daily_bin171.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/840252/ltcube_283651201_283910401_4FGL_J1338.9+1153_daily_bin171.fits
.....................!
real 192.33
user 185.52
sys 6.04

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/840252/ft1_filtered_4FGL_J1338.9+1153_daily_bin171.fits scfile=/scratch/kocevski/840252/ft2_4FGL_J1338.9+1153_daily_bin171.fits outfile=/scratch/kocevski/840252/cmap_283651201_283910401_4FGL_J1338.9+1153_daily_bin171.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.58
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.384       1.0000         .10000E-03   10000.    
     4 'norm      '    9.7111       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.236       1.0000         .10000E-03   10000.    
     7 'norm      '    21.035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5883       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4207       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .68917       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=   6664.944     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1623 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.680       -.43932E-06** at limit **
   2  Prefactor     .10000E-03    7.6860       -.12028E-07** at limit **
   3  Prefactor     26.380        15.591       -.94285E-07   -.17535E-04
   4  norm          9.7107        9.8628        .20199E-05   -.82403E-04
   5  Prefactor     .10000E-03    12.304       -.54462E-07** at limit **
   6  Prefactor     12.224        46.854       -.45054E-06   -.22617E-04
   7  norm          21.034        12.563       -.84754E-06    .19915E-05
   8  Prefactor     77.677        50.645       -.13309E-06   -.31430E-04
   9  Prefactor     .10000E-03    1.4643        .52117E-07** at limit **
  10  Prefactor     43.259        25.217       -.55679E-07   -.19861E-04
  11  Prefactor     .10000E-03    1.1298        .30988E-08** at limit **
  12  Prefactor     .10000E-03    3.4871        .18667E-08** at limit **
  13  Prefactor     18.682        15.215       -.52386E-07   -.18075E-04
  14  Prefactor     9.5877        12.232        .11617E-06   -.47238E-05
  15  Prefactor     2.7326        42.474        .88554E-06   -.10890E-04
  16  Prefactor     .10000E-03    21.685        .69066E-06** at limit **
  17  Prefactor     .10000E-03    3.3166       -.24914E-07** at limit **
  18  Normalizat    1.4209        .20074        .55470E-06   -.48212E-04
  19  Prefactor     .68905        .14910       -.75558E-06    .28463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3805
  norm       = 9.71072
  Prefactor  = 0.0001
  Prefactor  = 12.2243
  norm       = 21.0344
  Prefactor  = 77.677
  Prefactor  = 0.0001
  Prefactor  = 43.2593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6825
  Prefactor  = 9.58767
  Prefactor  = 2.73261
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.42086
  Prefactor  = 0.689046
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.944     FROM HESSE     STATUS=OK           266 CALLS     1889 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.380        15.668        .77991E-04   -1.4680    
   4  norm          9.7107        9.9243        .64296E-03   -1.5085    
   5  Prefactor     .10000E-03    12.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.224        46.915        .11452E-03   -1.5009    
   7  norm          21.034        12.561        .87331E-04   -1.4790    
   8  Prefactor     77.677        50.668        .22781E-03   -1.3943    
   9  Prefactor     .10000E-03    1.4745        .96435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.259        25.231        .60951E-04   -1.4392    
  11  Prefactor     .10000E-03    1.1318        .84739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4910        .14889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.682        15.301        .92656E-04   -1.4843    
  14  Prefactor     9.5877        12.226        .12942E-03   -1.5089    
  15  Prefactor     2.7326        42.508        .24615E-03   -1.5377    
  16  Prefactor     .10000E-03    21.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3272        .14518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4209        .24170        .24169E-03   -.80027    
  19  Prefactor     .68905        .17731        .25359E-03   -1.0396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92177e-11
Minuit parameter uncertainties:
  1  0.000226603
  2  5.84042e-06
  3  15.6701
  4  9.92598
  5  1.85202e-05
  6  47.0566
  7  12.5629
  8  50.6963
  9  2.57912e-07
  10  25.2371
  11  2.29934e-07
  12  8.39543e-08
  13  15.3043
  14  12.2293
  15  21.5731
  16  0.000214257
  17  4.02396e-07
  18  0.241891
  19  0.177452
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  7.768e+01  5.070e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  6.890e-01  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:  1.421e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 4.40e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.82e-05

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) = 6663.62981244
delta logL = 1.31376125864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6663.59423237
delta logL = 1.34934133256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.136       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2698       1.0000          .0000       10.000    
     3 'Normalizat'    1.4422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68734       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=   6663.594     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      229 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.136        63.160        .10760E-02   -.37241E-03
   2  Index         1.2698        .37311        .21577       -.63709E-04
   3  Normalizat    1.4423        .19157        .54310E-01    .39958E-06
   4  Prefactor     .68724        .14632        .42232E-01    .22968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.1357
  Index      = 1.26979
  Normalizat = 1.44228
  Prefactor  = 0.68724
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.594     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.136        73.369        .43040E-04   -1.3838    
   2  Index         1.2698        .46968        .87588E-02   -.84210    
   3  Normalizat    1.4423        .22964        .24013E-03   -.79414    
   4  Prefactor     .68724        .17575        .25394E-03   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02118e-09
Minuit parameter uncertainties:
  1  73.4452
  2  0.471251
  3  0.229803
  4  0.175888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840252': 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) = 6663.59423221
delta logL = 1.34934149617

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.714e+01  7.345e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.270e+00  4.713e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  6.872e-01  1.759e-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.442e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.75
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.27 +/- 0.47
Photon Flux (Free Index): 1.46e-08 +/- 1.53e-08
Energy Flux (Free Index): 9.81e-05 +/- 9.86e-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/840252/cmap_HighResolution_283651201_283910401_4FGL_J1338.9+1153_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.40e-08', energy_flux2='9.81e-05', photon_flux_error='2.87e-08', dlogl='1.35e+00', energy_flux='2.79e-05', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-08 07:00:08.452297', photon_index_error2='0.47', photon_index2='1.27', ts='7.06', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='9.86e-05', EG='1.42', time_epoch_completed='1631109608.45', return_code='0', job_id='840252', GAL2='0.69', EG2='1.44', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.53e-08', ts2='9.75', photon_index='2.04' WHERE bin_id='171' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:00:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 840252: <4FGL_J1338.9+1153_daily_bin171> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 06:50:19 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:51:25 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:51:25 2021
Terminated at Wed Sep  8 07:00:09 2021
Results reported at Wed Sep  8 07:00:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin171 204.732 11.8956 283651201 283910401 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 :                                   506.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             343.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            590 sec.

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

