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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1470
RA = 205.461, Dec = -20.8901
tmin = 620352001, tmax = 620611201
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='894929', job_status='RUN', time_executed='2021-09-08 09:37:00.475051', time_epoch_executed='1631119020.48' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894929/ft1_4FGL_J1341.8-2053_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894929/ft1_4FGL_J1341.8-2053_daily_bin1470.fits outfile=/scratch/kocevski/894929/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1470.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=620352001.0 tmax=620611201.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 4.96
user 4.63
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.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/894929/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1470.fits evtable="EVENTS" outfile="/scratch/kocevski/894929/ft1_filtered_4FGL_J1341.8-2053_daily_bin1470.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.58
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894929/ft1_filtered_4FGL_J1341.8-2053_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/894929/ltcube_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.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/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.fits
.....................!
real 16.12
user 15.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894929/ft1_filtered_4FGL_J1341.8-2053_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/894929/ltcube_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.fits outfile=/scratch/kocevski/894929/expmap_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.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/894929/ltcube_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.fits
.....................!
real 194.49
user 187.31
sys 4.89

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/894929/ft1_filtered_4FGL_J1341.8-2053_daily_bin1470.fits scfile=/scratch/kocevski/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.fits outfile=/scratch/kocevski/894929/cmap_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894929/ft1_filtered_4FGL_J1341.8-2053_daily_bin1470.fits scfile=/scratch/kocevski/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.fits outfile=/scratch/kocevski/894929/cmap_HighResolution_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.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/894929/ft1_filtered_4FGL_J1341.8-2053_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/894929/ft2_4FGL_J1341.8-2053_daily_bin1470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894929/Model_4FGL_J1341.8-2053_daily_bin1470.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/894929/ft1_filtered_4FGL_J1341.8-2053_daily_bin1470.fits.....................!
real 43.07
user 41.69
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.020       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8606       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3798       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13600E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11681E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    33.033       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.4197       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11359E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6666       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.739       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90133       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=   4748.285     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2915 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.861        66.187       -.22624E-05   -.23750E-03
   2  norm          3.8600        11.230        .94790E-06   -.16924E-04
   3  norm          5.5074        9.7914        .16435E-06   -.51760E-04
   4  Prefactor     4.3812        8.9800        .28993E-06   -.36715E-04
   5  norm          .10000E-03    1.6790        .51917E-07** at limit **
   6  Prefactor     .10419E-03    10.888        .34575E-05** at limit **
   7  Prefactor     .10000E-03    27.761        .14118E-06** at limit **
   8  norm          .10000E-03    2.7828        .35065E-07** at limit **
   9  norm          33.025        13.118        .78152E-07   -.22765E-03
  10  Prefactor     .10000E-03    11.520       -.89251E-07** at limit **
  11  Prefactor     1.9439        103.15        .40443E-04    .18790E-04
  12  Prefactor     .10000E-03    6.0412       -.23053E-06** at limit **
  13  Prefactor     .10000E-03    26.681       -.10564E-05** at limit **
  14  norm          9.4200        9.1068        .21273E-05    .18164E-05
  15  norm          .10000E-03    12.260       -.62247E-07** at limit **
  16  Prefactor     .10000E-03    2.8413        .73797E-07** at limit **
  17  Prefactor     .10000E-03    21.219       -.42283E-07** at limit **
  18  norm          .10000E-03    38.480       -.20236E-06** at limit **
  19  Prefactor     2.6634        6.2023        .26434E-06   -.98026E-04
  20  norm          .10000E-03    4.7361        .11397E-06** at limit **
  21  Prefactor     15.728        98.597        .63117E-06   -.13728E-04
  22  Prefactor     39.781        27.921        .14837E-06   -.12269E-04
  23  Prefactor     .10000E-03    10.951        .38153E-08** at limit **
  24  Normalizat    1.1130        .30254       -.28324E-05   -.24924E-03
  25  Prefactor     .90137        .13070       -.72972E-06   -.42750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8608
  norm       = 3.86005
  norm       = 5.50745
  Prefactor  = 4.38122
  norm       = 0.0001
  Prefactor  = 0.000104193
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.0254
  Prefactor  = 0.0001
  Prefactor  = 1.94388
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.41999
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.66342
  norm       = 0.0001
  Prefactor  = 15.7284
  Prefactor  = 39.7807
  Prefactor  = 0.0001
  Normalizat = 1.11298
  Prefactor  = 0.901372
 **********
 **   18 **HESSE 
 **********

 FCN=   4748.285     FROM HESSE     STATUS=OK           427 CALLS     3342 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.861        66.089        .32935E-03   -1.4493    
   2  norm          3.8600        11.221        .20538E-03   -1.5315    
   3  norm          5.5074        9.6710        .17128E-03   -1.5239    
   4  Prefactor     4.3812        8.8697        .19245E-03   -1.5289    
   5  norm          .10000E-03    1.7025        .87174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10419E-03    13.499        .70731E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7944        .11203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          33.025        13.110        .69719E-04   -1.4558    
  10  Prefactor     .10000E-03    11.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9439        103.50        .14764E-02   -1.5429    
  12  Prefactor     .10000E-03    6.0503        .16541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.4200        9.1238        .65288E-03   -1.5094    
  15  norm          .10000E-03    12.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8493        .11340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    39.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6634        6.1809        .24089E-03   -1.5382    
  20  norm          .10000E-03    4.7579        .14645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.728        98.702        .10096E-03   -1.4915    
  22  Prefactor     39.781        27.929        .63551E-04   -1.4446    
  23  Prefactor     .10000E-03    10.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1130        .35601        .36728E-03   -.89336    
  25  Prefactor     .90137        .15503        .17934E-03   -.96093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0548e-09
Minuit parameter uncertainties:
  1  66.221
  2  11.2276
  3  9.67372
  4  8.87238
  5  2.46493e-06
  6  0.0150504
  7  2.21025e-06
  8  1.37606e-06
  9  13.1111
  10  1.03559e-05
  11  28.4195
  12  2.98831e-05
  13  0.000350733
  14  9.12517
  15  2.07893e-05
  16  4.20245e-06
  17  1.76252e-05
  18  3.47638e-05
  19  6.18239
  20  9.00952e-06
  21  78.9945
  22  27.9382
  23  1.02613e-05
  24  0.356781
  25  0.155107
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.507e-04  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.014e-01  1.551e-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.113e+00  3.568e-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.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894929/likelihoodResults_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.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) = 4748.28483667
delta logL = -0.000174065720785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4748.27188671
delta logL = 0.0127758886356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27333       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6306       1.0000          .0000       10.000    
     3 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90503       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=   4748.272     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      333 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27308        478.18        .15924E-02   -.25543E-03
   2  Index         4.6308        7.6796        .14004E-01   -.16080E-04
   3  Normalizat    1.0978        .20178        .36956E-03   -.54383E-03
   4  Prefactor     .90501        .83578E-01    .17902E-03   -.68899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.273081
  Index      = 4.63079
  Normalizat = 1.09779
  Prefactor  = 0.905007
 **********
 **   18 **HESSE 
 **********

 FCN=   4748.272     FROM HESSE     STATUS=OK            27 CALLS      360 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27308        12.865        .63697E-04   -1.5603    
   2  Index         4.6308        7.2303        .56016E-03   -.73909E-01
   3  Normalizat    1.0978        .35211        .73912E-04   -.89823    
   4  Prefactor     .90501        .15374        .35804E-04   -.95966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1454e-09
Minuit parameter uncertainties:
  1  3.74888
  2  8.76908
  3  0.352864
  4  0.153814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894929': 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) = 4748.27188656
delta logL = 0.0127760453415

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.731e-01  3.749e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  4.631e+00  8.769e+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:  9.050e-01  1.538e-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.098e+00  3.529e-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/894929/cmap_HighResolution_620352001_620611201_4FGL_J1341.8-2053_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-09-08 09:49:07.808194', job_id='894929', GAL2='0.91', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1631119747.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.28e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1470' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:49:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 894929: <4FGL_J1341.8-2053_daily_bin1470> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin1470> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:35:45 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:36: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:36:30 2021
Terminated at Wed Sep  8 09:49:08 2021
Results reported at Wed Sep  8 09:49:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1470 205.461 -20.8901 620352001 620611201 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 :                                   611.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            803 sec.

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

