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


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1068
RA = 356.999, Dec = -51.1139
tmin = 516153601, tmax = 516412801
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='121183', job_status='RUN', time_executed='2021-09-30 05:07:15.835393', time_epoch_executed='1633003635.84' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121183/ft1_4FGL_J2347.9-5106_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121183/ft1_4FGL_J2347.9-5106_daily_bin1068.fits outfile=/scratch/kocevski/121183/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1068.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=516153601.0 tmax=516412801.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.53
user 3.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.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/121183/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1068.fits evtable="EVENTS" outfile="/scratch/kocevski/121183/ft1_filtered_4FGL_J2347.9-5106_daily_bin1068.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/121183/ft1_filtered_4FGL_J2347.9-5106_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/121183/ltcube_516153601_516412801_4FGL_J2347.9-5106_daily_bin1068.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/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121183/ft1_filtered_4FGL_J2347.9-5106_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/121183/ltcube_516153601_516412801_4FGL_J2347.9-5106_daily_bin1068.fits outfile=/scratch/kocevski/121183/expmap_516153601_516412801_4FGL_J2347.9-5106_daily_bin1068.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/121183/ltcube_516153601_516412801_4FGL_J2347.9-5106_daily_bin1068.fits
.....................!
real 190.85
user 185.95
sys 4.55

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/121183/ft1_filtered_4FGL_J2347.9-5106_daily_bin1068.fits scfile=/scratch/kocevski/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.fits outfile=/scratch/kocevski/121183/cmap_516153601_516412801_4FGL_J2347.9-5106_daily_bin1068.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121183/ft1_filtered_4FGL_J2347.9-5106_daily_bin1068.fits scfile=/scratch/kocevski/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.fits outfile=/scratch/kocevski/121183/cmap_HighResolution_516153601_516412801_4FGL_J2347.9-5106_daily_bin1068.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121183/ft1_filtered_4FGL_J2347.9-5106_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/121183/ft2_4FGL_J2347.9-5106_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121183/Model_4FGL_J2347.9-5106_daily_bin1068.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/121183/ft1_filtered_4FGL_J2347.9-5106_daily_bin1068.fits.....................!
real 47.08
user 45.56
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.196       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8601       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8004       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12829E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1319       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    79.875       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7954       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3184       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9222       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2324       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .89293       1.0000         .10000E-03   10000.    
    27 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.4496       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.0685       1.0000         .10000E-03   10000.    
    31 'norm      '    2.7547       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .84391E-01   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .66015       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=   6406.182     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     5197 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.015       -.57194E-06** at limit **
   2  Prefactor     10.186        13.440        .13656E-05    .34614E-04
   3  Prefactor     .10000E-03    58.608       -.90638E-06** at limit **
   4  Prefactor     .10000E-03    4.4350       -.23770E-06** at limit **
   5  Prefactor     1.5331        5.8871        .45680E-05    .59488E-03
   6  Prefactor     .10000E-03    5.6128       -.70484E-06** at limit **
   7  Prefactor     4.8597        7.3462        .38064E-06    .20276E-03
   8  Prefactor     1.8005        4.0375        .10238E-05    .44928E-04
   9  norm          .10000E-03    10.823       -.12013E-05** at limit **
  10  Prefactor     .10000E-03    2.0552        .13875E-05** at limit **
  11  Prefactor     .10000E-03    11.672        .11029E-05** at limit **
  12  norm          4.1321        4.2178        .18724E-06   -.12549E-03
  13  Prefactor     .10000E-03    2.2319        .30650E-06** at limit **
  14  Prefactor     79.838        32.938        .75598E-06    .30883E-03
  15  Prefactor     .45353        14.777        .52691E-05   -.12662E-06
  16  Prefactor     .10000E-03    28.521        .29549E-05** at limit **
  17  Prefactor     .10000E-03    12.874        .20885E-05** at limit **
  18  Prefactor     .10000E-03    4.7964        .62908E-06** at limit **
  19  norm          3.7956        7.8324        .18588E-06    .11481E-05
  20  norm          .10000E-03    1.5901        .24165E-08** at limit **
  21  norm          .10000E-03    1.7025       -.12822E-06** at limit **
  22  Prefactor     6.3191        4.5685       -.13026E-07   -.68588E-04
  23  Prefactor     8.9638        29.799        .58218E-05    .20345E-05
  24  norm          1.2287        3.8083       -.27385E-05   -.25476E-03
  25  Prefactor     .10000E-03    6.2176        .53137E-06** at limit **
  26  norm          .89305        .99207        .92447E-07   -.36860E-04
  27  norm          .10035E-03    1.6441        .11556E-05** at limit **
  28  Prefactor     .10000E-03    5.0552        .11514E-07** at limit **
  29  Prefactor     7.4503        4.2450       -.41192E-07   -.23129E-04
  30  Prefactor     3.0596        47.615        .12916E-05    .16537E-04
  31  norm          2.7539        9.4280        .12410E-05    .13419E-03
  32  Prefactor     .10000E-03    1.7165        .44752E-07** at limit **
  33  Prefactor     .11243        3.8589       -.33472E-05    .86443E-03
  34  Normalizat    1.1246        .15911       -.52881E-06    .25902E-03
  35  Prefactor     .66039        .16556       -.91200E-06   -.32312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.1856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53315
  Prefactor  = 0.0001
  Prefactor  = 4.85965
  Prefactor  = 1.80047
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.1321
  Prefactor  = 0.0001
  Prefactor  = 79.8377
  Prefactor  = 0.453528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79562
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.31913
  Prefactor  = 8.96384
  norm       = 1.22866
  Prefactor  = 0.0001
  norm       = 0.893052
  norm       = 0.000100353
  Prefactor  = 0.0001
  Prefactor  = 7.45032
  Prefactor  = 3.05959
  norm       = 2.75388
  Prefactor  = 0.0001
  Prefactor  = 0.11243
  Normalizat = 1.12456
  Prefactor  = 0.660394
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.182     FROM HESSE     STATUS=OK           786 CALLS     5983 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.186        13.432        .12548E-03   -1.5070    
   3  Prefactor     .10000E-03    59.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4650        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5331        7.1883        .17239E-02   -1.5460    
   6  Prefactor     .10000E-03    5.6141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8597        7.3427        .91233E-03   -1.5267    
   8  Prefactor     1.8005        4.0229        .23193E-03   -1.5440    
   9  norm          .10000E-03    10.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.349        .19632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1321        4.0985        .15677E-03   -1.5301    
  13  Prefactor     .10000E-03    2.2332        .11667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     79.838        33.165        .44937E-04   -1.3919    
  15  Prefactor     .45353        45.549        .41309E-02   -1.5573    
  16  Prefactor     .10000E-03    28.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7986        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7956        7.8228        .20720E-03   -1.5318    
  20  norm          .10000E-03    1.5905        .98561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.7041        .10175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.3191        4.5510        .13847E-03   -1.5205    
  23  Prefactor     8.9638        29.596        .13419E-03   -1.5109    
  24  norm          1.2287        3.8001        .19464E-03   -1.5486    
  25  Prefactor     .10000E-03    6.2362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .89305        .94494        .77055E-03   -1.5519    
  27  norm          .10035E-03    2.5059        .34359E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.0678        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.4503        4.1663        .10249E-03   -1.5162    
  30  Prefactor     3.0596        45.275        .23157E-03   -1.5358    
  31  norm          2.7539        9.4652        .12263E-02   -1.5376    
  32  Prefactor     .10000E-03    1.7348        .10233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .11243        24.517        .19680E-02   -1.5641    
  34  Normalizat    1.1246        .18912        .20174E-03   -.88967    
  35  Prefactor     .66039        .19502        .27808E-03   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40009e-08
Minuit parameter uncertainties:
  1  1.28076e-05
  2  13.4359
  3  5.84232e-05
  4  1.53732e-05
  5  6.64058
  6  2.29088e-07
  7  7.34407
  8  4.02354
  9  3.07776e-05
  10  0.00050385
  11  1.82788e-05
  12  4.09878
  13  1.15404e-05
  14  33.1728
  15  9.09625
  16  0.000104532
  17  5.49132e-05
  18  1.00097e-05
  19  7.82491
  20  2.02061e-07
  21  1.63237e-05
  22  4.55125
  23  29.6442
  24  3.80081
  25  6.22986e-06
  26  0.944953
  27  0.00188079
  28  8.05862e-06
  29  4.16643
  30  23.5603
  31  9.47031
  32  2.94336e-06
  33  3.32038
  34  0.189231
  35  0.195219
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  7.450e+00  4.166e+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:  6.604e-01  1.952e-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.125e+00  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.01
Ra Dec: 356.999 -51.114
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.22e-05

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) = 6406.13263979
delta logL = 0.0489050337828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6406.12645439
delta logL = 0.0550904305246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1627       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3300       1.0000          .0000       10.000    
     3 'Normalizat'    1.1355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65227       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=   6406.126     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      269 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1628        4.4907        .10983E-03   -.19854E-03
   2  Index         2.3300        .47015        .62710E-02   -.53145E-04
   3  Normalizat    1.1354        .18129        .20093E-03    .39266E-04
   4  Prefactor     .65229        .19355        .27962E-03    .37406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16281
  Index      = 2.33
  Normalizat = 1.13544
  Prefactor  = 0.652293
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.126     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1628        4.4212        .43932E-05   -1.5136    
   2  Index         2.3300        .46250        .25084E-03   -.56333    
   3  Normalizat    1.1354        .18138        .80373E-05   -.88622    
   4  Prefactor     .65229        .19367        .11185E-04   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5303e-11
Minuit parameter uncertainties:
  1  4.42139
  2  0.463428
  3  0.181484
  4  0.193866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121183': 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) = 6406.12645436
delta logL = 0.055090454789

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  6.523e-01  1.939e-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.135e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.12
Ra Dec: 356.999 -51.114
Photon Index (Free Index): 2.33 +/- 0.46
Photon Flux (Free Index): 6.60e-08 +/- 4.15e-08
Energy Flux (Free Index): 2.39e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/121183/cmap_HighResolution_516153601_516412801_4FGL_J2347.9-5106_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='2.39e-05', photon_flux_error='4.12e-08', dlogl='5.51e-02', energy_flux='2.17e-05', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-09-30 05:22:35.046502', photon_index_error2='0.46', photon_index2='2.33', ts='7.01', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.12', time_epoch_completed='1633004555.05', return_code='0', job_id='121183', GAL2='0.65', EG2='1.14', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.15e-08', ts2='7.12', photon_index='2.49' WHERE bin_id='1068' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:22:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 121183: <4FGL_J2347.9-5106_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.9-5106_daily_bin1068 356.999 -51.1139 516153601 516412801 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 :                                   906.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

