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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin269
RA = 357.016, Dec = -16.5161
tmin = 309052801, tmax = 309312001
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='125372', job_status='RUN', time_executed='2021-09-30 05:23:19.425563', time_epoch_executed='1633004599.43' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125372/ft1_4FGL_J2348.0-1630_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125372/ft2_4FGL_J2348.0-1630_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125372/ft1_4FGL_J2348.0-1630_daily_bin269.fits outfile=/scratch/kocevski/125372/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin269.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=309052801.0 tmax=309312001.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.37
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125372/ft2_4FGL_J2348.0-1630_daily_bin269.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/125372/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin269.fits evtable="EVENTS" outfile="/scratch/kocevski/125372/ft1_filtered_4FGL_J2348.0-1630_daily_bin269.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125372/ft1_filtered_4FGL_J2348.0-1630_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/125372/ft2_4FGL_J2348.0-1630_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/125372/ltcube_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.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/125372/ft2_4FGL_J2348.0-1630_daily_bin269.fits
.....................!
real 11.80
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125372/ft1_filtered_4FGL_J2348.0-1630_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/125372/ft2_4FGL_J2348.0-1630_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/125372/ltcube_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.fits outfile=/scratch/kocevski/125372/expmap_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.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/125372/ltcube_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.fits
.....................!
real 190.65
user 185.06
sys 5.29

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/125372/ft1_filtered_4FGL_J2348.0-1630_daily_bin269.fits scfile=/scratch/kocevski/125372/ft2_4FGL_J2348.0-1630_daily_bin269.fits outfile=/scratch/kocevski/125372/cmap_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125372/ft1_filtered_4FGL_J2348.0-1630_daily_bin269.fits scfile=/scratch/kocevski/125372/ft2_4FGL_J2348.0-1630_daily_bin269.fits outfile=/scratch/kocevski/125372/cmap_HighResolution_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.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/125372/ft1_filtered_4FGL_J2348.0-1630_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/125372/ft2_4FGL_J2348.0-1630_daily_bin269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125372/Model_4FGL_J2348.0-1630_daily_bin269.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/125372/ft1_filtered_4FGL_J2348.0-1630_daily_bin269.fits.....................!
real 51.99
user 50.71
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8944       1.0000         .10000E-03   10000.    
     5 'norm      '    13.828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7451       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.646       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9007       1.0000         .10000E-03   10000.    
    10 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8778       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28663       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.763       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.452       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8781       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3272       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3229       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75389       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96135       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=   6744.661     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     2858 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9028        .18142E-02** at limit **
   2  norm          .10000E-03    57.753        .36285E-03** at limit **
   3  Prefactor     43.268        39.252        .60945E-04   -.28354E-05
   4  Prefactor     8.8939        8.8574        .13440E-03   -.13535E-05
   5  norm          13.828        9.0615        .10771E-03   -.12666E-05
   6  Prefactor     4.7430        9.9817        .18471E-03   -.38160E-05
   7  Prefactor     17.631        52.077        .95344E-04   -.12401E-04
   8  Prefactor     .10000E-03    5.8431        .18142E-02** at limit **
   9  Prefactor     4.9003        9.3548        .90846E-03   -.33188E-04
  10  norm          .10000E-03    3.2331        .14368E-02** at limit **
  11  norm          5.8817        2.7811        .86764E-04   -.18279E-03
  12  Prefactor     .10000E-03    23.257        .18142E-02** at limit **
  13  Prefactor     .10000E-03    12.731        .18142E-02** at limit **
  14  Prefactor     .24025        24.324        .89825E-01    .19951E-03
  15  Prefactor     16.757        37.484        .97824E-04   -.87162E-05
  16  Prefactor     31.461        74.123        .71445E-04   -.85927E-05
  17  norm          1.8781        .68185        .32325E-04    .79836E-04
  18  norm          2.3278        4.3636        .18465E-03   -.20872E-04
  19  Prefactor     7.3220        5.9930        .14822E-03   -.79771E-05
  20  Normalizat    .75380        .16807        .24064E-03   -.75591E-04
  21  Prefactor     .96153        .16760        .21990E-03   -.10397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.2678
  Prefactor  = 8.89391
  norm       = 13.8277
  Prefactor  = 4.74303
  Prefactor  = 17.6309
  Prefactor  = 0.0001
  Prefactor  = 4.90034
  norm       = 0.0001
  norm       = 5.88167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.240249
  Prefactor  = 16.7566
  Prefactor  = 31.4612
  norm       = 1.87808
  norm       = 2.32784
  Prefactor  = 7.32202
  Normalizat = 0.753797
  Prefactor  = 0.961534
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.661     FROM HESSE     STATUS=OK           307 CALLS     3165 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    57.756        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.268        39.251        .12189E-04   -1.4391    
   4  Prefactor     8.8939        8.8572        .53758E-05   -1.5111    
   5  norm          13.828        9.0614        .43085E-05   -1.4964    
   6  Prefactor     4.7430        9.9812        .73885E-05   -1.5272    
   7  Prefactor     17.631        51.954        .38137E-05   -1.4868    
   8  Prefactor     .10000E-03    5.8433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9003        9.3347        .36338E-04   -1.5265    
  10  norm          .10000E-03    3.2335        .28737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8817        2.7744        .34706E-05   -1.5223    
  12  Prefactor     .10000E-03    23.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .24025        20.052        .10217       -1.5610    
  15  Prefactor     16.757        37.465        .39130E-05   -1.4889    
  16  Prefactor     31.461        74.082        .28578E-05   -1.4586    
  17  norm          1.8781        .68148        .12930E-05   -1.5434    
  18  norm          2.3278        4.3608        .73858E-05   -1.5403    
  19  Prefactor     7.3220        5.9925        .59287E-05   -1.5167    
  20  Normalizat    .75380        .16819        .96255E-05   -1.0181    
  21  Prefactor     .96153        .16776        .87961E-05   -.94023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65487e-10
Minuit parameter uncertainties:
  1  1.92374e-06
  2  0.00011028
  3  39.2745
  4  8.85853
  5  9.06231
  6  9.98473
  7  52.0882
  8  5.99537e-06
  9  9.33746
  10  5.0097e-06
  11  2.77449
  12  8.94719e-06
  13  1.08559e-05
  14  4.39031
  15  37.518
  16  74.3002
  17  0.681487
  18  4.36142
  19  5.99302
  20  0.168306
  21  0.167848
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.328e+00  4.361e+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:  9.615e-01  1.678e-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:  7.538e-01  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 8.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125372/likelihoodResults_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.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) = 6744.33505979
delta logL = 0.326418673285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6744.23897661
delta logL = 0.422501855932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62248E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .70677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99708       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.

 FCN=   6744.239     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      381 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62148E-01    1.9696        .40993E-02    .26843E-02
   2  alpha         5.0000        2.8527        .46270    ** at limit **
   3  Normalizat    .70667        .59644E-01    .42381E-01   -.19382E-04
   4  Prefactor     .99732        .57765E-01    .46231E-01    .15060E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0621481
  alpha      = 5
  Normalizat = 0.706666
  Prefactor  = 0.997321
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.239     FROM HESSE     STATUS=OK            37 CALLS      418 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62148E-01    .73781E-01    .18664E-03   -1.5658    
   2  alpha         5.0000        3.3447        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .70667        .17078        .24769E-03   -1.0363    
   4  Prefactor     .99732        .17005        .10825E-02   -.92819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49477e-11
Minuit parameter uncertainties:
  1  0.0737816
  2  0.000100395
  3  0.170907
  4  0.170142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125372': 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) = 6744.23896678
delta logL = 0.42251168284

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.215e-02  7.378e-02  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  5.000e+00  1.004e-04  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:  9.973e-01  1.701e-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:  7.067e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.92e-08 +/- 5.80e-08
Energy Flux (Free Index): 6.64e-06 +/- 7.85e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/125372/cmap_HighResolution_309052801_309312001_4FGL_J2348.0-1630_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', comment='SUCCESS', energy_flux2='6.64e-06', dlogl='4.23e-01', photon_flux2='4.92e-08', job_status='DONE', time_completed='2021-09-30 05:34:34.395768', photon_index_error2='0.00', photon_index2='5.00', ts='0.50', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.81e-08', energy_flux_error2='7.85e-06', EG='0.75', time_epoch_completed='1633005274.4', return_code='0', job_id='125372', GAL2='1.00', EG2='0.71', return_code2='0', photon_flux_error2='5.80e-08', ts2='1.48', photon_index='2.29' WHERE bin_id='269' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:34:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 125372: <4FGL_J2348.0-1630_daily_bin269> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin269> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:20:12 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:20:14 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:20:14 2021
Terminated at Thu Sep 30 05:34:35 2021
Results reported at Thu Sep 30 05:34:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin269 357.016 -16.5161 309052801 309312001 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

