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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1561
RA = 357.016, Dec = -16.5161
tmin = 643939201, tmax = 644198401
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='131337', job_status='RUN', time_executed='2021-09-30 05:43:23.068661', time_epoch_executed='1633005803.07' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131337/ft1_4FGL_J2348.0-1630_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131337/ft2_4FGL_J2348.0-1630_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131337/ft1_4FGL_J2348.0-1630_daily_bin1561.fits outfile=/scratch/kocevski/131337/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1561.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=643939201.0 tmax=644198401.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.48
user 4.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131337/ft1_filtered_4FGL_J2348.0-1630_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/131337/ft2_4FGL_J2348.0-1630_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/131337/ltcube_643939201_644198401_4FGL_J2348.0-1630_daily_bin1561.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/131337/ft2_4FGL_J2348.0-1630_daily_bin1561.fits
.....................!
real 12.20
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131337/ft1_filtered_4FGL_J2348.0-1630_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/131337/ft2_4FGL_J2348.0-1630_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/131337/ltcube_643939201_644198401_4FGL_J2348.0-1630_daily_bin1561.fits outfile=/scratch/kocevski/131337/expmap_643939201_644198401_4FGL_J2348.0-1630_daily_bin1561.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/131337/ltcube_643939201_644198401_4FGL_J2348.0-1630_daily_bin1561.fits
.....................!
real 192.75
user 187.37
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/131337/ft1_filtered_4FGL_J2348.0-1630_daily_bin1561.fits scfile=/scratch/kocevski/131337/ft2_4FGL_J2348.0-1630_daily_bin1561.fits outfile=/scratch/kocevski/131337/cmap_643939201_644198401_4FGL_J2348.0-1630_daily_bin1561.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.016 yref=-16.5161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/131337/ft1_filtered_4FGL_J2348.0-1630_daily_bin1561.fits scfile=/scratch/kocevski/131337/ft2_4FGL_J2348.0-1630_daily_bin1561.fits outfile=/scratch/kocevski/131337/cmap_HighResolution_643939201_644198401_4FGL_J2348.0-1630_daily_bin1561.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/131337/ft1_filtered_4FGL_J2348.0-1630_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/131337/ft2_4FGL_J2348.0-1630_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/131337/Model_4FGL_J2348.0-1630_daily_bin1561.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/131337/ft1_filtered_4FGL_J2348.0-1630_daily_bin1561.fits.....................!
real 53.57
user 52.17
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.6449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38906E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4266       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.234       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5821       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44664       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89222       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77620       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=   6464.298     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2167 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1980       -.18606E-07** at limit **
   2  norm          .10000E-03    28.055       -.11743E-04** at limit **
   3  Prefactor     .10000E-03    10.422       -.29465E-06** at limit **
   4  Prefactor     .10000E-03    4.6299       -.16749E-06** at limit **
   5  norm          8.6451        8.0748       -.56109E-06   -.68304E-03
   6  Prefactor     .10000E-03    4.7720        .28147E-07** at limit **
   7  Prefactor     .10000E-03    54.878       -.18627E-04** at limit **
   8  Prefactor     .10000E-03    7.4695        .34701E-06** at limit **
   9  Prefactor     .10001E-03    7.5680        .20140E-05** at limit **
  10  norm          5.4017        7.8819       -.93185E-06   -.84043E-03
  11  norm          4.9712        2.4754       -.94935E-07   -.32096E-03
  12  Prefactor     .10000E-03    41.806        .24496E-04** at limit **
  13  Prefactor     .10000E-03    5.5886       -.17642E-06** at limit **
  14  Prefactor     .10000E-03    30.740        .25423E-05** at limit **
  15  Prefactor     34.224        47.531       -.11835E-04   -.51819E-04
  16  Prefactor     .10000E-03    16.209        .20458E-05** at limit **
  17  norm          .10000E-03    .15814        .10152E-07** at limit **
  18  norm          4.5836        3.0476       -.13505E-06   -.32361E-03
  19  Prefactor     .45458        2.8211       -.31335E-06   -.92576E-04
  20  Normalizat    .89220        .13702        .29183E-06   -.20488E-03
  21  Prefactor     .77615        .13432        .63112E-06   -.17575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.64507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 5.40174
  norm       = 4.97123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2239
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.58362
  Prefactor  = 0.454576
  Normalizat = 0.8922
  Prefactor  = 0.776154
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.298     FROM HESSE     STATUS=OK           313 CALLS     2480 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2021        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6314        .16896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.6451        8.1203        .68167E-03   -1.5120    
   6  Prefactor     .10000E-03    4.7938        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    22.071        .36849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4017        6.8832        .17250E-03   -1.5243    
  11  norm          4.9712        2.4753        .85680E-04   -1.5262    
  12  Prefactor     .10000E-03    41.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.224        47.307        .68490E-04   -1.4537    
  16  Prefactor     .10000E-03    16.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .22036        .59519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5836        2.9257        .10522E-03   -1.5280    
  19  Prefactor     .45458        16.341        .25119E-02   -1.5573    
  20  Normalizat    .89220        .16369        .20670E-03   -.96735    
  21  Prefactor     .77615        .16013        .22066E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46848e-08
Minuit parameter uncertainties:
  1  8.49899e-07
  2  6.15833e-06
  3  1.41771e-07
  4  7.63713e-07
  5  8.12132
  6  4.18173e-06
  7  0.000161414
  8  5.81744e-06
  9  0.000724467
  10  6.8842
  11  2.47531
  12  0.000126941
  13  1.16548e-05
  14  5.37153e-05
  15  47.3591
  16  2.62275e-06
  17  5.55288e-07
  18  2.92577
  19  5.45192
  20  0.163779
  21  0.160223
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  4.584e+00  2.926e+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:  7.762e-01  1.602e-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:  8.922e-01  1.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 9.32e-06

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) = 6464.29806074
delta logL = 8.25152274047e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6464.29804817
delta logL = 9.50893108893e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5963       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2806       1.0000          .0000       5.0000    
     3 'Normalizat'    .89263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77594       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=   6464.298     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6005        64.896        .46937E-02    .18242E-03
   2  alpha         2.2819        3.5002        .36846        .31288E-04
   3  Normalizat    .89258        .65635E-01    .44807E-01    .95476E-05
   4  Prefactor     .77592        .52508E-01    .43403E-01    .13975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.60048
  alpha      = 2.2819
  Normalizat = 0.892579
  Prefactor  = 0.775917
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.298     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6005        3.2220        .10559E-03   -1.5279    
   2  alpha         2.2819        .58055        .12788E-01   -.87351E-01
   3  Normalizat    .89258        .16157        .20666E-03   -.96721    
   4  Prefactor     .77592        .16058        .22069E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77743e-10
Minuit parameter uncertainties:
  1  3.22211
  2  0.585937
  3  0.161657
  4  0.160672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131337': 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) = 6464.29804302
delta logL = 0.000100240559732

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  4.600e+00  3.222e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.282e+00  5.859e-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:  7.759e-01  1.607e-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:  8.926e-01  1.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.28 +/- 0.59
Photon Flux (Free Index): 3.89e-08 +/- 3.08e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.04e-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/131337/cmap_HighResolution_643939201_644198401_4FGL_J2348.0-1630_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='1.47e-05', photon_flux_error='2.50e-08', dlogl='1.00e-04', energy_flux='1.46e-05', photon_flux2='3.89e-08', job_status='DONE', time_completed='2021-09-30 05:52:53.193769', photon_index_error2='0.59', photon_index2='2.28', ts='4.86', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.89', time_epoch_completed='1633006373.19', return_code='0', job_id='131337', GAL2='0.78', EG2='0.89', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='3.08e-08', ts2='4.85', photon_index='2.29' WHERE bin_id='1561' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:52:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 131337: <4FGL_J2348.0-1630_daily_bin1561> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1561> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 05:40:11 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:40:12 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:40:12 2021
Terminated at Thu Sep 30 05:52:54 2021
Results reported at Thu Sep 30 05:52:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1561 357.016 -16.5161 643939201 644198401 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 :                                   561.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

