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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin816
RA = 205.461, Dec = -20.8901
tmin = 450835201, tmax = 451094401
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='891842', job_status='RUN', time_executed='2021-09-08 09:28:41.345087', time_epoch_executed='1631118521.35' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891842/ft1_4FGL_J1341.8-2053_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891842/ft2_4FGL_J1341.8-2053_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891842/ft1_4FGL_J1341.8-2053_daily_bin816.fits outfile=/scratch/kocevski/891842/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin816.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=450835201.0 tmax=451094401.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.44
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891842/ft1_filtered_4FGL_J1341.8-2053_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/891842/ft2_4FGL_J1341.8-2053_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/891842/ltcube_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.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/891842/ft2_4FGL_J1341.8-2053_daily_bin816.fits
.....................!
real 16.49
user 16.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891842/ft1_filtered_4FGL_J1341.8-2053_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/891842/ft2_4FGL_J1341.8-2053_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/891842/ltcube_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.fits outfile=/scratch/kocevski/891842/expmap_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.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/891842/ltcube_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.fits
.....................!
real 192.68
user 187.99
sys 4.28

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/891842/ft1_filtered_4FGL_J1341.8-2053_daily_bin816.fits scfile=/scratch/kocevski/891842/ft2_4FGL_J1341.8-2053_daily_bin816.fits outfile=/scratch/kocevski/891842/cmap_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891842/ft1_filtered_4FGL_J1341.8-2053_daily_bin816.fits scfile=/scratch/kocevski/891842/ft2_4FGL_J1341.8-2053_daily_bin816.fits outfile=/scratch/kocevski/891842/cmap_HighResolution_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=205.461 yref=-20.8901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891842/ft1_filtered_4FGL_J1341.8-2053_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/891842/ft2_4FGL_J1341.8-2053_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891842/Model_4FGL_J1341.8-2053_daily_bin816.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/891842/ft1_filtered_4FGL_J1341.8-2053_daily_bin816.fits.....................!
real 57.18
user 55.87
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.3114       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0287       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.035       1.0000         .10000E-03   10000.    
     8 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5662       1.0000         .10000E-03   10000.    
    14 'norm      '    11.316       1.0000         .10000E-03   10000.    
    15 'norm      '    18.200       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.079       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.410       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7256       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5073       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6183       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1154       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0288       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=   6786.324     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2907 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    343.75       -.56540E-05** at limit **
   2  norm          9.3115        10.633       -.19573E-06    .30981E-04
   3  norm          .10000E-03    3.4751        .60850E-07** at limit **
   4  Prefactor     .10000E-03    3.3091        .77089E-07** at limit **
   5  norm          4.0285        2.8704       -.51142E-07    .76722E-05
   6  Prefactor     .10000E-03    10.111        .14854E-05** at limit **
   7  Prefactor     36.040        21.933        .16466E-05    .83609E-03
   8  norm          .10028E-03    3.3095       -.25221E-05** at limit **
   9  norm          6.3859        7.2328        .68453E-06    .64502E-03
  10  Prefactor     .10000E-03    11.743       -.16063E-05** at limit **
  11  Prefactor     .10000E-03    14.719       -.63569E-06** at limit **
  12  Prefactor     .10000E-03    21.023       -.23097E-05** at limit **
  13  Prefactor     2.5682        19.458       -.18051E-05    .11064E-04
  14  norm          11.316        7.2246        .11308E-06    .16610E-03
  15  norm          18.189        39.099       -.48870E-06    .21639E-04
  16  Prefactor     10.080        7.7350       -.85244E-08    .28677E-03
  17  Prefactor     13.377        69.387       -.10702E-04   -.26897E-04
  18  norm          .10000E-03    9.9131       -.84743E-06** at limit **
  19  Prefactor     1.7259        4.6536        .31177E-06   -.39393E-04
  20  norm          3.5066        5.2720        .50395E-06    .11984E-03
  21  Prefactor     4.6001        199.57       -.10539E-04   -.14469E-04
  22  Prefactor     .10000E-03    25.242        .19484E-05** at limit **
  23  Prefactor     .10000E-03    16.757        .30939E-05** at limit **
  24  Normalizat    1.1151        .28247        .35664E-05    .28136E-03
  25  Prefactor     1.0289        .12084       -.44595E-06    .65090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 9.31148
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.02855
  Prefactor  = 0.0001
  Prefactor  = 36.0398
  norm       = 0.000100284
  norm       = 6.38593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56817
  norm       = 11.3158
  norm       = 18.1887
  Prefactor  = 10.0804
  Prefactor  = 13.3769
  norm       = 0.0001
  Prefactor  = 1.72595
  norm       = 3.50662
  Prefactor  = 4.60014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11515
  Prefactor  = 1.02892
 **********
 **   18 **HESSE 
 **********

 FCN=   6786.324     FROM HESSE     STATUS=OK           427 CALLS     3334 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    348.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3115        10.632        .13134E-03   -1.5098    
   3  norm          .10000E-03    3.5102        .14990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3479        .14629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0285        2.8730        .11401E-03   -1.5307    
   6  Prefactor     .10000E-03    10.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.040        22.332        .66761E-04   -1.4507    
   8  norm          .10028E-03    20.705        .23698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3859        7.2165        .15886E-03   -1.5203    
  10  Prefactor     .10000E-03    11.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5682        19.326        .25482E-03   -1.5387    
  14  norm          11.316        7.2115        .11909E-03   -1.5035    
  15  norm          18.189        39.166        .93881E-04   -1.4855    
  16  Prefactor     10.080        7.7322        .12622E-03   -1.5073    
  17  Prefactor     13.377        70.196        .10938E-03   -1.4976    
  18  norm          .10000E-03    9.9665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7259        4.6270        .27223E-03   -1.5445    
  20  norm          3.5066        5.2489        .21588E-03   -1.5333    
  21  Prefactor     4.6001        200.91        .18729E-03   -1.5279    
  22  Prefactor     .10000E-03    25.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1151        .32581        .38610E-03   -.89267    
  25  Prefactor     1.0289        .14235        .18107E-03   -.91771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40352e-08
Minuit parameter uncertainties:
  1  0.00194779
  2  10.6339
  3  7.70668e-06
  4  6.74923e-06
  5  2.87313
  6  4.22358e-05
  7  22.3368
  8  0.00485127
  9  7.21749
  10  4.48172e-05
  11  3.53936e-05
  12  0.000174621
  13  14.096
  14  7.21203
  15  39.221
  16  7.73294
  17  61.3993
  18  5.08405e-05
  19  4.62794
  20  5.24958
  21  61.0211
  22  0.000120709
  23  0.000150283
  24  0.326396
  25  0.142398
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.029e+00  1.424e-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.115e+00  3.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891842/likelihoodResults_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.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): 0
logL (Free Index) = 6786.17813027
delta logL = 0.145743044633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6786.17055337
delta logL = 0.153319940525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1526       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6774       1.0000          .0000       10.000    
     3 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0373       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=   6786.171     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      254 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1515        12.464        .22828E-03   -.35313E-03
   2  Index         3.6779        2.4647        .13121E-01   -.61446E-04
   3  Normalizat    1.0777        .31327        .39199E-03   -.43657E-03
   4  Prefactor     1.0373        .13919        .18040E-03   -.65478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15152
  Index      = 3.67787
  Normalizat = 1.07766
  Prefactor  = 1.03735
 **********
 **   18 **HESSE 
 **********

 FCN=   6786.171     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1515        8.8685        .91314E-05   -1.5353    
   2  Index         3.6779        1.7932        .52486E-03   -.26761    
   3  Normalizat    1.0777        .31381        .78399E-04   -.90472    
   4  Prefactor     1.0373        .13924        .36081E-04   -.91495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15526e-10
Minuit parameter uncertainties:
  1  8.87215
  2  1.83738
  3  0.314355
  4  0.139286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891842': 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): 0
logL (Free Index) = 6786.17055332
delta logL = 0.153319987565

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.037e+00  1.393e-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.078e+00  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 205.461 -20.890

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/891842/cmap_HighResolution_450835201_451094401_4FGL_J1341.8-2053_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-09-08 09:40:54.406024', job_id='891842', GAL2='1.04', fit_tolerance='1e-08', EG2='1.08', EG='1.12', time_epoch_completed='1631119254.41', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.53e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='816' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:40:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 891842: <4FGL_J1341.8-2053_daily_bin816> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin816> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:25:31 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:25:50 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:25:50 2021
Terminated at Wed Sep  8 09:40:57 2021
Results reported at Wed Sep  8 09:40:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin816 205.461 -20.8901 450835201 451094401 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 :                                   732.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            927 sec.

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

