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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin622
RA = 357.016, Dec = -16.5161
tmin = 400550401, tmax = 400809601
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='127049', job_status='RUN', time_executed='2021-09-30 05:27:42.152864', time_epoch_executed='1633004862.15' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/127049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/127049/ft1_4FGL_J2348.0-1630_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/127049/ft2_4FGL_J2348.0-1630_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/127049/ft1_4FGL_J2348.0-1630_daily_bin622.fits outfile=/scratch/kocevski/127049/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin622.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=400550401.0 tmax=400809601.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.39
user 4.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/127049/ft1_filtered_4FGL_J2348.0-1630_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/127049/ft2_4FGL_J2348.0-1630_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/127049/ltcube_400550401_400809601_4FGL_J2348.0-1630_daily_bin622.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/127049/ft2_4FGL_J2348.0-1630_daily_bin622.fits
.....................!
real 11.63
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/127049/ft1_filtered_4FGL_J2348.0-1630_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/127049/ft2_4FGL_J2348.0-1630_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/127049/ltcube_400550401_400809601_4FGL_J2348.0-1630_daily_bin622.fits outfile=/scratch/kocevski/127049/expmap_400550401_400809601_4FGL_J2348.0-1630_daily_bin622.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/127049/ltcube_400550401_400809601_4FGL_J2348.0-1630_daily_bin622.fits
.....................!
real 190.86
user 186.20
sys 4.24

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/127049/ft1_filtered_4FGL_J2348.0-1630_daily_bin622.fits scfile=/scratch/kocevski/127049/ft2_4FGL_J2348.0-1630_daily_bin622.fits outfile=/scratch/kocevski/127049/cmap_400550401_400809601_4FGL_J2348.0-1630_daily_bin622.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/127049/ft1_filtered_4FGL_J2348.0-1630_daily_bin622.fits scfile=/scratch/kocevski/127049/ft2_4FGL_J2348.0-1630_daily_bin622.fits outfile=/scratch/kocevski/127049/cmap_HighResolution_400550401_400809601_4FGL_J2348.0-1630_daily_bin622.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/127049/ft1_filtered_4FGL_J2348.0-1630_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/127049/ft2_4FGL_J2348.0-1630_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/127049/Model_4FGL_J2348.0-1630_daily_bin622.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/127049/ft1_filtered_4FGL_J2348.0-1630_daily_bin622.fits.....................!
real 40.70
user 39.43
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.2368       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.840       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13197E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.6283       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.968       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40897       1.0000         .10000E-03   10000.    
    18 'norm      '    10.771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33316E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90303       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80457       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=   4575.032     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2178 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6145        .68104E-06** at limit **
   2  norm          .10000E-03    24.931       -.14668E-04** at limit **
   3  Prefactor     .10000E-03    67.832        .48692E-04** at limit **
   4  Prefactor     .10000E-03    4.8624       -.51911E-07** at limit **
   5  norm          7.2369        7.1775        .49556E-07    .90405E-04
   6  Prefactor     .10000E-03    13.960       -.39836E-05** at limit **
   7  Prefactor     27.826        53.512       -.17613E-04    .26049E-04
   8  Prefactor     .10000E-03    11.345       -.52382E-05** at limit **
   9  Prefactor     .10000E-03    8.5002       -.17678E-05** at limit **
  10  norm          7.6327        8.0270        .15899E-05    .55822E-04
  11  norm          .10000E-03    1.0811        .80353E-08** at limit **
  12  Prefactor     .10000E-03    18.656        .13556E-04** at limit **
  13  Prefactor     .10000E-03    9.1881       -.22199E-06** at limit **
  14  Prefactor     .10000E-03    10.246        .67872E-05** at limit **
  15  Prefactor     29.969        36.584        .12320E-05    .65671E-05
  16  Prefactor     .10000E-03    91.255       -.56287E-04** at limit **
  17  norm          .40887        .48483        .19533E-06   -.79520E-04
  18  norm          10.771        5.0893       -.11402E-05   -.90147E-05
  19  Prefactor     .10000E-03    4.1517       -.54094E-06** at limit **
  20  Normalizat    .90292        .16381        .12178E-05    .49157E-04
  21  Prefactor     .80461        .16248        .87187E-07    .12275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.23692
  Prefactor  = 0.0001
  Prefactor  = 27.8263
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 7.63273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.9691
  Prefactor  = 0.0001
  norm       = 0.408869
  norm       = 10.771
  Prefactor  = 0.000100002
  Normalizat = 0.902918
  Prefactor  = 0.804611
 **********
 **   18 **HESSE 
 **********

 FCN=   4575.032     FROM HESSE     STATUS=OK           315 CALLS     2493 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    24.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8628        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.2369        7.1818        .14910E-03   -1.5170    
   6  Prefactor     .10000E-03    14.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.826        53.263        .75928E-04   -1.4652    
   8  Prefactor     .10000E-03    11.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.6327        8.0126        .14520E-03   -1.5155    
  11  norm          .10000E-03    1.0916        .68659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.441        .39614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.969        36.583        .73189E-04   -1.4613    
  16  Prefactor     .10000E-03    91.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40887        .45885        .45070E-03   -1.5580    
  18  norm          10.771        5.0496        .91579E-04   -1.5051    
  19  Prefactor     .10000E-03    18.214        .26246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90292        .19179        .21433E-03   -.96358    
  21  Prefactor     .80461        .19065        .22478E-03   -.99559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25239e-10
Minuit parameter uncertainties:
  1  1.86184e-05
  2  7.06411e-06
  3  0.000184266
  4  9.26123e-07
  5  7.18268
  6  2.95339e-07
  7  53.3544
  8  6.55079e-07
  9  0.000230653
  10  8.01373
  11  1.65744e-06
  12  1.59223e-06
  13  0.000357077
  14  5.54252e-06
  15  36.6102
  16  2.21024e-06
  17  0.458853
  18  5.04977
  19  0.000356234
  20  0.191935
  21  0.190805
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.077e+01  5.050e+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.046e-01  1.908e-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.029e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.40
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 9.20e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.61e-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) = 4575.01692627
delta logL = 0.0149880738491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4575.01225212
delta logL = 0.0196622205849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.261       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2074       1.0000          .0000       5.0000    
     3 'Normalizat'    .90920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80071       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=   4575.012     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.258        102.37        .29846E-02    .56719E-04
   2  alpha         2.2078        3.4640        .21839        .30880E-04
   3  Normalizat    .90960        .18916        .45019E-01    .48532E-04
   4  Prefactor     .80039        .13273        .43726E-01    .45243E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2582
  alpha      = 2.20782
  Normalizat = 0.9096
  Prefactor  = 0.800395
 **********
 **   18 **HESSE 
 **********

 FCN=   4575.012     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.258        5.4260        .94743E-04   -1.5037    
   2  alpha         2.2078        .41473        .88914E-02   -.11714    
   3  Normalizat    .90960        .19381        .21365E-03   -.96124    
   4  Prefactor     .80039        .19108        .22531E-03   -.99714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86815e-12
Minuit parameter uncertainties:
  1  5.4262
  2  0.416686
  3  0.193963
  4  0.191238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/127049': 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) = 4575.01224884
delta logL = 0.0196655008767

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.126e+01  5.426e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.208e+00  4.167e-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.004e-01  1.912e-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.096e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.62
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.21 +/- 0.42
Photon Flux (Free Index): 8.67e-08 +/- 4.62e-08
Energy Flux (Free Index): 3.62e-05 +/- 1.92e-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/127049/cmap_HighResolution_400550401_400809601_4FGL_J2348.0-1630_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.20e-08', energy_flux2='3.62e-05', photon_flux_error='4.31e-08', dlogl='1.97e-02', energy_flux='3.43e-05', photon_flux2='8.67e-08', job_status='DONE', time_completed='2021-09-30 05:35:48.242076', photon_index_error2='0.42', photon_index2='2.21', ts='13.40', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.90', time_epoch_completed='1633005348.24', return_code='0', job_id='127049', GAL2='0.80', EG2='0.91', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.62e-08', ts2='13.62', photon_index='2.29' WHERE bin_id='622' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:35:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 127049: <4FGL_J2348.0-1630_daily_bin622> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin622> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 05:25:35 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:25:36 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:25:36 2021
Terminated at Thu Sep 30 05:35:48 2021
Results reported at Thu Sep 30 05:35:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin622 357.016 -16.5161 400550401 400809601 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 :                                   483.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            613 sec.

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

