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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1005
RA = 357.016, Dec = -16.5161
tmin = 499824001, tmax = 500083201
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='128399', job_status='RUN', time_executed='2021-09-30 05:34:00.604988', time_epoch_executed='1633005240.61' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128399/ft1_4FGL_J2348.0-1630_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128399/ft1_4FGL_J2348.0-1630_daily_bin1005.fits outfile=/scratch/kocevski/128399/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1005.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=499824001.0 tmax=500083201.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.19
user 4.93
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.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/128399/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.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/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/128399/ltcube_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.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/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits
.....................!
real 11.81
user 11.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/128399/ltcube_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.fits outfile=/scratch/kocevski/128399/expmap_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.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/128399/ltcube_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.fits
.....................!
real 190.37
user 185.19
sys 4.83

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/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits scfile=/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits outfile=/scratch/kocevski/128399/cmap_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits scfile=/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits outfile=/scratch/kocevski/128399/cmap_HighResolution_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128399/Model_4FGL_J2348.0-1630_daily_bin1005.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/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits......................!
real 23.20
user 21.90
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits', '/scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits', expMap='/scratch/kocevski/128399/expmap_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.fits', expCube='/scratch/kocevski/128399/ltcube_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/128399/Model_4FGL_J2348.0-1630_daily_bin1005.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/128399/ft1_filtered_4FGL_J2348.0-1630_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/128399/ft2_4FGL_J2348.0-1630_daily_bin1005.fits
Exposure map: /scratch/kocevski/128399/expmap_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.fits
Exposure cube: /scratch/kocevski/128399/ltcube_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/128399/Model_4FGL_J2348.0-1630_daily_bin1005.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) = 1515.94740145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.435       1.0000         .10000E-03   10000.    
     2 'norm      '    36.389       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9537       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    143.61       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.812       1.0000         .10000E-03   10000.    
    16 'Prefactor '    131.41       1.0000         .10000E-03   10000.    
    17 'norm      '    .85489       1.0000         .10000E-03   10000.    
    18 'norm      '    10.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11311E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97468       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .59808       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=   1515.852     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2270 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.432        27.955        .36020E-06    .84350E-04
   2  norm          36.397        82.493       -.97063E-06    .69233E-06
   3  Prefactor     .10000E-03    64.400       -.25684E-05** at limit **
   4  Prefactor     .10000E-03    16.621       -.11349E-06** at limit **
   5  norm          .10000E-03    10.351        .28534E-07** at limit **
   6  Prefactor     .10000E-03    5.9254       -.19376E-07** at limit **
   7  Prefactor     .10000E-03    119.45        .52095E-05** at limit **
   8  Prefactor     .10000E-03    31.081       -.20833E-05** at limit **
   9  Prefactor     1.9518        15.998        .81442E-05   -.49712E-04
  10  norm          .10000E-03    7.4678        .50149E-06** at limit **
  11  norm          .10000E-03    2.2321        .12288E-07** at limit **
  12  Prefactor     143.62        111.81       -.19489E-05   -.47689E-04
  13  Prefactor     .10000E-03    41.773        .46585E-05** at limit **
  14  Prefactor     .10000E-03    21.996        .52057E-06** at limit **
  15  Prefactor     83.849        114.37       -.54319E-05   -.96851E-05
  16  Prefactor     131.51        212.77       -.10548E-04   -.78571E-05
  17  norm          .85490        1.3489        .22151E-07    .32063E-04
  18  norm          10.912        11.264        .22723E-07    .80364E-05
  19  Prefactor     .10000E-03    61.884       -.24361E-05** at limit **
  20  Normalizat    .97469        .32570        .33982E-06    .12874E-04
  21  Prefactor     .59800        .29178        .18076E-06    .29986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.4315
  norm       = 36.3971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95183
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 143.625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.849
  Prefactor  = 131.514
  norm       = 0.854902
  norm       = 10.9121
  Prefactor  = 0.0001
  Normalizat = 0.974689
  Prefactor  = 0.597998
 **********
 **   18 **HESSE 
 **********

 FCN=   1515.852     FROM HESSE     STATUS=OK           313 CALLS     2583 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.432        27.940        .61540E-04   -1.4404    
   2  norm          36.397        82.694        .66436E-04   -1.4501    
   3  Prefactor     .10000E-03    64.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.623        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.351        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9261        .92576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    120.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9518        16.060        .14843E-02   -1.5429    
  10  norm          .10000E-03    7.4906        .10398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2368        .56811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     143.62        112.29        .16810E-03   -1.3305    
  13  Prefactor     .10000E-03    42.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.002        .17842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     83.849        114.43        .21939E-03   -1.3874    
  16  Prefactor     131.51        212.44        .17563E-03   -1.3409    
  17  norm          .85490        1.3243        .46069E-03   -1.5523    
  18  norm          10.912        11.385        .10767E-03   -1.5047    
  19  Prefactor     .10000E-03    63.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97469        .38678        .22339E-03   -.93883    
  21  Prefactor     .59800        .34516        .25314E-03   -1.0767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80984e-11
Minuit parameter uncertainties:
  1  27.9491
  2  82.9559
  3  7.24878e-05
  4  5.44167e-06
  5  1.18459e-06
  6  1.47718e-06
  7  7.37754e-05
  8  1.76454e-05
  9  11.2013
  10  1.88563e-05
  11  1.21918e-06
  12  112.458
  13  0.000204217
  14  1.72872e-05
  15  114.729
  16  213.694
  17  1.32431
  18  11.3875
  19  0.000131025
  20  0.387898
  21  0.346387
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.091e+01  1.139e+01  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:  5.980e-01  3.464e-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.747e-01  3.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 9.32e-08 +/- 9.73e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 3.63e-05

TS (Fixed Index): 2.35
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 2.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128399/likelihoodResults_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.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) = 1515.83916632
delta logL = 0.0124777334884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1515.83336788
delta logL = 0.0182761689662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7745       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4397       1.0000          .0000       5.0000    
     3 'Normalizat'    .96580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60440       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=   1515.833     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      233 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7710        11.032        .10056E-03    .68424E-04
   2  alpha         2.4402        .81483        .88887E-02    .11246E-04
   3  Normalizat    .96563        .38049        .22427E-03    .11420E-03
   4  Prefactor     .60451        .34402        .25189E-03    .10167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.77102
  alpha      = 2.44024
  Normalizat = 0.965628
  Prefactor  = 0.604508
 **********
 **   18 **HESSE 
 **********

 FCN=   1515.833     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7710        10.731        .40225E-05   -1.5083    
   2  alpha         2.4402        .79318        .35555E-03   -.23906E-01
   3  Normalizat    .96563        .38073        .44854E-04   -.94191    
   4  Prefactor     .60451        .34422        .10076E-04   -1.0740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00578e-11
Minuit parameter uncertainties:
  1  10.7334
  2  0.807134
  3  0.381807
  4  0.345427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128399': 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) = 1515.83336757
delta logL = 0.0182764792994

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  9.771e+00  1.073e+01  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.440e+00  8.071e-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:  6.045e-01  3.454e-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.656e-01  3.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.44 +/- 0.81
Photon Flux (Free Index): 1.02e-07 +/- 9.76e-08
Energy Flux (Free Index): 3.19e-05 +/- 3.06e-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/128399/cmap_HighResolution_499824001_500083201_4FGL_J2348.0-1630_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-04', comment='SUCCESS', photon_flux='9.32e-08', energy_flux2='3.19e-05', photon_flux_error='9.73e-08', dlogl='1.83e-02', energy_flux='3.48e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-30 05:41:02.373436', photon_index_error2='0.81', photon_index2='2.44', ts='2.35', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='2.92e-07', energy_flux_error2='3.06e-05', EG='0.97', time_epoch_completed='1633005662.37', return_code='0', job_id='128399', GAL2='0.60', EG2='0.97', return_code2='0', energy_flux_error='3.63e-05', photon_flux_error2='9.76e-08', ts2='2.42', photon_index='2.29' WHERE bin_id='1005' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:41:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 128399: <4FGL_J2348.0-1630_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1005 357.016 -16.5161 499824001 500083201 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 :                                   391.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            619 sec.

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

