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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin823
RA = 205.461, Dec = -20.8901
tmin = 452649601, tmax = 452908801
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='891852', job_status='RUN', time_executed='2021-09-08 09:29:35.677292', time_epoch_executed='1631118575.68' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891852/ft1_4FGL_J1341.8-2053_daily_bin823.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891852/ft2_4FGL_J1341.8-2053_daily_bin823.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891852/ft1_4FGL_J1341.8-2053_daily_bin823.fits outfile=/scratch/kocevski/891852/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin823.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=452649601.0 tmax=452908801.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 2.85
user 2.62
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891852/ft1_filtered_4FGL_J1341.8-2053_daily_bin823.fits" evtable="EVENTS" scfile=/scratch/kocevski/891852/ft2_4FGL_J1341.8-2053_daily_bin823.fits sctable="SC_DATA" outfile=/scratch/kocevski/891852/ltcube_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.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/891852/ft2_4FGL_J1341.8-2053_daily_bin823.fits
.....................!
real 15.89
user 15.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891852/ft1_filtered_4FGL_J1341.8-2053_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/891852/ft2_4FGL_J1341.8-2053_daily_bin823.fits sctable="SC_DATA" expcube=/scratch/kocevski/891852/ltcube_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.fits outfile=/scratch/kocevski/891852/expmap_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.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/891852/ltcube_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.fits
.....................!
real 159.11
user 153.88
sys 4.74

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/891852/ft1_filtered_4FGL_J1341.8-2053_daily_bin823.fits scfile=/scratch/kocevski/891852/ft2_4FGL_J1341.8-2053_daily_bin823.fits outfile=/scratch/kocevski/891852/cmap_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891852/ft1_filtered_4FGL_J1341.8-2053_daily_bin823.fits scfile=/scratch/kocevski/891852/ft2_4FGL_J1341.8-2053_daily_bin823.fits outfile=/scratch/kocevski/891852/cmap_HighResolution_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.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.50
user 0.32
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9103       1.0000         .10000E-03   10000.    
     3 'norm      '    .89639E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36543E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2448       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6279       1.0000         .10000E-03   10000.    
     9 'norm      '    11.535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11634E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31891E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12261E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .11309E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1732       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6904       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.645       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.412       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6151       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72093       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=   7509.237     FROM MIGRAD    STATUS=CONVERGED   1040 CALLS     3466 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.299        .18142E-02** at limit **
   2  norm          1.9076        8.8630        .30079E-03   -.30918E-04
   3  norm          .15150        30.588        .33112E-02    .21102E-03
   4  Prefactor     .10000E-03    5.5639        .36285E-03** at limit **
   5  norm          .10000E-03    1.2315        .92764E-03** at limit **
   6  Prefactor     .10002E-03    27.957        .38653E-02** at limit **
   7  Prefactor     7.3139        39.753        .14902E-03   -.14159E-03
   8  norm          2.6061        11.330        .22532E-03   -.36031E-03
   9  norm          11.561        10.706        .11795E-03   -.78937E-04
  10  Prefactor     .10061E-03    111.82        .43752E-02** at limit **
  11  Prefactor     .10000E-03    9.8237        .18142E-02** at limit **
  12  Prefactor     .10001E-03    77.544        .38301E-02** at limit **
  13  Prefactor     .10030E-03    86.205        .39344E-02** at limit **
  14  norm          .10000E-03    4.6621        .25092E-02** at limit **
  15  norm          .10000E-03    9.0893        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.5871        .10621E-02** at limit **
  17  Prefactor     1.1344        272.93        .42325E-02    .32163E-04
  18  norm          .10000E-03    10.582        .36285E-03** at limit **
  19  Prefactor     2.6908        3.6068        .18004E-03   -.26376E-03
  20  norm          .10000E-03    3.3171        .15339E-02** at limit **
  21  Prefactor     62.669        65.391        .50699E-04   -.11230E-03
  22  Prefactor     25.409        21.241        .79465E-04   -.19314E-04
  23  Prefactor     .10000E-03    14.584        .18142E-02** at limit **
  24  Normalizat    1.6150        .27525        .29909E-03   -.68623E-03
  25  Prefactor     .72092        .11970        .18975E-03   -.42669E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.90759
  norm       = 0.151496
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 7.31394
  norm       = 2.60607
  norm       = 11.5609
  Prefactor  = 0.000100614
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100295
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.13442
  norm       = 0.0001
  Prefactor  = 2.6908
  norm       = 0.0001
  Prefactor  = 62.6693
  Prefactor  = 25.4087
  Prefactor  = 0.0001
  Normalizat = 1.61505
  Prefactor  = 0.720917
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.237     FROM HESSE     STATUS=OK           407 CALLS     3873 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9076        8.8559        .12031E-04   -1.5432    
   3  norm          .15150        31.349        .13245E-03   -1.5630    
   4  Prefactor     .10000E-03    5.5640        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2318        .18553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    28.203        .77307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3139        39.302        .59609E-05   -1.5167    
   8  norm          2.6061        11.179        .90127E-05   -1.5385    
   9  norm          11.561        10.669        .47182E-05   -1.5028    
  10  Prefactor     .10061E-03    116.18        .17501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    79.748        .15320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10030E-03    88.622        .15738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6848        .50183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.0896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5873        .21243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1344        273.37        .16930E-03   -1.5495    
  18  norm          .10000E-03    10.582        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6908        3.6046        .72015E-05   -1.5380    
  20  norm          .10000E-03    3.3180        .30679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.669        65.375        .10140E-04   -1.4123    
  22  Prefactor     25.409        21.239        .31786E-05   -1.4699    
  23  Prefactor     .10000E-03    14.586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6150        .27512        .59819E-04   -.74595    
  25  Prefactor     .72092        .11969        .37949E-04   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18804e-08
Minuit parameter uncertainties:
  1  0.000766501
  2  8.22212
  3  4.35942
  4  4.19523e-05
  5  8.27734e-06
  6  0.00154053
  7  33.9434
  8  10.7982
  9  10.6709
  10  0.0169257
  11  4.63475e-05
  12  0.00169939
  13  0.0102434
  14  0.000248885
  15  2.80476e-05
  16  4.01494e-06
  17  35.383
  18  9.58129e-05
  19  3.60488
  20  1.10585e-05
  21  65.45
  22  21.2451
  23  9.87158e-06
  24  0.27538
  25  0.119729
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.003e-04  1.024e-02  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:  7.209e-01  1.197e-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.615e+00  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891852/likelihoodResults_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7509.23694792
delta logL = -5.40377395737e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7509.23694781
delta logL = -5.39214233868e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96216E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7316       1.0000          .0000       10.000    
     3 'Normalizat'    1.6149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72096       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=   7509.232     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      299 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64012        23.989        .61932E-01    .57090E-03
   2  Index         3.3130        2.8162        .50000        .26223E-05
   3  Normalizat    1.6087        .13931E-01    .67728E-01   -.10829E-03
   4  Prefactor     .72201        .62314E-02    .42680E-01    .12565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.640118
  Index      = 3.31303
  Normalizat = 1.60867
  Prefactor  = 0.722012
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.232     FROM HESSE     STATUS=OK            33 CALLS      332 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64012        79.166        .34706E-02   -1.5548    
   2  Index         3.3130        6.4387        .22714E-01   -.34415    
   3  Normalizat    1.6087        .28101        .29960E-03   -.74769    
   4  Prefactor     .72201        .11912        .18962E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97476e-07
Minuit parameter uncertainties:
  1  14.2556
  2  7.75285
  3  0.281283
  4  0.119157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891852': 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) = 7509.23200139
delta logL = 0.00489249011025

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  6.401e-01  1.426e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.313e+00  7.753e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.220e-01  1.192e-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.609e+00  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.461 -20.890

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/891852/cmap_HighResolution_452649601_452908801_4FGL_J1341.8-2053_daily_bin823.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.96e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-08 09:41:27.659466', job_id='891852', GAL2='0.72', fit_tolerance='1e-08', EG2='1.61', EG='1.62', time_epoch_completed='1631119287.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.89e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='823' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:41:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 891852: <4FGL_J1341.8-2053_daily_bin823> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin823> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:25:31 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:25:52 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:25:52 2021
Terminated at Wed Sep  8 09:41:28 2021
Results reported at Wed Sep  8 09:41:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin823 205.461 -20.8901 452649601 452908801 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 :                                   709.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            957 sec.

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

