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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin942
RA = 205.461, Dec = -20.8901
tmin = 483494401, tmax = 483753601
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='892946', job_status='RUN', time_executed='2021-09-08 09:34:38.696153', time_epoch_executed='1631118878.7' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892946/ft1_4FGL_J1341.8-2053_daily_bin942.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892946/ft2_4FGL_J1341.8-2053_daily_bin942.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892946/ft1_4FGL_J1341.8-2053_daily_bin942.fits outfile=/scratch/kocevski/892946/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin942.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=483494401.0 tmax=483753601.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 6.64
user 6.36
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892946/ft1_filtered_4FGL_J1341.8-2053_daily_bin942.fits" evtable="EVENTS" scfile=/scratch/kocevski/892946/ft2_4FGL_J1341.8-2053_daily_bin942.fits sctable="SC_DATA" outfile=/scratch/kocevski/892946/ltcube_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.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/892946/ft2_4FGL_J1341.8-2053_daily_bin942.fits
.....................!
real 15.72
user 14.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892946/ft1_filtered_4FGL_J1341.8-2053_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/892946/ft2_4FGL_J1341.8-2053_daily_bin942.fits sctable="SC_DATA" expcube=/scratch/kocevski/892946/ltcube_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.fits outfile=/scratch/kocevski/892946/expmap_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.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/892946/ltcube_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.fits
.....................!
real 192.68
user 187.64
sys 4.57

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/892946/ft1_filtered_4FGL_J1341.8-2053_daily_bin942.fits scfile=/scratch/kocevski/892946/ft2_4FGL_J1341.8-2053_daily_bin942.fits outfile=/scratch/kocevski/892946/cmap_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892946/ft1_filtered_4FGL_J1341.8-2053_daily_bin942.fits scfile=/scratch/kocevski/892946/ft2_4FGL_J1341.8-2053_daily_bin942.fits outfile=/scratch/kocevski/892946/cmap_HighResolution_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.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.60
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892946/ft1_filtered_4FGL_J1341.8-2053_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/892946/ft2_4FGL_J1341.8-2053_daily_bin942.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892946/Model_4FGL_J1341.8-2053_daily_bin942.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/892946/ft1_filtered_4FGL_J1341.8-2053_daily_bin942.fits.....................!
real 47.55
user 46.07
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.541       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6911       1.0000         .10000E-03   10000.    
     5 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15214E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.676       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7704       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87961       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1380       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=   5430.051     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2507 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    127.61       -.28760E-05** at limit **
   2  norm          .10000E-03    7.4790       -.32533E-08** at limit **
   3  norm          18.542        9.4768       -.37097E-06    .95191E-04
   4  Prefactor     2.6911        5.4137        .25643E-05   -.14002E-03
   5  norm          .10000E-03    2.4047       -.97758E-07** at limit **
   6  Prefactor     .10000E-03    6.1871        .74526E-07** at limit **
   7  Prefactor     .10001E-03    99.349        .51634E-05** at limit **
   8  norm          19.671        6.1851       -.38708E-06   -.67497E-03
   9  norm          .10000E-03    2.7354        .98172E-07** at limit **
  10  Prefactor     .10000E-03    4.9866       -.31270E-08** at limit **
  11  Prefactor     .10000E-03    36.275        .53728E-06** at limit **
  12  Prefactor     .10000E-03    10.525       -.25861E-07** at limit **
  13  Prefactor     .10000E-03    24.969       -.43628E-07** at limit **
  14  norm          .10000E-03    3.2484        .22240E-07** at limit **
  15  norm          .10000E-03    20.203       -.13726E-06** at limit **
  16  Prefactor     23.029        9.4822        .50647E-07   -.67041E-04
  17  Prefactor     .10000E-03    32.402       -.91231E-06** at limit **
  18  norm          1.7617        25.531        .60210E-06   -.58076E-05
  19  Prefactor     .10000E-03    2.8712       -.21033E-07** at limit **
  20  norm          .10000E-03    5.1326        .11193E-07** at limit **
  21  Prefactor     .10000E-03    24.644        .33698E-06** at limit **
  22  Prefactor     .10000E-03    16.039       -.11658E-08** at limit **
  23  Prefactor     .10001E-03    228.46        .88413E-06** at limit **
  24  Normalizat    .87960        .31845       -.80651E-06   -.10784E-03
  25  Prefactor     1.1380        .14360        .12130E-07   -.19050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 18.5423
  Prefactor  = 2.69105
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 19.6713
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.0291
  Prefactor  = 0.0001
  norm       = 1.7617
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.8796
  Prefactor  = 1.13803
 **********
 **   18 **HESSE 
 **********

 FCN=   5430.051     FROM HESSE     STATUS=OK           413 CALLS     2920 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.5254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.542        9.4796        .93015E-04   -1.4846    
   4  Prefactor     2.6911        5.4138        .11346E-02   -1.5380    
   5  norm          .10000E-03    5.1869        .22100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2465        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    105.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.671        6.3052        .90294E-04   -1.4821    
   9  norm          .10000E-03    2.7397        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9894        .16071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.2754        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.029        9.4852        .83469E-04   -1.4748    
  17  Prefactor     .10000E-03    32.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7617        25.608        .31473E-03   -1.5443    
  19  Prefactor     .10000E-03    2.8888        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.1447        .16297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    233.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87960        .36581        .43343E-03   -.97181    
  25  Prefactor     1.1380        .16561        .17583E-03   -.88260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70108e-10
Minuit parameter uncertainties:
  1  0.00133795
  2  2.00712e-06
  3  9.48034
  4  5.41483
  5  1.93056e-06
  6  1.14034e-05
  7  0.00145381
  8  6.30544
  9  9.05574e-06
  10  1.0467e-07
  11  0.000208044
  12  2.65144e-06
  13  2.99831e-05
  14  3.29125e-06
  15  2.4762e-05
  16  9.48584
  17  0.000232482
  18  13.44
  19  1.09839e-06
  20  3.85659e-06
  21  6.93896e-05
  22  3.7235e-06
  23  0.00227112
  24  0.366849
  25  0.165688
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.998e-05  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.138e+00  1.657e-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:  8.796e-01  3.668e-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.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892946/likelihoodResults_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.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) = 5430.05103592
delta logL = -0.000186682768799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5430.05084927
delta logL = -2.71547833108e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7501       1.0000          .0000       10.000    
     3 'Normalizat'    .87954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5430.051     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      259 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    205.52        .36285E-02** at limit **
   2  Index         3.3533        7.8158        .50000       -.83833E-07
   3  Normalizat    .87960        .19224E-01    .43343E-03   -.73605E-03
   4  Prefactor     1.1380        .88207E-02    .17583E-03   -.18405E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.3533
  Normalizat = 0.879598
  Prefactor  = 1.13803
 **********
 **   18 **HESSE 
 **********

 FCN=   5430.051     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1250.1        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3533        6.9524        .50000       -.33560    
   3  Normalizat    .87960        .49823E-01    .86687E-04   -.97181    
   4  Prefactor     1.1380        .22861E-01    .35166E-04   -.88260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.99591e-10
Minuit parameter uncertainties:
  1  0.000764493
  2  1894.65
  3  0.0498257
  4  0.0228613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892946': 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) = 5430.05084881
delta logL = 4.31262378697e-07

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  7.645e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.353e+00  1.895e+03  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.138e+00  2.286e-02  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:  8.796e-01  4.983e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/892946/cmap_HighResolution_483494401_483753601_4FGL_J1341.8-2053_daily_bin942.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-08 09:45:20.069466', job_id='892946', GAL2='1.14', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631119520.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='942' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 892946: <4FGL_J1341.8-2053_daily_bin942> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin942 205.461 -20.8901 483494401 483753601 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            899 sec.

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

