/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 209 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1341.8-2053_daily_bin380
RA = 205.461, Dec = -20.8901
tmin = 337824001, tmax = 338083201
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='888974', job_status='RUN', time_executed='2021-09-08 09:19:46.505666', time_epoch_executed='1631117986.51' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888974

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888974/ft1_4FGL_J1341.8-2053_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888974/ft2_4FGL_J1341.8-2053_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888974/ft1_4FGL_J1341.8-2053_daily_bin380.fits outfile=/scratch/kocevski/888974/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin380.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=337824001.0 tmax=338083201.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.53
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888974/ft1_filtered_4FGL_J1341.8-2053_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/888974/ft2_4FGL_J1341.8-2053_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/888974/ltcube_337824001_338083201_4FGL_J1341.8-2053_daily_bin380.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/888974/ft2_4FGL_J1341.8-2053_daily_bin380.fits
.....................!
real 17.37
user 16.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888974/ft1_filtered_4FGL_J1341.8-2053_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/888974/ft2_4FGL_J1341.8-2053_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/888974/ltcube_337824001_338083201_4FGL_J1341.8-2053_daily_bin380.fits outfile=/scratch/kocevski/888974/expmap_337824001_338083201_4FGL_J1341.8-2053_daily_bin380.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/888974/ltcube_337824001_338083201_4FGL_J1341.8-2053_daily_bin380.fits
.....................!
real 192.21
user 187.34
sys 4.31

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/888974/ft1_filtered_4FGL_J1341.8-2053_daily_bin380.fits scfile=/scratch/kocevski/888974/ft2_4FGL_J1341.8-2053_daily_bin380.fits outfile=/scratch/kocevski/888974/cmap_337824001_338083201_4FGL_J1341.8-2053_daily_bin380.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888974/ft1_filtered_4FGL_J1341.8-2053_daily_bin380.fits scfile=/scratch/kocevski/888974/ft2_4FGL_J1341.8-2053_daily_bin380.fits outfile=/scratch/kocevski/888974/cmap_HighResolution_337824001_338083201_4FGL_J1341.8-2053_daily_bin380.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.223       1.0000         .10000E-03   10000.    
     3 'norm      '    .16267E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .24861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2890       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.236       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.647       1.0000         .10000E-03   10000.    
    14 'norm      '    .80703       1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.113       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0486       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7848       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.152       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.854       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81793       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0389       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=   8059.650     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2936 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.290        .53519E-06** at limit **
   2  norm          19.223        9.6411        .12890E-07    .94187E-05
   3  norm          .10000E-03    3.7944       -.11252E-05** at limit **
   4  Prefactor     .10000E-03    2.2464       -.80768E-08** at limit **
   5  norm          .24788        1.5439        .31212E-06   -.18216E-03
   6  Prefactor     .10000E-03    16.516        .33356E-07** at limit **
   7  Prefactor     3.2880        8.8656        .34033E-05   -.15372E-04
   8  norm          .10000E-03    1.2775        .75891E-09** at limit **
   9  norm          10.013        5.8485       -.23513E-06    .10612E-03
  10  Prefactor     .10000E-03    11.530       -.24576E-06** at limit **
  11  Prefactor     30.239        26.763       -.30741E-06    .30564E-04
  12  Prefactor     .10000E-03    9.5305        .30478E-06** at limit **
  13  Prefactor     22.646        12.310        .42835E-06    .36480E-03
  14  norm          .80631        3.8242        .37077E-06   -.87192E-04
  15  norm          .10000E-03    25.777       -.53976E-06** at limit **
  16  Prefactor     .10000E-03    3.2910       -.12381E-06** at limit **
  17  Prefactor     45.095        43.320        .34391E-05    .16334E-03
  18  norm          4.0510        9.5264        .26804E-06    .33875E-05
  19  Prefactor     .10000E-03    1.7025        .56785E-07** at limit **
  20  norm          3.7855        5.7780        .25533E-05   -.93153E-04
  21  Prefactor     20.153        22.240       -.31373E-07    .21493E-05
  22  Prefactor     37.856        21.180        .58888E-08    .36883E-05
  23  Prefactor     .10000E-03    4.9647       -.41220E-08** at limit **
  24  Normalizat    .81785        .22546       -.61977E-06    .20530E-03
  25  Prefactor     1.0389        .10496       -.95663E-07    .47456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.2226
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.247878
  Prefactor  = 0.0001
  Prefactor  = 3.28797
  norm       = 0.0001
  norm       = 10.0127
  Prefactor  = 0.0001
  Prefactor  = 30.2387
  Prefactor  = 0.0001
  Prefactor  = 22.6458
  norm       = 0.806308
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0949
  norm       = 4.05102
  Prefactor  = 0.0001
  norm       = 3.78545
  Prefactor  = 20.1527
  Prefactor  = 37.8557
  Prefactor  = 0.0001
  Normalizat = 0.81785
  Prefactor  = 1.03894
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.650     FROM HESSE     STATUS=OK           431 CALLS     3367 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.223        9.6314        .91351E-04   -1.4831    
   3  norm          .10000E-03    14.747        .32562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2592        .13123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .24788        3.3463        .21346E-02   -1.5608    
   6  Prefactor     .10000E-03    17.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2880        8.8771        .11163E-02   -1.5345    
   8  norm          .10000E-03    1.2842        .98887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.013        5.8397        .12663E-03   -1.5075    
  10  Prefactor     .10000E-03    11.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.239        26.754        .72865E-04   -1.4608    
  12  Prefactor     .10000E-03    9.8055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.646        12.293        .84169E-04   -1.4756    
  14  norm          .80631        7.1314        .31682E-02   -1.5528    
  15  norm          .10000E-03    25.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3770        .31793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.095        43.599        .59692E-04   -1.4364    
  18  norm          4.0510        9.5050        .20040E-03   -1.5305    
  19  Prefactor     .10000E-03    1.7318        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7855        5.8203        .10375E-02   -1.5319    
  21  Prefactor     20.153        22.240        .89222E-04   -1.4810    
  22  Prefactor     37.856        21.186        .65142E-04   -1.4477    
  23  Prefactor     .10000E-03    4.9657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81785        .25783        .39573E-03   -.99410    
  25  Prefactor     1.0389        .12190        .16739E-03   -.91443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70691e-08
Minuit parameter uncertainties:
  1  8.08686e-06
  2  9.63218
  3  0.00032838
  4  2.19675e-06
  5  1.82126
  6  1.57743e-05
  7  8.88061
  8  3.07647e-06
  9  5.84005
  10  8.7727e-06
  11  26.7644
  12  4.00201e-05
  13  12.294
  14  4.79636
  15  4.38804e-05
  16  2.30151e-05
  17  43.6296
  18  9.50857
  19  3.93533e-06
  20  5.82119
  21  22.249
  22  21.1902
  23  1.2045e-07
  24  0.258218
  25  0.121931
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.265e+01  1.229e+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:  1.039e+00  1.219e-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:  8.179e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 205.461 -20.890
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 6.34e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 1.49e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8059.64026679
delta logL = 0.00964930961982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8059.62924788
delta logL = 0.0206682150492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.196       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8804       1.0000          .0000       10.000    
     3 'Normalizat'    .80775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0429       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=   8059.629     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      246 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.193        18.225        .89125E-04    .13611E-03
   2  Index         2.8805        .82047        .70781E-02    .30347E-04
   3  Normalizat    .80774        .26048        .39797E-03   -.55662E-03
   4  Prefactor     1.0429        .12188        .16711E-03   -.16399E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1929
  Index      = 2.88048
  Normalizat = 0.80774
  Prefactor  = 1.04293
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.629     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.193        16.683        .35650E-05   -1.4809    
   2  Index         2.8805        .75090        .28312E-03   -.43775    
   3  Normalizat    .80774        .26009        .15919E-04   -.99782    
   4  Prefactor     1.0429        .12165        .33422E-04   -.91312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09212e-09
Minuit parameter uncertainties:
  1  16.687
  2  0.754389
  3  0.260493
  4  0.121682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888974': 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) = 8059.62924786
delta logL = 0.0206682390735

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.019e+01  1.669e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.880e+00  7.544e-01  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:  1.043e+00  1.217e-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:  8.077e-01  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 2.88 +/- 0.75
Photon Flux (Free Index): 1.23e-07 +/- 6.92e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.51e-05

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/888974/cmap_HighResolution_337824001_338083201_4FGL_J1341.8-2053_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='2.61e-05', photon_flux_error='6.34e-08', dlogl='2.07e-02', energy_flux='2.75e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-08 09:31:51.305864', photon_index_error2='0.75', photon_index2='2.88', ts='5.32', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.82', time_epoch_completed='1631118711.31', return_code='0', job_id='888974', GAL2='1.04', EG2='0.81', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.92e-08', ts2='5.39', photon_index='2.73' WHERE bin_id='380' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:31:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 888974: <4FGL_J1341.8-2053_daily_bin380> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin380 205.461 -20.8901 337824001 338083201 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 :                                   723.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            972 sec.

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

