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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin621
RA = 205.461, Dec = -20.8901
tmin = 400291201, tmax = 400550401
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='890435', job_status='RUN', time_executed='2021-09-08 09:22:14.700137', time_epoch_executed='1631118134.7' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890435/ft1_4FGL_J1341.8-2053_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890435/ft2_4FGL_J1341.8-2053_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890435/ft1_4FGL_J1341.8-2053_daily_bin621.fits outfile=/scratch/kocevski/890435/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin621.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=400291201.0 tmax=400550401.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.32
user 3.11
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890435/ft1_filtered_4FGL_J1341.8-2053_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/890435/ft2_4FGL_J1341.8-2053_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/890435/ltcube_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.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/890435/ft2_4FGL_J1341.8-2053_daily_bin621.fits
.....................!
real 14.97
user 14.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890435/ft1_filtered_4FGL_J1341.8-2053_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/890435/ft2_4FGL_J1341.8-2053_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/890435/ltcube_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.fits outfile=/scratch/kocevski/890435/expmap_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.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/890435/ltcube_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.fits
.....................!
real 192.50
user 187.08
sys 4.94

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/890435/ft1_filtered_4FGL_J1341.8-2053_daily_bin621.fits scfile=/scratch/kocevski/890435/ft2_4FGL_J1341.8-2053_daily_bin621.fits outfile=/scratch/kocevski/890435/cmap_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890435/ft1_filtered_4FGL_J1341.8-2053_daily_bin621.fits scfile=/scratch/kocevski/890435/ft2_4FGL_J1341.8-2053_daily_bin621.fits outfile=/scratch/kocevski/890435/cmap_HighResolution_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.272       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3511       1.0000         .10000E-03   10000.    
     3 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3917       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.157       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3663       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35369E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .22970       1.0000         .10000E-03   10000.    
    15 'norm      '    13.407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3358       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .67639       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.177       1.0000         .10000E-03   10000.    
    20 'norm      '    .11234E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .90773E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5927       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88914       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=   7112.541     FROM MIGRAD    STATUS=CONVERGED   1031 CALLS     3391 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.280        43.335        .70534E-04   -.74046E-04
   2  norm          3.3504        8.4948        .22108E-03    .11879E-04
   3  norm          .10000E-03    2.7156        .13486E-02** at limit **
   4  Prefactor     2.3940        3.6147        .19089E-03    .11566E-03
   5  norm          .10000E-03    3.8768        .21778E-02** at limit **
   6  Prefactor     .10000E-03    6.5026        .18142E-02** at limit **
   7  Prefactor     31.108        23.932        .71782E-04    .12148E-03
   8  norm          .10002E-03    14.334        .24229E-02** at limit **
   9  norm          5.6353        8.4995        .16917E-03   -.20953E-03
  10  Prefactor     .10000E-03    10.485        .18142E-02** at limit **
  11  Prefactor     6.3652        45.283        .15908E-03    .97194E-04
  12  Prefactor     .10007E-03    100.23        .47493E-02** at limit **
  13  Prefactor     .10000E-03    7.8801        .18142E-02** at limit **
  14  norm          .22946        27.314        .34671E-02    .13023E-03
  15  norm          13.428        15.264        .10939E-03    .23998E-03
  16  Prefactor     1.3411        10.864        .37959E-03   -.76223E-04
  17  Prefactor     .10000E-03    66.241        .18142E-02** at limit **
  18  norm          .66650        29.495        .45310E-02    .29897E-03
  19  Prefactor     12.171        6.1775        .11479E-03    .70930E-03
  20  norm          .10000E-03    10.548        .36285E-03** at limit **
  21  Prefactor     .10005E-03    355.48        .10354E-01** at limit **
  22  Prefactor     .10000E-03    5.4166        .18142E-02** at limit **
  23  Prefactor     .10000E-03    7.9912        .18142E-02** at limit **
  24  Normalizat    1.5928        .34484        .34250E-03    .56799E-03
  25  Prefactor     .88919        .14578        .19464E-03    .35909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2799
  norm       = 3.35042
  norm       = 0.0001
  Prefactor  = 2.39396
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1076
  norm       = 0.000100018
  norm       = 5.63534
  Prefactor  = 0.0001
  Prefactor  = 6.3652
  Prefactor  = 0.000100071
  Prefactor  = 0.0001
  norm       = 0.229458
  norm       = 13.4285
  Prefactor  = 1.34115
  Prefactor  = 0.000100002
  norm       = 0.666503
  Prefactor  = 12.1711
  norm       = 0.000100002
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.5928
  Prefactor  = 0.889191
 **********
 **   18 **HESSE 
 **********

 FCN=   7112.541     FROM HESSE     STATUS=OK           407 CALLS     3798 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.280        43.332        .14107E-04   -1.4571    
   2  norm          3.3504        8.4929        .88432E-05   -1.5342    
   3  norm          .10000E-03    2.7162        .26972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3940        3.6142        .76356E-05   -1.5399    
   5  norm          .10000E-03    3.8969        .43556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.108        23.847        .28713E-05   -1.4592    
   8  norm          .10002E-03    14.364        .48459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6353        8.4941        .67669E-05   -1.5233    
  10  Prefactor     .10000E-03    10.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3652        45.149        .63631E-05   -1.5203    
  12  Prefactor     .10007E-03    103.18        .18997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8823        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22946        27.644        .13868E-03   -1.5612    
  15  norm          13.428        15.264        .21879E-04   -1.4975    
  16  Prefactor     1.3411        10.837        .15184E-04   -1.5476    
  17  Prefactor     .10000E-03    66.249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .66650        29.474        .18124E-03   -1.5545    
  19  Prefactor     12.171        6.1537        .45917E-05   -1.5010    
  20  norm          .10000E-03    10.548        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    370.54        .41417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.4167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.9914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5928        .34498        .68500E-04   -.75203    
  25  Prefactor     .88919        .14561        .38929E-04   -.96520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58155e-09
Minuit parameter uncertainties:
  1  43.3743
  2  8.49592
  3  4.65992e-07
  4  3.61456
  5  5.86806e-05
  6  3.08327e-05
  7  23.8546
  8  0.00102853
  9  8.49588
  10  6.76739e-05
  11  33.9411
  12  0.00540544
  13  1.92791e-05
  14  5.03841
  15  15.268
  16  7.62647
  17  0.000699381
  18  8.86848
  19  6.154
  20  0.000254479
  21  0.00821976
  22  2.72742e-06
  23  1.82347e-05
  24  0.345495
  25  0.145671
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.928e-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:  8.892e-01  1.457e-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.593e+00  3.455e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890435/likelihoodResults_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.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) = 7112.54116621
delta logL = -0.000604814315921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7112.5405618
delta logL = -3.98556949222e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7342       1.0000          .0000       10.000    
     3 'Normalizat'    1.5926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88929       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=   7112.541     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    262.48        .18142E-02** at limit **
   2  Index         2.7553        5.2896        .50000       -.21703E-05
   3  Normalizat    1.5928        .40648E-01    .34250E-03    .39221E-03
   4  Prefactor     .88919        .18040E-01    .19464E-03   -.41995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100063
  Index      = 2.75527
  Normalizat = 1.5928
  Prefactor  = 0.88919
 **********
 **   18 **HESSE 
 **********

 FCN=   7112.541     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    1032.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7553        5.0279        .50000       -.46558    
   3  Normalizat    1.5928        .97569E-01    .68500E-04   -.75203    
   4  Prefactor     .88919        .43302E-01    .77858E-05   -.96520    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08656e-09
Minuit parameter uncertainties:
  1  0.0164054
  2  2143.4
  3  0.0975805
  4  0.0433037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890435': 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) = 7112.54056139
delta logL = 1.03655111161e-08

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.001e-04  1.641e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.755e+00  2.143e+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:  8.892e-01  4.330e-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.593e+00  9.758e-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/890435/cmap_HighResolution_400291201_400550401_4FGL_J1341.8-2053_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-08 09:35:24.036595', job_id='890435', GAL2='0.89', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1631118924.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='621' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 890435: <4FGL_J1341.8-2053_daily_bin621> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin621> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:20:34 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:21:57 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:21:57 2021
Terminated at Wed Sep  8 09:35:24 2021
Results reported at Wed Sep  8 09:35:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin621 205.461 -20.8901 400291201 400550401 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 :                                   787.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            890 sec.

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

