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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin330
RA = 356.999, Dec = -51.1139
tmin = 324864001, tmax = 325123201
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='116616', job_status='RUN', time_executed='2021-09-30 04:52:35.628410', time_epoch_executed='1633002755.63' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116616/ft1_4FGL_J2347.9-5106_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116616/ft2_4FGL_J2347.9-5106_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116616/ft1_4FGL_J2347.9-5106_daily_bin330.fits outfile=/scratch/kocevski/116616/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin330.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=324864001.0 tmax=325123201.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 5.75
user 5.46
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116616/ft1_filtered_4FGL_J2347.9-5106_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/116616/ft2_4FGL_J2347.9-5106_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/116616/ltcube_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.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/116616/ft2_4FGL_J2347.9-5106_daily_bin330.fits
.....................!
real 12.08
user 11.40
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116616/ft1_filtered_4FGL_J2347.9-5106_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/116616/ft2_4FGL_J2347.9-5106_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/116616/ltcube_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.fits outfile=/scratch/kocevski/116616/expmap_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.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/116616/ltcube_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.fits
.....................!
real 190.43
user 185.27
sys 4.79

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/116616/ft1_filtered_4FGL_J2347.9-5106_daily_bin330.fits scfile=/scratch/kocevski/116616/ft2_4FGL_J2347.9-5106_daily_bin330.fits outfile=/scratch/kocevski/116616/cmap_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116616/ft1_filtered_4FGL_J2347.9-5106_daily_bin330.fits scfile=/scratch/kocevski/116616/ft2_4FGL_J2347.9-5106_daily_bin330.fits outfile=/scratch/kocevski/116616/cmap_HighResolution_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/116616/ft1_filtered_4FGL_J2347.9-5106_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/116616/ft2_4FGL_J2347.9-5106_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/116616/Model_4FGL_J2347.9-5106_daily_bin330.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/116616/ft1_filtered_4FGL_J2347.9-5106_daily_bin330.fits.....................!
real 34.72
user 33.25
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10259E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74819E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10473E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11617E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5743       1.0000         .10000E-03   10000.    
     9 'norm      '    .12710E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7612       1.0000         .10000E-03   10000.    
    11 'Prefactor '    108.39       1.0000         .10000E-03   10000.    
    12 'norm      '    16.371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.438       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.175       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .15446E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.329       1.0000         .10000E-03   10000.    
    24 'norm      '    3.2293       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.288       1.0000         .10000E-03   10000.    
    26 'norm      '    9.9862       1.0000         .10000E-03   10000.    
    27 'norm      '    .14089       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5734       1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.412       1.0000         .10000E-03   10000.    
    31 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .88158       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1729       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .78483       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=   4005.679     FROM MIGRAD    STATUS=CONVERGED    986 CALLS     5125 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.143        .91473E-06** at limit **
   2  Prefactor     .10000E-03    56.677        .85192E-05** at limit **
   3  Prefactor     9.4557        99.897       -.95903E-05    .14875E-04
   4  Prefactor     .10024E-03    9.2227        .93403E-06** at limit **
   5  Prefactor     .10007E-03    9.6072       -.65468E-07** at limit **
   6  Prefactor     8.7787        87.601        .39952E-05   -.67932E-05
   7  Prefactor     .10000E-03    32.533       -.78288E-05** at limit **
   8  Prefactor     7.5752        9.8147       -.56751E-06   -.52257E-04
   9  norm          .10000E-03    116.70       -.89457E-05** at limit **
  10  Prefactor     1.7591        5.5703       -.56022E-06   -.47709E-03
  11  Prefactor     108.38        132.73       -.84785E-05    .35916E-04
  12  norm          16.372        12.953        .19916E-06   -.39579E-03
  13  Prefactor     15.439        11.761       -.78698E-06   -.66466E-03
  14  Prefactor     7.4768        28.493        .25468E-05    .21429E-05
  15  Prefactor     .10000E-03    20.863       -.38778E-05** at limit **
  16  Prefactor     .10000E-03    52.191       -.42068E-05** at limit **
  17  Prefactor     .10000E-03    27.115        .91006E-05** at limit **
  18  Prefactor     11.175        17.467        .14134E-06   -.17841E-04
  19  norm          .10000E-03    3.9676       -.52694E-08** at limit **
  20  norm          .10000E-03    6.8974        .31481E-07** at limit **
  21  norm          .10000E-03    5.6491        .45908E-06** at limit **
  22  Prefactor     8.5536        8.3467        .34641E-07   -.19598E-05
  23  Prefactor     29.318        34.873       -.51672E-05    .86081E-04
  24  norm          3.2275        4.2973        .25769E-06   -.13432E-03
  25  Prefactor     15.287        20.018       -.79735E-06   -.42112E-05
  26  norm          9.9869        2.7662       -.31516E-06    .17910E-03
  27  norm          .12830        2.9953       -.60983E-06    .29577E-03
  28  Prefactor     .10000E-03    10.290       -.11169E-05** at limit **
  29  Prefactor     2.5667        5.7036       -.41322E-05   -.53037E-03
  30  Prefactor     23.434        43.495        .21259E-04   -.10237E-03
  31  norm          .10000E-03    13.687        .94670E-06** at limit **
  32  Prefactor     .85057        5.9668        .15629E-07   -.23736E-03
  33  Prefactor     .10000E-03    2.4632       -.81272E-07** at limit **
  34  Normalizat    1.1725        .24461        .43111E-06    .78260E-04
  35  Prefactor     .78527        .24467        .26296E-06    .53963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.45568
  Prefactor  = 0.000100241
  Prefactor  = 0.000100073
  Prefactor  = 8.77874
  Prefactor  = 0.000100002
  Prefactor  = 7.57522
  norm       = 0.000100001
  Prefactor  = 1.75912
  Prefactor  = 108.377
  norm       = 16.3716
  Prefactor  = 15.4394
  Prefactor  = 7.4768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.1749
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.55358
  Prefactor  = 29.3176
  norm       = 3.22749
  Prefactor  = 15.2865
  norm       = 9.98686
  norm       = 0.128301
  Prefactor  = 0.0001
  Prefactor  = 2.56673
  Prefactor  = 23.4344
  norm       = 0.0001
  Prefactor  = 0.850572
  Prefactor  = 0.0001
  Normalizat = 1.17248
  Prefactor  = 0.785272
 **********
 **   18 **HESSE 
 **********

 FCN=   4005.679     FROM HESSE     STATUS=OK           780 CALLS     5905 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4557        94.381        .13030E-03   -1.5093    
   4  Prefactor     .10024E-03    112.50        .36642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10007E-03    60.206        .36233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7787        86.139        .13530E-03   -1.5115    
   7  Prefactor     .10000E-03    33.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5752        9.7459        .14572E-03   -1.5157    
   9  norm          .10000E-03    117.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7591        5.4820        .23803E-03   -1.5443    
  11  Prefactor     108.38        132.81        .38632E-04   -1.3622    
  12  norm          16.372        12.794        .49493E-03   -1.4899    
  13  Prefactor     15.439        11.866        .50968E-03   -1.4922    
  14  Prefactor     7.4768        28.419        .14673E-03   -1.5161    
  15  Prefactor     .10000E-03    21.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.175        17.463        .11985E-03   -1.5039    
  19  norm          .10000E-03    3.9677        .12313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.9560        .16227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.9286        .26611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.5536        8.3393        .13706E-03   -1.5123    
  23  Prefactor     29.318        34.904        .73980E-04   -1.4625    
  24  norm          3.2275        3.9252        .13126E-03   -1.5349    
  25  Prefactor     15.287        20.002        .10243E-03   -1.4926    
  26  norm          9.9869        2.7617        .49433E-04   -1.5076    
  27  norm          .12830        20.739        .20829E-02   -1.5636    
  28  Prefactor     .10000E-03    10.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.5667        5.6997        .18770E-03   -1.5388    
  30  Prefactor     23.434        43.535        .82785E-04   -1.4739    
  31  norm          .10000E-03    13.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .85057        18.879        .26612E-02   -1.5524    
  33  Prefactor     .10000E-03    2.4765        .96991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1725        .30723        .23865E-03   -.87458    
  35  Prefactor     .78527        .30381        .30302E-03   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7607e-09
Minuit parameter uncertainties:
  1  2.52e-05
  2  0.00072188
  3  59.8699
  4  0.0104336
  5  0.00421135
  6  55.1011
  7  0.00051476
  8  9.7479
  9  0.00073614
  10  5.48355
  11  133.175
  12  12.7961
  13  11.8683
  14  28.4702
  15  6.70425e-05
  16  0.000163871
  17  0.000262155
  18  17.4707
  19  3.68377e-07
  20  1.18951e-05
  21  9.89202e-05
  22  8.3404
  23  34.9284
  24  3.92553
  25  20.0111
  26  2.76175
  27  3.2623
  28  1.84287e-05
  29  5.70086
  30  43.5942
  31  6.74466e-06
  32  8.01692
  33  1.33909e-05
  34  0.307707
  35  0.30446
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  2.567e+00  5.701e+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:  7.853e-01  3.045e-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.172e+00  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/116616/likelihoodResults_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4005.67327756
delta logL = 0.00538551406771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4005.67224213
delta logL = 0.00642095062676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8101       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3720       1.0000          .0000       10.000    
     3 'Normalizat'    1.1746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78341       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=   4005.672     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8049        284.44        .60665E-02    .30953E-03
   2  Index         2.3722        5.3797        .24013        .12469E-04
   3  Normalizat    1.1746        .71215E-01    .53932E-01   -.12481E-05
   4  Prefactor     .78341        .78818E-01    .68559E-01    .13586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80489
  Index      = 2.3722
  Normalizat = 1.17463
  Prefactor  = 0.783411
 **********
 **   18 **HESSE 
 **********

 FCN=   4005.672     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8049        5.6830        .19434E-03   -1.5373    
   2  Index         2.3722        1.0029        .10576E-01   -.55337    
   3  Normalizat    1.1746        .28264        .23847E-03   -.87391    
   4  Prefactor     .78341        .29977        .30334E-03   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37143e-12
Minuit parameter uncertainties:
  1  5.6841
  2  1.01239
  3  0.283009
  4  0.300395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116616': 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) = 4005.67224168
delta logL = 0.00642139764068

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  2.805e+00  5.684e+00  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  2.372e+00  1.012e+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:  7.834e-01  3.004e-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.175e+00  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
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/116616/cmap_HighResolution_324864001_325123201_4FGL_J2347.9-5106_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-30 05:05:43.435532', job_id='116616', GAL2='0.78', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1633003543.44', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='6.42e-03', ts2='0.35', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='330' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 116616: <4FGL_J2347.9-5106_daily_bin330> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin330> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:50:11 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:50:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:50:12 2021
Terminated at Thu Sep 30 05:05:44 2021
Results reported at Thu Sep 30 05:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin330 356.999 -51.1139 324864001 325123201 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 :                                   785.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

