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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin373
RA = 205.461, Dec = -20.8901
tmin = 336009601, tmax = 336268801
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='888964', job_status='RUN', time_executed='2021-09-08 09:18:08.376258', time_epoch_executed='1631117888.38' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888964

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888964/ft1_4FGL_J1341.8-2053_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888964/ft2_4FGL_J1341.8-2053_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888964/ft1_4FGL_J1341.8-2053_daily_bin373.fits outfile=/scratch/kocevski/888964/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin373.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=336009601.0 tmax=336268801.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.31
user 3.09
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888964/ft2_4FGL_J1341.8-2053_daily_bin373.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/888964/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/888964/ft1_filtered_4FGL_J1341.8-2053_daily_bin373.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888964/ft1_filtered_4FGL_J1341.8-2053_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/888964/ft2_4FGL_J1341.8-2053_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/888964/ltcube_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.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/888964/ft2_4FGL_J1341.8-2053_daily_bin373.fits
.....................!
real 14.65
user 14.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888964/ft1_filtered_4FGL_J1341.8-2053_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/888964/ft2_4FGL_J1341.8-2053_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/888964/ltcube_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.fits outfile=/scratch/kocevski/888964/expmap_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.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/888964/ltcube_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.fits
.....................!
real 191.90
user 185.76
sys 5.43

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/888964/ft1_filtered_4FGL_J1341.8-2053_daily_bin373.fits scfile=/scratch/kocevski/888964/ft2_4FGL_J1341.8-2053_daily_bin373.fits outfile=/scratch/kocevski/888964/cmap_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=205.461 yref=-20.8901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888964/ft1_filtered_4FGL_J1341.8-2053_daily_bin373.fits scfile=/scratch/kocevski/888964/ft2_4FGL_J1341.8-2053_daily_bin373.fits outfile=/scratch/kocevski/888964/cmap_HighResolution_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888964/ft1_filtered_4FGL_J1341.8-2053_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/888964/ft2_4FGL_J1341.8-2053_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888964/Model_4FGL_J1341.8-2053_daily_bin373.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/888964/ft1_filtered_4FGL_J1341.8-2053_daily_bin373.fits.....................!
real 53.12
user 51.70
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    24.626       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13140E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7187       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8837       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45385E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9085       1.0000         .10000E-03   10000.    
    15 'norm      '    54.088       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.358       1.0000         .10000E-03   10000.    
    18 'norm      '    .10157       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24937E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.9974       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .60025       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=   6271.427     FROM MIGRAD    STATUS=CONVERGED   1067 CALLS     3400 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    115.26        .18142E-02** at limit **
   2  norm          24.621        13.391        .80721E-04   -.61124E-04
   3  norm          7.2647        6.2198        .14877E-03   -.66331E-03
   4  Prefactor     .10000E-03    3.1385        .13655E-02** at limit **
   5  norm          .10000E-03    3.3889        .19033E-02** at limit **
   6  Prefactor     1.7180        17.833        .32047E-03    .22349E-05
   7  Prefactor     3.8521        34.976        .10237E-02   -.35658E-04
   8  norm          .10000E-03    1.9512        .10756E-02** at limit **
   9  norm          3.7357        7.0911        .20890E-03    .29823E-04
  10  Prefactor     .10000E-03    20.366        .36285E-03** at limit **
  11  Prefactor     .10000E-03    18.314        .18142E-02** at limit **
  12  Prefactor     .10037E-03    49.707        .42829E-02** at limit **
  13  Prefactor     .10000E-03    5.3445        .17833E-02** at limit **
  14  norm          4.9085        4.3085        .14915E-03    .16465E-04
  15  norm          54.109        32.234        .54539E-04    .73417E-04
  16  Prefactor     .10000E-03    9.2854        .36285E-03** at limit **
  17  Prefactor     14.308        31.959        .10570E-03    .19897E-04
  18  norm          .66463E-01    11.321        .73720E-01    .63056E-03
  19  Prefactor     .10020E-03    61.811        .22189E-02** at limit **
  20  norm          .10000E-03    5.1382        .17412E-02** at limit **
  21  Prefactor     .10000E-03    88.246        .18142E-02** at limit **
  22  Prefactor     .10000E-03    9.9792        .18142E-02** at limit **
  23  Prefactor     .10000E-03    30.364        .18142E-02** at limit **
  24  Normalizat    1.9977        .32786        .29481E-03    .13532E-03
  25  Prefactor     .60032        .13649        .21284E-03    .55004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 24.6215
  norm       = 7.26469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71802
  Prefactor  = 3.85211
  norm       = 0.0001
  norm       = 3.73572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100374
  Prefactor  = 0.0001
  norm       = 4.90848
  norm       = 54.1086
  Prefactor  = 0.0001
  Prefactor  = 14.3082
  norm       = 0.0664632
  Prefactor  = 0.000100195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.99767
  Prefactor  = 0.600324
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.427     FROM HESSE     STATUS=OK           411 CALLS     3811 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    115.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          24.621        13.391        .32289E-05   -1.4715    
   3  norm          7.2647        6.2192        .59507E-05   -1.5169    
   4  Prefactor     .10000E-03    3.1387        .27310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4074        .38066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7180        17.805        .12819E-04   -1.5446    
   7  Prefactor     3.8521        34.733        .40949E-04   -1.5315    
   8  norm          .10000E-03    1.9512        .21512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7357        7.0791        .83559E-05   -1.5321    
  10  Prefactor     .10000E-03    20.367        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10037E-03    50.429        .85659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3455        .35666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9085        4.3085        .59659E-05   -1.5265    
  15  norm          54.109        32.230        .10908E-04   -1.4235    
  16  Prefactor     .10000E-03    9.2861        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.308        31.957        .42281E-05   -1.4951    
  18  norm          .66463E-01    10.465        .77775E-01   -1.5656    
  19  Prefactor     .10020E-03    64.189        .88755E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.1408        .34824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    88.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.9977        .32772        .58962E-04   -.64609    
  25  Prefactor     .60032        .13655        .42569E-04   -1.0757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2747e-08
Minuit parameter uncertainties:
  1  0.00108756
  2  13.3922
  3  6.21971
  4  4.71519e-06
  5  2.02e-05
  6  11.0653
  7  23.1517
  8  3.59795e-05
  9  7.08073
  10  9.42604e-06
  11  1.88212e-05
  12  0.00869459
  13  2.20714e-06
  14  4.30873
  15  32.2401
  16  0.000119767
  17  31.9951
  18  1.66704
  19  0.0070859
  20  9.36277e-06
  21  0.000409684
  22  8.16362e-06
  23  2.61361e-06
  24  0.328089
  25  0.136621
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.207e-06  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:  6.003e-01  1.366e-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.998e+00  3.281e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888964/likelihoodResults_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.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) = 6271.42817541
delta logL = -0.000890505007192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6271.42728491
delta logL = -5.77074388275e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7279       1.0000          .0000       10.000    
     3 'Normalizat'    1.9977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60033       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=   6271.427     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    236.06        .17842E-02** at limit **
   2  Index         2.6881        5.6028        .50000        .45681E-05
   3  Normalizat    1.9977        .47472E-01    .29481E-03   -.21472E-04
   4  Prefactor     .60032        .20412E-01    .21284E-03   -.24196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100198
  Index      = 2.68812
  Normalizat = 1.99767
  Prefactor  = 0.600321
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.427     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    837.89        .35685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6881        7.2829        .50000       -.48067    
   3  Normalizat    1.9977        .11441        .58962E-04   -.64609    
   4  Prefactor     .60032        .49190E-01    .85138E-05   -1.0757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73541e-08
Minuit parameter uncertainties:
  1  0.0261348
  2  2353.77
  3  0.114423
  4  0.0491938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888964': 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) = 6271.42728487
delta logL = 3.38113750331e-08

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.002e-04  2.613e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.688e+00  2.354e+03  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:  6.003e-01  4.919e-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.998e+00  1.144e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/888964/cmap_HighResolution_336009601_336268801_4FGL_J1341.8-2053_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-08 09:30:18.176051', job_id='888964', GAL2='0.60', fit_tolerance='1e-08', EG2='2.00', EG='2.00', time_epoch_completed='1631118618.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='3.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='373' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:30:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 888964: <4FGL_J1341.8-2053_daily_bin373> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin373> 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) <bullet0093>, 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:18 2021
Results reported at Wed Sep  8 09:30:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin373 205.461 -20.8901 336009601 336268801 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 :                                   726.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            879 sec.

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

