/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin307
RA = 205.461, Dec = -20.8901
tmin = 318902401, tmax = 319161601
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='888869', job_status='RUN', time_executed='2021-09-08 09:17:39.430982', time_epoch_executed='1631117859.43' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888869/ft1_4FGL_J1341.8-2053_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888869/ft1_4FGL_J1341.8-2053_daily_bin307.fits outfile=/scratch/kocevski/888869/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin307.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=318902401.0 tmax=319161601.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.45
user 3.19
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.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/888869/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/888869/ltcube_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.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/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits
.....................!
real 14.61
user 14.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/888869/ltcube_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.fits outfile=/scratch/kocevski/888869/expmap_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.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/888869/ltcube_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.fits
.....................!
real 191.64
user 186.20
sys 4.76

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J1341.8-2053 @ 205.461 -20.8901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits scfile=/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits outfile=/scratch/kocevski/888869/cmap_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.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=205.461 yref=-20.8901 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits scfile=/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits outfile=/scratch/kocevski/888869/cmap_HighResolution_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.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=205.461 yref=-20.8901 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888869/Model_4FGL_J1341.8-2053_daily_bin307.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/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits.....................!
real 57.26
user 55.86
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits', '/scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits', expMap='/scratch/kocevski/888869/expmap_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.fits', expCube='/scratch/kocevski/888869/ltcube_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/888869/Model_4FGL_J1341.8-2053_daily_bin307.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1341.8-2053'

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  3.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/888869/ft1_filtered_4FGL_J1341.8-2053_daily_bin307.fits
Spacecraft file(s): /scratch/kocevski/888869/ft2_4FGL_J1341.8-2053_daily_bin307.fits
Exposure map: /scratch/kocevski/888869/expmap_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.fits
Exposure cube: /scratch/kocevski/888869/ltcube_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/888869/Model_4FGL_J1341.8-2053_daily_bin307.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) = 6759.88568783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    215.78       1.0000         .10000E-03   10000.    
     2 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .82286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .83658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.381       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.9402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8046       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6759.880     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2835 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     215.82        104.48        .24577E-04    .64300E-04
   2  norm          .10000E-03    12.112       -.65601E-05** at limit **
   3  norm          .10001E-03    7.8804       -.23598E-05** at limit **
   4  Prefactor     .10000E-03    2.6325        .13146E-05** at limit **
   5  norm          .82283        2.3783       -.10479E-05   -.13999E-02
   6  Prefactor     .10000E-03    3.8527       -.26099E-05** at limit **
   7  Prefactor     .10000E-03    9.4216        .53364E-05** at limit **
   8  norm          .10000E-03    2.6125       -.13597E-05** at limit **
   9  norm          .84090        3.9563       -.38592E-06   -.16722E-03
  10  Prefactor     .10000E-03    18.463        .29321E-05** at limit **
  11  Prefactor     14.078        19.802       -.33963E-06   -.92962E-05
  12  Prefactor     .10000E-03    5.6488       -.33952E-06** at limit **
  13  Prefactor     24.381        15.708        .21084E-06   -.74727E-04
  14  norm          .10000E-03    4.4851        .42816E-06** at limit **
  15  norm          8.9395        16.181       -.10486E-05   -.37320E-03
  16  Prefactor     .10000E-03    2.2846        .27245E-06** at limit **
  17  Prefactor     .10000E-03    53.037       -.49458E-05** at limit **
  18  norm          .10000E-03    3.7040        .13602E-05** at limit **
  19  Prefactor     .10000E-03    2.9333       -.19039E-07** at limit **
  20  norm          .10000E-03    2.3923        .42648E-07** at limit **
  21  Prefactor     .10000E-03    18.048       -.15680E-05** at limit **
  22  Prefactor     .10000E-03    10.943        .25851E-05** at limit **
  23  Prefactor     .10000E-03    8.0582       -.27172E-05** at limit **
  24  Normalizat    1.8044        .26518       -.85046E-06    .15339E-03
  25  Prefactor     .74819        .11379        .15063E-06    .11651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 215.82
  norm       = 0.0001
  norm       = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.822834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.840905
  Prefactor  = 0.0001
  Prefactor  = 14.0782
  Prefactor  = 0.0001
  Prefactor  = 24.381
  norm       = 0.0001
  norm       = 8.93949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.80435
  Prefactor  = 0.748187
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.880     FROM HESSE     STATUS=OK           415 CALLS     3250 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     215.82        103.88        .13764E-03   -1.2759    
   2  norm          .10000E-03    12.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    8.3606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6271        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .82283        2.3627        .21019E-03   -1.5527    
   6  Prefactor     .10000E-03    3.8530        .15749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6546        .25782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .84090        14.725        .30832E-02   -1.5525    
  10  Prefactor     .10000E-03    18.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.078        19.798        .10675E-03   -1.4957    
  12  Prefactor     .10000E-03    5.6660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.381        15.763        .81125E-04   -1.4720    
  14  norm          .10000E-03    4.5502        .16994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9395        16.243        .67025E-03   -1.5110    
  16  Prefactor     .10000E-03    2.2998        .12132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7068        .15451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9832        .13741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3970        .12419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.0561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8044        .31912        .31518E-03   -.69550    
  25  Prefactor     .74819        .13678        .20109E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31064e-09
Minuit parameter uncertainties:
  1  103.973
  2  3.19424e-06
  3  0.0005947
  4  5.17397e-05
  5  2.36294
  6  2.05941e-06
  7  1.33206e-05
  8  1.07827e-05
  9  7.03936
  10  2.01452e-05
  11  19.8068
  12  3.15759e-06
  13  15.7661
  14  1.16189e-06
  15  16.2511
  16  2.40425e-06
  17  3.34654e-05
  18  5.92826e-07
  19  3.30108e-06
  20  9.86488e-07
  21  1.63855e-06
  22  7.07709e-07
  23  1.3691e-06
  24  0.319489
  25  0.13684
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.438e+01  1.577e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.482e-01  1.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.804e+00  3.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 205.461 -20.890
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 8.13e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.91e-05

TS (Fixed Index): 3.95
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 2.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888869/likelihoodResults_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.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) = 6759.87611391
delta logL = 0.00378219619688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6759.87485752
delta logL = 0.00503859075707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.854       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8137       1.0000          .0000       10.000    
     3 'Normalizat'    1.7932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   6759.875     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      260 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.853        16.956        .82015E-04    .40013E-03
   2  Index         2.8134        .84769        .82964E-02    .87638E-04
   3  Normalizat    1.7936        .33252        .31588E-03   -.13116E-03
   4  Prefactor     .75127        .13914        .20072E-03   -.26447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8532
  Index      = 2.81341
  Normalizat = 1.7936
  Prefactor  = 0.751265
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.875     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.853        16.425        .16403E-04   -1.4731    
   2  Index         2.8134        .81903        .33186E-03   -.45261    
   3  Normalizat    1.7936        .33219        .63176E-04   -.69831    
   4  Prefactor     .75127        .13902        .40143E-04   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15624e-10
Minuit parameter uncertainties:
  1  16.4277
  2  0.823629
  3  0.332612
  4  0.139081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888869': 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) = 6759.87485677
delta logL = 0.00503934087465

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.385e+01  1.643e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.813e+00  8.236e-01  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.513e-01  1.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.794e+00  3.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 2.81 +/- 0.82
Photon Flux (Free Index): 1.35e-07 +/- 1.19e-07
Energy Flux (Free Index): 2.99e-05 +/- 1.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/888869/cmap_HighResolution_318902401_319161601_4FGL_J1341.8-2053_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-02', comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='2.99e-05', photon_flux_error='8.13e-08', dlogl='5.04e-03', energy_flux='2.96e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-08 09:29:46.152980', photon_index_error2='0.82', photon_index2='2.81', ts='3.95', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='2.85e-07', energy_flux_error2='1.89e-05', EG='1.80', time_epoch_completed='1631118586.15', return_code='0', job_id='888869', GAL2='0.75', EG2='1.79', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='1.19e-07', ts2='3.97', photon_index='2.73' WHERE bin_id='307' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:29:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 888869: <4FGL_J1341.8-2053_daily_bin307> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin307> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:33 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:15:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 09:15:57 2021
Terminated at Wed Sep  8 09:29:46 2021
Results reported at Wed Sep  8 09:29:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin307 205.461 -20.8901 318902401 319161601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1341.8-2053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            853 sec.

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

