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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin141
RA = 205.461, Dec = -20.8901
tmin = 275875201, tmax = 276134401
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='887508', job_status='RUN', time_executed='2021-09-08 09:14:30.725112', time_epoch_executed='1631117670.73' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887508

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887508/ft1_4FGL_J1341.8-2053_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887508/ft2_4FGL_J1341.8-2053_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887508/ft1_4FGL_J1341.8-2053_daily_bin141.fits outfile=/scratch/kocevski/887508/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin141.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=275875201.0 tmax=276134401.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.22
user 3.00
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887508/ft1_filtered_4FGL_J1341.8-2053_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/887508/ft2_4FGL_J1341.8-2053_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/887508/ltcube_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.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/887508/ft2_4FGL_J1341.8-2053_daily_bin141.fits
.....................!
real 15.03
user 14.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887508/ft1_filtered_4FGL_J1341.8-2053_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/887508/ft2_4FGL_J1341.8-2053_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/887508/ltcube_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.fits outfile=/scratch/kocevski/887508/expmap_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.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/887508/ltcube_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.fits
.....................!
real 192.47
user 186.99
sys 5.03

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/887508/ft1_filtered_4FGL_J1341.8-2053_daily_bin141.fits scfile=/scratch/kocevski/887508/ft2_4FGL_J1341.8-2053_daily_bin141.fits outfile=/scratch/kocevski/887508/cmap_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887508/ft1_filtered_4FGL_J1341.8-2053_daily_bin141.fits scfile=/scratch/kocevski/887508/ft2_4FGL_J1341.8-2053_daily_bin141.fits outfile=/scratch/kocevski/887508/cmap_HighResolution_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.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/887508/ft1_filtered_4FGL_J1341.8-2053_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/887508/ft2_4FGL_J1341.8-2053_daily_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887508/Model_4FGL_J1341.8-2053_daily_bin141.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/887508/ft1_filtered_4FGL_J1341.8-2053_daily_bin141.fits.....................!
real 58.00
user 55.41
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .85528E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    21.518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.767       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0394       1.0000         .10000E-03   10000.    
     9 'norm      '    .19927E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29781       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5561       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    80.880       1.0000         .10000E-03   10000.    
    18 'norm      '    8.1573       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3339       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.621       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.158       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5776       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86570       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=   6500.491     FROM MIGRAD    STATUS=CONVERGED   1050 CALLS     3413 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.144        .18142E-02** at limit **
   2  norm          .31886E-01    10.023        .61552E-01    .49524E-03
   3  norm          21.515        8.1327        .86346E-04    .31086E-03
   4  Prefactor     .10000E-03    5.7445        .18142E-02** at limit **
   5  norm          1.2304        1.6330        .11750E-03    .33669E-04
   6  Prefactor     .10000E-03    6.6753        .18142E-02** at limit **
   7  Prefactor     32.717        44.100        .70001E-04   -.35726E-03
   8  norm          3.0481        7.1633        .10436E-02   -.39213E-03
   9  norm          .10064E-03    59.568        .35505E-02** at limit **
  10  Prefactor     .10000E-03    35.449        .36285E-03** at limit **
  11  Prefactor     .10000E-03    8.4337        .18142E-02** at limit **
  12  Prefactor     5.2333        8.4306        .17569E-03    .27178E-04
  13  Prefactor     .15070        20.319        .70684E-01    .66923E-03
  14  norm          6.5620        7.1835        .15673E-03    .72826E-04
  15  norm          .10000E-03    8.4248        .18142E-02** at limit **
  16  Prefactor     .10000E-03    3.7265        .15136E-02** at limit **
  17  Prefactor     80.853        76.178        .44659E-04   -.35130E-04
  18  norm          8.1541        9.8429        .14037E-03   -.13606E-04
  19  Prefactor     .10000E-03    3.0363        .13583E-02** at limit **
  20  norm          1.3329        5.6569        .37426E-03    .49757E-04
  21  Prefactor     .10000E-03    45.259        .18142E-02** at limit **
  22  Prefactor     67.599        39.443        .48809E-04   -.30652E-04
  23  Prefactor     24.138        33.742        .81498E-04   -.28039E-04
  24  Normalizat    1.5782        .36120        .35033E-03    .12948E-04
  25  Prefactor     .86572        .15030        .20106E-03    .52424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0318864
  norm       = 21.5149
  Prefactor  = 0.0001
  norm       = 1.23042
  Prefactor  = 0.0001
  Prefactor  = 32.717
  norm       = 3.04807
  norm       = 0.000100641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23329
  Prefactor  = 0.150702
  norm       = 6.56201
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.8526
  norm       = 8.1541
  Prefactor  = 0.0001
  norm       = 1.3329
  Prefactor  = 0.0001
  Prefactor  = 67.5989
  Prefactor  = 24.1377
  Normalizat = 1.5782
  Prefactor  = 0.865721
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.491     FROM HESSE     STATUS=OK           423 CALLS     3836 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .31886E-01    8.5154        .68662E-01   -1.5672    
   3  norm          21.515        8.1314        .17269E-04   -1.4780    
   4  Prefactor     .10000E-03    5.7463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2304        1.6330        .47002E-05   -1.5486    
   6  Prefactor     .10000E-03    6.6760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.717        43.853        .14000E-04   -1.4563    
   8  norm          3.0481        7.1186        .41744E-04   -1.5359    
   9  norm          .10064E-03    60.301        .71011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.450        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2333        8.4302        .70274E-05   -1.5250    
  13  Prefactor     .15070        15.838        .81911E-01   -1.5630    
  14  norm          6.5620        7.1777        .62693E-05   -1.5196    
  15  norm          .10000E-03    8.4248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7271        .30273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     80.853        76.168        .89318E-05   -1.3907    
  18  norm          8.1541        9.8424        .56149E-05   -1.5137    
  19  Prefactor     .10000E-03    3.0375        .27167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3329        5.6552        .14970E-04   -1.5477    
  21  Prefactor     .10000E-03    45.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     67.599        39.439        .97619E-05   -1.4062    
  23  Prefactor     24.138        33.724        .32599E-05   -1.4725    
  24  Normalizat    1.5782        .36088        .14013E-04   -.75604    
  25  Prefactor     .86572        .15044        .40212E-04   -.97349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48929e-08
Minuit parameter uncertainties:
  1  0.000106574
  2  1.04068
  3  8.13185
  4  1.74565e-05
  5  1.63307
  6  3.78203e-07
  7  43.8959
  8  7.12057
  9  0.0124495
  10  0.000204256
  11  4.08677e-07
  12  8.4321
  13  3.08969
  14  7.1786
  15  2.37519e-06
  16  2.23051e-05
  17  76.2604
  18  9.84431
  19  1.39268e-05
  20  5.4917
  21  9.25487e-05
  22  39.4538
  23  33.7507
  24  0.361474
  25  0.150513
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.507e-01  3.090e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.657e-01  1.505e-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.578e+00  3.615e-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.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887508/likelihoodResults_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.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) = 6500.026594
delta logL = 0.464316502152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6500.01140582
delta logL = 0.47950468097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62841       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4332       1.0000          .0000       10.000    
     3 'Normalizat'    1.4548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89867       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=   6500.011     FROM MIGRAD    STATUS=FAILED        80 CALLS      265 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62874        33.016        .64799E-04    .76068E-02
   2  Index         5.4332        7.5720        .81828E-02    .62417E-03
   3  Normalizat    1.4547        .28886        .36235E-03    .60095E-03
   4  Prefactor     .89872        .12477        .19772E-03    .64361E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6500.011     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      354 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62874        33.016        .10334E-03    .76068E-02
   2  Index         5.4332        7.5720        .12777E-02    .62417E-03
   3  Normalizat    1.4547        .28886        .13524E-03    .60095E-03
   4  Prefactor     .89872        .12477        .74105E-04    .64361E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6500.011     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      386 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62900        3.4695        .25919E-05    .10527E-04
   2  Index         5.4328        2.9991        .32731E-03    .76414E-06
   3  Normalizat    1.4547        .34987        .72470E-04   -.21617E-04
   4  Prefactor     .89872        .14987        .39544E-04   -.50139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.629004
  Index      = 5.43284
  Normalizat = 1.45474
  Prefactor  = 0.898718
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.011     FROM HESSE     STATUS=OK            23 CALLS      409 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62900        3.0811        .51839E-06   -1.5549    
   2  Index         5.4328        2.8486        .13093E-04    .86676E-01
   3  Normalizat    1.4547        .34992        .14494E-04   -.79058    
   4  Prefactor     .89872        .14988        .79088E-05   -.96186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70045e-12
Minuit parameter uncertainties:
  1  2.78425
  2  3.03248
  3  0.350502
  4  0.149953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887508': 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) = 6500.01140566
delta logL = 0.479504839445

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  6.290e-01  2.784e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  5.433e+00  3.032e+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:  8.987e-01  1.500e-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.455e+00  3.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 5.43 +/- 3.03
Photon Flux (Free Index): 1.09e-07 +/- 1.19e-07
Energy Flux (Free Index): 1.40e-05 +/- 1.56e-05

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/887508/cmap_HighResolution_275875201_276134401_4FGL_J1341.8-2053_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='4.80e-01', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-08 09:27:12.318941', photon_index_error2='3.03', photon_index2='5.43', ts='0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='1.56e-05', EG='1.58', time_epoch_completed='1631118432.32', return_code='0', job_id='887508', GAL2='0.90', EG2='1.45', return_code2='0', photon_flux_error2='1.19e-07', ts2='1.07', photon_index='2.73' WHERE bin_id='141' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:27:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 887508: <4FGL_J1341.8-2053_daily_bin141> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin141> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 09:10:41 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:11: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:11:45 2021
Terminated at Wed Sep  8 09:27:13 2021
Results reported at Wed Sep  8 09:27:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin141 205.461 -20.8901 275875201 276134401 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 :                                   760.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            992 sec.

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

