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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin955
RA = 205.461, Dec = -20.8901
tmin = 486864001, tmax = 487123201
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='892965', job_status='RUN', time_executed='2021-09-08 09:31:53.077519', time_epoch_executed='1631118713.08' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892965/ft1_4FGL_J1341.8-2053_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892965/ft2_4FGL_J1341.8-2053_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892965/ft1_4FGL_J1341.8-2053_daily_bin955.fits outfile=/scratch/kocevski/892965/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin955.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=486864001.0 tmax=487123201.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892965/ft1_filtered_4FGL_J1341.8-2053_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/892965/ft2_4FGL_J1341.8-2053_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/892965/ltcube_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.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/892965/ft2_4FGL_J1341.8-2053_daily_bin955.fits
.....................!
real 17.23
user 16.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892965/ft1_filtered_4FGL_J1341.8-2053_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/892965/ft2_4FGL_J1341.8-2053_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/892965/ltcube_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.fits outfile=/scratch/kocevski/892965/expmap_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.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/892965/ltcube_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.fits
.....................!
real 191.78
user 186.70
sys 4.46

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/892965/ft1_filtered_4FGL_J1341.8-2053_daily_bin955.fits scfile=/scratch/kocevski/892965/ft2_4FGL_J1341.8-2053_daily_bin955.fits outfile=/scratch/kocevski/892965/cmap_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892965/ft1_filtered_4FGL_J1341.8-2053_daily_bin955.fits scfile=/scratch/kocevski/892965/ft2_4FGL_J1341.8-2053_daily_bin955.fits outfile=/scratch/kocevski/892965/cmap_HighResolution_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892965/ft1_filtered_4FGL_J1341.8-2053_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/892965/ft2_4FGL_J1341.8-2053_daily_bin955.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892965/Model_4FGL_J1341.8-2053_daily_bin955.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/892965/ft1_filtered_4FGL_J1341.8-2053_daily_bin955.fits.....................!
real 66.92
user 65.09
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.531       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1350       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9948       1.0000         .10000E-03   10000.    
     5 'norm      '    .96341E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.797       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6959       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27537E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .95957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23255E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5157       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5643       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8391.692     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2466 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.282        60.276       -.50446E-05    .20676E-03
   2  norm          4.1346        4.4107       -.50230E-06   -.35783E-02
   3  norm          4.7249        3.8420        .69005E-06   -.12554E-02
   4  Prefactor     8.9963        3.1914        .11379E-06    .30320E-02
   5  norm          .95919E-01    4.6898       -.36670E-06    .18176E-02
   6  Prefactor     .10000E-03    4.2297        .78598E-06** at limit **
   7  Prefactor     .10000E-03    15.346       -.39780E-07** at limit **
   8  norm          10.798        3.7986       -.13673E-06   -.15681E-03
   9  norm          3.6972        1.8955       -.17412E-07   -.18741E-03
  10  Prefactor     .10000E-03    8.2584       -.81550E-06** at limit **
  11  Prefactor     .10007E-03    9.8466       -.18436E-05** at limit **
  12  Prefactor     10.586        9.1255        .16055E-06   -.27415E-02
  13  Prefactor     .10000E-03    5.7588        .65350E-06** at limit **
  14  norm          .10000E-03    3.2550       -.25480E-06** at limit **
  15  norm          .10004E-03    9.4504        .45048E-07** at limit **
  16  Prefactor     3.3460        3.0343        .69637E-06    .52470E-03
  17  Prefactor     .10000E-03    29.039       -.12445E-06** at limit **
  18  norm          7.8543        3.5923       -.17102E-06    .31999E-02
  19  Prefactor     .10000E-03    7.4737        .10093E-06** at limit **
  20  norm          .96318        4.8352        .19773E-05    .29230E-04
  21  Prefactor     .10010E-03    213.63       -.88325E-05** at limit **
  22  Prefactor     2.4864        29.362        .42466E-05    .37971E-03
  23  Prefactor     .10023E-03    6.1424       -.22593E-06** at limit **
  24  Normalizat    1.5642        .26691       -.96658E-06   -.13079E-03
  25  Prefactor     .81607        .11970       -.94375E-07   -.20007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2816
  norm       = 4.1346
  norm       = 4.7249
  Prefactor  = 8.99633
  norm       = 0.0959193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7979
  norm       = 3.69725
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 10.5857
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100044
  Prefactor  = 3.34602
  Prefactor  = 0.000100001
  norm       = 7.85425
  Prefactor  = 0.0001
  norm       = 0.963176
  Prefactor  = 0.000100102
  Prefactor  = 2.4864
  Prefactor  = 0.000100233
  Normalizat = 1.56423
  Prefactor  = 0.816072
 **********
 **   18 **HESSE 
 **********

 FCN=   8391.692     FROM HESSE     STATUS=OK           491 CALLS     2957 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.282        60.801        .19820E-02   -1.4702    
   2  norm          4.1346        4.6594        .49557E-02   -1.5301    
   3  norm          4.7249        4.9614        .46275E-02   -1.5273    
   4  Prefactor     8.9963        5.6158        .33410E-02   -1.5108    
   5  norm          .95919E-01    .89683        .46273E-01   -1.5646    
   6  Prefactor     .10000E-03    4.2062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.798        4.9055        .30483E-02   -1.5051    
   9  norm          3.6972        7.4461        .52519E-02   -1.5323    
  10  Prefactor     .10000E-03    8.2004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    11.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.586        10.840        .30794E-02   -1.5057    
  13  Prefactor     .10000E-03    5.6917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10004E-03    10.450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3460        6.6919        .55292E-02   -1.5342    
  17  Prefactor     .10000E-03    29.087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8543        13.352        .35802E-02   -1.5147    
  19  Prefactor     .10000E-03    2.1374        .71851E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .96318        15.728        .13022E-01   -1.5512    
  21  Prefactor     .10010E-03    212.98        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4864        30.117        .64398E-02   -1.5393    
  23  Prefactor     .10023E-03    10.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5642        .22794        .72218E-01   -.75989    
  25  Prefactor     .81607        .10088        .43926E-01   -.99139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08594e-06
Minuit parameter uncertainties:
  1  60.9502
  2  4.65977
  3  4.9618
  4  5.61611
  5  0.586299
  6  3.49659e-05
  7  0.00015251
  8  4.90567
  9  7.44799
  10  5.29495e-05
  11  0.00176192
  12  10.8421
  13  4.32329e-05
  14  9.90334e-06
  15  0.00135839
  16  6.69336
  17  0.000299207
  18  13.3574
  19  6.42724e-05
  20  7.78624
  21  0.00933918
  22  17.3174
  23  0.00317604
  24  0.228086
  25  0.100906
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  4.323e-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.161e-01  1.009e-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.564e+00  2.281e-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: 8.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892965/likelihoodResults_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.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) = 8391.6927141
delta logL = -0.000827832720461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8391.69188666
delta logL = -4.00672433898e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7366       1.0000          .0000       10.000    
     3 'Normalizat'    1.5641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81616       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=   8391.279     FROM MIGRAD    STATUS=FAILED       197 CALLS      335 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28524E-03    .17364E-01    .52642E-03** at limit **
   2  Index        10.0000        9.9896        .50000    ** at limit **
   3  Normalizat    1.5041        .76228E-01    .31952E-03    .16794E-04
   4  Prefactor     .83401        .32890E-01    .19224E-03    .19125E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8391.279     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      484 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28524E-03    .17364E-01    .21405E-07** at limit **
   2  Index        10.0000        9.9896        .12802E-01** at limit **
   3  Normalizat    1.5041        .76228E-01    .61808E-07    .16794E-04
   4  Prefactor     .83401        .32890E-01    .30833E-08    .19125E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8391.279     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      530 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28524E-03    .40737E-03    .22356E-04** at limit **
   2  Index        10.0000        6.2162        .50000    ** at limit **
   3  Normalizat    1.5041        .27308        .12781E-04    .10318E-04
   4  Prefactor     .83401        .12170        .76897E-05    .18451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000285244
  Index      = 10
  Normalizat = 1.50409
  Prefactor  = 0.834015
 **********
 **   18 **HESSE 
 **********

 FCN=   8391.279     FROM HESSE     STATUS=OK            31 CALLS      561 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28524E-03    .39255E-03    .44713E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.2802        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5041        .27210        .25562E-05   -.77663    
   4  Prefactor     .83401        .12123        .15379E-05   -.98486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.803e-11
Minuit parameter uncertainties:
  1  0.000392549
  2  2.49319e-05
  3  0.272369
  4  0.12127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892965': 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) = 8391.27853198
delta logL = 0.413354287106

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.852e-04  3.925e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.000e+01  2.493e-05  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.340e-01  1.213e-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.504e+00  2.724e-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/892965/cmap_HighResolution_486864001_487123201_4FGL_J1341.8-2053_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='8.77e-08', time_completed='2021-09-08 09:45:46.623159', job_id='892965', GAL2='0.83', fit_tolerance='1e-08', EG2='1.50', EG='1.56', time_epoch_completed='1631119546.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.13e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='955' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:45:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 892965: <4FGL_J1341.8-2053_daily_bin955> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin955 205.461 -20.8901 486864001 487123201 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 :                                   828.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            924 sec.

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

