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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1038
RA = 356.999, Dec = -51.1139
tmin = 508377601, tmax = 508636801
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='121135', job_status='RUN', time_executed='2021-09-30 05:06:04.181925', time_epoch_executed='1633003564.18' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121135/ft1_4FGL_J2347.9-5106_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121135/ft1_4FGL_J2347.9-5106_daily_bin1038.fits outfile=/scratch/kocevski/121135/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1038.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=508377601.0 tmax=508636801.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.78
user 3.37
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.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/121135/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/121135/ft1_filtered_4FGL_J2347.9-5106_daily_bin1038.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.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121135/ft1_filtered_4FGL_J2347.9-5106_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/121135/ltcube_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.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/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits
.....................!
real 11.78
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121135/ft1_filtered_4FGL_J2347.9-5106_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/121135/ltcube_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.fits outfile=/scratch/kocevski/121135/expmap_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.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/121135/ltcube_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.fits
.....................!
real 191.24
user 185.49
sys 5.32

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/121135/ft1_filtered_4FGL_J2347.9-5106_daily_bin1038.fits scfile=/scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits outfile=/scratch/kocevski/121135/cmap_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121135/ft1_filtered_4FGL_J2347.9-5106_daily_bin1038.fits scfile=/scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits outfile=/scratch/kocevski/121135/cmap_HighResolution_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/121135/ft1_filtered_4FGL_J2347.9-5106_daily_bin1038.fits', '/scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits', expMap='/scratch/kocevski/121135/expmap_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.fits', expCube='/scratch/kocevski/121135/ltcube_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/121135/Model_4FGL_J2347.9-5106_daily_bin1038.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/121135/ft1_filtered_4FGL_J2347.9-5106_daily_bin1038.fits
Spacecraft file(s): /scratch/kocevski/121135/ft2_4FGL_J2347.9-5106_daily_bin1038.fits
Exposure map: /scratch/kocevski/121135/expmap_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.fits
Exposure cube: /scratch/kocevski/121135/ltcube_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/121135/Model_4FGL_J2347.9-5106_daily_bin1038.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) = 4837.66873724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.678       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.887       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6264       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    73.376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87703E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.317       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9250       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6771       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.727       1.0000         .10000E-03   10000.    
    23 'Prefactor '    54.212       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3317       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8075       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.8091       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .12709E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .82149       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=   4837.648     FROM MIGRAD    STATUS=CONVERGED    972 CALLS     5048 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.172        .15532E-06** at limit **
   2  Prefactor     14.682        18.135        .24975E-06    .14078E-04
   3  Prefactor     .10000E-03    78.093       -.76043E-06** at limit **
   4  Prefactor     .10000E-03    4.3825       -.25930E-07** at limit **
   5  Prefactor     12.889        11.695        .22174E-06    .68995E-04
   6  Prefactor     31.798        28.709        .10828E-06    .30051E-05
   7  Prefactor     4.6267        4.7529        .13305E-07    .89570E-05
   8  Prefactor     .10000E-03    3.8612       -.14803E-06** at limit **
   9  norm          73.362        47.346        .12185E-06    .32523E-04
  10  Prefactor     .10000E-03    1.8217       -.65719E-07** at limit **
  11  Prefactor     .10000E-03    23.013       -.19371E-06** at limit **
  12  norm          12.992        8.0775        .12353E-07    .15833E-04
  13  Prefactor     19.623        10.743       -.11905E-06   -.42891E-04
  14  Prefactor     .10000E-03    122.58        .31380E-05** at limit **
  15  Prefactor     .10000E-03    5.9820        .76466E-06** at limit **
  16  Prefactor     56.250        86.330        .93122E-07    .28478E-04
  17  Prefactor     .10000E-03    16.294        .22993E-06** at limit **
  18  Prefactor     .10000E-03    21.196       -.20820E-06** at limit **
  19  norm          3.9249        16.360        .57852E-06    .68145E-05
  20  norm          3.6769        4.2734        .38342E-07    .22055E-04
  21  norm          .10000E-03    1.9078        .26988E-06** at limit **
  22  Prefactor     18.724        9.5773        .77822E-06    .17882E-03
  23  Prefactor     54.128        53.585       -.38960E-05   -.76768E-04
  24  norm          .10000E-03    4.1095        .31696E-05** at limit **
  25  Prefactor     1.3401        51.283       -.25636E-05   -.97766E-05
  26  norm          .10000E-03    .31299        .78383E-07** at limit **
  27  norm          1.8163        7.1712        .34180E-05   -.84813E-04
  28  Prefactor     8.8098        16.382        .42008E-06    .46833E-04
  29  Prefactor     .10000E-03    1.6759        .45751E-08** at limit **
  30  Prefactor     .10000E-03    6.3667        .86092E-07** at limit **
  31  norm          .10000E-03    11.172       -.12132E-07** at limit **
  32  Prefactor     .10000E-03    5.6675       -.24980E-06** at limit **
  33  Prefactor     .10000E-03    4.2171        .14846E-06** at limit **
  34  Normalizat    1.1286        .20920       -.10932E-05    .15558E-03
  35  Prefactor     .82173        .21758        .16320E-05    .11148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.6818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8894
  Prefactor  = 31.7982
  Prefactor  = 4.62674
  Prefactor  = 0.0001
  norm       = 73.3616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9923
  Prefactor  = 19.6232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.2499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92494
  norm       = 3.67695
  norm       = 0.0001
  Prefactor  = 18.7243
  Prefactor  = 54.1283
  norm       = 0.0001
  Prefactor  = 1.3401
  norm       = 0.0001
  norm       = 1.81628
  Prefactor  = 8.80981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.12862
  Prefactor  = 0.82173
 **********
 **   18 **HESSE 
 **********

 FCN=   4837.648     FROM HESSE     STATUS=OK           762 CALLS     5810 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.682        18.132        .10455E-03   -1.4941    
   3  Prefactor     .10000E-03    79.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3928        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.889        11.679        .11158E-03   -1.4990    
   6  Prefactor     31.798        28.706        .71054E-04   -1.4580    
   7  Prefactor     4.6267        4.7568        .14968E-03   -1.5278    
   8  Prefactor     .10000E-03    3.8820        .13340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          73.362        47.342        .46870E-04   -1.3993    
  10  Prefactor     .10000E-03    1.8320        .91580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.992        8.0692        .11113E-03   -1.4987    
  13  Prefactor     19.623        10.744        .90405E-04   -1.4822    
  14  Prefactor     .10000E-03    127.00        .36631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9969        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     56.250        86.094        .26727E-03   -1.4207    
  17  Prefactor     .10000E-03    16.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9249        16.341        .20363E-03   -1.5312    
  20  norm          3.6769        4.2737        .15116E-03   -1.5324    
  21  norm          .10000E-03    1.9076        .93802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.724        9.5314        .92553E-04   -1.4842    
  23  Prefactor     54.128        54.734        .54477E-04   -1.4235    
  24  norm          .10000E-03    4.0624        .13579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.3401        51.110        .19023E-02   -1.5476    
  26  norm          .10000E-03    .31456        .37959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8163        7.2361        .14936E-02   -1.5438    
  28  Prefactor     8.8098        16.360        .67524E-03   -1.5114    
  29  Prefactor     .10000E-03    1.6930        .87837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.3687        .17141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    11.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    12.681        .30434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    4.2867        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1286        .24567        .22732E-03   -.88838    
  35  Prefactor     .82173        .25508        .28126E-03   -.98932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62304e-10
Minuit parameter uncertainties:
  1  6.3838e-05
  2  18.1386
  3  2.76542e-05
  4  1.88521e-06
  5  11.6813
  6  28.7182
  7  4.75724
  8  8.86401e-07
  9  47.3661
  10  1.09498e-06
  11  4.33605e-05
  12  8.06991
  13  10.7454
  14  0.000216939
  15  2.56725e-07
  16  86.2856
  17  4.15888e-05
  18  5.08447e-05
  19  16.0247
  20  4.27402
  21  3.13263e-07
  22  9.53222
  23  54.7852
  24  3.0477e-06
  25  16.5666
  26  1.84692e-07
  27  7.23959
  28  16.3682
  29  2.7636e-06
  30  2.05995e-06
  31  1.16608e-05
  32  0.000365715
  33  3.20366e-06
  34  0.245921
  35  0.255448
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.764e-06  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.217e-01  2.554e-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:  1.129e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121135/likelihoodResults_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.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) = 4837.65109608
delta logL = -0.00279499407952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4837.64830114
delta logL = -4.90199454362e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4800       1.0000          .0000       10.000    
     3 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82175       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4837.648     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    130.49        .88021E-03** at limit **
   2  Index         2.3909        7.6566        .50000        .28902E-04
   3  Normalizat    1.1286        .44984E-01    .22732E-03   -.22606E-04
   4  Prefactor     .82173        .48452E-01    .28127E-03    .31123E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4837.648     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      379 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    130.49        .22109E-03** at limit **
   2  Index         2.3909        7.6566        .28642E-03    .28902E-04
   3  Normalizat    1.1286        .44984E-01    .86867E-05   -.22606E-04
   4  Prefactor     .82173        .48452E-01    .95357E-05    .31123E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4837.648     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      424 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3350        .17604E-03** at limit **
   2  Index         2.0893        5.9605        .50000       -.21093E-06
   3  Normalizat    1.1286        .23383        .90927E-05    .12503E-03
   4  Prefactor     .82173        .25180        .11251E-04    .11823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08935
  Normalizat = 1.12862
  Prefactor  = 0.821733
 **********
 **   18 **HESSE 
 **********

 FCN=   4837.648     FROM HESSE     STATUS=OK            29 CALLS      453 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8211        .35208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0893        8.9320        .50000       -.62135    
   3  Normalizat    1.1286        .23464        .18185E-05   -.88838    
   4  Prefactor     .82173        .25259        .22501E-05   -.98932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72411e-11
Minuit parameter uncertainties:
  1  2.95523e-07
  2  92.7089
  3  0.234862
  4  0.252952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121135': 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) = 4837.64829926
delta logL = 1.82294752449e-06

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.955e-07  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.089e+00  9.271e+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.217e-01  2.530e-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:  1.129e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.999 -51.114

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/121135/cmap_HighResolution_508377601_508636801_4FGL_J2347.9-5106_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-30 05:20:40.483683', job_id='121135', GAL2='0.82', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1633004440.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1038' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:20:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 121135: <4FGL_J2347.9-5106_daily_bin1038> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1038> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 05:05:50 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:05:51 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:51 2021
Terminated at Thu Sep 30 05:20:41 2021
Results reported at Thu Sep 30 05:20:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1038 356.999 -51.1139 508377601 508636801 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 :                                   868.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

