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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin318
RA = 205.461, Dec = -20.8901
tmin = 321753601, tmax = 322012801
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='888884', job_status='RUN', time_executed='2021-09-08 09:16:09.611764', time_epoch_executed='1631117769.61' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888884/ft1_4FGL_J1341.8-2053_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888884/ft2_4FGL_J1341.8-2053_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888884/ft1_4FGL_J1341.8-2053_daily_bin318.fits outfile=/scratch/kocevski/888884/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin318.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=321753601.0 tmax=322012801.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.50
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888884/ft2_4FGL_J1341.8-2053_daily_bin318.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/888884/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/888884/ft1_filtered_4FGL_J1341.8-2053_daily_bin318.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.74
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888884/ft1_filtered_4FGL_J1341.8-2053_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/888884/ft2_4FGL_J1341.8-2053_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/888884/ltcube_321753601_322012801_4FGL_J1341.8-2053_daily_bin318.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/888884/ft2_4FGL_J1341.8-2053_daily_bin318.fits
.....................!
real 17.11
user 16.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888884/ft1_filtered_4FGL_J1341.8-2053_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/888884/ft2_4FGL_J1341.8-2053_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/888884/ltcube_321753601_322012801_4FGL_J1341.8-2053_daily_bin318.fits outfile=/scratch/kocevski/888884/expmap_321753601_322012801_4FGL_J1341.8-2053_daily_bin318.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/888884/ltcube_321753601_322012801_4FGL_J1341.8-2053_daily_bin318.fits
.....................!
real 191.42
user 186.32
sys 4.57

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/888884/ft1_filtered_4FGL_J1341.8-2053_daily_bin318.fits scfile=/scratch/kocevski/888884/ft2_4FGL_J1341.8-2053_daily_bin318.fits outfile=/scratch/kocevski/888884/cmap_321753601_322012801_4FGL_J1341.8-2053_daily_bin318.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888884/ft1_filtered_4FGL_J1341.8-2053_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/888884/ft2_4FGL_J1341.8-2053_daily_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888884/Model_4FGL_J1341.8-2053_daily_bin318.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/888884/ft1_filtered_4FGL_J1341.8-2053_daily_bin318.fits.....................!
real 61.30
user 59.88
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    15.336       1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8644       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.951       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.549       1.0000         .10000E-03   10000.    
     8 'norm      '    .12048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0804       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2391       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1185       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.914       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82850       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1301       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=   7579.880     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2864 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.661        .40504E-05** at limit **
   2  norm          15.336        8.4258        .10350E-06   -.34015E-04
   3  norm          .10000E-03    2.7426        .74292E-06** at limit **
   4  Prefactor     1.8639        3.9908        .50522E-05   -.18817E-03
   5  norm          .10000E-03    .75356        .44723E-07** at limit **
   6  Prefactor     10.952        8.3008        .98803E-07   -.47544E-05
   7  Prefactor     27.548        20.608        .18266E-06    .17467E-05
   8  norm          .10000E-03    2.6166       -.52168E-07** at limit **
   9  norm          6.0827        6.5234        .74305E-07   -.94476E-06
  10  Prefactor     .10000E-03    4.1782       -.96490E-07** at limit **
  11  Prefactor     .10000E-03    12.744        .48675E-06** at limit **
  12  Prefactor     .10000E-03    6.3375       -.74552E-07** at limit **
  13  Prefactor     .10000E-03    3.4310        .83489E-07** at limit **
  14  norm          3.2389        5.1871        .36210E-05    .57466E-04
  15  norm          .10000E-03    8.0228       -.75907E-06** at limit **
  16  Prefactor     .10000E-03    1.6622        .21408E-07** at limit **
  17  Prefactor     .10000E-03    24.902       -.39033E-05** at limit **
  18  norm          9.1111        11.464        .88583E-06    .18369E-03
  19  Prefactor     .10000E-03    1.7206       -.65520E-07** at limit **
  20  norm          .10000E-03    5.7991        .62179E-06** at limit **
  21  Prefactor     45.833        58.439        .13657E-04    .53201E-04
  22  Prefactor     .10000E-03    9.3241       -.24217E-06** at limit **
  23  Prefactor     .10000E-03    12.639        .59250E-06** at limit **
  24  Normalizat    .82827        .24977       -.46409E-06    .32054E-04
  25  Prefactor     1.1302        .11535       -.11447E-05    .22331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.3365
  norm       = 0.0001
  Prefactor  = 1.86387
  norm       = 0.0001
  Prefactor  = 10.9524
  Prefactor  = 27.5476
  norm       = 0.0001
  norm       = 6.08266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23888
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.11114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.8334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.828271
  Prefactor  = 1.13022
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.880     FROM HESSE     STATUS=OK           421 CALLS     3285 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.336        8.4242        .51137E-03   -1.4925    
   3  norm          .10000E-03    2.7836        .14087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8639        3.9899        .12339E-02   -1.5435    
   5  norm          .10000E-03    .75979        .73798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.952        8.2972        .12106E-03   -1.5046    
   7  Prefactor     27.548        20.483        .76327E-04   -1.4658    
   8  norm          .10000E-03    2.6250        .13647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0827        6.4989        .16282E-03   -1.5215    
  10  Prefactor     .10000E-03    4.1856        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4408        .15748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2389        5.1794        .11253E-02   -1.5348    
  15  norm          .10000E-03    8.0247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6677        .10959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1111        11.176        .13273E-03   -1.5104    
  19  Prefactor     .10000E-03    6.5124        .21334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.9724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.833        58.476        .29586E-03   -1.4353    
  22  Prefactor     .10000E-03    9.3315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82827        .28519        .41298E-03   -.99028    
  25  Prefactor     1.1302        .13298        .16750E-03   -.88506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06943e-10
Minuit parameter uncertainties:
  1  6.33536e-05
  2  8.42483
  3  8.6235e-06
  4  3.99049
  5  1.41542e-06
  6  8.29809
  7  20.4886
  8  3.74202e-06
  9  6.49966
  10  1.6989e-06
  11  4.35873e-06
  12  4.14015e-06
  13  8.88839e-07
  14  5.18016
  15  3.9628e-06
  16  1.19481e-06
  17  3.09681e-05
  18  11.1781
  19  0.000101711
  20  3.99224e-06
  21  58.5491
  22  6.19977e-05
  23  1.06849e-05
  24  0.285712
  25  0.13302
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  8.888e-07  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.130e+00  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  8.283e-01  2.857e-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: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888884/likelihoodResults_321753601_322012801_4FGL_J1341.8-2053_daily_bin318.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) = 7579.88122303
delta logL = -0.00138276187863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7579.87984008
delta logL = 1.83276824828e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7104       1.0000          .0000       10.000    
     3 'Normalizat'    .82827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1302       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=   7579.880     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.782        .16034E-01** at limit **
   2  Index         2.1720        5.1925        .50000        .72653E-06
   3  Normalizat    .82827        .12746E-01    .41297E-03   -.17294E-03
   4  Prefactor     1.1302        .59922E-02    .16750E-03   -.42615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17202
  Normalizat = 0.828272
  Prefactor  = 1.13022
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.880     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    180.48        .18117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1720        8.0011        .50000       -.60116    
   3  Normalizat    .82827        .39056E-01    .16519E-04   -.99028    
   4  Prefactor     1.1302        .18361E-01    .33501E-04   -.88506    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25353e-08
Minuit parameter uncertainties:
  1  2.14756e-07
  2  635.108
  3  0.039057
  4  0.0183611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888884': 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): 102
logL (Free Index) = 7579.87983668
delta logL = 3.58752913598e-06

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.148e-07  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.172e+00  6.351e+02  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.130e+00  1.836e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  8.283e-01  3.906e-02  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/888884/cmap_HighResolution_321753601_322012801_4FGL_J1341.8-2053_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-08 09:29:11.412304', job_id='888884', GAL2='1.13', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631118551.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='318' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:29:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 888884: <4FGL_J1341.8-2053_daily_bin318> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin318> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:34 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:15:59 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:59 2021
Terminated at Wed Sep  8 09:29:12 2021
Results reported at Wed Sep  8 09:29:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin318 205.461 -20.8901 321753601 322012801 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            818 sec.

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

