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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1171
RA = 205.461, Dec = -20.8901
tmin = 542851201, tmax = 543110401
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='893274', job_status='RUN', time_executed='2021-09-08 09:33:11.727687', time_epoch_executed='1631118791.73' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893274

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893274/ft1_4FGL_J1341.8-2053_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893274/ft1_4FGL_J1341.8-2053_daily_bin1171.fits outfile=/scratch/kocevski/893274/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1171.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.87
user 0.62
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.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/893274/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/893274/ft1_filtered_4FGL_J1341.8-2053_daily_bin1171.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.48
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/893274/ft1_filtered_4FGL_J1341.8-2053_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/893274/ltcube_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.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/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.fits
.....................!
real 2.17
user 1.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893274/ft1_filtered_4FGL_J1341.8-2053_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/893274/ltcube_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.fits outfile=/scratch/kocevski/893274/expmap_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.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/893274/ltcube_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.fits
.....................!
real 192.27
user 186.99
sys 4.76

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/893274/ft1_filtered_4FGL_J1341.8-2053_daily_bin1171.fits scfile=/scratch/kocevski/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.fits outfile=/scratch/kocevski/893274/cmap_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.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.58
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/893274/ft1_filtered_4FGL_J1341.8-2053_daily_bin1171.fits scfile=/scratch/kocevski/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.fits outfile=/scratch/kocevski/893274/cmap_HighResolution_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/893274/ft1_filtered_4FGL_J1341.8-2053_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/893274/ft2_4FGL_J1341.8-2053_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893274/Model_4FGL_J1341.8-2053_daily_bin1171.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/893274/ft1_filtered_4FGL_J1341.8-2053_daily_bin1171.fits..............!
real 14.81
user 13.42
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17457E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    91.892       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59306E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    80.615       1.0000         .10000E-03   10000.    
    15 'norm      '    .33413E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    104.28       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38382E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    449.67       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33909E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35134E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92700       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=   154.2207     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     3182 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    729.03       -.20874E-03** at limit **
   2  norm          .10000E-03    73.483       -.13962E-04** at limit **
   3  norm          .10000E-03    44.194       -.23946E-04** at limit **
   4  Prefactor     .10000E-03    45.811        .17703E-04** at limit **
   5  norm          .10000E-03    20.821        .11586E-05** at limit **
   6  Prefactor     .10000E-03    63.256        .48768E-04** at limit **
   7  Prefactor     .10000E-03    111.49        .27871E-04** at limit **
   8  norm          .10000E-03    24.850        .96607E-06** at limit **
   9  norm          .10000E-03    73.407       -.13264E-04** at limit **
  10  Prefactor     .10000E-03    93.220       -.33607E-04** at limit **
  11  Prefactor     92.033        273.77        .14245E-03   -.76656E-04
  12  Prefactor     .10000E-03    73.006       -.12230E-04** at limit **
  13  Prefactor     .10017E-03    257.35        .14341E-03** at limit **
  14  norm          80.759        81.104        .99920E-04    .65518E-04
  15  norm          .10000E-03    262.81        .34516E-04** at limit **
  16  Prefactor     104.23        77.044       -.33266E-04    .61775E-04
  17  Prefactor     .10005E-03    790.98       -.41755E-03** at limit **
  18  norm          .10000E-03    73.132       -.12413E-04** at limit **
  19  Prefactor     .10000E-03    21.376       -.16174E-05** at limit **
  20  norm          .10000E-03    45.157        .24688E-05** at limit **
  21  Prefactor     449.94        723.46        .12645E-03   -.10697E-04
  22  Prefactor     .10000E-03    335.23        .27865E-04** at limit **
  23  Prefactor     .10000E-03    291.02        .35631E-04** at limit **
  24  Normalizat    .10000E-01    1.0910       -.23261E-04** at limit **
  25  Prefactor     .92693        .43887       -.52505E-04    .15186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 92.0332
  Prefactor  = 0.0001
  Prefactor  = 0.000100168
  norm       = 80.7592
  norm       = 0.0001
  Prefactor  = 104.229
  Prefactor  = 0.000100054
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 449.936
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.926934
 **********
 **   18 **HESSE 
 **********

 FCN=   154.2207     FROM HESSE     STATUS=OK           403 CALLS     3585 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    729.23        .20347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    73.484        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    44.196        .80815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.812        .82281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    20.821        .55447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.273        .96725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    111.51        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    24.853        .60575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    73.419        .10418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    93.264        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     92.033        273.11        .20961E-03   -1.3786    
  12  Prefactor     .10000E-03    73.009        .10392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10017E-03    255.07        .18957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          80.759        81.324        .22366E-03   -1.3908    
  15  norm          .10000E-03    262.80        .19779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     104.23        76.950        .19688E-03   -1.3663    
  17  Prefactor     .10005E-03    794.55        .19545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    73.132        .10401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.375        .56181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    45.162        .81688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     449.94        725.02        .96510E-04   -1.1433    
  22  Prefactor     .10000E-03    335.15        .21337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    291.13        .20824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.1124        .79252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .92693        .43362        .16272E-03   -.95206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48825e-09
Minuit parameter uncertainties:
  1  1.64225e-05
  2  8.75101e-06
  3  4.00572e-06
  4  4.00664e-06
  5  2.07043e-06
  6  4.80229e-05
  7  0.000171425
  8  8.17583e-05
  9  0.000318601
  10  0.000939133
  11  276.975
  12  0.000372485
  13  0.0131405
  14  81.436
  15  0.000132236
  16  77.0234
  17  0.013285
  18  5.20928e-05
  19  8.84511e-05
  20  0.000248867
  21  740.682
  22  0.00163559
  23  0.00090474
  24  8.71292e-05
  25  0.435249
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.002e-04  1.314e-02  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:  9.269e-01  4.352e-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.000e-02  8.713e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 2.29e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893274/likelihoodResults_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.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) = 154.220719142
delta logL = -2.01687025196e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 154.220699776
delta logL = -8.01818174523e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2579       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92693       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=   154.2207     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      272 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11179E-03    315.21        .15530E-01** at limit **
   2  Index         3.0604        5.9237        .50000        .13861E-05
   3  Normalizat    .10000E-01    .37290E-02    .79246E-02** at limit **
   4  Prefactor     .92692        .22064E-01    .16272E-03   -.36103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111793
  Index      = 3.06045
  Normalizat = 0.01
  Prefactor  = 0.926924
 **********
 **   18 **HESSE 
 **********

 FCN=   154.2207     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11179E-03    6251.8        .17087E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0604        5.8807        .50000       -.39836    
   3  Normalizat    .10000E-01    .32656E-01    .15849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92692        .65317E-01    .32545E-04   -.95207    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99707e-08
Minuit parameter uncertainties:
  1  0.359921
  2  2546.45
  3  3.47941e-06
  4  0.0653228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893274': 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) = 154.220699058
delta logL = -8.46139585065e-08

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.118e-04  3.599e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.060e+00  2.546e+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:  9.269e-01  6.532e-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.000e-02  3.479e-06  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/893274/cmap_HighResolution_542851201_543110401_4FGL_J1341.8-2053_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-01', job_status='DONE', photon_flux_upper_limit='2.29e-06', time_completed='2021-09-08 09:38:14.089862', job_id='893274', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631119094.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-8.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1171' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:38:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 893274: <4FGL_J1341.8-2053_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin1171> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  8 09:30:44 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:31:41 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:31:41 2021
Terminated at Wed Sep  8 09:38:14 2021
Results reported at Wed Sep  8 09:38:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1171 205.461 -20.8901 542851201 543110401 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 :                                   305.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             497.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   393 sec.
    Turnaround time :                            450 sec.

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

