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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin454
RA = 205.461, Dec = -20.8901
tmin = 357004801, tmax = 357264001
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='889081', job_status='RUN', time_executed='2021-09-08 09:16:35.140955', time_epoch_executed='1631117795.14' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889081/ft1_4FGL_J1341.8-2053_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889081/ft2_4FGL_J1341.8-2053_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889081/ft1_4FGL_J1341.8-2053_daily_bin454.fits outfile=/scratch/kocevski/889081/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin454.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=357004801.0 tmax=357264001.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.98
user 3.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889081/ft1_filtered_4FGL_J1341.8-2053_daily_bin454.fits" evtable="EVENTS" scfile=/scratch/kocevski/889081/ft2_4FGL_J1341.8-2053_daily_bin454.fits sctable="SC_DATA" outfile=/scratch/kocevski/889081/ltcube_357004801_357264001_4FGL_J1341.8-2053_daily_bin454.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/889081/ft2_4FGL_J1341.8-2053_daily_bin454.fits
.....................!
real 13.52
user 13.19
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889081/ft1_filtered_4FGL_J1341.8-2053_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/889081/ft2_4FGL_J1341.8-2053_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/889081/ltcube_357004801_357264001_4FGL_J1341.8-2053_daily_bin454.fits outfile=/scratch/kocevski/889081/expmap_357004801_357264001_4FGL_J1341.8-2053_daily_bin454.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/889081/ltcube_357004801_357264001_4FGL_J1341.8-2053_daily_bin454.fits
.....................!
real 191.01
user 186.28
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/889081/ft1_filtered_4FGL_J1341.8-2053_daily_bin454.fits scfile=/scratch/kocevski/889081/ft2_4FGL_J1341.8-2053_daily_bin454.fits outfile=/scratch/kocevski/889081/cmap_357004801_357264001_4FGL_J1341.8-2053_daily_bin454.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889081/ft1_filtered_4FGL_J1341.8-2053_daily_bin454.fits scfile=/scratch/kocevski/889081/ft2_4FGL_J1341.8-2053_daily_bin454.fits outfile=/scratch/kocevski/889081/cmap_HighResolution_357004801_357264001_4FGL_J1341.8-2053_daily_bin454.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889081/ft1_filtered_4FGL_J1341.8-2053_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/889081/ft2_4FGL_J1341.8-2053_daily_bin454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889081/Model_4FGL_J1341.8-2053_daily_bin454.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/889081/ft1_filtered_4FGL_J1341.8-2053_daily_bin454.fits.....................!
real 77.51
user 76.12
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0433       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2325       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9580       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.960       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8036       1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.347       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.580       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1414       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.276       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1510       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93614       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=   10869.59     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2930 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9029        346.76       -.97672E-05    .51848E-05
   2  norm          .10000E-03    2.7678       -.84614E-07** at limit **
   3  norm          3.0067        5.7415       -.44146E-05    .18711E-03
   4  Prefactor     1.2348        3.4745        .31330E-05    .60463E-03
   5  norm          1.4979        1.7198        .29968E-06    .48716E-04
   6  Prefactor     5.9568        8.2329        .23214E-06    .52699E-04
   7  Prefactor     .10000E-03    22.470        .42850E-06** at limit **
   8  norm          .10015E-03    1.3797       -.41012E-06** at limit **
   9  norm          11.107        6.6594        .81914E-07    .49507E-03
  10  Prefactor     10.087        12.184        .23672E-05   -.14466E-03
  11  Prefactor     1.2563        15.372        .20764E-05   -.59924E-05
  12  Prefactor     .72081        6.2442       -.70832E-06    .27124E-03
  13  Prefactor     14.959        9.0065       -.71599E-06    .33641E-04
  14  norm          2.8036        2.5532       -.23269E-07    .45973E-05
  15  norm          .10000E-03    28.791        .57552E-06** at limit **
  16  Prefactor     24.347        6.3182       -.26094E-07    .12780E-03
  17  Prefactor     25.579        34.669        .16169E-07    .70046E-05
  18  norm          .10000E-03    1.9188        .38229E-07** at limit **
  19  Prefactor     .10000E-03    1.5902        .13722E-06** at limit **
  20  norm          8.1414        6.4630        .39003E-07    .76977E-05
  21  Prefactor     17.273        37.897       -.16624E-06    .10176E-05
  22  Prefactor     .10000E-03    4.5830        .58960E-07** at limit **
  23  Prefactor     .10000E-03    8.3098        .14354E-06** at limit **
  24  Normalizat    1.1510        .19972        .56256E-07    .17606E-03
  25  Prefactor     .93614        .89295E-01   -.42291E-06    .37409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90293
  norm       = 0.0001
  norm       = 3.0067
  Prefactor  = 1.23479
  norm       = 1.49791
  Prefactor  = 5.95683
  Prefactor  = 0.0001
  norm       = 0.00010015
  norm       = 11.1072
  Prefactor  = 10.0874
  Prefactor  = 1.2563
  Prefactor  = 0.720812
  Prefactor  = 14.9594
  norm       = 2.80355
  norm       = 0.0001
  Prefactor  = 24.3467
  Prefactor  = 25.5792
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.1414
  Prefactor  = 17.2726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15098
  Prefactor  = 0.936137
 **********
 **   18 **HESSE 
 **********

 FCN=   10869.59     FROM HESSE     STATUS=OK           441 CALLS     3371 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9029        364.63        .23258E-02   -1.5367    
   2  norm          .10000E-03    2.7814        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0067        5.7643        .23389E-03   -1.5361    
   4  Prefactor     1.2348        3.4731        .28702E-03   -1.5486    
   5  norm          1.4979        1.6986        .14183E-03   -1.5463    
   6  Prefactor     5.9568        8.2189        .16451E-03   -1.5220    
   7  Prefactor     .10000E-03    22.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10015E-03    20.590        .21068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.107        6.0391        .12020E-03   -1.5041    
  10  Prefactor     10.087        12.101        .63079E-03   -1.5073    
  11  Prefactor     1.2563        15.198        .39861E-03   -1.5484    
  12  Prefactor     .72081        30.526        .47114E-02   -1.5538    
  13  Prefactor     14.959        8.9798        .10355E-03   -1.4934    
  14  norm          2.8036        2.5528        .15390E-03   -1.5373    
  15  norm          .10000E-03    29.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.347        6.3289        .81182E-04   -1.4721    
  17  Prefactor     25.579        34.659        .79204E-04   -1.4696    
  18  norm          .10000E-03    1.9204        .14104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6346        .25628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.1414        6.4568        .14051E-03   -1.5137    
  21  Prefactor     17.273        37.915        .96359E-04   -1.4877    
  22  Prefactor     .10000E-03    4.5862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1510        .23957        .34504E-03   -.88131    
  25  Prefactor     .93614        .10793        .17737E-03   -.94890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64275e-09
Minuit parameter uncertainties:
  1  65.4796
  2  1.06287e-05
  3  5.76539
  4  3.47364
  5  1.6987
  6  8.22044
  7  7.26425e-05
  8  0.00351535
  9  6.03946
  10  12.1036
  11  8.74145
  12  9.38612
  13  8.98061
  14  2.55291
  15  3.45037e-05
  16  6.32912
  17  34.6863
  18  3.99249e-07
  19  2.8606e-06
  20  6.45734
  21  37.9678
  22  6.3981e-07
  23  7.12343e-07
  24  0.239793
  25  0.107952
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.496e+01  8.981e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.361e-01  1.080e-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.151e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.62
Ra Dec: 205.461 -20.890
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.72e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.09e-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) = 10869.5355993
delta logL = 0.051019835093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10869.5310458
delta logL = 0.0555732862958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.530       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5496       1.0000          .0000       10.000    
     3 'Normalizat'    1.1612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93269       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=   10869.53     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      266 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.529        9.8833        .98510E-04    .17292E-02
   2  Index         2.5496        .54021        .86317E-02    .40682E-03
   3  Normalizat    1.1612        .22915        .34374E-03   -.32154E-03
   4  Prefactor     .93268        .10698        .17766E-03   -.70828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5292
  Index      = 2.54962
  Normalizat = 1.16125
  Prefactor  = 0.932679
 **********
 **   18 **HESSE 
 **********

 FCN=   10869.53     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.529        9.6948        .19702E-04   -1.4895    
   2  Index         2.5496        .52972        .34527E-03   -.51218    
   3  Normalizat    1.1612        .22930        .13750E-04   -.87809    
   4  Prefactor     .93268        .10704        .35532E-04   -.95008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9011e-09
Minuit parameter uncertainties:
  1  9.69568
  2  0.531029
  3  0.229498
  4  0.107066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889081': 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) = 10869.5310458
delta logL = 0.0555733191268

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.653e+01  9.696e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.550e+00  5.310e-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:  9.327e-01  1.071e-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.161e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 2.55 +/- 0.53
Photon Flux (Free Index): 7.07e-08 +/- 4.43e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.15e-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/889081/cmap_HighResolution_357004801_357264001_4FGL_J1341.8-2053_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.72e-08', energy_flux2='1.95e-05', photon_flux_error='4.63e-08', dlogl='5.56e-02', energy_flux='1.82e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-09-08 09:31:24.127961', photon_index_error2='0.53', photon_index2='2.55', ts='5.62', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='1.15', time_epoch_completed='1631118684.13', return_code='0', job_id='889081', GAL2='0.93', EG2='1.16', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.43e-08', ts2='5.74', photon_index='2.73' WHERE bin_id='454' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:31:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 889081: <4FGL_J1341.8-2053_daily_bin454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin454 205.461 -20.8901 357004801 357264001 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 :                                   883.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            938 sec.

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

