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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1081
RA = 205.461, Dec = -20.8901
tmin = 519523201, tmax = 519782401
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='893144', job_status='RUN', time_executed='2021-09-08 09:33:36.494082', time_epoch_executed='1631118816.49' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893144

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893144/ft1_4FGL_J1341.8-2053_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893144/ft2_4FGL_J1341.8-2053_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893144/ft1_4FGL_J1341.8-2053_daily_bin1081.fits outfile=/scratch/kocevski/893144/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1081.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=519523201.0 tmax=519782401.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.00
user 2.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/893144/ft1_filtered_4FGL_J1341.8-2053_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/893144/ft2_4FGL_J1341.8-2053_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/893144/ltcube_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.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/893144/ft2_4FGL_J1341.8-2053_daily_bin1081.fits
.....................!
real 14.41
user 13.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893144/ft1_filtered_4FGL_J1341.8-2053_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/893144/ft2_4FGL_J1341.8-2053_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/893144/ltcube_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.fits outfile=/scratch/kocevski/893144/expmap_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.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/893144/ltcube_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.fits
.....................!
real 193.66
user 186.93
sys 5.44

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/893144/ft1_filtered_4FGL_J1341.8-2053_daily_bin1081.fits scfile=/scratch/kocevski/893144/ft2_4FGL_J1341.8-2053_daily_bin1081.fits outfile=/scratch/kocevski/893144/cmap_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/893144/ft1_filtered_4FGL_J1341.8-2053_daily_bin1081.fits scfile=/scratch/kocevski/893144/ft2_4FGL_J1341.8-2053_daily_bin1081.fits outfile=/scratch/kocevski/893144/cmap_HighResolution_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/893144/ft1_filtered_4FGL_J1341.8-2053_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/893144/ft2_4FGL_J1341.8-2053_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893144/Model_4FGL_J1341.8-2053_daily_bin1081.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/893144/ft1_filtered_4FGL_J1341.8-2053_daily_bin1081.fits.....................!
real 43.86
user 42.43
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.026       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3654       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.143       1.0000         .10000E-03   10000.    
     8 'norm      '    .10127E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    12.711       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3714       1.0000         .10000E-03   10000.    
    15 'norm      '    55.933       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.814       1.0000         .10000E-03   10000.    
    18 'norm      '    22.472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4593       1.0000         .10000E-03   10000.    
    20 'norm      '    .15842E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.373       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3486       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1728       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88384       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=   4983.393     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2932 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.597        .19053E-06** at limit **
   2  norm          .10000E-03    3.0187       -.60619E-08** at limit **
   3  norm          .10000E-03    4.7490        .29625E-06** at limit **
   4  Prefactor     10.024        7.7717        .11201E-06   -.81495E-04
   5  norm          4.3651        2.9507        .22605E-07   -.30715E-04
   6  Prefactor     .10000E-03    4.8262       -.31160E-06** at limit **
   7  Prefactor     18.118        21.247       -.19434E-05    .21368E-03
   8  norm          .10010E-03    10.341       -.19246E-05** at limit **
   9  norm          12.707        9.5225       -.69893E-06    .25583E-03
  10  Prefactor     .10000E-03    7.4347       -.19181E-06** at limit **
  11  Prefactor     .10000E-03    9.4359        .30691E-06** at limit **
  12  Prefactor     .10000E-03    5.6392        .39980E-07** at limit **
  13  Prefactor     .10000E-03    3.2475        .59655E-08** at limit **
  14  norm          6.3712        5.9257        .49932E-06    .10474E-02
  15  norm          55.930        43.240        .72471E-06    .47830E-04
  16  Prefactor     .10000E-03    5.9413        .20319E-06** at limit **
  17  Prefactor     26.808        47.130        .15781E-05    .46026E-04
  18  norm          22.474        16.938        .38404E-07    .85064E-06
  19  Prefactor     3.4579        6.0157        .76398E-07    .82639E-04
  20  norm          .10000E-03    16.859        .36935E-05** at limit **
  21  Prefactor     45.365        76.452        .24544E-05    .43168E-04
  22  Prefactor     3.3461        17.408        .25889E-05    .36286E-03
  23  Prefactor     .10000E-03    13.432       -.47316E-06** at limit **
  24  Normalizat    1.1726        .29465       -.55199E-06   -.15540E-04
  25  Prefactor     .88395        .13169       -.32153E-06   -.38289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0236
  norm       = 4.36513
  Prefactor  = 0.0001
  Prefactor  = 18.1184
  norm       = 0.000100105
  norm       = 12.7068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.37119
  norm       = 55.9296
  Prefactor  = 0.0001
  Prefactor  = 26.8085
  norm       = 22.4736
  Prefactor  = 3.45785
  norm       = 0.0001
  Prefactor  = 45.3646
  Prefactor  = 3.34608
  Prefactor  = 0.0001
  Normalizat = 1.17256
  Prefactor  = 0.883949
 **********
 **   18 **HESSE 
 **********

 FCN=   4983.393     FROM HESSE     STATUS=OK           423 CALLS     3355 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.0216        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7929        .15001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.024        7.7555        .12655E-03   -1.5075    
   5  norm          4.3651        2.9522        .96799E-04   -1.5290    
   6  Prefactor     .10000E-03    4.8321        .15144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.118        21.492        .94029E-04   -1.4856    
   8  norm          .10010E-03    28.060        .21966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.707        9.5317        .56177E-03   -1.4995    
  10  Prefactor     .10000E-03    7.4510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6528        .16372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2501        .12424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3712        6.3564        .79507E-03   -1.5203    
  15  norm          55.930        43.356        .53637E-04   -1.4211    
  16  Prefactor     .10000E-03    6.0533        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.808        47.173        .77364E-04   -1.4672    
  18  norm          22.474        16.886        .84495E-04   -1.4759    
  19  Prefactor     3.4579        5.9916        .20426E-03   -1.5336    
  20  norm          .10000E-03    40.869        .35717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.365        76.517        .59522E-04   -1.4360    
  22  Prefactor     3.3461        22.553        .11058E-02   -1.5342    
  23  Prefactor     .10000E-03    13.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1726        .35344        .35711E-03   -.87455    
  25  Prefactor     .88395        .15895        .18209E-03   -.96704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71503e-09
Minuit parameter uncertainties:
  1  4.01562e-05
  2  2.0147e-06
  3  1.70342e-05
  4  7.75627
  5  2.95233
  6  1.34466e-05
  7  21.5008
  8  0.00343357
  9  9.53279
  10  4.24764e-06
  11  2.50248e-05
  12  4.03107e-06
  13  2.12016e-06
  14  6.35711
  15  43.3805
  16  2.58407e-05
  17  47.2384
  18  16.8894
  19  5.99259
  20  0.000112218
  21  76.6831
  22  17.3832
  23  3.45859e-05
  24  0.354161
  25  0.159034
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.120e-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:  8.839e-01  1.590e-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.173e+00  3.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893144/likelihoodResults_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.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) = 4983.39401328
delta logL = -0.00145142027486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4983.39256318
delta logL = -1.31884644361e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7151       1.0000          .0000       10.000    
     3 'Normalizat'    1.1725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88399       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=   4983.393     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.148        .12569E-01** at limit **
   2  Index         2.0606        7.1609        .50000        .73715E-07
   3  Normalizat    1.1726        .23435E-01    .35711E-03   -.95220E-04
   4  Prefactor     .88395        .10605E-01    .18209E-03   -.21537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06061
  Normalizat = 1.17256
  Prefactor  = 0.883948
 **********
 **   18 **HESSE 
 **********

 FCN=   4983.393     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    324.87        .14285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0606        8.9520        .50000       -.62843    
   3  Normalizat    1.1726        .71153E-01    .14284E-04   -.87455    
   4  Prefactor     .88395        .32200E-01    .36419E-04   -.96704    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25408e-10
Minuit parameter uncertainties:
  1  6.10176e-05
  2  981.765
  3  0.0711587
  4  0.0322005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893144': 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) = 4983.39255811
delta logL = 3.74858700525e-06

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  6.102e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.061e+00  9.818e+02  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.839e-01  3.220e-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.173e+00  7.116e-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/893144/cmap_HighResolution_519523201_519782401_4FGL_J1341.8-2053_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.16e-03', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-09-08 09:44:12.138992', job_id='893144', GAL2='0.88', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631119452.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1081' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:44:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 893144: <4FGL_J1341.8-2053_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1081 205.461 -20.8901 519523201 519782401 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 :                                   618.00 sec.
    Max Memory :                                 1067 MB
    Average Memory :                             258.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            817 sec.

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

