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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin945
RA = 205.461, Dec = -20.8901
tmin = 484272001, tmax = 484531201
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='892950', job_status='RUN', time_executed='2021-09-08 09:32:32.375062', time_epoch_executed='1631118752.38' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892950/ft1_4FGL_J1341.8-2053_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892950/ft2_4FGL_J1341.8-2053_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892950/ft1_4FGL_J1341.8-2053_daily_bin945.fits outfile=/scratch/kocevski/892950/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin945.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=484272001.0 tmax=484531201.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.25
user 4.94
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892950/ft1_filtered_4FGL_J1341.8-2053_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/892950/ft2_4FGL_J1341.8-2053_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/892950/ltcube_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.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/892950/ft2_4FGL_J1341.8-2053_daily_bin945.fits
.....................!
real 18.70
user 18.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892950/ft1_filtered_4FGL_J1341.8-2053_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/892950/ft2_4FGL_J1341.8-2053_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/892950/ltcube_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.fits outfile=/scratch/kocevski/892950/expmap_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.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/892950/ltcube_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.fits
.....................!
real 196.77
user 190.14
sys 5.94

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/892950/ft1_filtered_4FGL_J1341.8-2053_daily_bin945.fits scfile=/scratch/kocevski/892950/ft2_4FGL_J1341.8-2053_daily_bin945.fits outfile=/scratch/kocevski/892950/cmap_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892950/ft1_filtered_4FGL_J1341.8-2053_daily_bin945.fits scfile=/scratch/kocevski/892950/ft2_4FGL_J1341.8-2053_daily_bin945.fits outfile=/scratch/kocevski/892950/cmap_HighResolution_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892950/ft1_filtered_4FGL_J1341.8-2053_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/892950/ft2_4FGL_J1341.8-2053_daily_bin945.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892950/Model_4FGL_J1341.8-2053_daily_bin945.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/892950/ft1_filtered_4FGL_J1341.8-2053_daily_bin945.fits.....................!
real 52.06
user 50.39
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94729E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    39.481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4471       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.159       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62581E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5239       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.4774       1.0000         .10000E-03   10000.    
    15 'norm      '    .16218E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.679       1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.152       1.0000         .10000E-03   10000.    
    18 'norm      '    25.251       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9290       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27719E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23396E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86200       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=   5776.626     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2465 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    107.00       -.23545E-05** at limit **
   2  norm          .10000E-03    8.3984       -.53404E-06** at limit **
   3  norm          39.470        11.857        .13178E-06    .29201E-04
   4  Prefactor     .10000E-03    2.9503       -.11226E-07** at limit **
   5  norm          4.4468        3.0755        .17771E-07   -.44720E-04
   6  Prefactor     .10000E-03    7.6422        .15063E-06** at limit **
   7  Prefactor     .10000E-03    10.903       -.57922E-06** at limit **
   8  norm          17.162        5.7709        .37017E-07   -.63231E-05
   9  norm          .10000E-03    2.8199       -.77896E-07** at limit **
  10  Prefactor     .10083E-03    15.955        .48974E-05** at limit **
  11  Prefactor     .10000E-03    10.558        .20319E-06** at limit **
  12  Prefactor     3.5124        13.640        .30878E-05    .12555E-03
  13  Prefactor     .10000E-03    4.8286        .12272E-07** at limit **
  14  norm          9.4757        6.3669       -.15923E-06   -.27272E-03
  15  norm          .10000E-03    17.870        .26980E-06** at limit **
  16  Prefactor     17.681        10.349       -.75627E-06    .37741E-04
  17  Prefactor     75.058        56.045        .70718E-05    .22303E-03
  18  norm          25.229        16.300       -.25465E-06   -.48494E-04
  19  Prefactor     .10000E-03    2.3549        .11882E-06** at limit **
  20  norm          2.9159        11.051        .40082E-05    .26284E-03
  21  Prefactor     .10000E-03    29.499        .71075E-06** at limit **
  22  Prefactor     .10000E-03    9.6927        .74994E-06** at limit **
  23  Prefactor     .10000E-03    35.614        .29379E-06** at limit **
  24  Normalizat    1.2646        .29570       -.75868E-07   -.13267E-03
  25  Prefactor     .86201        .12846       -.38729E-06   -.20399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 39.4702
  Prefactor  = 0.0001
  norm       = 4.44682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.162
  norm       = 0.0001
  Prefactor  = 0.000100834
  Prefactor  = 0.0001
  Prefactor  = 3.51244
  Prefactor  = 0.0001
  norm       = 9.47568
  norm       = 0.0001
  Prefactor  = 17.6807
  Prefactor  = 75.0576
  norm       = 25.2289
  Prefactor  = 0.0001
  norm       = 2.91591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26463
  Prefactor  = 0.862008
 **********
 **   18 **HESSE 
 **********

 FCN=   5776.626     FROM HESSE     STATUS=OK           421 CALLS     2886 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.08        .20798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.4568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          39.470        11.866        .63791E-04   -1.4451    
   4  Prefactor     .10000E-03    2.9534        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4468        3.0769        .10749E-03   -1.5286    
   6  Prefactor     .10000E-03    7.6987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.162        5.7687        .96687E-04   -1.4879    
   9  norm          .10000E-03    2.8253        .12461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10083E-03    68.055        .46842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5124        13.650        .10767E-02   -1.5333    
  13  Prefactor     .10000E-03    4.8378        .16303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.4757        6.3377        .13018E-03   -1.5092    
  15  norm          .10000E-03    17.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.681        10.384        .95257E-04   -1.4867    
  17  Prefactor     75.058        56.514        .23158E-03   -1.3973    
  18  norm          25.229        16.295        .79718E-04   -1.4703    
  19  Prefactor     .10000E-03    2.3792        .11378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9159        11.191        .11868E-02   -1.5366    
  21  Prefactor     .10000E-03    29.513        .21423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.6997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2646        .35284        .36952E-03   -.84629    
  25  Prefactor     .86201        .15410        .19329E-03   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25686e-08
Minuit parameter uncertainties:
  1  0.000392348
  2  2.23064e-05
  3  11.867
  4  1.52243e-06
  5  3.077
  6  5.13262e-06
  7  3.7838e-05
  8  5.7689
  9  6.01054e-06
  10  0.0150845
  11  5.5737e-06
  12  13.662
  13  1.63673e-05
  14  6.33814
  15  1.50024e-05
  16  10.3854
  17  56.5548
  18  16.2979
  19  3.73898e-06
  20  11.1991
  21  5.87359e-05
  22  3.53822e-05
  23  2.45364e-05
  24  0.35351
  25  0.154177
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.637e-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:  8.620e-01  1.542e-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.265e+00  3.535e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892950/likelihoodResults_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.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) = 5776.62682242
delta logL = -0.000983311318123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5776.62583905
delta logL = 6.52335074847e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7125       1.0000          .0000       10.000    
     3 'Normalizat'    1.2646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86201       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=   5776.626     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      251 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.214        .16543E-01** at limit **
   2  Index         2.1989        7.2226        .50000        .32837E-06
   3  Normalizat    1.2646        .16431E-01    .36952E-03    .30278E-03
   4  Prefactor     .86201        .72976E-02    .19329E-03    .62702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19894
  Normalizat = 1.26463
  Prefactor  = 0.862009
 **********
 **   18 **HESSE 
 **********

 FCN=   5776.626     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    264.82        .18349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1989        5.4861        .50000       -.59464    
   3  Normalizat    1.2646        .50822E-01    .73904E-04   -.84629    
   4  Prefactor     .86201        .22572E-01    .38658E-04   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60538e-09
Minuit parameter uncertainties:
  1  0.000301035
  2  805.812
  3  0.0508245
  4  0.0225725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892950': 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) = 5776.6258369
delta logL = 2.21488244279e-06

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.010e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.199e+00  8.058e+02  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.620e-01  2.257e-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:  1.265e+00  5.082e-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/892950/cmap_HighResolution_484272001_484531201_4FGL_J1341.8-2053_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-08 09:43:47.613632', job_id='892950', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631119427.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='945' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:43:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 892950: <4FGL_J1341.8-2053_daily_bin945> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin945> 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) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:30:47 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:47 2021
Terminated at Wed Sep  8 09:43:48 2021
Results reported at Wed Sep  8 09:43:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin945 205.461 -20.8901 484272001 484531201 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 :                                   667.60 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            806 sec.

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

