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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1437
RA = 205.461, Dec = -20.8901
tmin = 611798401, tmax = 612057601
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='894848', job_status='RUN', time_executed='2021-09-08 09:36:49.113246', time_epoch_executed='1631119009.11' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894848

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894848/ft1_4FGL_J1341.8-2053_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894848/ft2_4FGL_J1341.8-2053_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894848/ft1_4FGL_J1341.8-2053_daily_bin1437.fits outfile=/scratch/kocevski/894848/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1437.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=611798401.0 tmax=612057601.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.51
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894848/ft1_filtered_4FGL_J1341.8-2053_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/894848/ft2_4FGL_J1341.8-2053_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/894848/ltcube_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.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/894848/ft2_4FGL_J1341.8-2053_daily_bin1437.fits
.....................!
real 16.48
user 16.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894848/ft1_filtered_4FGL_J1341.8-2053_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/894848/ft2_4FGL_J1341.8-2053_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/894848/ltcube_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.fits outfile=/scratch/kocevski/894848/expmap_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.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/894848/ltcube_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.fits
.....................!
real 195.60
user 189.53
sys 4.69

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/894848/ft1_filtered_4FGL_J1341.8-2053_daily_bin1437.fits scfile=/scratch/kocevski/894848/ft2_4FGL_J1341.8-2053_daily_bin1437.fits outfile=/scratch/kocevski/894848/cmap_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894848/ft1_filtered_4FGL_J1341.8-2053_daily_bin1437.fits scfile=/scratch/kocevski/894848/ft2_4FGL_J1341.8-2053_daily_bin1437.fits outfile=/scratch/kocevski/894848/cmap_HighResolution_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894848/ft1_filtered_4FGL_J1341.8-2053_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/894848/ft2_4FGL_J1341.8-2053_daily_bin1437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894848/Model_4FGL_J1341.8-2053_daily_bin1437.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/894848/ft1_filtered_4FGL_J1341.8-2053_daily_bin1437.fits.....................!
real 52.47
user 50.75
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    11.860       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6539       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.227       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.9453       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29803E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2076       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.012       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4389       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85844       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=   6064.989     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2462 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.109        .13020E-04** at limit **
   2  norm          11.860        9.7912        .35777E-07   -.76143E-04
   3  norm          .10000E-03    3.1333       -.10784E-06** at limit **
   4  Prefactor     2.6501        5.3056        .27063E-06   -.89373E-03
   5  norm          .10000E-03    1.0510       -.18816E-07** at limit **
   6  Prefactor     6.9945        9.9843        .60196E-07   -.16846E-03
   7  Prefactor     .10000E-03    8.3460       -.89206E-07** at limit **
   8  norm          .10000E-03    2.4693        .28962E-07** at limit **
   9  norm          24.327        10.215       -.75331E-07   -.24122E-03
  10  Prefactor     .10000E-03    4.7424        .38342E-08** at limit **
  11  Prefactor     .10000E-03    14.655        .19827E-05** at limit **
  12  Prefactor     14.227        15.189       -.72507E-08    .37904E-04
  13  Prefactor     .10000E-03    8.3045        .12421E-07** at limit **
  14  norm          7.9448        7.0435       -.17183E-06   -.20549E-04
  15  norm          .10000E-03    25.027       -.19383E-04** at limit **
  16  Prefactor     .10031E-03    3.3925        .10434E-05** at limit **
  17  Prefactor     .10000E-03    81.966       -.98246E-05** at limit **
  18  norm          1.2070        5.7306        .14398E-06   -.65573E-03
  19  Prefactor     .10000E-03    3.1385       -.17220E-06** at limit **
  20  norm          10.006        7.6926       -.14950E-05   -.32652E-03
  21  Prefactor     .10000E-03    20.447        .11612E-04** at limit **
  22  Prefactor     .10000E-03    6.4577       -.42807E-07** at limit **
  23  Prefactor     .10000E-03    14.458       -.31072E-05** at limit **
  24  Normalizat    1.4387        .27531       -.25211E-06   -.85079E-04
  25  Prefactor     .85850        .12064        .15230E-06   -.11124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.8601
  norm       = 0.0001
  Prefactor  = 2.65013
  norm       = 0.0001
  Prefactor  = 6.99455
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.3267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2273
  Prefactor  = 0.0001
  norm       = 7.94484
  norm       = 0.0001
  Prefactor  = 0.00010031
  Prefactor  = 0.0001
  norm       = 1.20701
  Prefactor  = 0.0001
  norm       = 10.006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43867
  Prefactor  = 0.858501
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.989     FROM HESSE     STATUS=OK           425 CALLS     2887 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.860        9.7985        .58161E-03   -1.5019    
   3  norm          .10000E-03    3.1431        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6501        5.9571        .12511E-02   -1.5382    
   5  norm          .10000E-03    1.0677        .77956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9945        10.048        .75845E-03   -1.5179    
   7  Prefactor     .10000E-03    8.3682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5148        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.327        10.103        .81208E-04   -1.4721    
  10  Prefactor     .10000E-03    4.7469        .16563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.227        15.196        .10619E-03   -1.4953    
  13  Prefactor     .10000E-03    8.3656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9448        7.0549        .14225E-03   -1.5144    
  15  norm          .10000E-03    25.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10031E-03    79.648        .26472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    82.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2070        22.079        .20607E-02   -1.5488    
  19  Prefactor     .10000E-03    3.2147        .26913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.006        7.5186        .12664E-03   -1.5075    
  21  Prefactor     .10000E-03    20.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.4588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4387        .33053        .34082E-03   -.79517    
  25  Prefactor     .85850        .14638        .18906E-03   -.97607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35832e-09
Minuit parameter uncertainties:
  1  2.86379e-05
  2  9.79984
  3  2.99568e-06
  4  5.95843
  5  2.29601e-07
  6  10.0507
  7  9.48012e-07
  8  1.08084e-06
  9  10.1037
  10  5.10632e-07
  11  2.99421e-06
  12  15.2001
  13  1.15643e-06
  14  7.05565
  15  1.67272e-06
  16  0.00994451
  17  0.000104172
  18  10.3287
  19  2.33286e-06
  20  7.5193
  21  2.21911e-05
  22  2.19501e-07
  23  3.90521e-06
  24  0.331021
  25  0.146451
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.156e-06  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.585e-01  1.465e-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.439e+00  3.310e-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.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894848/likelihoodResults_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.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) = 6064.98995128
delta logL = -0.000569661027839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6064.9893818
delta logL = -1.87668774743e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7343       1.0000          .0000       10.000    
     3 'Normalizat'    1.4385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85856       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=   6064.989     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    404.37        .18142E-02** at limit **
   2  Index         2.7591        7.0682        .50000       -.22368E-05
   3  Normalizat    1.4387        .51673E-01    .34082E-03    .21015E-04
   4  Prefactor     .85850        .22984E-01    .18906E-03    .29525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100092
  Index      = 2.75915
  Normalizat = 1.43867
  Prefactor  = 0.858501
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.989     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    1437.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7591        7.4557        .50000       -.46472    
   3  Normalizat    1.4387        .13471        .13633E-04   -.79517    
   4  Prefactor     .85850        .59912E-01    .75624E-05   -.97607    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.80931e-09
Minuit parameter uncertainties:
  1  0.0235537
  2  2850.99
  3  0.134743
  4  0.0599166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894848': 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) = 6064.9893816
delta logL = 1.11058398033e-08

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.001e-04  2.355e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.759e+00  2.851e+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:  8.585e-01  5.992e-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.439e+00  1.347e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/894848/cmap_HighResolution_611798401_612057601_4FGL_J1341.8-2053_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-08 09:48:58.986040', job_id='894848', GAL2='0.86', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1631119738.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1437' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:48:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 894848: <4FGL_J1341.8-2053_daily_bin1437> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin1437> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:35:41 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:36:22 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:22 2021
Terminated at Wed Sep  8 09:48:59 2021
Results reported at Wed Sep  8 09:48:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1437 205.461 -20.8901 611798401 612057601 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 :                                   658.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            798 sec.

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

