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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin194
RA = 205.461, Dec = -20.8901
tmin = 289612801, tmax = 289872001
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='887591', job_status='RUN', time_executed='2021-09-08 09:12:20.752384', time_epoch_executed='1631117540.75' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887591/ft1_4FGL_J1341.8-2053_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887591/ft2_4FGL_J1341.8-2053_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887591/ft1_4FGL_J1341.8-2053_daily_bin194.fits outfile=/scratch/kocevski/887591/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin194.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=289612801.0 tmax=289872001.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.55
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887591/ft2_4FGL_J1341.8-2053_daily_bin194.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/887591/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/887591/ft1_filtered_4FGL_J1341.8-2053_daily_bin194.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/887591/ft1_filtered_4FGL_J1341.8-2053_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/887591/ft2_4FGL_J1341.8-2053_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/887591/ltcube_289612801_289872001_4FGL_J1341.8-2053_daily_bin194.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/887591/ft2_4FGL_J1341.8-2053_daily_bin194.fits
.....................!
real 16.45
user 16.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887591/ft1_filtered_4FGL_J1341.8-2053_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/887591/ft2_4FGL_J1341.8-2053_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/887591/ltcube_289612801_289872001_4FGL_J1341.8-2053_daily_bin194.fits outfile=/scratch/kocevski/887591/expmap_289612801_289872001_4FGL_J1341.8-2053_daily_bin194.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/887591/ltcube_289612801_289872001_4FGL_J1341.8-2053_daily_bin194.fits
.....................!
real 192.74
user 187.25
sys 4.83

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

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887591/ft1_filtered_4FGL_J1341.8-2053_daily_bin194.fits scfile=/scratch/kocevski/887591/ft2_4FGL_J1341.8-2053_daily_bin194.fits outfile=/scratch/kocevski/887591/cmap_HighResolution_289612801_289872001_4FGL_J1341.8-2053_daily_bin194.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887591/ft1_filtered_4FGL_J1341.8-2053_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/887591/ft2_4FGL_J1341.8-2053_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887591/Model_4FGL_J1341.8-2053_daily_bin194.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/887591/ft1_filtered_4FGL_J1341.8-2053_daily_bin194.fits.....................!
real 57.95
user 56.24
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7078       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0161       1.0000         .10000E-03   10000.    
     8 'norm      '    .11108E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.0442       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79304       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5190       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84121       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=   7082.636     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2459 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.979        .22720E-05** at limit **
   2  norm          .10000E-03    3.7713       -.13344E-07** at limit **
   3  norm          3.7075        4.4287        .19429E-06   -.27858E-03
   4  Prefactor     .10000E-03    5.2380        .40531E-06** at limit **
   5  norm          3.1235        2.4614        .37083E-07   -.12584E-03
   6  Prefactor     .10000E-03    10.802        .12425E-06** at limit **
   7  Prefactor     5.0235        25.982       -.34454E-05   -.36118E-04
   8  norm          .10000E-03    2.5685        .12566E-05** at limit **
   9  norm          12.376        10.176       -.54643E-06   -.95436E-04
  10  Prefactor     .10000E-03    8.8366        .18929E-06** at limit **
  11  Prefactor     .10000E-03    11.200       -.17594E-06** at limit **
  12  Prefactor     .10000E-03    7.8251       -.21624E-06** at limit **
  13  Prefactor     .10000E-03    7.0613       -.36304E-07** at limit **
  14  norm          9.0440        5.3838        .86819E-07   -.16482E-03
  15  norm          .10000E-03    9.6027        .34121E-06** at limit **
  16  Prefactor     .10000E-03    4.9236       -.31704E-06** at limit **
  17  Prefactor     .10000E-03    10.970       -.89983E-09** at limit **
  18  norm          12.309        13.831       -.27506E-06    .36486E-04
  19  Prefactor     .79289        4.1564        .31839E-06   -.12053E-03
  20  norm          .10000E-03    4.1627        .50269E-07** at limit **
  21  Prefactor     .10000E-03    58.069       -.26514E-05** at limit **
  22  Prefactor     .10000E-03    24.939        .78455E-06** at limit **
  23  Prefactor     .10000E-03    23.025       -.81290E-06** at limit **
  24  Normalizat    1.5187        .25676       -.64551E-06    .36844E-04
  25  Prefactor     .84132        .11131        .90519E-07   -.56644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.70747
  Prefactor  = 0.0001
  norm       = 3.12352
  Prefactor  = 0.0001
  Prefactor  = 5.02345
  norm       = 0.0001
  norm       = 12.3761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.04405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.3085
  Prefactor  = 0.792892
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51874
  Prefactor  = 0.841322
 **********
 **   18 **HESSE 
 **********

 FCN=   7082.636     FROM HESSE     STATUS=OK           423 CALLS     2882 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8042        .15960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7075        4.4017        .18618E-03   -1.5323    
   4  Prefactor     .10000E-03    5.3455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1235        2.4564        .11348E-03   -1.5354    
   6  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0235        26.132        .17955E-03   -1.5260    
   8  norm          .10000E-03    8.1309        .23282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.376        10.017        .11388E-03   -1.5004    
  10  Prefactor     .10000E-03    8.8928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.1262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.0440        5.3826        .66636E-03   -1.5106    
  15  norm          .10000E-03    9.6148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.309        13.452        .11418E-03   -1.5006    
  19  Prefactor     .79289        7.4118        .28977E-02   -1.5530    
  20  norm          .10000E-03    4.1950        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    58.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5187        .30818        .32670E-03   -.77253    
  25  Prefactor     .84132        .13537        .18870E-03   -.98223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45e-08
Minuit parameter uncertainties:
  1  4.38396e-05
  2  8.28048e-07
  3  4.40207
  4  1.13511e-05
  5  2.45644
  6  1.46565e-06
  7  22.9303
  8  1.62186e-05
  9  10.0186
  10  5.49609e-06
  11  3.51691e-06
  12  7.24283e-06
  13  5.13443e-06
  14  5.38292
  15  4.22526e-06
  16  1.66388e-05
  17  1.64756e-06
  18  13.4548
  19  4.84888
  20  7.47452e-06
  21  4.03998e-05
  22  1.47318e-05
  23  2.09274e-06
  24  0.308567
  25  0.135423
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  5.134e-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.413e-01  1.354e-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.519e+00  3.086e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887591/likelihoodResults_289612801_289872001_4FGL_J1341.8-2053_daily_bin194.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) = 7082.63661731
delta logL = -0.000668784978188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7082.63594909
delta logL = -5.6836870499e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7311       1.0000          .0000       10.000    
     3 'Normalizat'    1.5185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84143       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.

 FCN=   7082.636     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.598        .90712E-02** at limit **
   2  Index         2.7307        7.5477        .50000        .39227E-06
   3  Normalizat    1.5187        .22441E-01    .73833E-01    .13669E-04
   4  Prefactor     .84132        .10058E-01    .44254E-01    .17286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.73072
  Normalizat = 1.51873
  Prefactor  = 0.841322
 **********
 **   18 **HESSE 
 **********

 FCN=   7082.636     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7307        7.9210        .50000       -.47109    
   3  Normalizat    1.5187        .29561        .32670E-03   -.77253    
   4  Prefactor     .84132        .13270        .18870E-03   -.98223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76917e-10
Minuit parameter uncertainties:
  1  1.68309e-05
  2  246.301
  3  0.295946
  4  0.132746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887591': 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) = 7082.63594853
delta logL = 8.54925019667e-11

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.683e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.731e+00  2.463e+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.413e-01  1.327e-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.519e+00  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/887591/cmap_HighResolution_289612801_289872001_4FGL_J1341.8-2053_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-08 09:24:18.892717', job_id='887591', GAL2='0.84', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1631118258.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.55e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='194' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:24:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 887591: <4FGL_J1341.8-2053_daily_bin194> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin194> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 09:10:47 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:11:55 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:11:55 2021
Terminated at Wed Sep  8 09:24:19 2021
Results reported at Wed Sep  8 09:24:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin194 205.461 -20.8901 289612801 289872001 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 :                                   709.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            812 sec.

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

