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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1641
RA = 356.999, Dec = -51.1139
tmin = 664675201, tmax = 664934401
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='374110', job_status='RUN', time_executed='2022-01-27 00:41:14.419635', time_epoch_executed='1643272874.42' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374110

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374110/ft1_4FGL_J2347.9-5106_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374110/ft1_4FGL_J2347.9-5106_daily_bin1641.fits outfile=/scratch/kocevski/374110/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1641.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=664675201.0 tmax=664934401.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.69
user 3.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.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/374110/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1641.fits evtable="EVENTS" outfile="/scratch/kocevski/374110/ft1_filtered_4FGL_J2347.9-5106_daily_bin1641.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374110/ft1_filtered_4FGL_J2347.9-5106_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/374110/ltcube_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.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/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.fits
.....................!
real 11.94
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374110/ft1_filtered_4FGL_J2347.9-5106_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/374110/ltcube_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.fits outfile=/scratch/kocevski/374110/expmap_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.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/374110/ltcube_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.fits
.....................!
real 191.73
user 186.41
sys 4.92

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/374110/ft1_filtered_4FGL_J2347.9-5106_daily_bin1641.fits scfile=/scratch/kocevski/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.fits outfile=/scratch/kocevski/374110/cmap_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374110/ft1_filtered_4FGL_J2347.9-5106_daily_bin1641.fits scfile=/scratch/kocevski/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.fits outfile=/scratch/kocevski/374110/cmap_HighResolution_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.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/374110/ft1_filtered_4FGL_J2347.9-5106_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374110/ft2_4FGL_J2347.9-5106_daily_bin1641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374110/Model_4FGL_J2347.9-5106_daily_bin1641.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/374110/ft1_filtered_4FGL_J2347.9-5106_daily_bin1641.fits.....................!
real 38.26
user 36.91
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.129       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6735       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.655       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.301       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   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      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.549       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7763       1.0000         .10000E-03   10000.    
    24 'norm      '    4.7684       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.3833       1.0000         .10000E-03   10000.    
    27 'norm      '    4.0449       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    7.2545       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.8936       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .95188       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=   4923.012     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     5019 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.090        82.811       -.26312E-04   -.28241E-05
   2  Prefactor     .10000E-03    10.532       -.56583E-05** at limit **
   3  Prefactor     .10000E-03    61.201        .28939E-05** at limit **
   4  Prefactor     .10000E-03    16.090       -.43965E-05** at limit **
   5  Prefactor     .10000E-03    2.9854       -.13559E-06** at limit **
   6  Prefactor     .10000E-03    25.146        .27670E-05** at limit **
   7  Prefactor     5.6732        8.6841       -.34098E-06   -.97119E-04
   8  Prefactor     .10000E-03    5.3660       -.10696E-05** at limit **
   9  norm          5.7568        55.708        .15035E-04    .87424E-05
  10  Prefactor     9.0065        4.9663       -.58052E-06   -.12137E-02
  11  Prefactor     36.599        47.200       -.35187E-05    .49089E-05
  12  norm          .10000E-03    2.8995       -.12639E-06** at limit **
  13  Prefactor     .10000E-03    6.9848        .16583E-05** at limit **
  14  Prefactor     10.635        34.990       -.34305E-05   -.91400E-05
  15  Prefactor     .10000E-03    7.3633       -.12342E-05** at limit **
  16  Prefactor     .10000E-03    37.917       -.14969E-05** at limit **
  17  Prefactor     18.289        33.588        .82773E-05   -.54002E-05
  18  Prefactor     .10000E-03    9.3954        .52311E-05** at limit **
  19  norm          .10000E-03    5.2256       -.23910E-05** at limit **
  20  norm          .10000E-03    3.6659       -.87840E-08** at limit **
  21  norm          .10000E-03    2.3730       -.25891E-06** at limit **
  22  Prefactor     18.550        9.5002        .69799E-07    .22101E-04
  23  Prefactor     9.7057        70.387       -.33720E-04   -.67676E-05
  24  norm          4.7722        5.3998        .15501E-05    .12278E-03
  25  Prefactor     .10000E-03    8.0500       -.15369E-05** at limit **
  26  norm          1.3832        1.4202       -.77178E-07   -.50183E-03
  27  norm          4.0476        5.0811        .35954E-06   -.34028E-04
  28  Prefactor     .10000E-03    13.538        .47337E-05** at limit **
  29  Prefactor     .10000E-03    1.2216        .64638E-07** at limit **
  30  Prefactor     .10000E-03    7.2468       -.58014E-10** at limit **
  31  norm          7.2351        33.649        .33483E-04    .37715E-04
  32  Prefactor     1.8961        6.1553       -.75042E-05   -.91717E-03
  33  Prefactor     .10000E-03    5.0834        .34078E-05** at limit **
  34  Normalizat    1.2633        .21836        .47840E-05   -.22384E-03
  35  Prefactor     .95214        .22581       -.34803E-05    .18972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.0905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.67319
  Prefactor  = 0.0001
  norm       = 5.75679
  Prefactor  = 9.00651
  Prefactor  = 36.5985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2886
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.55
  Prefactor  = 9.70567
  norm       = 4.77224
  Prefactor  = 0.0001
  norm       = 1.3832
  norm       = 4.04762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.23509
  Prefactor  = 1.89614
  Prefactor  = 0.0001
  Normalizat = 1.26334
  Prefactor  = 0.952138
 **********
 **   18 **HESSE 
 **********

 FCN=   4923.012     FROM HESSE     STATUS=OK           766 CALLS     5785 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.090        82.470        .22433E-03   -1.3916    
   2  Prefactor     .10000E-03    10.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    61.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9899        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6732        8.6863        .16864E-03   -1.5232    
   8  Prefactor     .10000E-03    5.4379        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7568        55.593        .16716E-03   -1.5228    
  10  Prefactor     9.0065        4.9855        .55947E-03   -1.5108    
  11  Prefactor     36.599        47.193        .66196E-04   -1.4497    
  12  norm          .10000E-03    2.9075        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0723        .18085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.635        35.137        .12283E-03   -1.5056    
  15  Prefactor     .10000E-03    7.3756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.289        33.557        .93623E-04   -1.4852    
  18  Prefactor     .10000E-03    9.4030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.2261        .15662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6697        .13117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3734        .10551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.550        9.4727        .92995E-04   -1.4846    
  23  Prefactor     9.7057        69.361        .12816E-03   -1.5085    
  24  norm          4.7722        5.3623        .14698E-03   -1.5271    
  25  Prefactor     .10000E-03    8.0600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.3832        1.3942        .79390E-04   -1.5473    
  27  norm          4.0476        5.0537        .16448E-03   -1.5306    
  28  Prefactor     .10000E-03    13.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.2255        .75703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          7.2351        33.740        .14892E-03   -1.5170    
  32  Prefactor     1.8961        6.1366        .22565E-03   -1.5433    
  33  Prefactor     .10000E-03    5.2701        .30845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2633        .26565        .23348E-03   -.84667    
  35  Prefactor     .95214        .27358        .28347E-03   -.94342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0498e-09
Minuit parameter uncertainties:
  1  82.5883
  2  4.30161e-06
  3  2.40434e-05
  4  8.54944e-05
  5  1.7551e-06
  6  2.58403e-05
  7  8.6882
  8  5.46879e-06
  9  35.8223
  10  4.98572
  11  47.2414
  12  7.70923e-07
  13  9.91543e-06
  14  35.2054
  15  7.75826e-07
  16  5.72678e-06
  17  33.5919
  18  1.20896e-05
  19  3.00846e-06
  20  1.16669e-06
  21  5.43901e-06
  22  9.47342
  23  51.9772
  24  5.36281
  25  5.34882e-06
  26  1.39419
  27  5.05423
  28  1.4008e-05
  29  2.13737e-06
  30  7.59219e-07
  31  31.2767
  32  6.13863
  33  1.84162e-05
  34  0.265941
  35  0.273973
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  2.137e-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:  9.521e-01  2.740e-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.263e+00  2.659e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374110/likelihoodResults_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.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) = 4923.0155138
delta logL = -0.00374248609387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4923.01177106
delta logL = 2.52014615398e-07

Fit tolerance = 1e-08

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

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

 FCN=   4923.012     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.825        .76341E-02** at limit **
   2  Index         1.9562        8.8329        .50000        .38094E-06
   3  Normalizat    1.2634        .16760E-01    .23348E-03   -.35081E-03
   4  Prefactor     .95213        .18049E-01    .28348E-03   -.27372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95616
  Normalizat = 1.26335
  Prefactor  = 0.952129
 **********
 **   18 **HESSE 
 **********

 FCN=   4923.012     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.18        .82823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9562        6.8155        .50000       -.65451    
   3  Normalizat    1.2634        .54886E-01    .46696E-04   -.84667    
   4  Prefactor     .95213        .59107E-01    .56695E-04   -.94343    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21915e-09
Minuit parameter uncertainties:
  1  3.447e-05
  2  708.198
  3  0.0548885
  4  0.0591108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374110': 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): 102
logL (Free Index) = 4923.0117647
delta logL = 6.61252852296e-06

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.000e-04  3.447e-05  1.000e-04  1.000e+04 ( 1.000e-12)
538        Index:  1.956e+00  7.082e+02  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.521e-01  5.911e-02  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.263e+00  5.489e-02  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/374110/cmap_HighResolution_664675201_664934401_4FGL_J2347.9-5106_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2022-01-27 00:55:38.887648', job_id='374110', GAL2='0.95', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1643273738.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1641' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:55:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 374110: <4FGL_J2347.9-5106_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2347.9-5106_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:49 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:50 2022
Terminated at Thu Jan 27 00:55:39 2022
Results reported at Thu Jan 27 00:55:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1641 356.999 -51.1139 664675201 664934401 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 :                                   866.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

