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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1332
RA = 356.999, Dec = -51.1139
tmin = 584582401, tmax = 584841601
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='122534', job_status='RUN', time_executed='2021-09-30 05:10:49.347316', time_epoch_executed='1633003849.35' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122534/ft1_4FGL_J2347.9-5106_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122534/ft1_4FGL_J2347.9-5106_daily_bin1332.fits outfile=/scratch/kocevski/122534/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1332.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=584582401.0 tmax=584841601.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 2.89
user 2.68
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.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/122534/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/122534/ft1_filtered_4FGL_J2347.9-5106_daily_bin1332.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122534/ft1_filtered_4FGL_J2347.9-5106_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/122534/ltcube_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.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/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.fits
.....................!
real 12.11
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122534/ft1_filtered_4FGL_J2347.9-5106_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/122534/ltcube_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.fits outfile=/scratch/kocevski/122534/expmap_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.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/122534/ltcube_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.fits
.....................!
real 191.34
user 185.73
sys 5.22

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/122534/ft1_filtered_4FGL_J2347.9-5106_daily_bin1332.fits scfile=/scratch/kocevski/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.fits outfile=/scratch/kocevski/122534/cmap_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122534/ft1_filtered_4FGL_J2347.9-5106_daily_bin1332.fits scfile=/scratch/kocevski/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.fits outfile=/scratch/kocevski/122534/cmap_HighResolution_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122534/ft1_filtered_4FGL_J2347.9-5106_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/122534/ft2_4FGL_J2347.9-5106_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122534/Model_4FGL_J2347.9-5106_daily_bin1332.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/122534/ft1_filtered_4FGL_J2347.9-5106_daily_bin1332.fits.....................!
real 38.46
user 37.17
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23892E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6083       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    45.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6259       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    129.72       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.624       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6841       1.0000         .10000E-03   10000.    
    20 'norm      '    .11139E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0608       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2850       1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.194       1.0000         .10000E-03   10000.    
    24 'norm      '    .91934       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.8516       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.369       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    11.210       1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.7191       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .84950       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .98704       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=   5011.166     FROM MIGRAD    STATUS=CONVERGED   1004 CALLS     5217 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10260E-03    59.464       -.42628E-05** at limit **
   2  Prefactor     2.6117        40.994       -.77674E-06   -.22068E-05
   3  Prefactor     .10000E-03    42.712        .84270E-06** at limit **
   4  Prefactor     .10000E-03    7.5153       -.77481E-07** at limit **
   5  Prefactor     7.0011        6.9776        .31238E-07    .99821E-06
   6  Prefactor     .10000E-03    17.607       -.15733E-06** at limit **
   7  Prefactor     .10000E-03    3.5201       -.28014E-07** at limit **
   8  Prefactor     .10000E-03    1.8582       -.28382E-07** at limit **
   9  norm          45.146        30.930        .16230E-06    .57000E-05
  10  Prefactor     2.6260        3.1109        .24242E-07    .62173E-05
  11  Prefactor     .10000E-03    20.594        .74600E-07** at limit **
  12  norm          .10000E-03    3.3976       -.18083E-07** at limit **
  13  Prefactor     64.009        43.394        .20427E-05    .29241E-04
  14  Prefactor     129.78        138.39       -.59760E-05   -.10953E-04
  15  Prefactor     1.8016        160.96        .78071E-06    .21954E-04
  16  Prefactor     .10000E-03    106.04        .17342E-05** at limit **
  17  Prefactor     .10000E-03    42.333       -.98226E-06** at limit **
  18  Prefactor     12.625        16.803       -.26976E-08    .16038E-05
  19  norm          2.6838        9.7148        .37410E-05    .97703E-04
  20  norm          .10000E-03    13.809        .80536E-07** at limit **
  21  norm          3.0590        4.2284       -.47827E-07    .51600E-05
  22  Prefactor     5.2846        6.3225       -.27610E-06   -.17215E-04
  23  Prefactor     42.182        43.951       -.65185E-06    .32120E-05
  24  norm          .92507        4.4423        .43561E-06    .43893E-04
  25  Prefactor     .10000E-03    11.849        .16804E-06** at limit **
  26  norm          1.8515        1.2475        .24600E-07    .32751E-04
  27  norm          .10000E-03    1.3913        .19755E-07** at limit **
  28  Prefactor     15.370        21.486       -.41438E-07    .10353E-05
  29  Prefactor     .10000E-03    2.1785       -.94921E-08** at limit **
  30  Prefactor     .10000E-03    7.3488        .26615E-07** at limit **
  31  norm          .10000E-03    10.407       -.16903E-07** at limit **
  32  Prefactor     11.210        7.6958        .42631E-07    .42016E-05
  33  Prefactor     1.7194        4.7994        .35028E-06    .61832E-04
  34  Normalizat    .84954        .19881        .11582E-06    .88234E-04
  35  Prefactor     .98694        .20842       -.19518E-06    .86759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102596
  Prefactor  = 2.61173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.0011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.1458
  Prefactor  = 2.62599
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.0092
  Prefactor  = 129.785
  Prefactor  = 1.80164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6248
  norm       = 2.68383
  norm       = 0.0001
  norm       = 3.05899
  Prefactor  = 5.28462
  Prefactor  = 42.1821
  norm       = 0.925068
  Prefactor  = 0.0001
  norm       = 1.85149
  norm       = 0.0001
  Prefactor  = 15.3704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2096
  Prefactor  = 1.71937
  Normalizat = 0.849538
  Prefactor  = 0.986941
 **********
 **   18 **HESSE 
 **********

 FCN=   5011.166     FROM HESSE     STATUS=OK           782 CALLS     5999 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10260E-03    49.129        .14816       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6117        38.754        .25258E-03   -1.5385    
   3  Prefactor     .10000E-03    42.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0011        6.9752        .15162E-03   -1.5179    
   6  Prefactor     .10000E-03    17.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5412        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8755        .94206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          45.146        30.916        .59672E-04   -1.4363    
  10  Prefactor     2.6260        3.0942        .12913E-03   -1.5384    
  11  Prefactor     .10000E-03    20.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.4937        .25428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     64.009        43.537        .50165E-04   -1.4106    
  14  Prefactor     129.78        134.33        .17675E-03   -1.3425    
  15  Prefactor     1.8016        146.22        .30539E-03   -1.5440    
  16  Prefactor     .10000E-03    106.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.625        16.772        .11274E-03   -1.4997    
  19  norm          2.6838        9.7040        .12435E-02   -1.5380    
  20  norm          .10000E-03    14.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0590        4.1863        .15689E-03   -1.5358    
  22  Prefactor     5.2846        6.3068        .17483E-03   -1.5248    
  23  Prefactor     42.182        42.315        .61714E-04   -1.4408    
  24  norm          .92507        3.9011        .24304E-03   -1.5516    
  25  Prefactor     .10000E-03    11.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.8515        1.2398        .61231E-04   -1.5436    
  27  norm          .10000E-03    1.3960        .81491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.370        21.482        .10217E-03   -1.4924    
  29  Prefactor     .10000E-03    2.2280        .20370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.3542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    10.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     11.210        7.7058        .11966E-03   -1.5038    
  33  Prefactor     1.7194        4.6602        .22146E-03   -1.5446    
  34  Normalizat    .84954        .24029        .24260E-03   -.98257    
  35  Prefactor     .98694        .25160        .25102E-03   -.93166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25675e-10
Minuit parameter uncertainties:
  1  0.0226043
  2  20.1364
  3  2.0967e-05
  4  6.15134e-06
  5  6.97597
  6  3.99142e-06
  7  1.42617e-06
  8  5.9125e-07
  9  30.9267
  10  3.09438
  11  1.34083e-06
  12  1.18447e-06
  13  43.5582
  14  134.644
  15  32.5433
  16  0.000226106
  17  4.38649e-05
  18  16.7777
  19  9.70969
  20  3.20454e-06
  21  4.18666
  22  6.30757
  23  42.3452
  24  3.79957
  25  1.77271e-05
  26  1.2398
  27  9.77818e-07
  28  21.4924
  29  3.62111e-07
  30  5.33789e-07
  31  1.10749e-06
  32  7.70644
  33  4.66114
  34  0.240588
  35  0.251896
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  3.621e-07  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:  9.869e-01  2.519e-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:  8.495e-01  2.406e-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: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122534/likelihoodResults_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.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) = 5011.16776175
delta logL = -0.00213879640887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5011.16562249
delta logL = 4.62874595542e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4413       1.0000          .0000       10.000    
     3 'Normalizat'    .84964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98688       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=   5011.148     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      286 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39608        4.2614        .90712E-02   -.16770E-02
   2  Index         1.4676        1.0881        .33623       -.92454E-04
   3  Normalizat    .85359        .18613        .44255E-01   -.56340E-04
   4  Prefactor     .98042        .20781        .46103E-01   -.10300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.396079
  Index      = 1.46757
  Normalizat = 0.853595
  Prefactor  = 0.980421
 **********
 **   18 **HESSE 
 **********

 FCN=   5011.148     FROM HESSE     STATUS=OK            33 CALLS      319 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39608        3.1654        .24287E-03   -1.5834    
   2  Index         1.4676        1.3670        .18447E-01   -.78452    
   3  Normalizat    .85359        .22411        .24207E-03   -.98110    
   4  Prefactor     .98042        .25057        .25177E-03   -.93385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8507e-10
Minuit parameter uncertainties:
  1  2.23931
  2  1.40348
  3  0.224351
  4  0.250869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122534': 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) = 5011.14769441
delta logL = 0.0179285436016

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  3.961e-01  2.239e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.468e+00  1.403e+00  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:  9.804e-01  2.509e-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:  8.536e-01  2.244e-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/122534/cmap_HighResolution_584582401_584841601_4FGL_J2347.9-5106_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-30 05:25:50.908463', job_id='122534', GAL2='0.98', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1633004750.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.79e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1332' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:25:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 122534: <4FGL_J2347.9-5106_daily_bin1332> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1332> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:10:33 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:10:35 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:10:35 2021
Terminated at Thu Sep 30 05:25:51 2021
Results reported at Thu Sep 30 05:25:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1332 356.999 -51.1139 584582401 584841601 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 :                                   890.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

