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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1000
RA = 205.461, Dec = -20.8901
tmin = 498528001, tmax = 498787201
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='893029', job_status='RUN', time_executed='2021-09-08 09:31:59.673302', time_epoch_executed='1631118719.67' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893029/ft1_4FGL_J1341.8-2053_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893029/ft2_4FGL_J1341.8-2053_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893029/ft1_4FGL_J1341.8-2053_daily_bin1000.fits outfile=/scratch/kocevski/893029/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1000.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=498528001.0 tmax=498787201.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 5.18
user 4.66
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/893029/ft1_filtered_4FGL_J1341.8-2053_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/893029/ft2_4FGL_J1341.8-2053_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/893029/ltcube_498528001_498787201_4FGL_J1341.8-2053_daily_bin1000.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/893029/ft2_4FGL_J1341.8-2053_daily_bin1000.fits
.....................!
real 15.04
user 14.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893029/ft1_filtered_4FGL_J1341.8-2053_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/893029/ft2_4FGL_J1341.8-2053_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/893029/ltcube_498528001_498787201_4FGL_J1341.8-2053_daily_bin1000.fits outfile=/scratch/kocevski/893029/expmap_498528001_498787201_4FGL_J1341.8-2053_daily_bin1000.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/893029/ltcube_498528001_498787201_4FGL_J1341.8-2053_daily_bin1000.fits
.....................!
real 192.32
user 187.47
sys 4.41

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/893029/ft1_filtered_4FGL_J1341.8-2053_daily_bin1000.fits scfile=/scratch/kocevski/893029/ft2_4FGL_J1341.8-2053_daily_bin1000.fits outfile=/scratch/kocevski/893029/cmap_498528001_498787201_4FGL_J1341.8-2053_daily_bin1000.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/893029/ft1_filtered_4FGL_J1341.8-2053_daily_bin1000.fits scfile=/scratch/kocevski/893029/ft2_4FGL_J1341.8-2053_daily_bin1000.fits outfile=/scratch/kocevski/893029/cmap_HighResolution_498528001_498787201_4FGL_J1341.8-2053_daily_bin1000.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/893029/ft1_filtered_4FGL_J1341.8-2053_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/893029/ft2_4FGL_J1341.8-2053_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893029/Model_4FGL_J1341.8-2053_daily_bin1000.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/893029/ft1_filtered_4FGL_J1341.8-2053_daily_bin1000.fits.....................!
real 56.53
user 55.13
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    100.70       1.0000         .10000E-03   10000.    
     2 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2679       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.073       1.0000         .10000E-03   10000.    
     8 'norm      '    .11942E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6382       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11727E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    23.750       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94589       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2064       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=   6884.109     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     3010 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     100.68        96.241       -.69732E-05    .22596E-04
   2  norm          .10000E-03    9.4539        .17533E-06** at limit **
   3  norm          .10001E-03    6.2773       -.14852E-05** at limit **
   4  Prefactor     .10000E-03    9.7946       -.17290E-06** at limit **
   5  norm          4.2550        3.5387       -.16166E-06    .37970E-04
   6  Prefactor     1.2735        28.100        .13835E-04    .15067E-03
   7  Prefactor     13.065        27.119       -.67312E-06    .12518E-03
   8  norm          .10000E-03    7.7890       -.42694E-06** at limit **
   9  norm          20.298        11.400       -.88988E-07    .18836E-03
  10  Prefactor     .10000E-03    24.839       -.60940E-06** at limit **
  11  Prefactor     .10000E-03    20.000        .10897E-05** at limit **
  12  Prefactor     .10000E-03    5.5717        .89962E-07** at limit **
  13  Prefactor     .10006E-03    11.792        .65823E-05** at limit **
  14  norm          8.6368        7.4247        .52809E-06    .39653E-04
  15  norm          .10000E-03    8.2183        .32785E-06** at limit **
  16  Prefactor     14.555        9.1889        .28772E-06    .97116E-04
  17  Prefactor     .10000E-03    16.406       -.47219E-06** at limit **
  18  norm          .10000E-03    4.7932        .27940E-07** at limit **
  19  Prefactor     .10000E-03    3.2871        .18273E-06** at limit **
  20  norm          23.750        11.948       -.22539E-07    .21250E-04
  21  Prefactor     8.4386        46.668       -.72833E-05    .50391E-05
  22  Prefactor     .10000E-03    48.564        .28735E-05** at limit **
  23  Prefactor     .10000E-03    9.1234        .69736E-06** at limit **
  24  Normalizat    .94616        .30292       -.14505E-05   -.35757E-04
  25  Prefactor     1.2062        .13760       -.36375E-06   -.36642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 100.68
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 4.25497
  Prefactor  = 1.27347
  Prefactor  = 13.0648
  norm       = 0.000100001
  norm       = 20.2983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  norm       = 8.6368
  norm       = 0.0001
  Prefactor  = 14.5547
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.7498
  Prefactor  = 8.43857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.946156
  Prefactor  = 1.20619
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.109     FROM HESSE     STATUS=OK           425 CALLS     3435 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     100.68        98.143        .20031E-03   -1.3698    
   2  norm          .10000E-03    9.5949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    21.659        .32338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2550        3.5356        .13755E-03   -1.5295    
   6  Prefactor     1.2735        33.429        .19770E-02   -1.5482    
   7  Prefactor     13.065        26.952        .11078E-03   -1.4985    
   8  norm          .10000E-03    7.9200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.298        11.361        .88897E-04   -1.4807    
  10  Prefactor     .10000E-03    25.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    42.814        .41343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6368        7.3893        .68193E-03   -1.5120    
  15  norm          .10000E-03    8.2182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.555        9.1949        .52493E-03   -1.4945    
  17  Prefactor     .10000E-03    16.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8047        .17740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4388        .29359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          23.750        11.949        .82195E-04   -1.4733    
  21  Prefactor     8.4386        46.383        .13821E-03   -1.5127    
  22  Prefactor     .10000E-03    50.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.1300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94616        .34856        .42397E-03   -.94857    
  25  Prefactor     1.2062        .16059        .17876E-03   -.86141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38936e-09
Minuit parameter uncertainties:
  1  98.3014
  2  4.31539e-06
  3  0.000753919
  4  6.09981e-05
  5  3.53577
  6  13.0569
  7  26.9773
  8  0.000181492
  9  11.3624
  10  5.69554e-06
  11  2.22733e-05
  12  6.84284e-06
  13  0.00320994
  14  7.39005
  15  4.75418e-06
  16  9.19584
  17  1.21539e-05
  18  4.83614e-06
  19  2.99129e-05
  20  11.9499
  21  39.6154
  22  0.000141449
  23  1.05679e-05
  24  0.349402
  25  0.16065
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.001e-04  3.210e-03  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.206e+00  1.607e-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:  9.462e-01  3.494e-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.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893029/likelihoodResults_498528001_498787201_4FGL_J1341.8-2053_daily_bin1000.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) = 6884.10946359
delta logL = -0.000109755742415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6884.10946305
delta logL = -0.000109216166493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95524E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7313       1.0000          .0000       10.000    
     3 'Normalizat'    .94580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2063       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=   6884.109     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .83485        .90794E-01** at limit **
   2  Index         2.7085        5.2455        .50000        .39973E-05
   3  Normalizat    .94615        .24112E-02    .95709E-01    .10353E-03
   4  Prefactor     1.2062        .11373E-02    .34483E-01    .15524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.70847
  Normalizat = 0.946153
  Prefactor  = 1.20619
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.109     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    171.94        .41810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7085        6.2967        .50000       -.47609    
   3  Normalizat    .94615        .13558E-01    .42397E-03   -.94857    
   4  Prefactor     1.2062        .64129E-02    .17876E-03   -.86141    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.44162e-08
Minuit parameter uncertainties:
  1  0.00231281
  2  311.055
  3  0.013558
  4  0.00641293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893029': 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) = 6884.10935381
delta logL = 2.3644133762e-08

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.313e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.708e+00  3.111e+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:  1.206e+00  6.413e-03  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:  9.462e-01  1.356e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-08 09:44:52.339047', job_id='893029', GAL2='1.21', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631119492.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1000' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:44:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 893029: <4FGL_J1341.8-2053_daily_bin1000> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1000 205.461 -20.8901 498528001 498787201 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            867 sec.

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

