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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin163
RA = 205.461, Dec = -20.8901
tmin = 281577601, tmax = 281836801
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='887542', job_status='RUN', time_executed='2021-09-08 09:12:09.206923', time_epoch_executed='1631117529.21' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887542

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887542/ft1_4FGL_J1341.8-2053_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887542/ft2_4FGL_J1341.8-2053_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887542/ft1_4FGL_J1341.8-2053_daily_bin163.fits outfile=/scratch/kocevski/887542/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin163.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=281577601.0 tmax=281836801.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.67
user 3.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887542/ft1_filtered_4FGL_J1341.8-2053_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/887542/ft2_4FGL_J1341.8-2053_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/887542/ltcube_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.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/887542/ft2_4FGL_J1341.8-2053_daily_bin163.fits
.....................!
real 16.08
user 15.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887542/ft1_filtered_4FGL_J1341.8-2053_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/887542/ft2_4FGL_J1341.8-2053_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/887542/ltcube_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.fits outfile=/scratch/kocevski/887542/expmap_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.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/887542/ltcube_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.fits
.....................!
real 193.51
user 188.55
sys 4.51

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/887542/ft1_filtered_4FGL_J1341.8-2053_daily_bin163.fits scfile=/scratch/kocevski/887542/ft2_4FGL_J1341.8-2053_daily_bin163.fits outfile=/scratch/kocevski/887542/cmap_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887542/ft1_filtered_4FGL_J1341.8-2053_daily_bin163.fits scfile=/scratch/kocevski/887542/ft2_4FGL_J1341.8-2053_daily_bin163.fits outfile=/scratch/kocevski/887542/cmap_HighResolution_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887542/ft1_filtered_4FGL_J1341.8-2053_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/887542/ft2_4FGL_J1341.8-2053_daily_bin163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887542/Model_4FGL_J1341.8-2053_daily_bin163.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/887542/ft1_filtered_4FGL_J1341.8-2053_daily_bin163.fits.....................!
real 52.89
user 51.45
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15549E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2777       1.0000         .10000E-03   10000.    
     3 'norm      '    10.333       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10283E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11389E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.014       1.0000         .10000E-03   10000.    
     9 'norm      '    .10551E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7957       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2027       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3010       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.014       1.0000         .10000E-03   10000.    
    18 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4285       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8913       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16516E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.256       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7111       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77802       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=   6123.821     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2961 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10077E-03    1030.4       -.66370E-04** at limit **
   2  norm          6.2772        8.0874        .10271E-06    .50870E-04
   3  norm          10.319        7.1198       -.12907E-05    .71176E-03
   4  Prefactor     .10000E-03    2.5623        .25431E-06** at limit **
   5  norm          .10000E-03    1.9146        .32798E-06** at limit **
   6  Prefactor     .10000E-03    3.3381        .78583E-08** at limit **
   7  Prefactor     .10000E-03    36.861        .14356E-05** at limit **
   8  norm          14.015        5.5989        .25792E-06    .14109E-03
   9  norm          .10000E-03    13.770        .63929E-06** at limit **
  10  Prefactor     .10000E-03    5.8144        .30181E-07** at limit **
  11  Prefactor     7.7983        24.328        .23780E-06   -.12399E-04
  12  Prefactor     .10000E-03    7.9558       -.12429E-06** at limit **
  13  Prefactor     .10000E-03    19.116        .10796E-05** at limit **
  14  norm          1.2025        3.6643        .10257E-05   -.35965E-04
  15  norm          2.3048        52.644        .23163E-04   -.74016E-04
  16  Prefactor     .10000E-03    3.8597        .48748E-07** at limit **
  17  Prefactor     47.034        43.236        .19627E-05    .14982E-03
  18  norm          .10000E-03    25.536       -.13356E-05** at limit **
  19  Prefactor     3.4318        4.8895        .34940E-06    .32208E-04
  20  norm          5.8925        7.6212        .17219E-06   -.50859E-04
  21  Prefactor     .10000E-03    91.949        .72934E-06** at limit **
  22  Prefactor     .10000E-03    15.313       -.39328E-06** at limit **
  23  Prefactor     30.267        27.826        .65471E-06    .53235E-04
  24  Normalizat    1.7110        .28385       -.73063E-06   -.31425E-04
  25  Prefactor     .77801        .12301       -.71378E-06   -.30303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100765
  norm       = 6.27717
  norm       = 10.3188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0153
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.79825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20253
  norm       = 2.30477
  Prefactor  = 0.0001
  Prefactor  = 47.0338
  norm       = 0.0001
  Prefactor  = 3.4318
  norm       = 5.89253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2672
  Normalizat = 1.71097
  Prefactor  = 0.778009
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.821     FROM HESSE     STATUS=OK           423 CALLS     3384 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10077E-03    1118.8        .40885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2772        8.0826        .16021E-03   -1.5207    
   3  norm          10.319        7.0515        .12465E-03   -1.5065    
   4  Prefactor     .10000E-03    2.5714        .12228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5341        .20994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3414        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.015        5.5794        .10699E-03   -1.4959    
   9  norm          .10000E-03    14.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7983        24.316        .14362E-03   -1.5149    
  12  Prefactor     .10000E-03    7.9795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2025        3.6113        .25306E-03   -1.5489    
  15  norm          2.3048        55.552        .13527E-02   -1.5404    
  16  Prefactor     .10000E-03    3.9082        .14990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.034        43.431        .29239E-03   -1.4335    
  18  norm          .10000E-03    26.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4318        4.8783        .19621E-03   -1.5337    
  20  norm          5.8925        7.6114        .16545E-03   -1.5222    
  21  Prefactor     .10000E-03    92.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.267        27.855        .72841E-04   -1.4607    
  24  Normalizat    1.7110        .34166        .32851E-03   -.72011    
  25  Prefactor     .77801        .14754        .20105E-03   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20667e-09
Minuit parameter uncertainties:
  1  0.0596772
  2  8.08397
  3  7.05209
  4  2.12698e-05
  5  2.32611e-05
  6  1.36476e-07
  7  5.22705e-05
  8  5.57958
  9  5.0164e-05
  10  2.50453e-06
  11  24.347
  12  1.31623e-05
  13  0.000160719
  14  3.612
  15  22.6536
  16  4.88327e-07
  17  43.46
  18  0.000168309
  19  4.87889
  20  7.61261
  21  0.000301675
  22  4.29544e-05
  23  27.8673
  24  0.342129
  25  0.147617
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.607e-04  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:  7.780e-01  1.476e-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.711e+00  3.421e-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.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887542/likelihoodResults_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.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) = 6123.82113268
delta logL = -0.000243408556344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6123.82088952
delta logL = -2.44892362389e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11509E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7669       1.0000          .0000       10.000    
     3 'Normalizat'    1.7110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77800       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6123.809     FROM MIGRAD    STATUS=FAILED       140 CALLS      297 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23318        30.037        .36285E-02    .29135E-01
   2  Index         4.7434        3.1763        .50000        .10603E-04
   3  Normalizat    1.6937        .27474E-01    .32851E-03    .16092E-04
   4  Prefactor     .78241        .12000E-01    .20105E-03    .23240E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6123.809     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      371 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23318        30.037        .35509E-03    .29135E-01
   2  Index         4.7434        3.1763        .68907E-02    .10603E-04
   3  Normalizat    1.6937        .27474E-01    .12536E-03    .16092E-04
   4  Prefactor     .78241        .12000E-01    .31429E-04    .23240E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6123.809     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      445 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23318        11.358        .29028E-04    .15666E-05
   2  Index         4.7434        7.3112        .28057E-02    .15900E-05
   3  Normalizat    1.6937        .34873        .26281E-05    .15573E-04
   4  Prefactor     .78241        .14745        .16084E-05    .22618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.233181
  Index      = 4.74341
  Normalizat = 1.69374
  Prefactor  = 0.782414
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.809     FROM HESSE     STATUS=OK            25 CALLS      470 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23318        9.0861        .11611E-05   -1.5611    
   2  Index         4.7434        7.3700        .56115E-03   -.51340E-01
   3  Normalizat    1.6937        .34650        .52562E-06   -.72471    
   4  Prefactor     .78241        .14658        .32169E-06   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52358e-13
Minuit parameter uncertainties:
  1  2.91101
  2  7.77007
  3  0.346997
  4  0.146652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887542': 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) = 6123.80883892
delta logL = 0.0120503536136

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.332e-01  2.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  4.743e+00  7.770e+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:  7.824e-01  1.467e-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.694e+00  3.470e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/887542/cmap_HighResolution_281577601_281836801_4FGL_J1341.8-2053_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-08 09:24:11.945588', job_id='887542', GAL2='0.78', fit_tolerance='1e-08', EG2='1.69', EG='1.71', time_epoch_completed='1631118251.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.21e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='163' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:24:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 887542: <4FGL_J1341.8-2053_daily_bin163> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin163 205.461 -20.8901 281577601 281836801 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 :                                   711.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            808 sec.

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

