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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1683
RA = 357.016, Dec = -16.5161
tmin = 675561601, tmax = 675820801
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='53048', job_status='RUN', time_executed='2022-06-02 01:41:17.176515', time_epoch_executed='1654159277.18' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53048

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53048/ft1_4FGL_J2348.0-1630_daily_bin1683.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53048/ft2_4FGL_J2348.0-1630_daily_bin1683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53048/ft1_4FGL_J2348.0-1630_daily_bin1683.fits outfile=/scratch/kocevski/53048/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1683.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=675561601.0 tmax=675820801.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.45
user 3.22
sys 0.21

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

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

Number of photons that the gtmktime cut: 633

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53048/ft1_filtered_4FGL_J2348.0-1630_daily_bin1683.fits" evtable="EVENTS" scfile=/scratch/kocevski/53048/ft2_4FGL_J2348.0-1630_daily_bin1683.fits sctable="SC_DATA" outfile=/scratch/kocevski/53048/ltcube_675561601_675820801_4FGL_J2348.0-1630_daily_bin1683.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/53048/ft2_4FGL_J2348.0-1630_daily_bin1683.fits
.....................!
real 13.03
user 12.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53048/ft1_filtered_4FGL_J2348.0-1630_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/53048/ft2_4FGL_J2348.0-1630_daily_bin1683.fits sctable="SC_DATA" expcube=/scratch/kocevski/53048/ltcube_675561601_675820801_4FGL_J2348.0-1630_daily_bin1683.fits outfile=/scratch/kocevski/53048/expmap_675561601_675820801_4FGL_J2348.0-1630_daily_bin1683.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/53048/ltcube_675561601_675820801_4FGL_J2348.0-1630_daily_bin1683.fits
.....................!
real 191.07
user 185.70
sys 4.91

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/53048/ft1_filtered_4FGL_J2348.0-1630_daily_bin1683.fits scfile=/scratch/kocevski/53048/ft2_4FGL_J2348.0-1630_daily_bin1683.fits outfile=/scratch/kocevski/53048/cmap_675561601_675820801_4FGL_J2348.0-1630_daily_bin1683.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53048/ft1_filtered_4FGL_J2348.0-1630_daily_bin1683.fits scfile=/scratch/kocevski/53048/ft2_4FGL_J2348.0-1630_daily_bin1683.fits outfile=/scratch/kocevski/53048/cmap_HighResolution_675561601_675820801_4FGL_J2348.0-1630_daily_bin1683.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/53048/ft1_filtered_4FGL_J2348.0-1630_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/53048/ft2_4FGL_J2348.0-1630_daily_bin1683.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/53048/Model_4FGL_J2348.0-1630_daily_bin1683.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/53048/ft1_filtered_4FGL_J2348.0-1630_daily_bin1683.fits.....................!
real 54.50
user 53.10
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8552       1.0000         .10000E-03   10000.    
     2 'norm      '    47.490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3890       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1417       1.0000         .10000E-03   10000.    
    11 'norm      '    .20947E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.276       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.744       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.641       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2639       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79696       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83520       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=   6941.703     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2205 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8556        6.5989       -.54242E-06   -.19934E-04
   2  norm          47.492        30.501        .17244E-06    .20763E-05
   3  Prefactor     16.486        29.400       -.11063E-05   -.25215E-05
   4  Prefactor     .10000E-03    26.139        .27691E-06** at limit **
   5  norm          18.316        11.085       -.17185E-06    .15480E-05
   6  Prefactor     .10000E-03    4.5389       -.19121E-07** at limit **
   7  Prefactor     4.3578        38.100       -.23417E-04   -.53543E-04
   8  Prefactor     .10000E-03    4.9619        .84987E-08** at limit **
   9  Prefactor     .10001E-03    9.3352        .77389E-06** at limit **
  10  norm          2.1364        1.5471        .42100E-06   -.29527E-02
  11  norm          .10000E-03    1.0395        .60707E-06** at limit **
  12  Prefactor     .10000E-03    78.743        .55102E-05** at limit **
  13  Prefactor     14.271        11.371       -.15167E-06   -.11220E-03
  14  Prefactor     34.726        26.400       -.59741E-05   -.25193E-03
  15  Prefactor     .10000E-03    10.650        .47769E-07** at limit **
  16  Prefactor     .10000E-03    37.496       -.12871E-05** at limit **
  17  norm          .10000E-03    .10853       -.22720E-07** at limit **
  18  norm          21.642        4.7121        .18788E-06   -.37269E-04
  19  Prefactor     3.2640        3.5798       -.79888E-07   -.29262E-04
  20  Normalizat    .79672        .13963        .15186E-05   -.25499E-03
  21  Prefactor     .83542        .13578        .18482E-06   -.12079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.85556
  norm       = 47.4917
  Prefactor  = 16.4856
  Prefactor  = 0.0001
  norm       = 18.3159
  Prefactor  = 0.0001
  Prefactor  = 4.35784
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 2.13635
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.2714
  Prefactor  = 34.7263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.6418
  Prefactor  = 3.26398
  Normalizat = 0.796716
  Prefactor  = 0.835421
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.703     FROM HESSE     STATUS=OK           319 CALLS     2524 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8556        6.5917        .13470E-03   -1.5113    
   2  norm          47.492        30.504        .58186E-04   -1.4329    
   3  Prefactor     16.486        29.385        .98642E-04   -1.4896    
   4  Prefactor     .10000E-03    26.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.316        11.085        .93588E-04   -1.4852    
   6  Prefactor     .10000E-03    4.5842        .17334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3578        38.360        .19224E-03   -1.5290    
   8  Prefactor     .10000E-03    4.9633        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    9.8110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1364        4.7326        .12859E-02   -1.5416    
  11  norm          .10000E-03    11.895        .15845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    79.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.271        11.349        .10601E-03   -1.4952    
  14  Prefactor     34.726        26.069        .67986E-04   -1.4529    
  15  Prefactor     .10000E-03    10.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .11095        .53220E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.642        4.6932        .79779E-04   -1.4777    
  19  Prefactor     3.2640        3.5723        .15885E-03   -1.5347    
  20  Normalizat    .79672        .16347        .22743E-03   -1.0019    
  21  Prefactor     .83542        .15997        .22314E-03   -.98436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86968e-09
Minuit parameter uncertainties:
  1  6.59226
  2  30.5143
  3  29.4103
  4  6.00426e-05
  5  11.086
  6  5.28784e-06
  7  25.8806
  8  1.65066e-06
  9  0.000547605
  10  4.73344
  11  0.000220854
  12  7.36154e-05
  13  11.351
  14  26.0776
  15  6.26242e-06
  16  2.28476e-05
  17  8.60466e-07
  18  4.69327
  19  3.57251
  20  0.163576
  21  0.160058
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.164e+01  4.693e+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:  8.354e-01  1.601e-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.967e-01  1.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 73.53
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 4.01e-08
Energy Flux (Fixed Index): 6.90e-05 +/- 1.50e-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) = 6941.67088474
delta logL = 0.0319639531144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6941.66941914
delta logL = 0.0334295542261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.808       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3493       1.0000          .0000       5.0000    
     3 'Normalizat'    .78745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84144       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=   6941.669     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      248 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.801        61.050        .21951E-02    .18914E-04
   2  alpha         2.3489        2.0601        .12685        .68470E-04
   3  Normalizat    .78762        .19211        .43446E-01    .34084E-04
   4  Prefactor     .84135        .14456        .44254E-01    .31087E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.8009
  alpha      = 2.34891
  Normalizat = 0.787616
  Prefactor  = 0.84135
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.669     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.801        5.6923        .77273E-04   -1.4795    
   2  alpha         2.3489        .23243        .54677E-02   -.60473E-01
   3  Normalizat    .78762        .16240        .22851E-03   -1.0053    
   4  Prefactor     .84135        .15999        .22241E-03   -.98222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5948e-10
Minuit parameter uncertainties:
  1  5.69246
  2  0.232762
  3  0.162499
  4  0.160074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53048': 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) = 6941.66941388
delta logL = 0.0334348092065

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.080e+01  5.692e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.349e+00  2.328e-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:  8.413e-01  1.601e-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.876e-01  1.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 73.48
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.35 +/- 0.23
Photon Flux (Free Index): 1.92e-07 +/- 4.89e-08
Energy Flux (Free Index): 6.65e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/53048/cmap_HighResolution_675561601_675820801_4FGL_J2348.0-1630_daily_bin1683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='6.65e-05', photon_flux_error='4.01e-08', dlogl='3.34e-02', energy_flux='6.90e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2022-06-02 01:50:53.675303', photon_index_error2='0.23', photon_index2='2.35', ts='73.53', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.80', time_epoch_completed='1654159853.68', return_code='0', job_id='53048', GAL2='0.84', EG2='0.79', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.89e-08', ts2='73.48', photon_index='2.29' WHERE bin_id='1683' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun  2 01:50:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 53048: <4FGL_J2348.0-1630_daily_bin1683> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1683> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun  2 01:35:37 2022
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun  2 01:38:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun  2 01:38:29 2022
Terminated at Thu Jun  2 01:50:54 2022
Results reported at Thu Jun  2 01:50:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1683 357.016 -16.5161 675561601 675820801 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 :                                   579.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            917 sec.

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

