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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin520
RA = 205.461, Dec = -20.8901
tmin = 374112001, tmax = 374371201
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='889160', job_status='RUN', time_executed='2021-09-08 09:18:07.589752', time_epoch_executed='1631117887.59' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889160/ft1_4FGL_J1341.8-2053_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889160/ft2_4FGL_J1341.8-2053_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889160/ft1_4FGL_J1341.8-2053_daily_bin520.fits outfile=/scratch/kocevski/889160/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin520.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=374112001.0 tmax=374371201.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.47
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889160/ft2_4FGL_J1341.8-2053_daily_bin520.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/889160/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin520.fits evtable="EVENTS" outfile="/scratch/kocevski/889160/ft1_filtered_4FGL_J1341.8-2053_daily_bin520.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889160/ft1_filtered_4FGL_J1341.8-2053_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/889160/ft2_4FGL_J1341.8-2053_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/889160/ltcube_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.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/889160/ft2_4FGL_J1341.8-2053_daily_bin520.fits
.....................!
real 14.88
user 14.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889160/ft1_filtered_4FGL_J1341.8-2053_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/889160/ft2_4FGL_J1341.8-2053_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/889160/ltcube_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.fits outfile=/scratch/kocevski/889160/expmap_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.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/889160/ltcube_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.fits
.....................!
real 193.21
user 188.52
sys 4.23

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/889160/ft1_filtered_4FGL_J1341.8-2053_daily_bin520.fits scfile=/scratch/kocevski/889160/ft2_4FGL_J1341.8-2053_daily_bin520.fits outfile=/scratch/kocevski/889160/cmap_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889160/ft1_filtered_4FGL_J1341.8-2053_daily_bin520.fits scfile=/scratch/kocevski/889160/ft2_4FGL_J1341.8-2053_daily_bin520.fits outfile=/scratch/kocevski/889160/cmap_HighResolution_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889160/ft1_filtered_4FGL_J1341.8-2053_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/889160/ft2_4FGL_J1341.8-2053_daily_bin520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889160/Model_4FGL_J1341.8-2053_daily_bin520.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/889160/ft1_filtered_4FGL_J1341.8-2053_daily_bin520.fits.....................!
real 61.69
user 60.31
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33101E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9790       1.0000         .10000E-03   10000.    
     3 'norm      '    14.953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.159       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6597       1.0000         .10000E-03   10000.    
     9 'norm      '    5.4027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.356       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8139       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.154       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9822       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3480       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98599       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=   7544.484     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2917 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    827.81        .22286E-04** at limit **
   2  norm          5.9790        9.5916        .11728E-05   -.14844E-03
   3  norm          14.939        7.3763       -.11158E-05   -.17208E-02
   4  Prefactor     .10000E-03    1.8845       -.49037E-07** at limit **
   5  norm          .10000E-03    .79629       -.39268E-07** at limit **
   6  Prefactor     .69118        7.1009        .48574E-06   -.12570E-03
   7  Prefactor     24.151        30.782        .12715E-05    .10036E-03
   8  norm          7.6605        6.4141       -.89915E-07    .15296E-03
   9  norm          5.4030        10.718       -.75627E-06    .13494E-04
  10  Prefactor     6.7321        17.800        .82439E-06   -.23306E-05
  11  Prefactor     29.328        23.369       -.10084E-05   -.38466E-04
  12  Prefactor     4.9438        8.2279        .68918E-07    .18124E-04
  13  Prefactor     .10000E-03    14.774        .12081E-06** at limit **
  14  norm          .10000E-03    10.611        .16076E-05** at limit **
  15  norm          2.5692        19.714        .54426E-05   -.57463E-04
  16  Prefactor     2.4060        4.9342        .56365E-05   -.40726E-03
  17  Prefactor     59.390        57.662       -.50678E-05   -.60631E-04
  18  norm          .10000E-03    7.4504       -.68659E-07** at limit **
  19  Prefactor     3.8139        3.7960        .10736E-06    .34234E-04
  20  norm          .10000E-03    2.0913        .68965E-07** at limit **
  21  Prefactor     61.169        61.621       -.13701E-05   -.74179E-05
  22  Prefactor     .10000E-03    58.412        .17344E-06** at limit **
  23  Prefactor     6.9845        26.512        .25081E-06    .25974E-05
  24  Normalizat    1.3479        .27042       -.11491E-06   -.10577E-03
  25  Prefactor     .98599        .11764       -.49321E-06   -.38414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 5.97904
  norm       = 14.9386
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.691185
  Prefactor  = 24.151
  norm       = 7.66052
  norm       = 5.40302
  Prefactor  = 6.73208
  Prefactor  = 29.3282
  Prefactor  = 4.9438
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 2.56924
  Prefactor  = 2.40597
  Prefactor  = 59.3898
  norm       = 0.0001
  Prefactor  = 3.81385
  norm       = 0.0001
  Prefactor  = 61.1687
  Prefactor  = 0.0001
  Prefactor  = 6.9845
  Normalizat = 1.34788
  Prefactor  = 0.98599
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.484     FROM HESSE     STATUS=OK           431 CALLS     3348 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    840.10        .42696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9790        9.5925        .82108E-03   -1.5219    
   3  norm          14.939        7.4989        .10358E-03   -1.4935    
   4  Prefactor     .10000E-03    1.8876        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .80014        .75685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .69118        24.407        .43568E-02   -1.5542    
   7  Prefactor     24.151        30.752        .81496E-04   -1.4725    
   8  norm          7.6605        6.3929        .14288E-03   -1.5154    
   9  norm          5.4030        10.607        .17289E-03   -1.5243    
  10  Prefactor     6.7321        17.709        .15459E-03   -1.5189    
  11  Prefactor     29.328        23.353        .74002E-04   -1.4624    
  12  Prefactor     4.9438        8.2128        .18088E-03   -1.5263    
  13  Prefactor     .10000E-03    14.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.076        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5692        19.682        .12732E-02   -1.5387    
  16  Prefactor     2.4060        4.9626        .13197E-02   -1.5398    
  17  Prefactor     59.390        57.591        .52076E-04   -1.4165    
  18  norm          .10000E-03    7.5251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8139        3.7918        .16134E-03   -1.5317    
  20  norm          .10000E-03    2.0955        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     61.169        61.587        .51309E-04   -1.4142    
  22  Prefactor     .10000E-03    59.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9845        26.524        .15182E-03   -1.5179    
  24  Normalizat    1.3479        .31991        .37615E-03   -.82148    
  25  Prefactor     .98599        .13962        .19309E-03   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44336e-08
Minuit parameter uncertainties:
  1  0.00225442
  2  9.59496
  3  7.49933
  4  5.94629e-07
  5  1.46505e-06
  6  8.21763
  7  30.7724
  8  6.39349
  9  10.6102
  10  17.7231
  11  23.36
  12  8.21463
  13  1.14609e-05
  14  0.000286595
  15  14.2285
  16  4.96347
  17  57.6453
  18  1.02717e-05
  19  3.79203
  20  1.91244e-06
  21  61.6507
  22  0.000227544
  23  26.5687
  24  0.320384
  25  0.139674
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.146e-05  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:  9.860e-01  1.397e-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.348e+00  3.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/889160/likelihoodResults_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.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): 102
logL (Free Index) = 7544.48391135
delta logL = -0.000321003441059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7544.48359035
delta logL = -1.25055521494e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7408       1.0000          .0000       10.000    
     3 'Normalizat'    1.3479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98600       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=   7544.484     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    332.17        .18142E-02** at limit **
   2  Index         2.7860        7.6458        .50000       -.44105E-05
   3  Normalizat    1.3479        .32446E-01    .37615E-03   -.47482E-04
   4  Prefactor     .98599        .14617E-01    .19309E-03   -.60645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100554
  Index      = 2.78603
  Normalizat = 1.34788
  Prefactor  = 0.985991
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.484     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10055E-03    1444.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7860        5.6508        .50000       -.45871    
   3  Normalizat    1.3479        .77211E-01    .15046E-04   -.82148    
   4  Prefactor     .98599        .34784E-01    .77235E-05   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22065e-08
Minuit parameter uncertainties:
  1  0.058029
  2  1888.71
  3  0.0772176
  4  0.0347848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889160': 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): 102
logL (Free Index) = 7544.4835903
delta logL = 4.45043042419e-08

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.006e-04  5.803e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.786e+00  1.889e+03  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:  9.860e-01  3.478e-02  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.348e+00  7.722e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/889160/cmap_HighResolution_374112001_374371201_4FGL_J1341.8-2053_daily_bin520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-08 09:31:06.254387', job_id='889160', GAL2='0.99', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631118666.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='520' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:31:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 889160: <4FGL_J1341.8-2053_daily_bin520> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin520> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:52 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:16:30 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:16:30 2021
Terminated at Wed Sep  8 09:31:06 2021
Results reported at Wed Sep  8 09:31:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin520 205.461 -20.8901 374112001 374371201 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 :                                   774.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            914 sec.

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

