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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin284
RA = 205.461, Dec = -20.8901
tmin = 312940801, tmax = 313200001
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='888836', job_status='RUN', time_executed='2021-09-08 09:18:22.190213', time_epoch_executed='1631117902.19' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888836

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888836/ft1_4FGL_J1341.8-2053_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888836/ft2_4FGL_J1341.8-2053_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888836/ft1_4FGL_J1341.8-2053_daily_bin284.fits outfile=/scratch/kocevski/888836/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin284.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=312940801.0 tmax=313200001.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.49
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888836/ft1_filtered_4FGL_J1341.8-2053_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/888836/ft2_4FGL_J1341.8-2053_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/888836/ltcube_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.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/888836/ft2_4FGL_J1341.8-2053_daily_bin284.fits
.....................!
real 15.82
user 15.38
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888836/ft1_filtered_4FGL_J1341.8-2053_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/888836/ft2_4FGL_J1341.8-2053_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/888836/ltcube_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.fits outfile=/scratch/kocevski/888836/expmap_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.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/888836/ltcube_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.fits
.....................!
real 192.51
user 186.18
sys 5.40

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/888836/ft1_filtered_4FGL_J1341.8-2053_daily_bin284.fits scfile=/scratch/kocevski/888836/ft2_4FGL_J1341.8-2053_daily_bin284.fits outfile=/scratch/kocevski/888836/cmap_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=205.461 yref=-20.8901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888836/ft1_filtered_4FGL_J1341.8-2053_daily_bin284.fits scfile=/scratch/kocevski/888836/ft2_4FGL_J1341.8-2053_daily_bin284.fits outfile=/scratch/kocevski/888836/cmap_HighResolution_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=205.461 yref=-20.8901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888836/ft1_filtered_4FGL_J1341.8-2053_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/888836/ft2_4FGL_J1341.8-2053_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888836/Model_4FGL_J1341.8-2053_daily_bin284.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/888836/ft1_filtered_4FGL_J1341.8-2053_daily_bin284.fits.....................!
real 60.25
user 58.64
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.731       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .15394E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.762       1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12654E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7786       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14115E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.724       1.0000         .10000E-03   10000.    
    18 'norm      '    .10574E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2079       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15380E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .37983E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.014       1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.5288       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .51401       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=   6952.377     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3005 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.681        110.33        .14929E-04    .14344E-03
   2  norm          .10000E-03    7.7226        .22891E-06** at limit **
   3  norm          .10029E-03    6.7041       -.43175E-05** at limit **
   4  Prefactor     .10000E-03    4.2844       -.72802E-06** at limit **
   5  norm          .10000E-03    1.1818       -.30183E-07** at limit **
   6  Prefactor     .10000E-03    10.424        .10806E-08** at limit **
   7  Prefactor     58.773        27.116       -.31426E-07    .39017E-04
   8  norm          .10000E-03    2.8072        .58638E-08** at limit **
   9  norm          12.218        9.4893       -.35514E-06   -.16323E-05
  10  Prefactor     11.427        15.989       -.94537E-07    .40422E-04
  11  Prefactor     .10000E-03    7.5250       -.56976E-06** at limit **
  12  Prefactor     .10000E-03    3.7990       -.25984E-07** at limit **
  13  Prefactor     .10000E-03    12.075       -.22652E-06** at limit **
  14  norm          2.7775        4.5799       -.44280E-06   -.11249E-03
  15  norm          .10000E-03    18.668        .27294E-06** at limit **
  16  Prefactor     .10000E-03    2.8730       -.13428E-07** at limit **
  17  Prefactor     16.763        44.411        .15774E-04    .94869E-04
  18  norm          .10000E-03    10.499        .12765E-07** at limit **
  19  Prefactor     2.2067        2.6658       -.62477E-07   -.45987E-06
  20  norm          .10000E-03    2.3413       -.73767E-08** at limit **
  21  Prefactor     .10000E-03    132.16        .48350E-05** at limit **
  22  Prefactor     .10029E-03    15.853       -.14773E-05** at limit **
  23  Prefactor     60.019        47.673        .75937E-06    .34527E-04
  24  Normalizat    2.5285        .28436        .20172E-05    .38173E-03
  25  Prefactor     .51423        .11884       -.37150E-06    .52649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6815
  norm       = 0.0001
  norm       = 0.000100291
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.7729
  norm       = 0.0001
  norm       = 12.2181
  Prefactor  = 11.4269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77751
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.7635
  norm       = 0.0001
  Prefactor  = 2.20669
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010029
  Prefactor  = 60.0193
  Normalizat = 2.52845
  Prefactor  = 0.514226
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.377     FROM HESSE     STATUS=OK           423 CALLS     3428 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.681        119.07        .10098E-03   -1.4916    
   2  norm          .10000E-03    7.8205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10029E-03    28.793        .35144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3196        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9251        .17612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     58.773        27.160        .52337E-04   -1.4173    
   8  norm          .10000E-03    2.8156        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.218        9.4557        .11462E-03   -1.5009    
  10  Prefactor     11.427        15.950        .11850E-03   -1.5032    
  11  Prefactor     .10000E-03    7.5297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8068        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7775        4.5700        .22004E-03   -1.5375    
  15  norm          .10000E-03    18.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1609        .27412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.763        44.424        .97937E-04   -1.4889    
  18  norm          .10000E-03    10.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2067        2.6595        .14508E-03   -1.5411    
  20  norm          .10000E-03    2.3442        .12459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    133.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10029E-03    154.50        .64005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     60.019        47.661        .51791E-04   -1.4157    
  24  Normalizat    2.5285        .33213        .30274E-03   -.51876    
  25  Prefactor     .51423        .13734        .24815E-03   -1.1133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22744e-08
Minuit parameter uncertainties:
  1  86.6644
  2  9.70736e-07
  3  0.00579093
  4  2.31847e-05
  5  2.21274e-06
  6  1.45834e-05
  7  27.1658
  8  2.38775e-06
  9  9.45682
  10  15.9555
  11  1.32907e-05
  12  3.13958e-06
  13  3.50551e-05
  14  4.57053
  15  3.55176e-06
  16  0.000185983
  17  44.5118
  18  9.70989e-06
  19  2.65959
  20  3.35718e-06
  21  0.000184609
  22  0.0134172
  23  47.6918
  24  0.332454
  25  0.137427
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.506e-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:  5.142e-01  1.374e-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:  2.528e+00  3.325e-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.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888836/likelihoodResults_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.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) = 6952.37690065
delta logL = -0.000389677461499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6952.37651074
delta logL = 2.33036189456e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6777       1.0000          .0000       10.000    
     3 'Normalizat'    2.5285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51422       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=   6952.344     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      318 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3106        6.9850        .36285E-02    .27721E-03
   2  Index         1.6879        .73517        .45384       -.47680E-04
   3  Normalizat    2.5322        .32435        .30273E-03    .22063E-03
   4  Prefactor     .51136        .13566        .24815E-03    .20483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31058
  Index      = 1.68789
  Normalizat = 2.53222
  Prefactor  = 0.511356
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.344     FROM HESSE     STATUS=OK            29 CALLS      347 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3106        6.4472        .14514E-03   -1.5479    
   2  Index         1.6879        1.4419        .14865E-01   -.72405    
   3  Normalizat    2.5322        .32437        .60547E-04   -.51789    
   4  Prefactor     .51136        .13560        .99260E-05   -1.1146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5313e-10
Minuit parameter uncertainties:
  1  5.81439
  2  1.48017
  3  0.324675
  4  0.135684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888836': 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) = 6952.34394187
delta logL = 0.0325691018243

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.311e+00  5.814e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.688e+00  1.480e+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:  5.114e-01  1.357e-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:  2.532e+00  3.247e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/888836/cmap_HighResolution_312940801_313200001_4FGL_J1341.8-2053_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-08 09:31:12.882274', job_id='888836', GAL2='0.51', fit_tolerance='1e-08', EG2='2.53', EG='2.53', time_epoch_completed='1631118672.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='3.26e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='284' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 888836: <4FGL_J1341.8-2053_daily_bin284> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin284> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:31 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:15:54 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:15:54 2021
Terminated at Wed Sep  8 09:31:13 2021
Results reported at Wed Sep  8 09:31:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin284 205.461 -20.8901 312940801 313200001 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            942 sec.

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

