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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin392
RA = 205.461, Dec = -20.8901
tmin = 340934401, tmax = 341193601
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='888992', job_status='RUN', time_executed='2021-09-08 09:16:29.313695', time_epoch_executed='1631117789.31' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888992

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888992/ft1_4FGL_J1341.8-2053_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888992/ft2_4FGL_J1341.8-2053_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888992/ft1_4FGL_J1341.8-2053_daily_bin392.fits outfile=/scratch/kocevski/888992/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin392.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=340934401.0 tmax=341193601.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.45
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888992/ft2_4FGL_J1341.8-2053_daily_bin392.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/888992/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin392.fits evtable="EVENTS" outfile="/scratch/kocevski/888992/ft1_filtered_4FGL_J1341.8-2053_daily_bin392.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.57
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888992/ft1_filtered_4FGL_J1341.8-2053_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/888992/ft2_4FGL_J1341.8-2053_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/888992/ltcube_340934401_341193601_4FGL_J1341.8-2053_daily_bin392.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/888992/ft2_4FGL_J1341.8-2053_daily_bin392.fits
.....................!
real 16.67
user 16.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888992/ft1_filtered_4FGL_J1341.8-2053_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/888992/ft2_4FGL_J1341.8-2053_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/888992/ltcube_340934401_341193601_4FGL_J1341.8-2053_daily_bin392.fits outfile=/scratch/kocevski/888992/expmap_340934401_341193601_4FGL_J1341.8-2053_daily_bin392.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/888992/ltcube_340934401_341193601_4FGL_J1341.8-2053_daily_bin392.fits
.....................!
real 193.42
user 188.05
sys 4.91

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/888992/ft1_filtered_4FGL_J1341.8-2053_daily_bin392.fits scfile=/scratch/kocevski/888992/ft2_4FGL_J1341.8-2053_daily_bin392.fits outfile=/scratch/kocevski/888992/cmap_340934401_341193601_4FGL_J1341.8-2053_daily_bin392.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888992/ft1_filtered_4FGL_J1341.8-2053_daily_bin392.fits scfile=/scratch/kocevski/888992/ft2_4FGL_J1341.8-2053_daily_bin392.fits outfile=/scratch/kocevski/888992/cmap_HighResolution_340934401_341193601_4FGL_J1341.8-2053_daily_bin392.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888992/ft1_filtered_4FGL_J1341.8-2053_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/888992/ft2_4FGL_J1341.8-2053_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888992/Model_4FGL_J1341.8-2053_daily_bin392.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/888992/ft1_filtered_4FGL_J1341.8-2053_daily_bin392.fits.....................!
real 62.29
user 60.88
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    25.897       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63180E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10426E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1817       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58645E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .69698       1.0000         .10000E-03   10000.    
     9 'norm      '    18.542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12410E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17996E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.647       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.488       1.0000         .10000E-03   10000.    
    14 'norm      '    .26482       1.0000         .10000E-03   10000.    
    15 'norm      '    .16915E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38726E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .19489E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4718       1.0000         .10000E-03   10000.    
    20 'norm      '    31.713       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15411E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5739       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94287       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=   7261.552     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3095 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.241        .39860E-06** at limit **
   2  norm          25.940        14.273       -.81340E-07   -.86777E-04
   3  norm          1.6610        7.0042        .73070E-07   -.97414E-05
   4  Prefactor     .56962E-01    104.12        .10141E-04   -.15020E-04
   5  norm          .10000E-03    1.9580        .48679E-06** at limit **
   6  Prefactor     3.1717        8.6097       -.13356E-05   -.39581E-04
   7  Prefactor     .10000E-03    22.360       -.87092E-06** at limit **
   8  norm          .70791        7.5703        .13806E-05    .14665E-03
   9  norm          18.505        11.876       -.66265E-06   -.17292E-03
  10  Prefactor     .10000E-03    6.7758        .12087E-05** at limit **
  11  Prefactor     .10000E-03    14.443        .13762E-05** at limit **
  12  Prefactor     12.664        15.795        .10725E-05   -.51309E-04
  13  Prefactor     20.484        13.696       -.12600E-06   -.69389E-05
  14  norm          .29001        15.777       -.38334E-05    .12741E-06
  15  norm          .10000E-03    17.292        .57499E-06** at limit **
  16  Prefactor     24.759        10.679       -.80181E-07   -.40045E-04
  17  Prefactor     .10023E-03    96.537        .52083E-05** at limit **
  18  norm          .10000E-03    5.6734        .36945E-06** at limit **
  19  Prefactor     2.5028        5.6044       -.20127E-05   -.11987E-03
  20  norm          31.654        15.305       -.28212E-07    .23003E-05
  21  Prefactor     .10000E-03    54.203       -.11285E-05** at limit **
  22  Prefactor     .10000E-03    15.156       -.38897E-06** at limit **
  23  Prefactor     .10000E-03    6.2020        .63523E-07** at limit **
  24  Normalizat    1.5735        .29505       -.51868E-06   -.51196E-04
  25  Prefactor     .94284        .12720       -.11607E-05    .32438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 25.9399
  norm       = 1.66096
  Prefactor  = 0.0569616
  norm       = 0.0001
  Prefactor  = 3.17175
  Prefactor  = 0.0001
  norm       = 0.707911
  norm       = 18.5053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6638
  Prefactor  = 20.4838
  norm       = 0.290011
  norm       = 0.0001
  Prefactor  = 24.7593
  Prefactor  = 0.000100227
  norm       = 0.0001
  Prefactor  = 2.50278
  norm       = 31.6543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.57347
  Prefactor  = 0.942843
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.552     FROM HESSE     STATUS=OK           451 CALLS     3546 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          25.940        14.300        .78719E-04   -1.4689    
   3  norm          1.6610        6.6908        .32967E-03   -1.5450    
   4  Prefactor     .56962E-01    5.4642        .55562E-01   -1.5660    
   5  norm          .10000E-03    15.958        .22228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1717        8.7480        .11359E-02   -1.5352    
   7  Prefactor     .10000E-03    22.376        .21076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .70791        7.0982        .37594E-03   -1.5540    
   9  norm          18.505        11.281        .93014E-04   -1.4847    
  10  Prefactor     .10000E-03    6.7467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.664        15.844        .11264E-03   -1.4996    
  13  Prefactor     20.484        13.712        .88489E-04   -1.4802    
  14  norm          .29001        35.612        .37417E-02   -1.5600    
  15  norm          .10000E-03    17.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.759        10.707        .80551E-04   -1.4712    
  17  Prefactor     .10023E-03    50.847        .17399       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.6839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5028        6.3945        .13004E-02   -1.5392    
  20  norm          31.654        15.316        .71152E-04   -1.4582    
  21  Prefactor     .10000E-03    54.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.2028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5735        .35717        .37521E-03   -.75734    
  25  Prefactor     .94284        .15140        .20491E-03   -.94660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50138e-08
Minuit parameter uncertainties:
  1  1.18014e-05
  2  14.3023
  3  6.66836
  4  1.11491
  5  0.000102129
  6  8.75149
  7  6.79229e-05
  8  4.48363
  9  11.2822
  10  7.11593e-05
  11  0.000110749
  12  15.8494
  13  13.7142
  14  6.43025
  15  6.46985e-05
  16  10.7076
  17  0.00679631
  18  7.53199e-06
  19  6.39627
  20  15.3181
  21  7.68987e-05
  22  4.8876e-05
  23  2.50452e-07
  24  0.357746
  25  0.151471
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.048e+01  1.371e+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.428e-01  1.515e-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.573e+00  3.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 205.461 -20.890
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 7.07e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.66e-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) = 7259.89943658
delta logL = 1.65293627108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7259.86756934
delta logL = 1.68480351283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.814       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7397       1.0000          .0000       10.000    
     3 'Normalizat'    1.6530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92198       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.

 FCN=   7259.868     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.790        11.631        .24418E-02    .17701E-04
   2  Index         1.7394        .32914        .18201       -.90703E-04
   3  Normalizat    1.6530        .28205        .83055E-01    .70569E-05
   4  Prefactor     .92199        .12399        .45285E-01    .35204E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7902
  Index      = 1.7394
  Normalizat = 1.65297
  Prefactor  = 0.921988
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.868     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.790        14.753        .97674E-04   -1.4888    
   2  Index         1.7394        .47350        .70993E-02   -.71038    
   3  Normalizat    1.6530        .33853        .36763E-03   -.73566    
   4  Prefactor     .92199        .14892        .20681E-03   -.95377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42029e-12
Minuit parameter uncertainties:
  1  14.7557
  2  0.474741
  3  0.339001
  4  0.148985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888992': 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) = 7259.86756788
delta logL = 1.68480497289

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.679e+01  1.476e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.739e+00  4.747e-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.220e-01  1.490e-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.653e+00  3.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.16
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 1.74 +/- 0.47
Photon Flux (Free Index): 3.94e-08 +/- 3.89e-08
Energy Flux (Free Index): 5.69e-05 +/- 5.85e-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/888992/cmap_HighResolution_340934401_341193601_4FGL_J1341.8-2053_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='5.69e-05', photon_flux_error='7.07e-08', dlogl='1.68e+00', energy_flux='2.49e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-09-08 09:28:21.614469', photon_index_error2='0.47', photon_index2='1.74', ts='4.79', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.85e-05', EG='1.57', time_epoch_completed='1631118501.61', return_code='0', job_id='888992', GAL2='0.92', EG2='1.65', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='3.89e-08', ts2='8.16', photon_index='2.73' WHERE bin_id='392' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:28:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 888992: <4FGL_J1341.8-2053_daily_bin392> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin392> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:41 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:16:10 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:10 2021
Terminated at Wed Sep  8 09:28:22 2021
Results reported at Wed Sep  8 09:28:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin392 205.461 -20.8901 340934401 341193601 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 :                                   706.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            761 sec.

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

