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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin374
RA = 205.461, Dec = -20.8901
tmin = 336268801, tmax = 336528001
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='888965', job_status='RUN', time_executed='2021-09-08 09:19:12.488448', time_epoch_executed='1631117952.49' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888965

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888965/ft1_4FGL_J1341.8-2053_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888965/ft2_4FGL_J1341.8-2053_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888965/ft1_4FGL_J1341.8-2053_daily_bin374.fits outfile=/scratch/kocevski/888965/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin374.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=336268801.0 tmax=336528001.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 7.18
user 6.84
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888965/ft1_filtered_4FGL_J1341.8-2053_daily_bin374.fits" evtable="EVENTS" scfile=/scratch/kocevski/888965/ft2_4FGL_J1341.8-2053_daily_bin374.fits sctable="SC_DATA" outfile=/scratch/kocevski/888965/ltcube_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.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/888965/ft2_4FGL_J1341.8-2053_daily_bin374.fits
.....................!
real 13.15
user 12.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888965/ft1_filtered_4FGL_J1341.8-2053_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/888965/ft2_4FGL_J1341.8-2053_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/888965/ltcube_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.fits outfile=/scratch/kocevski/888965/expmap_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.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/888965/ltcube_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.fits
.....................!
real 191.90
user 185.77
sys 5.13

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/888965/ft1_filtered_4FGL_J1341.8-2053_daily_bin374.fits scfile=/scratch/kocevski/888965/ft2_4FGL_J1341.8-2053_daily_bin374.fits outfile=/scratch/kocevski/888965/cmap_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888965/ft1_filtered_4FGL_J1341.8-2053_daily_bin374.fits scfile=/scratch/kocevski/888965/ft2_4FGL_J1341.8-2053_daily_bin374.fits outfile=/scratch/kocevski/888965/cmap_HighResolution_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12319E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6487       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2405       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6264       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .84183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11379E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7810       1.0000         .10000E-03   10000.    
    15 'norm      '    .10718E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1296       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.631       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3052       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0500       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=   6505.978     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2473 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.008        .14963E-05** at limit **
   2  norm          .10000E-03    2.6573        .54172E-08** at limit **
   3  norm          .10001E-03    7.4201        .20214E-05** at limit **
   4  Prefactor     5.6720        7.8904        .67039E-06   -.24398E-03
   5  norm          1.2405        2.3502        .65832E-07   -.38934E-04
   6  Prefactor     3.6293        8.6370        .22459E-05    .24891E-03
   7  Prefactor     .10000E-03    7.3571       -.49085E-07** at limit **
   8  norm          .10000E-03    1.4087        .59228E-07** at limit **
   9  norm          .84208        5.4345        .64039E-06    .66934E-04
  10  Prefactor     .10000E-03    14.823       -.91422E-07** at limit **
  11  Prefactor     .10000E-03    25.652       -.29191E-06** at limit **
  12  Prefactor     10.924        15.347        .14966E-06    .20132E-04
  13  Prefactor     .10000E-03    18.904        .16947E-05** at limit **
  14  norm          4.7807        5.2332       -.80314E-07   -.34038E-04
  15  norm          .10000E-03    34.393       -.17880E-05** at limit **
  16  Prefactor     1.2465        7.1619        .71123E-06    .48820E-04
  17  Prefactor     .10000E-03    40.206        .32596E-06** at limit **
  18  norm          .10000E-03    10.390       -.72165E-07** at limit **
  19  Prefactor     1.1275        4.2294        .34112E-06    .43384E-04
  20  norm          .10000E-03    5.1381        .11218E-06** at limit **
  21  Prefactor     .10000E-03    33.720       -.19483E-05** at limit **
  22  Prefactor     .10000E-03    9.9801        .74821E-06** at limit **
  23  Prefactor     14.676        21.244       -.34750E-05   -.10576E-03
  24  Normalizat    1.3052        .27646       -.31746E-06   -.45283E-04
  25  Prefactor     1.0500        .12316        .11545E-06   -.11433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100014
  Prefactor  = 5.67199
  norm       = 1.24047
  Prefactor  = 3.62931
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.842082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9244
  Prefactor  = 0.0001
  norm       = 4.78069
  norm       = 0.0001
  Prefactor  = 1.24652
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.12746
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6755
  Normalizat = 1.30522
  Prefactor  = 1.05004
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.978     FROM HESSE     STATUS=OK           423 CALLS     2896 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6611        .12841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    12.556        .33056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6720        7.0081        .16902E-03   -1.5232    
   5  norm          1.2405        2.3027        .16463E-03   -1.5485    
   6  Prefactor     3.6293        8.9002        .10608E-02   -1.5327    
   7  Prefactor     .10000E-03    7.3687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4137        .93413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .84208        5.2979        .36205E-03   -1.5524    
  10  Prefactor     .10000E-03    14.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.924        15.267        .12116E-03   -1.5047    
  13  Prefactor     .10000E-03    19.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7807        5.2291        .18400E-03   -1.5271    
  15  norm          .10000E-03    34.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2465        7.1850        .40102E-03   -1.5485    
  17  Prefactor     .10000E-03    40.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1275        4.1958        .30077E-03   -1.5496    
  20  norm          .10000E-03    5.1714        .17813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.676        21.387        .10471E-03   -1.4942    
  24  Normalizat    1.3052        .32397        .36440E-03   -.83411    
  25  Prefactor     1.0500        .14590        .18210E-03   -.91079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31968e-09
Minuit parameter uncertainties:
  1  5.63546e-05
  2  1.22647e-06
  3  0.000829703
  4  7.0091
  5  2.30291
  6  8.90348
  7  4.46932e-06
  8  4.72626e-07
  9  4.22466
  10  2.71844e-05
  11  3.43829e-05
  12  15.2724
  13  1.53753e-05
  14  5.22958
  15  9.71788e-05
  16  5.98626
  17  6.57258e-06
  18  6.56924e-06
  19  4.19686
  20  7.03189e-07
  21  0.000112102
  22  1.96989e-05
  23  21.3978
  24  0.324476
  25  0.145957
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.538e-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.050e+00  1.460e-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.305e+00  3.245e-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.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888965/likelihoodResults_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.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) = 6505.97824395
delta logL = -0.000248967181506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6505.97799536
delta logL = -3.77322066925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7972       1.0000          .0000       10.000    
     3 'Normalizat'    1.3054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0500       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=   6505.978     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      220 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    29.550        .90712E-01** at limit **
   2  Index         2.8865        5.4849        .50000       -.37374E-04
   3  Normalizat    1.3052        .14216E-01    .82312E-01    .34946E-04
   4  Prefactor     1.0500        .64917E-02    .39912E-01    .19322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100068
  Index      = 2.88646
  Normalizat = 1.30522
  Prefactor  = 1.05004
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.978     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    6636.4        .42048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8865        8.4746        .50000       -.43643    
   3  Normalizat    1.3052        .83441E-01    .36440E-03   -.83411    
   4  Prefactor     1.0500        .37926E-01    .18210E-03   -.91079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.88675e-07
Minuit parameter uncertainties:
  1  0.0318773
  2  46.6821
  3  0.0834494
  4  0.037927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888965': 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) = 6505.97799377
delta logL = 1.21296397992e-06

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.001e-04  3.188e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.886e+00  4.668e+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.050e+00  3.793e-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:  1.305e+00  8.345e-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/888965/cmap_HighResolution_336268801_336528001_4FGL_J1341.8-2053_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-08 09:30:51.636310', job_id='888965', GAL2='1.05', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631118651.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='374' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:30:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 888965: <4FGL_J1341.8-2053_daily_bin374> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin374> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:39 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:16:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 09:16:06 2021
Terminated at Wed Sep  8 09:30:52 2021
Results reported at Wed Sep  8 09:30:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin374 205.461 -20.8901 336268801 336528001 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            913 sec.

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

