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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1420
RA = 205.461, Dec = -20.8901
tmin = 607392001, tmax = 607651201
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='894803', job_status='RUN', time_executed='2021-09-08 09:37:18.090507', time_epoch_executed='1631119038.09' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894803/ft1_4FGL_J1341.8-2053_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894803/ft1_4FGL_J1341.8-2053_daily_bin1420.fits outfile=/scratch/kocevski/894803/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1420.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=607392001.0 tmax=607651201.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 5.28
user 5.01
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.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/894803/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1420.fits evtable="EVENTS" outfile="/scratch/kocevski/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/894803/ltcube_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.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/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits
.....................!
real 14.03
user 13.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/894803/ltcube_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.fits outfile=/scratch/kocevski/894803/expmap_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.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/894803/ltcube_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.fits
.....................!
real 190.94
user 185.59
sys 4.97

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/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits scfile=/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits outfile=/scratch/kocevski/894803/cmap_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits scfile=/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits outfile=/scratch/kocevski/894803/cmap_HighResolution_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.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/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894803/Model_4FGL_J1341.8-2053_daily_bin1420.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/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits.....................!
real 50.42
user 46.10
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits', '/scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits', expMap='/scratch/kocevski/894803/expmap_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.fits', expCube='/scratch/kocevski/894803/ltcube_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/894803/Model_4FGL_J1341.8-2053_daily_bin1420.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/894803/ft1_filtered_4FGL_J1341.8-2053_daily_bin1420.fits
Spacecraft file(s): /scratch/kocevski/894803/ft2_4FGL_J1341.8-2053_daily_bin1420.fits
Exposure map: /scratch/kocevski/894803/expmap_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.fits
Exposure cube: /scratch/kocevski/894803/ltcube_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/894803/Model_4FGL_J1341.8-2053_daily_bin1420.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) = 5225.99369657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.418       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2750       1.0000         .10000E-03   10000.    
     3 'norm      '    .13833E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0299       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6030       1.0000         .10000E-03   10000.    
    14 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23237E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2047       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.774       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4490       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88661       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=   5225.993     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2855 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.605        167.67        .12677E-05    .69154E-04
   2  norm          4.2650        16.189        .18381E-05   -.33720E-04
   3  norm          .10000E-03    4.6016        .37486E-05** at limit **
   4  Prefactor     .10000E-03    3.3234        .20630E-05** at limit **
   5  norm          .10000E-03    1.0963        .14128E-06** at limit **
   6  Prefactor     .10000E-03    4.8978       -.71407E-07** at limit **
   7  Prefactor     .10000E-03    23.035       -.30279E-06** at limit **
   8  norm          .10000E-03    3.4641       -.10540E-06** at limit **
   9  norm          23.132        11.633        .21363E-06   -.43480E-04
  10  Prefactor     .10000E-03    7.2623       -.53437E-06** at limit **
  11  Prefactor     4.0233        33.354       -.12677E-05   -.23052E-04
  12  Prefactor     .10000E-03    4.4374       -.58408E-07** at limit **
  13  Prefactor     3.6086        13.457        .12957E-04   -.11898E-04
  14  norm          .10000E-03    2.4046       -.17382E-06** at limit **
  15  norm          .10000E-03    9.7580       -.39250E-08** at limit **
  16  Prefactor     .10000E-03    6.0933        .24427E-06** at limit **
  17  Prefactor     .10000E-03    97.171       -.37778E-06** at limit **
  18  norm          .10000E-03    6.7899       -.43584E-07** at limit **
  19  Prefactor     7.2040        5.7853        .14199E-06   -.38184E-04
  20  norm          .10000E-03    3.0234       -.26831E-07** at limit **
  21  Prefactor     60.792        77.007        .72627E-06    .19675E-04
  22  Prefactor     .10000E-03    26.435       -.22017E-07** at limit **
  23  Prefactor     .10000E-03    48.311       -.62055E-06** at limit **
  24  Normalizat    1.4482        .30660        .88774E-06   -.16260E-03
  25  Prefactor     .88706        .12963       -.19862E-05   -.80945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6052
  norm       = 4.26497
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.1317
  Prefactor  = 0.0001
  Prefactor  = 4.02328
  Prefactor  = 0.0001
  Prefactor  = 3.60864
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.20401
  norm       = 0.0001
  Prefactor  = 60.7917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44815
  Prefactor  = 0.887065
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.993     FROM HESSE     STATUS=OK           413 CALLS     3268 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.605        163.23        .98846E-04   -1.4893    
   2  norm          4.2650        16.163        .19486E-03   -1.5295    
   3  norm          .10000E-03    4.6053        .15111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3330        .12860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0989        .73915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9035        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4911        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.132        11.531        .83271E-04   -1.4746    
  10  Prefactor     .10000E-03    7.2799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0233        33.341        .20087E-03   -1.5307    
  12  Prefactor     .10000E-03    4.4420        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6086        13.529        .10644E-02   -1.5328    
  14  norm          .10000E-03    2.4097        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.7585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.137        .33429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    97.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2040        5.7825        .14810E-03   -1.5171    
  20  norm          .10000E-03    3.0266        .12273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.792        76.988        .51468E-04   -1.4147    
  22  Prefactor     .10000E-03    26.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4482        .35904        .34700E-03   -.79246    
  25  Prefactor     .88706        .15310        .18771E-03   -.96595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91831e-10
Minuit parameter uncertainties:
  1  104.496
  2  16.1793
  3  3.77586e-06
  4  1.8074e-06
  5  3.43268e-07
  6  2.24399e-07
  7  4.54915e-05
  8  3.12449e-06
  9  11.5325
  10  6.76523e-05
  11  23.1811
  12  2.01748e-06
  13  13.5402
  14  7.22991e-06
  15  1.75746e-06
  16  0.000441005
  17  0.00019007
  18  3.53569e-06
  19  5.78295
  20  3.18112e-07
  21  77.1143
  22  5.28861e-05
  23  6.45206e-06
  24  0.359674
  25  0.153169
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  3.609e+00  1.354e+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:  8.871e-01  1.532e-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.448e+00  3.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/894803/likelihoodResults_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.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) = 5225.99226982
delta logL = 0.000238059217736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5225.99223369
delta logL = 0.000274189842457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5352       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7827       1.0000          .0000       10.000    
     3 'Normalizat'    1.4472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88731       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5225.992     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      282 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5353        14.157        .10749E-02   -.96887E-04
   2  Index         2.7853        2.2926        .13511E-01    .21314E-05
   3  Normalizat    1.4473        .34830        .34709E-03    .60923E-05
   4  Prefactor     .88733        .15164        .18769E-03    .16355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.53529
  Index      = 2.78533
  Normalizat = 1.44728
  Prefactor  = 0.887334
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.992     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5353        13.678        .42998E-04   -1.5332    
   2  Index         2.7853        2.2253        .54043E-03   -.45887    
   3  Normalizat    1.4473        .34871        .13884E-04   -.79271    
   4  Prefactor     .88733        .15174        .75075E-05   -.96585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92407e-11
Minuit parameter uncertainties:
  1  13.6905
  2  2.32858
  3  0.349292
  4  0.15181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894803': 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) = 5225.99223259
delta logL = 0.000275285012322

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  3.535e+00  1.369e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.785e+00  2.329e+00  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:  8.873e-01  1.518e-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.447e+00  3.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 205.461 -20.890

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/894803/cmap_HighResolution_607392001_607651201_4FGL_J1341.8-2053_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', job_status='DONE', photon_flux_upper_limit='1.97e-07', time_completed='2021-09-08 09:50:31.003024', job_id='894803', GAL2='0.89', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631119831.0', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.75e-04', ts2='0.08', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1420' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 894803: <4FGL_J1341.8-2053_daily_bin1420> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin1420> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:35:37 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:36:20 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:36:20 2021
Terminated at Wed Sep  8 09:50:31 2021
Results reported at Wed Sep  8 09:50:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1420 205.461 -20.8901 607392001 607651201 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 :                                   632.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            894 sec.

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

