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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin961
RA = 205.461, Dec = -20.8901
tmin = 488419201, tmax = 488678401
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='892973', job_status='RUN', time_executed='2021-09-08 09:33:16.049510', time_epoch_executed='1631118796.05' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892973/ft1_4FGL_J1341.8-2053_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892973/ft2_4FGL_J1341.8-2053_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892973/ft1_4FGL_J1341.8-2053_daily_bin961.fits outfile=/scratch/kocevski/892973/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin961.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.21
user 6.89
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892973/ft1_filtered_4FGL_J1341.8-2053_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/892973/ft2_4FGL_J1341.8-2053_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/892973/ltcube_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.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/892973/ft2_4FGL_J1341.8-2053_daily_bin961.fits
.....................!
real 14.42
user 14.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892973/ft1_filtered_4FGL_J1341.8-2053_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/892973/ft2_4FGL_J1341.8-2053_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/892973/ltcube_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.fits outfile=/scratch/kocevski/892973/expmap_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.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/892973/ltcube_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.fits
.....................!
real 191.83
user 185.84
sys 5.47

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/892973/ft1_filtered_4FGL_J1341.8-2053_daily_bin961.fits scfile=/scratch/kocevski/892973/ft2_4FGL_J1341.8-2053_daily_bin961.fits outfile=/scratch/kocevski/892973/cmap_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.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.84
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892973/ft1_filtered_4FGL_J1341.8-2053_daily_bin961.fits scfile=/scratch/kocevski/892973/ft2_4FGL_J1341.8-2053_daily_bin961.fits outfile=/scratch/kocevski/892973/cmap_HighResolution_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892973/ft1_filtered_4FGL_J1341.8-2053_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/892973/ft2_4FGL_J1341.8-2053_daily_bin961.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892973/Model_4FGL_J1341.8-2053_daily_bin961.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/892973/ft1_filtered_4FGL_J1341.8-2053_daily_bin961.fits.....................!
real 52.66
user 51.18
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    60.928       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39676       1.0000         .10000E-03   10000.    
     5 'norm      '    8.3506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    39.975       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    93.004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .76220       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17368E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.569       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8264       1.0000         .10000E-03   10000.    
    20 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0727       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4126       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96502       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=   5716.995     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2959 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    196.80       -.37902E-05** at limit **
   2  norm          .10000E-03    6.9183        .57992E-07** at limit **
   3  norm          60.931        17.105       -.56012E-06   -.41964E-03
   4  Prefactor     .39081        9.8088        .77783E-06   -.16909E-04
   5  norm          8.3505        4.1329       -.13974E-07   -.10674E-03
   6  Prefactor     .10000E-03    6.8370        .12447E-07** at limit **
   7  Prefactor     .10000E-03    20.413       -.25528E-07** at limit **
   8  norm          39.977        8.6247        .16531E-07   -.40865E-03
   9  norm          .10000E-03    3.4512        .41264E-08** at limit **
  10  Prefactor     37.028        29.991       -.14122E-05   -.22201E-03
  11  Prefactor     93.003        54.663       -.86144E-06   -.13303E-03
  12  Prefactor     .10000E-03    8.2207        .14602E-08** at limit **
  13  Prefactor     .74830        19.363        .80326E-06    .11271E-03
  14  norm          .10000E-03    1.5956        .17234E-07** at limit **
  15  norm          .10000E-03    15.698        .36245E-07** at limit **
  16  Prefactor     .10614E-03    6.7840        .19488E-05** at limit **
  17  Prefactor     .10000E-03    34.444        .83057E-07** at limit **
  18  norm          19.565        16.020       -.34887E-06   -.58108E-04
  19  Prefactor     1.8257        5.2441        .12962E-05    .69511E-04
  20  norm          .10000E-03    12.755        .65588E-08** at limit **
  21  Prefactor     .10000E-03    83.265       -.61181E-06** at limit **
  22  Prefactor     .10000E-03    9.2676        .90221E-08** at limit **
  23  Prefactor     6.0610        57.760        .17386E-06   -.27856E-04
  24  Normalizat    1.4131        .34209       -.14829E-05   -.32081E-03
  25  Prefactor     .96497        .14638        .77953E-07   -.53788E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  norm       = 0.0001
  norm       = 60.9306
  Prefactor  = 0.390808
  norm       = 8.35045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.9766
  norm       = 0.0001
  Prefactor  = 37.0284
  Prefactor  = 93.0029
  Prefactor  = 0.0001
  Prefactor  = 0.748296
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000106142
  Prefactor  = 0.0001
  norm       = 19.5653
  Prefactor  = 1.82573
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.06103
  Normalizat = 1.41309
  Prefactor  = 0.964966
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.995     FROM HESSE     STATUS=OK           427 CALLS     3386 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    199.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.9451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          60.931        16.981        .51404E-04   -1.4145    
   4  Prefactor     .39081        45.440        .39281E-02   -1.5583    
   5  norm          8.3505        4.1340        .10482E-03   -1.5130    
   6  Prefactor     .10000E-03    6.8989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          39.977        8.6248        .63398E-04   -1.4443    
   9  norm          .10000E-03    3.4556        .13714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.028        34.775        .65876E-04   -1.4490    
  11  Prefactor     93.003        55.928        .41672E-04   -1.3776    
  12  Prefactor     .10000E-03    8.2536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .74830        242.06        .51251E-02   -1.5535    
  14  norm          .10000E-03    1.5964        .93275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10614E-03    11.143        .51248E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.565        15.890        .90541E-04   -1.4823    
  19  Prefactor     1.8257        5.1134        .26282E-03   -1.5438    
  20  norm          .10000E-03    12.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    83.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0610        58.010        .16293E-03   -1.5216    
  24  Normalizat    1.4131        .41134        .40357E-03   -.80251    
  25  Prefactor     .96497        .17501        .20959E-03   -.93907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90199e-08
Minuit parameter uncertainties:
  1  0.00552743
  2  1.05243e-05
  3  16.982
  4  8.43357
  5  4.13412
  6  1.55544e-06
  7  1.71738e-05
  8  8.6251
  9  1.72668e-06
  10  34.7943
  11  55.9599
  12  5.06008e-06
  13  27.0261
  14  1.3065e-06
  15  1.58493e-05
  16  0.0165491
  17  3.52755e-05
  18  15.8938
  19  5.11467
  20  5.74277e-05
  21  0.000506094
  22  3.20849e-06
  23  37.5495
  24  0.412309
  25  0.175113
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  7.483e-01  2.703e+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:  9.650e-01  1.751e-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.413e+00  4.123e-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: 2.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892973/likelihoodResults_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.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) = 5716.96725118
delta logL = 0.0274050598564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5716.92457838
delta logL = 0.0700778600258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8781       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6600       1.0000          .0000       10.000    
     3 'Normalizat'    1.3769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97280       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=   5716.925     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      303 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8618        28.602        .11979E-02    .37034E-03
   2  Index         3.6656        3.4790        .10261E-01    .90250E-04
   3  Normalizat    1.3768        .40023        .40773E-03   -.72496E-05
   4  Prefactor     .97274        .17294        .20875E-03   -.19061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86184
  Index      = 3.66564
  Normalizat = 1.3768
  Prefactor  = 0.972739
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.925     FROM HESSE     STATUS=OK            27 CALLS      330 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8618        13.082        .23958E-03   -1.5370    
   2  Index         3.6656        2.5007        .20522E-02   -.27015    
   3  Normalizat    1.3768        .40052        .16309E-04   -.81302    
   4  Prefactor     .97274        .17316        .83502E-05   -.93644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57686e-13
Minuit parameter uncertainties:
  1  12.2418
  2  2.62918
  3  0.401437
  4  0.17326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892973': 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) = 5716.924575
delta logL = 0.0700812339392

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.862e+00  1.224e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.666e+00  2.629e+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.727e-01  1.733e-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.377e+00  4.014e-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/892973/cmap_HighResolution_488419201_488678401_4FGL_J1341.8-2053_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', job_status='DONE', photon_flux_upper_limit='2.40e-07', time_completed='2021-09-08 09:44:58.452281', job_id='892973', GAL2='0.97', fit_tolerance='1e-08', EG2='1.38', EG='1.41', time_epoch_completed='1631119498.45', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.01e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='961' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:44:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 892973: <4FGL_J1341.8-2053_daily_bin961> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin961> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  8 09:30:24 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:30:54 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:30:54 2021
Terminated at Wed Sep  8 09:44:59 2021
Results reported at Wed Sep  8 09:44:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin961 205.461 -20.8901 488419201 488678401 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 :                                   696.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            875 sec.

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

