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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1373
RA = 357.016, Dec = -16.5161
tmin = 595209601, tmax = 595468801
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='129879', job_status='RUN', time_executed='2021-09-30 05:36:17.770284', time_epoch_executed='1633005377.77' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129879

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129879/ft1_4FGL_J2348.0-1630_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129879/ft2_4FGL_J2348.0-1630_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129879/ft1_4FGL_J2348.0-1630_daily_bin1373.fits outfile=/scratch/kocevski/129879/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1373.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=595209601.0 tmax=595468801.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 2.96
user 2.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/129879/ft2_4FGL_J2348.0-1630_daily_bin1373.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/129879/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/129879/ft1_filtered_4FGL_J2348.0-1630_daily_bin1373.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/129879/ft1_filtered_4FGL_J2348.0-1630_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/129879/ft2_4FGL_J2348.0-1630_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/129879/ltcube_595209601_595468801_4FGL_J2348.0-1630_daily_bin1373.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/129879/ft2_4FGL_J2348.0-1630_daily_bin1373.fits
.....................!
real 12.29
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129879/ft1_filtered_4FGL_J2348.0-1630_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/129879/ft2_4FGL_J2348.0-1630_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/129879/ltcube_595209601_595468801_4FGL_J2348.0-1630_daily_bin1373.fits outfile=/scratch/kocevski/129879/expmap_595209601_595468801_4FGL_J2348.0-1630_daily_bin1373.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/129879/ltcube_595209601_595468801_4FGL_J2348.0-1630_daily_bin1373.fits
.....................!
real 189.84
user 185.19
sys 4.33

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/129879/ft1_filtered_4FGL_J2348.0-1630_daily_bin1373.fits scfile=/scratch/kocevski/129879/ft2_4FGL_J2348.0-1630_daily_bin1373.fits outfile=/scratch/kocevski/129879/cmap_595209601_595468801_4FGL_J2348.0-1630_daily_bin1373.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11154E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .22158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    23.173       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2403       1.0000         .10000E-03   10000.    
    10 'norm      '    .10872E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3688       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.964       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29667       1.0000         .10000E-03   10000.    
    18 'norm      '    25.603       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8124       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3826       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .57465       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=   5136.934     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2569 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    6.2838        .12891E-05** at limit **
   2  norm          .10001E-03    151.74       -.56387E-05** at limit **
   3  Prefactor     .10000E-03    27.014        .12114E-05** at limit **
   4  Prefactor     .10000E-03    16.133       -.40765E-06** at limit **
   5  norm          23.173        19.771        .24402E-07   -.11700E-04
   6  Prefactor     .10000E-03    5.5190        .36154E-08** at limit **
   7  Prefactor     19.099        30.521       -.37765E-06    .13643E-03
   8  Prefactor     .10000E-03    10.159       -.10459E-06** at limit **
   9  Prefactor     7.2370        7.7502        .15095E-05    .13501E-02
  10  norm          .10017E-03    6.3121       -.24888E-05** at limit **
  11  norm          6.3693        3.6183        .66027E-07   -.91802E-05
  12  Prefactor     .10001E-03    47.073        .61451E-05** at limit **
  13  Prefactor     .10000E-03    5.2889       -.27246E-07** at limit **
  14  Prefactor     24.964        33.321        .63672E-07   -.10942E-04
  15  Prefactor     .10000E-03    25.478        .24888E-05** at limit **
  16  Prefactor     .10001E-03    37.751       -.59739E-05** at limit **
  17  norm          .29669        .61603        .14260E-05   -.13927E-02
  18  norm          25.605        7.9850       -.10364E-05   -.39785E-03
  19  Prefactor     4.8116        7.1155        .39300E-06   -.29123E-04
  20  Normalizat    1.3825        .19683        .86590E-07   -.16040E-04
  21  Prefactor     .57473        .18277       -.10632E-05    .31037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100156
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.1731
  Prefactor  = 0.0001
  Prefactor  = 19.0994
  Prefactor  = 0.0001
  Prefactor  = 7.23702
  norm       = 0.000100167
  norm       = 6.36933
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 24.9641
  Prefactor  = 0.000100002
  Prefactor  = 0.000100012
  norm       = 0.296686
  norm       = 25.6047
  Prefactor  = 4.81163
  Normalizat = 1.3825
  Prefactor  = 0.574725
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.934     FROM HESSE     STATUS=OK           311 CALLS     2880 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    45.356        .34182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    154.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.173        19.769        .83211E-04   -1.4745    
   6  Prefactor     .10000E-03    5.5371        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.099        30.494        .91629E-04   -1.4834    
   8  Prefactor     .10000E-03    10.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2370        8.0182        .14907E-03   -1.5170    
  10  norm          .10017E-03    30.284        .32249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3693        3.6118        .94195E-04   -1.5203    
  12  Prefactor     .10001E-03    48.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2956        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.964        33.309        .80174E-04   -1.4708    
  15  Prefactor     .10000E-03    25.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    38.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29669        .64878        .20821E-03   -1.5599    
  18  norm          25.605        8.0636        .79169E-04   -1.4696    
  19  Prefactor     4.8116        7.0770        .18339E-03   -1.5269    
  20  Normalizat    1.3825        .23322        .22061E-03   -.81136    
  21  Prefactor     .57473        .21367        .30432E-03   -1.0866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07831e-08
Minuit parameter uncertainties:
  1  0.00531866
  2  0.00217008
  3  0.000226392
  4  5.57552e-05
  5  19.7745
  6  2.48284e-06
  7  30.5186
  8  1.05293e-05
  9  8.01941
  10  0.00450157
  11  3.61193
  12  0.00156833
  13  2.92308e-06
  14  33.3335
  15  0.00046629
  16  0.00138934
  17  0.648795
  18  8.06393
  19  7.07821
  20  0.233403
  21  0.213967
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.560e+01  8.064e+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:  5.747e-01  2.140e-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:  1.382e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.48
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.19e-07 +/- 6.89e-08
Energy Flux (Fixed Index): 8.16e-05 +/- 2.57e-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) = 5136.91127924
delta logL = 0.0225253626704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5136.9032925
delta logL = 0.0305121103584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.502       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2252       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56768       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=   5136.903     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      209 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.502        16.329        .19454E-02   -.28402E-03
   2  alpha         2.2252        .50622        .14528        .33245E-04
   3  Normalizat    1.3940        .20277        .49743E-01   -.28479E-04
   4  Prefactor     .56768        .18477        .69150E-01    .45092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.5022
  alpha      = 2.22515
  Normalizat = 1.39397
  Prefactor  = 0.567683
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.903     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.502        8.1931        .77817E-04   -1.4678    
   2  alpha         2.2252        .26328        .62179E-02   -.11016    
   3  Normalizat    1.3940        .23463        .21991E-03   -.80803    
   4  Prefactor     .56768        .21409        .30607E-03   -1.0896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30722e-10
Minuit parameter uncertainties:
  1  8.19346
  2  0.263777
  3  0.234815
  4  0.214396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129879': 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) = 5136.9032925
delta logL = 0.0305121107667

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.650e+01  8.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.225e+00  2.638e-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:  5.677e-01  2.144e-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:  1.394e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.83
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.23 +/- 0.26
Photon Flux (Free Index): 2.08e-07 +/- 7.15e-08
Energy Flux (Free Index): 8.50e-05 +/- 2.82e-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/129879/cmap_HighResolution_595209601_595468801_4FGL_J2348.0-1630_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-07', energy_flux2='8.50e-05', photon_flux_error='6.89e-08', dlogl='3.05e-02', energy_flux='8.16e-05', photon_flux2='2.08e-07', job_status='DONE', time_completed='2021-09-30 05:46:27.525603', photon_index_error2='0.26', photon_index2='2.23', ts='33.48', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='1.38', time_epoch_completed='1633005987.53', return_code='0', job_id='129879', GAL2='0.57', EG2='1.39', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='7.15e-08', ts2='33.83', photon_index='2.29' WHERE bin_id='1373' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 129879: <4FGL_J2348.0-1630_daily_bin1373> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1373> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 05:35:32 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:35:33 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:35:33 2021
Terminated at Thu Sep 30 05:46:28 2021
Results reported at Thu Sep 30 05:46:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1373 357.016 -16.5161 595209601 595468801 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 :                                   513.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

