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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin786
RA = 205.461, Dec = -20.8901
tmin = 443059201, tmax = 443318401
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='891799', job_status='RUN', time_executed='2021-09-08 09:26:21.696178', time_epoch_executed='1631118381.7' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891799/ft1_4FGL_J1341.8-2053_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891799/ft2_4FGL_J1341.8-2053_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891799/ft1_4FGL_J1341.8-2053_daily_bin786.fits outfile=/scratch/kocevski/891799/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin786.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=443059201.0 tmax=443318401.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.85
user 3.62
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891799/ft2_4FGL_J1341.8-2053_daily_bin786.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/891799/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/891799/ft1_filtered_4FGL_J1341.8-2053_daily_bin786.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.53
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891799/ft1_filtered_4FGL_J1341.8-2053_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/891799/ft2_4FGL_J1341.8-2053_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/891799/ltcube_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.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/891799/ft2_4FGL_J1341.8-2053_daily_bin786.fits
.....................!
real 16.73
user 16.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891799/ft1_filtered_4FGL_J1341.8-2053_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/891799/ft2_4FGL_J1341.8-2053_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/891799/ltcube_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.fits outfile=/scratch/kocevski/891799/expmap_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.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/891799/ltcube_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.fits
.....................!
real 193.82
user 188.53
sys 4.70

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/891799/ft1_filtered_4FGL_J1341.8-2053_daily_bin786.fits scfile=/scratch/kocevski/891799/ft2_4FGL_J1341.8-2053_daily_bin786.fits outfile=/scratch/kocevski/891799/cmap_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891799/ft1_filtered_4FGL_J1341.8-2053_daily_bin786.fits scfile=/scratch/kocevski/891799/ft2_4FGL_J1341.8-2053_daily_bin786.fits outfile=/scratch/kocevski/891799/cmap_HighResolution_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891799/ft1_filtered_4FGL_J1341.8-2053_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/891799/ft2_4FGL_J1341.8-2053_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891799/Model_4FGL_J1341.8-2053_daily_bin786.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/891799/ft1_filtered_4FGL_J1341.8-2053_daily_bin786.fits....................!
real 67.00
user 65.55
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.696       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8990       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58754E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.356       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7801       1.0000         .10000E-03   10000.    
     9 'norm      '    12.930       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2173       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.938       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.358       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5617       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8749       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.658       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2643       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1929       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93858       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=   8276.128     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2862 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.684        50.034        .15095E-05   -.61503E-05
   2  norm          .10000E-03    2.1144       -.32675E-08** at limit **
   3  norm          .10000E-03    1.6389       -.10917E-06** at limit **
   4  Prefactor     6.8990        4.9617        .15558E-07   -.69877E-05
   5  norm          .10000E-03    1.0123        .11006E-09** at limit **
   6  Prefactor     .10000E-03    5.2395        .16135E-05** at limit **
   7  Prefactor     24.346        20.544        .11360E-05    .79984E-04
   8  norm          3.7806        4.2480       -.25619E-06   -.15296E-05
   9  norm          12.931        7.1745       -.11884E-06    .32603E-04
  10  Prefactor     1.1696        53.728       -.37734E-05   -.25756E-04
  11  Prefactor     22.771        20.376        .39309E-06   -.14459E-04
  12  Prefactor     .10000E-03    5.4684       -.78379E-07** at limit **
  13  Prefactor     8.2270        16.075        .15579E-05   -.61106E-04
  14  norm          .10000E-03    1.6163       -.45719E-07** at limit **
  15  norm          18.942        20.062       -.35545E-06    .73974E-05
  16  Prefactor     .10000E-03    1.7761       -.64432E-08** at limit **
  17  Prefactor     49.351        43.004        .53735E-06   -.99009E-05
  18  norm          .10000E-03    3.9574        .19041E-07** at limit **
  19  Prefactor     3.5623        3.9344        .46463E-07   -.42204E-04
  20  norm          1.8749        5.5152        .49332E-05   -.93486E-05
  21  Prefactor     23.649        30.546        .12631E-05   -.13920E-04
  22  Prefactor     7.2641        18.466        .15920E-06   -.59154E-05
  23  Prefactor     .10000E-03    7.3595        .66196E-07** at limit **
  24  Normalizat    1.1927        .23641        .61898E-06    .15871E-03
  25  Prefactor     .93869        .10412       -.68444E-06   -.15551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6843
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.89897
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 24.3463
  norm       = 3.78057
  norm       = 12.9311
  Prefactor  = 1.16963
  Prefactor  = 22.771
  Prefactor  = 0.0001
  Prefactor  = 8.22699
  norm       = 0.0001
  norm       = 18.9419
  Prefactor  = 0.0001
  Prefactor  = 49.3513
  norm       = 0.0001
  Prefactor  = 3.56225
  norm       = 1.87494
  Prefactor  = 23.6485
  Prefactor  = 7.26407
  Prefactor  = 0.0001
  Normalizat = 1.19269
  Prefactor  = 0.938693
 **********
 **   18 **HESSE 
 **********

 FCN=   8276.128     FROM HESSE     STATUS=OK           427 CALLS     3289 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.684        49.992        .62835E-04   -1.4431    
   2  norm          .10000E-03    2.1182        .12919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6438        .11373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8990        4.9591        .15275E-03   -1.5183    
   5  norm          .10000E-03    1.0222        .89363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.223        .37936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.346        20.544        .81166E-04   -1.4721    
   8  norm          3.7806        4.2225        .15845E-03   -1.5319    
   9  norm          12.931        7.1622        .11139E-03   -1.4989    
  10  Prefactor     1.1696        55.729        .42450E-03   -1.5492    
  11  Prefactor     22.771        20.359        .83932E-04   -1.4753    
  12  Prefactor     .10000E-03    5.5024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2270        16.280        .13986E-03   -1.5134    
  14  norm          .10000E-03    1.6256        .11293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.942        20.067        .92036E-04   -1.4837    
  16  Prefactor     .10000E-03    1.7904        .11840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.351        42.973        .57080E-04   -1.4302    
  18  norm          .10000E-03    3.9619        .17670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5623        3.9263        .17910E-03   -1.5330    
  20  norm          1.8749        5.5918        .15206E-02   -1.5434    
  21  Prefactor     23.649        30.511        .82354E-04   -1.4735    
  22  Prefactor     7.2641        18.467        .14882E-03   -1.5169    
  23  Prefactor     .10000E-03    7.3643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1927        .28371        .35704E-03   -.86829    
  25  Prefactor     .93869        .12538        .18120E-03   -.94802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29033e-09
Minuit parameter uncertainties:
  1  50.0431
  2  4.44553e-07
  3  1.17307e-05
  4  4.95943
  5  1.98493e-07
  6  0.000445965
  7  20.5498
  8  4.22281
  9  7.16266
  10  16.1624
  11  20.3653
  12  5.3497e-06
  13  16.2887
  14  8.15836e-06
  15  20.0739
  16  4.53619e-06
  17  43.0003
  18  1.61986e-06
  19  3.92654
  20  5.5934
  21  30.5314
  22  18.4813
  23  3.8406e-06
  24  0.284076
  25  0.125423
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  8.227e+00  1.629e+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:  9.387e-01  1.254e-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.193e+00  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/891799/likelihoodResults_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.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) = 8275.80139038
delta logL = 0.326187111366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8275.79022192
delta logL = 0.337355573025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6290       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9677       1.0000          .0000       10.000    
     3 'Normalizat'    1.1341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95715       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=   8275.790     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      257 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6408        69.810        .53019E-02    .70113E-03
   2  Index         3.9654        4.0541        .20606        .11313E-03
   3  Normalizat    1.1342        .64114E-01    .82423E-01    .25432E-04
   4  Prefactor     .95717        .28880E-01    .45729E-01    .16453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64076
  Index      = 3.96539
  Normalizat = 1.13424
  Prefactor  = 0.957166
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.790     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6408        152.95        .15583E-03   -1.5326    
   2  Index         3.9654        6.4778        .90898E-02   -.20843    
   3  Normalizat    1.1342        .29431        .36491E-03   -.88660    
   4  Prefactor     .95717        .13839        .17960E-03   -.94171    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.95612e-07
Minuit parameter uncertainties:
  1  47.3242
  2  9.8283
  3  0.294733
  4  0.138445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891799': 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) = 8275.79021942
delta logL = 0.337358073417

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  3.641e+00  4.732e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.965e+00  9.828e+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:  9.572e-01  1.384e-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.134e+00  2.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 3.97 +/- 9.83
Photon Flux (Free Index): 8.37e-08 +/- 8.23e-08
Energy Flux (Free Index): 1.26e-05 +/- 2.58e-05

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/891799/cmap_HighResolution_443059201_443318401_4FGL_J1341.8-2053_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='3.37e-01', photon_flux2='8.37e-08', job_status='DONE', time_completed='2021-09-08 09:40:23.568156', photon_index_error2='9.83', photon_index2='3.97', ts='0.55', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='2.58e-05', EG='1.19', time_epoch_completed='1631119223.57', return_code='0', job_id='891799', GAL2='0.96', EG2='1.13', return_code2='102', photon_flux_error2='8.23e-08', ts2='1.31', photon_index='2.73' WHERE bin_id='786' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:40:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 891799: <4FGL_J1341.8-2053_daily_bin786> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin786 205.461 -20.8901 443059201 443318401 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 :                                   838.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            897 sec.

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

