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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin233
RA = 205.461, Dec = -20.8901
tmin = 299721601, tmax = 299980801
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='888764', job_status='RUN', time_executed='2021-09-08 09:18:32.267578', time_epoch_executed='1631117912.27' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888764/ft1_4FGL_J1341.8-2053_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888764/ft2_4FGL_J1341.8-2053_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888764/ft1_4FGL_J1341.8-2053_daily_bin233.fits outfile=/scratch/kocevski/888764/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin233.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=299721601.0 tmax=299980801.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.41
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888764/ft1_filtered_4FGL_J1341.8-2053_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/888764/ft2_4FGL_J1341.8-2053_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/888764/ltcube_299721601_299980801_4FGL_J1341.8-2053_daily_bin233.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/888764/ft2_4FGL_J1341.8-2053_daily_bin233.fits
.....................!
real 14.55
user 14.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888764/ft1_filtered_4FGL_J1341.8-2053_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/888764/ft2_4FGL_J1341.8-2053_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/888764/ltcube_299721601_299980801_4FGL_J1341.8-2053_daily_bin233.fits outfile=/scratch/kocevski/888764/expmap_299721601_299980801_4FGL_J1341.8-2053_daily_bin233.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/888764/ltcube_299721601_299980801_4FGL_J1341.8-2053_daily_bin233.fits
.....................!
real 194.25
user 188.08
sys 5.42

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/888764/ft1_filtered_4FGL_J1341.8-2053_daily_bin233.fits scfile=/scratch/kocevski/888764/ft2_4FGL_J1341.8-2053_daily_bin233.fits outfile=/scratch/kocevski/888764/cmap_299721601_299980801_4FGL_J1341.8-2053_daily_bin233.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.55
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888764/ft1_filtered_4FGL_J1341.8-2053_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/888764/ft2_4FGL_J1341.8-2053_daily_bin233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888764/Model_4FGL_J1341.8-2053_daily_bin233.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/888764/ft1_filtered_4FGL_J1341.8-2053_daily_bin233.fits.....................!
real 57.29
user 55.92
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.005       1.0000         .10000E-03   10000.    
     3 'norm      '    .23696E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2680       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17609E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2045       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8009       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8716       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.849       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.366       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.978       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.011       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64361       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2348       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=   6783.977     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2550 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.175        .11455E-06** at limit **
   2  norm          10.005        11.256        .24201E-06    .39091E-05
   3  norm          .10000E-03    5.2726       -.46601E-06** at limit **
   4  Prefactor     4.2714        5.3438       -.39020E-06    .13109E-03
   5  norm          .10000E-03    .68108        .73820E-07** at limit **
   6  Prefactor     1.0922        10.258        .47265E-05   -.12698E-03
   7  Prefactor     .10007E-03    16.515        .61021E-05** at limit **
   8  norm          7.1989        4.4054       -.17784E-05   -.15709E-02
   9  norm          1.3422        10.128        .12197E-05   -.12790E-03
  10  Prefactor     .10000E-03    15.747        .72295E-06** at limit **
  11  Prefactor     .10000E-03    16.382        .26663E-06** at limit **
  12  Prefactor     .10000E-03    17.982        .52902E-07** at limit **
  13  Prefactor     9.8003        11.242        .61634E-06   -.16155E-03
  14  norm          1.8720        3.3112        .22941E-07    .54232E-05
  15  norm          .10000E-03    9.8370        .74518E-08** at limit **
  16  Prefactor     .10000E-03    4.0699        .39850E-06** at limit **
  17  Prefactor     68.877        52.318       -.51745E-07   -.29526E-04
  18  norm          .10000E-03    5.8194        .23290E-07** at limit **
  19  Prefactor     10.365        6.3592        .12895E-06    .51092E-03
  20  norm          6.1128        9.2435        .43540E-06   -.52436E-04
  21  Prefactor     29.059        69.169       -.10330E-05    .21887E-04
  22  Prefactor     .10000E-03    12.529       -.12822E-05** at limit **
  23  Prefactor     19.007        19.040        .21073E-06   -.10075E-05
  24  Normalizat    .64366        .31595       -.67897E-05    .13264E-03
  25  Prefactor     1.2348        .13927        .11266E-05   -.27179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.0048
  norm       = 0.000100002
  Prefactor  = 4.27143
  norm       = 0.0001
  Prefactor  = 1.09218
  Prefactor  = 0.000100067
  norm       = 7.19892
  norm       = 1.34216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.8003
  norm       = 1.87196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.8773
  norm       = 0.0001
  Prefactor  = 10.3652
  norm       = 6.11284
  Prefactor  = 29.0592
  Prefactor  = 0.000100002
  Prefactor  = 19.0074
  Normalizat = 0.643662
  Prefactor  = 1.23483
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.977     FROM HESSE     STATUS=OK           435 CALLS     2985 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.005        11.229        .12668E-03   -1.5075    
   3  norm          .10000E-03    22.091        .33060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2714        5.0769        .19502E-03   -1.5295    
   5  norm          .10000E-03    .68206        .66374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0922        10.531        .22848E-02   -1.5499    
   7  Prefactor     .10007E-03    27.665        .83590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1989        5.4400        .11881E-03   -1.5171    
   9  norm          1.3422        9.6766        .37953E-03   -1.5476    
  10  Prefactor     .10000E-03    15.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8003        11.199        .12800E-03   -1.5082    
  14  norm          1.8720        3.2803        .19278E-03   -1.5434    
  15  norm          .10000E-03    9.8399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1248        .16158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.877        52.274        .48375E-04   -1.4046    
  18  norm          .10000E-03    5.8317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.365        6.3366        .12445E-03   -1.5064    
  20  norm          6.1128        9.1901        .16241E-03   -1.5213    
  21  Prefactor     29.059        69.161        .74425E-04   -1.4629    
  22  Prefactor     .10000E-03    12.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.007        19.042        .91859E-04   -1.4836    
  24  Normalizat    .64366        .33500        .48607E-03   -1.0616    
  25  Prefactor     1.2348        .15052        .16888E-03   -.85266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01111e-09
Minuit parameter uncertainties:
  1  5.25158e-05
  2  11.2309
  3  0.000403306
  4  5.07736
  5  3.2722e-06
  6  6.78402
  7  0.00273254
  8  5.44034
  9  7.20902
  10  0.000127035
  11  9.64854e-06
  12  5.72299e-05
  13  11.2018
  14  3.28057
  15  2.50835e-08
  16  2.33594e-05
  17  52.3085
  18  1.00123e-05
  19  6.33702
  20  9.19225
  21  69.353
  22  0.000330061
  23  19.0481
  24  0.33607
  25  0.15057
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  9.800e+00  1.120e+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.235e+00  1.506e-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:  6.437e-01  3.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 205.461 -20.890
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.06e-08 +/- 5.78e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.36e-05

TS (Fixed Index): 1.17
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 1.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888764/likelihoodResults_299721601_299980801_4FGL_J1341.8-2053_daily_bin233.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): 0
logL (Free Index) = 6783.43945052
delta logL = 0.537615935881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6783.43099792
delta logL = 0.546068538918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8539       1.0000          .0000       10.000    
     3 'Normalizat'    .68562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2210       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=   6783.431     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      217 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.170        10.949        .31421E-02   -.14704E-04
   2  Index         1.8539        .49118        .20503       -.79459E-04
   3  Normalizat    .68590        .28675        .10642        .46443E-04
   4  Prefactor     1.2210        .13466        .34152E-01   -.93133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1705
  Index      = 1.85393
  Normalizat = 0.685901
  Prefactor  = 1.22096
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.431     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.170        13.237        .12569E-03   -1.5070    
   2  Index         1.8539        .70664        .10156E-01   -.68054    
   3  Normalizat    .68590        .31525        .47173E-03   -1.0445    
   4  Prefactor     1.2210        .14856        .16963E-03   -.85689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55846e-11
Minuit parameter uncertainties:
  1  13.2411
  2  0.71059
  3  0.316088
  4  0.148614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888764': 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) = 6783.4309971
delta logL = 0.546069354928

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.017e+01  1.324e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.854e+00  7.106e-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.221e+00  1.486e-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:  6.859e-01  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 1.85 +/- 0.71
Photon Flux (Free Index): 2.51e-08 +/- 3.82e-08
Energy Flux (Free Index): 2.56e-05 +/- 3.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/888764/cmap_HighResolution_299721601_299980801_4FGL_J1341.8-2053_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='5.06e-08', energy_flux2='2.56e-05', photon_flux_error='5.78e-08', dlogl='5.46e-01', energy_flux='1.19e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-09-08 09:30:16.792878', photon_index_error2='0.71', photon_index2='1.85', ts='1.17', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='3.69e-05', EG='0.64', time_epoch_completed='1631118616.79', return_code='0', job_id='888764', GAL2='1.22', EG2='0.69', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.82e-08', ts2='2.26', photon_index='2.73' WHERE bin_id='233' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:30:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 888764: <4FGL_J1341.8-2053_daily_bin233> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin233> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:26 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:15:43 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:15:43 2021
Terminated at Wed Sep  8 09:30:17 2021
Results reported at Wed Sep  8 09:30:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin233 205.461 -20.8901 299721601 299980801 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 :                                   702.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            891 sec.

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

