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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin854
RA = 205.461, Dec = -20.8901
tmin = 460684801, tmax = 460944001
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='891897', job_status='RUN', time_executed='2021-09-08 09:28:43.984778', time_epoch_executed='1631118523.98' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891897

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891897/ft1_4FGL_J1341.8-2053_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891897/ft2_4FGL_J1341.8-2053_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891897/ft1_4FGL_J1341.8-2053_daily_bin854.fits outfile=/scratch/kocevski/891897/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin854.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=460684801.0 tmax=460944001.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.36
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891897/ft1_filtered_4FGL_J1341.8-2053_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/891897/ft2_4FGL_J1341.8-2053_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/891897/ltcube_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.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/891897/ft2_4FGL_J1341.8-2053_daily_bin854.fits
.....................!
real 16.93
user 16.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891897/ft1_filtered_4FGL_J1341.8-2053_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/891897/ft2_4FGL_J1341.8-2053_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/891897/ltcube_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.fits outfile=/scratch/kocevski/891897/expmap_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.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/891897/ltcube_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.fits
.....................!
real 192.98
user 186.76
sys 5.46

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/891897/ft1_filtered_4FGL_J1341.8-2053_daily_bin854.fits scfile=/scratch/kocevski/891897/ft2_4FGL_J1341.8-2053_daily_bin854.fits outfile=/scratch/kocevski/891897/cmap_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.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/891897/ft1_filtered_4FGL_J1341.8-2053_daily_bin854.fits scfile=/scratch/kocevski/891897/ft2_4FGL_J1341.8-2053_daily_bin854.fits outfile=/scratch/kocevski/891897/cmap_HighResolution_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.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/891897/ft1_filtered_4FGL_J1341.8-2053_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/891897/ft2_4FGL_J1341.8-2053_daily_bin854.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891897/Model_4FGL_J1341.8-2053_daily_bin854.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/891897/ft1_filtered_4FGL_J1341.8-2053_daily_bin854.fits.....................!
real 52.17
user 50.73
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.169       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35639E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .13689E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.652       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.178       1.0000         .10000E-03   10000.    
     8 'norm      '    .22113E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.208       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84673       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1258       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=   6040.393     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2937 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.971        82.139       -.23290E-04   -.11990E-03
   2  norm          .10000E-03    4.2247       -.10058E-06** at limit **
   3  norm          4.0722        9.0189        .14443E-04   -.63790E-03
   4  Prefactor     .10155E-03    9.0921       -.10200E-04** at limit **
   5  norm          .10000E-03    2.3610       -.15994E-06** at limit **
   6  Prefactor     11.650        9.7656        .23955E-06   -.32078E-03
   7  Prefactor     23.165        19.863        .10902E-06   -.37381E-03
   8  norm          .10008E-03    2.7536        .29831E-06** at limit **
   9  norm          4.6839        6.3561        .78132E-07   -.26555E-03
  10  Prefactor     .10000E-03    5.1897       -.12009E-07** at limit **
  11  Prefactor     4.9888        24.584        .18153E-06    .41152E-05
  12  Prefactor     .10000E-03    11.454       -.52882E-07** at limit **
  13  Prefactor     .10000E-03    6.6882       -.15933E-06** at limit **
  14  norm          .10000E-03    1.8993        .84601E-08** at limit **
  15  norm          .10000E-03    10.518        .66061E-07** at limit **
  16  Prefactor     29.207        8.8506        .79762E-07   -.21105E-03
  17  Prefactor     .10000E-03    82.934        .14875E-06** at limit **
  18  norm          .10000E-03    20.966        .20725E-07** at limit **
  19  Prefactor     .10000E-03    7.3996        .21998E-06** at limit **
  20  norm          .10000E-03    6.3257        .13019E-06** at limit **
  21  Prefactor     .10000E-03    24.913       -.20869E-06** at limit **
  22  Prefactor     .10000E-03    13.041       -.28986E-07** at limit **
  23  Prefactor     .10000E-03    19.213        .12071E-06** at limit **
  24  Normalizat    .84658        .29464       -.21365E-05    .37900E-03
  25  Prefactor     1.1259        .13227        .52915E-06    .77190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9708
  norm       = 0.0001
  norm       = 4.07222
  Prefactor  = 0.000101549
  norm       = 0.000100005
  Prefactor  = 11.6495
  Prefactor  = 23.165
  norm       = 0.000100077
  norm       = 4.68386
  Prefactor  = 0.0001
  Prefactor  = 4.98881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.207
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.846578
  Prefactor  = 1.12591
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.393     FROM HESSE     STATUS=OK           421 CALLS     3358 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.971        81.794        .81480E-04   -1.4728    
   2  norm          .10000E-03    4.2537        .15601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0722        9.2515        .10024E-02   -1.5304    
   4  Prefactor     .10155E-03    88.507        .38842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8929        .23041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.650        9.7615        .58680E-03   -1.5025    
   7  Prefactor     23.165        17.212        .83201E-04   -1.4745    
   8  norm          .10008E-03    17.775        .21139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6839        6.3153        .18592E-03   -1.5275    
  10  Prefactor     .10000E-03    5.2058        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9888        24.574        .18001E-03   -1.5261    
  12  Prefactor     .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9079        .10459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.207        8.8414        .74132E-04   -1.4627    
  17  Prefactor     .10000E-03    83.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.3658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84658        .33802        .42780E-03   -.98364    
  25  Prefactor     1.1259        .15257        .17137E-03   -.88643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2895e-08
Minuit parameter uncertainties:
  1  82.1804
  2  1.00975e-06
  3  9.25471
  4  0.0234503
  5  0.000312715
  6  9.76286
  7  17.216
  8  0.00234354
  9  6.31623
  10  4.74736e-06
  11  22.1588
  12  3.38059e-05
  13  3.30708e-05
  14  1.16648e-06
  15  1.83198e-05
  16  8.84179
  17  1.2223e-05
  18  5.56337e-05
  19  5.8075e-06
  20  2.21854e-05
  21  0.000113976
  22  2.11732e-05
  23  3.25477e-05
  24  0.338863
  25  0.15263
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.307e-05  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.126e+00  1.526e-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.466e-01  3.389e-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: 9.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891897/likelihoodResults_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.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) = 6040.39385156
delta logL = -0.000702677760273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6040.39314947
delta logL = -5.84635927225e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6983       1.0000          .0000       10.000    
     3 'Normalizat'    .84666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1259       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=   6040.393     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      263 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6634        .75348E-01** at limit **
   2  Index         2.2296        6.4572        .50000       -.69122E-08
   3  Normalizat    .84658        .54517E-02    .42780E-03    .12732E-03
   4  Prefactor     1.1259        .25020E-02    .17137E-03    .11011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22956
  Normalizat = 0.846577
  Prefactor  = 1.12591
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.393     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    127.01        .37052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2296        5.7918        .50000       -.58727    
   3  Normalizat    .84658        .24649E-01    .17112E-04   -.98364    
   4  Prefactor     1.1259        .11313E-01    .34274E-04   -.88643    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.29137e-12
Minuit parameter uncertainties:
  1  4.09523e-05
  2  398.52
  3  0.0246492
  4  0.0113126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891897': 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) = 6040.39314632
delta logL = 2.5686022127e-06

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  4.095e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.230e+00  3.985e+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.126e+00  1.131e-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.466e-01  2.465e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/891897/cmap_HighResolution_460684801_460944001_4FGL_J1341.8-2053_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='9.97e-08', time_completed='2021-09-08 09:40:11.166261', job_id='891897', GAL2='1.13', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631119211.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='854' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:40:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 891897: <4FGL_J1341.8-2053_daily_bin854> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin854> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:25:34 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:25:58 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:58 2021
Terminated at Wed Sep  8 09:40:11 2021
Results reported at Wed Sep  8 09:40:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin854 205.461 -20.8901 460684801 460944001 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 :                                   686.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            877 sec.

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

