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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1167
RA = 357.016, Dec = -16.5161
tmin = 541814401, tmax = 542073601
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='128625', job_status='RUN', time_executed='2021-09-30 05:32:30.565325', time_epoch_executed='1633005150.57' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128625/ft1_4FGL_J2348.0-1630_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128625/ft1_4FGL_J2348.0-1630_daily_bin1167.fits outfile=/scratch/kocevski/128625/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1167.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=541814401.0 tmax=542073601.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 4.12
user 3.53
sys 0.55

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.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/128625/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/128625/ltcube_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.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/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits
.....................!
real 12.05
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/128625/ltcube_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.fits outfile=/scratch/kocevski/128625/expmap_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.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/128625/ltcube_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.fits
.....................!
real 191.01
user 185.41
sys 5.28

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J2348.0-1630 @ 357.016 -16.5161

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits scfile=/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits outfile=/scratch/kocevski/128625/cmap_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.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=357.016 yref=-16.5161 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits scfile=/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits outfile=/scratch/kocevski/128625/cmap_HighResolution_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.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=357.016 yref=-16.5161 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/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128625/Model_4FGL_J2348.0-1630_daily_bin1167.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/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits.....................!
real 40.95
user 39.70
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits', '/scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits', expMap='/scratch/kocevski/128625/expmap_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.fits', expCube='/scratch/kocevski/128625/ltcube_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/128625/Model_4FGL_J2348.0-1630_daily_bin1167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2348.0-1630'

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.070e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.290e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/128625/ft1_filtered_4FGL_J2348.0-1630_daily_bin1167.fits
Spacecraft file(s): /scratch/kocevski/128625/ft2_4FGL_J2348.0-1630_daily_bin1167.fits
Exposure map: /scratch/kocevski/128625/expmap_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.fits
Exposure cube: /scratch/kocevski/128625/ltcube_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/128625/Model_4FGL_J2348.0-1630_daily_bin1167.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) = 4428.32328042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0890       1.0000         .10000E-03   10000.    
     2 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7650       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    89.850       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.674       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.579       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.928       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93610       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4428.288     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2192 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0854        10.741        .21300E-06    .59276E-05
   2  norm          .10000E-03    120.85       -.28883E-06** at limit **
   3  Prefactor     .10000E-03    32.733       -.17952E-09** at limit **
   4  Prefactor     .10000E-03    45.882       -.31499E-06** at limit **
   5  norm          7.7654        11.753        .18199E-05    .59238E-04
   6  Prefactor     .10000E-03    5.1800        .66386E-07** at limit **
   7  Prefactor     89.847        83.910        .70007E-06   -.16272E-04
   8  Prefactor     .10000E-03    37.579        .22665E-05** at limit **
   9  Prefactor     .10000E-03    8.1035       -.15601E-06** at limit **
  10  norm          12.673        10.630       -.95842E-08   -.50227E-05
  11  norm          .10000E-03    1.5429        .14447E-06** at limit **
  12  Prefactor     27.679        73.083        .44540E-06   -.16690E-04
  13  Prefactor     .10000E-03    17.757        .49639E-05** at limit **
  14  Prefactor     45.914        39.225        .49857E-06   -.45581E-04
  15  Prefactor     .10000E-03    17.517        .38921E-08** at limit **
  16  Prefactor     .10000E-03    41.320       -.19423E-06** at limit **
  17  norm          .10000E-03    .33444        .54817E-06** at limit **
  18  norm          6.6352        5.3832       -.53542E-06   -.94137E-03
  19  Prefactor     .10000E-03    4.9000       -.12704E-06** at limit **
  20  Normalizat    .93557        .23834       -.47791E-05   -.13312E-03
  21  Prefactor     1.0894        .21990        .35198E-05   -.32482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08545
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.76544
  Prefactor  = 0.0001
  Prefactor  = 89.8473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6735
  norm       = 0.0001
  Prefactor  = 27.6793
  Prefactor  = 0.0001
  Prefactor  = 45.9143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.63523
  Prefactor  = 0.0001
  Normalizat = 0.93557
  Prefactor  = 1.08942
 **********
 **   18 **HESSE 
 **********

 FCN=   4428.288     FROM HESSE     STATUS=OK           309 CALLS     2501 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0854        10.740        .16271E-03   -1.5215    
   2  norm          .10000E-03    124.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7654        11.774        .71951E-03   -1.5151    
   6  Prefactor     .10000E-03    5.1828        .14793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     89.847        83.855        .42390E-04   -1.3809    
   8  Prefactor     .10000E-03    37.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.673        10.620        .11252E-03   -1.4996    
  11  norm          .10000E-03    1.5562        .80645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.679        73.012        .76286E-04   -1.4655    
  13  Prefactor     .10000E-03    17.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.914        39.238        .59162E-04   -1.4352    
  15  Prefactor     .10000E-03    17.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .48368        .70247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6352        5.3062        .12924E-03   -1.5193    
  19  Prefactor     .10000E-03    4.9335        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93557        .25667        .25997E-03   -.95221    
  21  Prefactor     1.0894        .23676        .23499E-03   -.89806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68022e-10
Minuit parameter uncertainties:
  1  10.7433
  2  0.000128976
  3  5.5305e-05
  4  1.23134e-05
  5  11.7776
  6  3.18426e-06
  7  83.9656
  8  4.11959e-05
  9  6.35879e-06
  10  10.622
  11  2.07107e-06
  12  73.2488
  13  0.000132286
  14  39.2604
  15  1.3604e-05
  16  4.53345e-05
  17  7.15253e-06
  18  5.3066
  19  8.36599e-06
  20  0.25701
  21  0.236993
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.635e+00  5.307e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.290e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.089e+00  2.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  9.356e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.69e-05

TS (Fixed Index): 3.29
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128625/likelihoodResults_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.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) = 4428.04603769
delta logL = 0.24237479358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4428.04503961
delta logL = 0.243372874075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1133       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8616       1.0000          .0000       5.0000    
     3 'Normalizat'    .88180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+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=   4428.045     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      282 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1144        5.7819        .92510E-04   -.51541E-03
   2  alpha         2.8618        .92613        .11084E-01   -.38958E-04
   3  Normalizat    .88193        .25889        .26676E-03    .32114E-03
   4  Prefactor     1.1214        .24182        .23201E-03    .66125E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.1144
  alpha      = 2.86183
  Normalizat = 0.881931
  Prefactor  = 1.12142
 **********
 **   18 **HESSE 
 **********

 FCN=   4428.045     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1144        5.2114        .37004E-05   -1.5256    
   2  alpha         2.8618        .83666        .44335E-03    .14524    
   3  Normalizat    .88193        .25727        .53353E-04   -.97098    
   4  Prefactor     1.1214        .24079        .46403E-04   -.88785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15599e-10
Minuit parameter uncertainties:
  1  5.21185
  2  0.853497
  3  0.257629
  4  0.241023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128625': 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) = 4428.04503877
delta logL = 0.243373712935

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  5.114e+00  5.212e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.862e+00  8.535e-01  0.000e+00  5.000e+00 ( 1.000e+00)
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.121e+00  2.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  8.819e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.86 +/- 0.85
Photon Flux (Free Index): 9.91e-08 +/- 8.42e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.46e-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/128625/cmap_HighResolution_541814401_542073601_4FGL_J2348.0-1630_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-05', comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='2.21e-05', photon_flux_error='4.53e-08', dlogl='2.43e-01', energy_flux='2.11e-05', photon_flux2='9.91e-08', job_status='DONE', time_completed='2021-09-30 05:42:33.514784', photon_index_error2='0.85', photon_index2='2.86', ts='3.29', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.46e-05', EG='0.94', time_epoch_completed='1633005753.51', return_code='0', job_id='128625', GAL2='1.12', EG2='0.88', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='8.42e-08', ts2='3.83', photon_index='2.29' WHERE bin_id='1167' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 128625: <4FGL_J2348.0-1630_daily_bin1167> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:31:02 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:31:03 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:31:03 2021
Terminated at Thu Sep 30 05:42:34 2021
Results reported at Thu Sep 30 05:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1167 357.016 -16.5161 541814401 542073601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2348.0-1630 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   509.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

