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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin964
RA = 356.999, Dec = -51.1139
tmin = 489196801, tmax = 489456001
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='121012', job_status='RUN', time_executed='2021-09-30 05:05:51.726105', time_epoch_executed='1633003551.73' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='964'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121012

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121012/ft1_4FGL_J2347.9-5106_daily_bin964.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121012/ft1_4FGL_J2347.9-5106_daily_bin964.fits outfile=/scratch/kocevski/121012/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin964.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=489196801.0 tmax=489456001.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 4.97
user 4.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.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/121012/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin964.fits evtable="EVENTS" outfile="/scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits" evtable="EVENTS" scfile=/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits sctable="SC_DATA" outfile=/scratch/kocevski/121012/ltcube_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.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/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits
.....................!
real 12.11
user 11.48
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits sctable="SC_DATA" expcube=/scratch/kocevski/121012/ltcube_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.fits outfile=/scratch/kocevski/121012/expmap_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.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/121012/ltcube_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.fits
.....................!
real 190.68
user 185.77
sys 4.57

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J2347.9-5106 @ 356.999 -51.1139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits scfile=/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits outfile=/scratch/kocevski/121012/cmap_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.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=356.999 yref=-51.1139 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.53
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits scfile=/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits outfile=/scratch/kocevski/121012/cmap_HighResolution_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.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=356.999 yref=-51.1139 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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121012/Model_4FGL_J2347.9-5106_daily_bin964.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/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits.....................!
real 45.44
user 44.16
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits', '/scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits', expMap='/scratch/kocevski/121012/expmap_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.fits', expCube='/scratch/kocevski/121012/ltcube_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/121012/Model_4FGL_J2347.9-5106_daily_bin964.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2347.9-5106'

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.569e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.487e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/121012/ft1_filtered_4FGL_J2347.9-5106_daily_bin964.fits
Spacecraft file(s): /scratch/kocevski/121012/ft2_4FGL_J2347.9-5106_daily_bin964.fits
Exposure map: /scratch/kocevski/121012/expmap_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.fits
Exposure cube: /scratch/kocevski/121012/ltcube_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/121012/Model_4FGL_J2347.9-5106_daily_bin964.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) = 6199.05561199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.618       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1681       1.0000         .10000E-03   10000.    
     9 'norm      '    23.299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15132E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.529       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.461       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8059       1.0000         .10000E-03   10000.    
    19 'norm      '    .73195E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7429       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.7495       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.6949       1.0000         .10000E-03   10000.    
    26 'norm      '    .41262       1.0000         .10000E-03   10000.    
    27 'norm      '    .85895       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.5291       1.0000         .10000E-03   10000.    
    30 'Prefactor '    24.062       1.0000         .10000E-03   10000.    
    31 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.7368       1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.5972       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .92551       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .82467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6199.030     FROM MIGRAD    STATUS=CONVERGED    974 CALLS     5111 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.992       -.93523E-06** at limit **
   2  Prefactor     .10000E-03    17.871       -.30585E-06** at limit **
   3  Prefactor     59.607        38.714       -.40225E-06    .45548E-05
   4  Prefactor     10.870        11.116       -.13216E-06    .39276E-04
   5  Prefactor     3.4876        5.4032       -.30205E-06    .83331E-04
   6  Prefactor     .10000E-03    5.9386       -.38936E-07** at limit **
   7  Prefactor     .10000E-03    6.6367       -.46816E-06** at limit **
   8  Prefactor     3.1692        4.3968       -.22409E-06   -.28799E-04
   9  norm          23.299        25.801       -.73841E-07    .12930E-04
  10  Prefactor     .10000E-03    2.9838       -.15006E-06** at limit **
  11  Prefactor     29.531        33.693       -.20216E-07    .78462E-05
  12  norm          6.5331        6.5817       -.67983E-07    .11250E-03
  13  Prefactor     .10000E-03    1.6604       -.50870E-07** at limit **
  14  Prefactor     26.462        20.013        .95918E-08    .74192E-05
  15  Prefactor     .10000E-03    2.4325        .25875E-08** at limit **
  16  Prefactor     .10000E-03    36.900        .27630E-06** at limit **
  17  Prefactor     43.121        34.488       -.49392E-06   -.13515E-04
  18  Prefactor     4.8045        8.1569        .42159E-06    .39953E-04
  19  norm          .10000E-03    71.243       -.55849E-05** at limit **
  20  norm          .10000E-03    6.3098        .14588E-05** at limit **
  21  norm          .10000E-03    1.6556       -.10028E-06** at limit **
  22  Prefactor     2.7427        3.1511        .27389E-07    .43259E-05
  23  Prefactor     .10000E-03    50.320        .13782E-05** at limit **
  24  norm          4.7518        3.3667        .21372E-06   -.47817E-03
  25  Prefactor     3.6947        7.5684        .32791E-06    .24894E-04
  26  norm          .41403        .77021       -.75038E-06   -.39931E-03
  27  norm          .85916        2.9607        .11177E-06   -.20363E-03
  28  Prefactor     .10000E-03    5.3052       -.23442E-07** at limit **
  29  Prefactor     3.5300        2.6580        .83223E-07    .15435E-03
  30  Prefactor     24.050        22.522        .70234E-06    .40026E-04
  31  norm          .10000E-03    8.0615        .30977E-07** at limit **
  32  Prefactor     1.7391        3.4811       -.11790E-06    .72028E-04
  33  Prefactor     1.6002        2.9589       -.13243E-06    .54938E-04
  34  Normalizat    .92501        .15836        .57787E-06    .28127E-04
  35  Prefactor     .82515        .16926        .22806E-06    .36098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.6069
  Prefactor  = 10.8698
  Prefactor  = 3.48761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16916
  norm       = 23.2987
  Prefactor  = 0.0001
  Prefactor  = 29.5309
  norm       = 6.53305
  Prefactor  = 0.0001
  Prefactor  = 26.4623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1214
  Prefactor  = 4.8045
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.74272
  Prefactor  = 0.0001
  norm       = 4.75177
  Prefactor  = 3.69467
  norm       = 0.414028
  norm       = 0.859162
  Prefactor  = 0.0001
  Prefactor  = 3.53005
  Prefactor  = 24.0498
  norm       = 0.0001
  Prefactor  = 1.73911
  Prefactor  = 1.60016
  Normalizat = 0.925011
  Prefactor  = 0.825154
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.030     FROM HESSE     STATUS=OK           800 CALLS     5911 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.607        38.724        .51962E-04   -1.4162    
   4  Prefactor     10.870        11.098        .12152E-03   -1.5048    
   5  Prefactor     3.4876        5.4114        .10829E-02   -1.5334    
   6  Prefactor     .10000E-03    5.9417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1692        4.3916        .18746E-03   -1.5352    
   9  norm          23.299        25.780        .82985E-04   -1.4742    
  10  Prefactor     .10000E-03    5.7255        .24981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.531        33.692        .73729E-04   -1.4621    
  12  norm          6.5331        6.2715        .15696E-03   -1.5197    
  13  Prefactor     .10000E-03    1.6625        .99064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.462        20.022        .77878E-04   -1.4679    
  15  Prefactor     .10000E-03    2.4357        .11989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.121        34.493        .61040E-04   -1.4394    
  18  Prefactor     4.8045        8.1449        .18351E-03   -1.5270    
  19  norm          .10000E-03    6.0224        .65947E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2154        .50765E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6642        .98872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7427        3.1474        .13909E-03   -1.5377    
  23  Prefactor     .10000E-03    50.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7518        3.3055        .11241E-03   -1.5272    
  25  Prefactor     3.6947        7.5494        .21010E-03   -1.5324    
  26  norm          .41403        .77961        .95875E-03   -1.5579    
  27  norm          .85916        2.9052        .23169E-03   -1.5523    
  28  Prefactor     .10000E-03    5.3224        .17710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.5300        2.6475        .10315E-03   -1.5332    
  30  Prefactor     24.050        22.530        .81660E-04   -1.4727    
  31  norm          .10000E-03    8.0651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.7391        3.4441        .19701E-03   -1.5444    
  33  Prefactor     1.6002        2.9355        .17513E-03   -1.5455    
  34  Normalizat    .92501        .18726        .21959E-03   -.95587    
  35  Prefactor     .82515        .19935        .25476E-03   -.98808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93154e-09
Minuit parameter uncertainties:
  1  5.33381e-05
  2  4.26071e-05
  3  38.7399
  4  11.0997
  5  5.41211
  6  1.08432e-05
  7  2.12138e-05
  8  4.392
  9  25.7921
  10  5.1154e-05
  11  33.7139
  12  6.27217
  13  1.82877e-06
  14  20.0273
  15  1.38743e-06
  16  1.77542e-05
  17  34.5093
  18  8.14678
  19  1.07005e-05
  20  3.52212e-05
  21  1.81363e-06
  22  3.14759
  23  0.000159915
  24  3.30561
  25  7.55139
  26  0.779628
  27  2.90571
  28  4.89067e-06
  29  2.6476
  30  22.5375
  31  9.78225e-08
  32  3.44451
  33  2.93579
  34  0.187389
  35  0.199529
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  3.530e+00  2.648e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.487e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.252e-01  1.995e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.250e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 7.73e-06

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) = 6197.2761875
delta logL = 1.75361166327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6197.25173683
delta logL = 1.77806232914

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6197.252     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      206 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4652        2.5692        .54310E-02    .58803E-03
   2  Index         1.5214        .34512        .18253       -.40431E-04
   3  Normalizat    .94761        .15141        .45507E-01   -.27829E-06
   4  Prefactor     .81110        .16755        .43861E-01    .12632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46525
  Index      = 1.52143
  Normalizat = 0.947609
  Prefactor  = 0.8111
 **********
 **   18 **HESSE 
 **********

 FCN=   6197.252     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4652        3.0921        .10500E-03   -1.5336    
   2  Index         1.5214        .45717        .73257E-02   -.76941    
   3  Normalizat    .94761        .17875        .21733E-03   -.94807    
   4  Prefactor     .81110        .19783        .25674E-03   -.99320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39186e-10
Minuit parameter uncertainties:
  1  3.09223
  2  0.458412
  3  0.178861
  4  0.197999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121012': 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) = 6197.25173683
delta logL = 1.77806233147

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  3.465e+00  3.092e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.521e+00  4.584e-01  0.000e+00  1.000e+01 (-1.000e+00)
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.111e-01  1.980e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.476e-01  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.98
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 1.52 +/- 0.46
Photon Flux (Free Index): 1.37e-08 +/- 1.33e-08
Energy Flux (Free Index): 4.03e-05 +/- 4.70e-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/121012/cmap_HighResolution_489196801_489456001_4FGL_J2347.9-5106_daily_bin964.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='4.03e-05', photon_flux_error='2.62e-08', dlogl='1.78e+00', energy_flux='1.03e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-30 05:20:56.175184', photon_index_error2='0.46', photon_index2='1.52', ts='5.40', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='4.70e-05', EG='0.93', time_epoch_completed='1633004456.18', return_code='0', job_id='121012', GAL2='0.81', EG2='0.95', return_code2='0', energy_flux_error='7.73e-06', photon_flux_error2='1.33e-08', ts2='8.98', photon_index='2.49' WHERE bin_id='964' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 121012: <4FGL_J2347.9-5106_daily_bin964> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin964> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 05:05:38 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:05:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 05:05:40 2021
Terminated at Thu Sep 30 05:20:56 2021
Results reported at Thu Sep 30 05:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin964 356.999 -51.1139 489196801 489456001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2347.9-5106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   900.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

