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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1434
RA = 357.016, Dec = -16.5161
tmin = 611020801, tmax = 611280001
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='129969', job_status='RUN', time_executed='2021-09-30 05:36:41.505834', time_epoch_executed='1633005401.51' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129969/ft1_4FGL_J2348.0-1630_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129969/ft2_4FGL_J2348.0-1630_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129969/ft1_4FGL_J2348.0-1630_daily_bin1434.fits outfile=/scratch/kocevski/129969/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1434.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=611020801.0 tmax=611280001.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.51
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129969/ft1_filtered_4FGL_J2348.0-1630_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/129969/ft2_4FGL_J2348.0-1630_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/129969/ltcube_611020801_611280001_4FGL_J2348.0-1630_daily_bin1434.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/129969/ft2_4FGL_J2348.0-1630_daily_bin1434.fits
.....................!
real 15.28
user 14.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129969/ft1_filtered_4FGL_J2348.0-1630_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/129969/ft2_4FGL_J2348.0-1630_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/129969/ltcube_611020801_611280001_4FGL_J2348.0-1630_daily_bin1434.fits outfile=/scratch/kocevski/129969/expmap_611020801_611280001_4FGL_J2348.0-1630_daily_bin1434.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/129969/ltcube_611020801_611280001_4FGL_J2348.0-1630_daily_bin1434.fits
.....................!
real 190.10
user 184.91
sys 4.83

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/129969/ft1_filtered_4FGL_J2348.0-1630_daily_bin1434.fits scfile=/scratch/kocevski/129969/ft2_4FGL_J2348.0-1630_daily_bin1434.fits outfile=/scratch/kocevski/129969/cmap_611020801_611280001_4FGL_J2348.0-1630_daily_bin1434.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/129969/ft1_filtered_4FGL_J2348.0-1630_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/129969/ft2_4FGL_J2348.0-1630_daily_bin1434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129969/Model_4FGL_J2348.0-1630_daily_bin1434.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/129969/ft1_filtered_4FGL_J2348.0-1630_daily_bin1434.fits.....................!
real 46.32
user 44.97
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49047       1.0000         .10000E-03   10000.    
     2 'norm      '    14.969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4463       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1649       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45621E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14113E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.6362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71365       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=   5648.851     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2564 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47190        8.3256       -.44769E-05    .59971E-03
   2  norm          14.945        43.522       -.17620E-04   -.24607E-06
   3  Prefactor     .10000E-03    18.848        .22435E-05** at limit **
   4  Prefactor     .10000E-03    8.3577       -.22543E-06** at limit **
   5  norm          .10000E-03    10.601        .13306E-04** at limit **
   6  Prefactor     1.4418        16.347       -.38975E-05   -.34951E-03
   7  Prefactor     .10000E-03    10.187       -.13579E-04** at limit **
   8  Prefactor     .10000E-03    12.717       -.37669E-05** at limit **
   9  Prefactor     .10000E-03    1.6544        .24682E-06** at limit **
  10  norm          2.1647        2.8140        .95898E-08    .42616E-04
  11  norm          2.1983        2.3511       -.24777E-06   -.35174E-03
  12  Prefactor     .10000E-03    143.76       -.23133E-04** at limit **
  13  Prefactor     .10125E-03    8.0011       -.67840E-06** at limit **
  14  Prefactor     .10000E-03    9.2465        .27352E-05** at limit **
  15  Prefactor     .10000E-03    22.955       -.15814E-05** at limit **
  16  Prefactor     .10000E-03    134.19        .23328E-04** at limit **
  17  norm          .10000E-03    .15817       -.21831E-08** at limit **
  18  norm          7.6382        3.6007        .61701E-08    .20600E-03
  19  Prefactor     .10000E-03    1.5571        .16752E-06** at limit **
  20  Normalizat    1.1281        .16102        .62813E-06    .58815E-03
  21  Prefactor     .71379        .15829        .16328E-05    .40688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.471901
  norm       = 14.9448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.44182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16472
  norm       = 2.19829
  Prefactor  = 0.000100001
  Prefactor  = 0.000101246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.6382
  Prefactor  = 0.0001
  Normalizat = 1.12813
  Prefactor  = 0.713785
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.851     FROM HESSE     STATUS=OK           321 CALLS     2885 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47190        38.282        .40490E-02   -1.5571    
   2  norm          14.945        43.660        .10352E-03   -1.4935    
   3  Prefactor     .10000E-03    18.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4418        16.907        .35844E-03   -1.5468    
   7  Prefactor     .10000E-03    10.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6554        .94409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1647        2.8054        .14030E-03   -1.5414    
  11  norm          2.1983        2.3404        .11475E-03   -1.5411    
  12  Prefactor     .10000E-03    146.68        .42404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10125E-03    11.522        .68057E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    134.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .17773        .56414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.6382        3.4908        .91448E-04   -1.5155    
  19  Prefactor     .10000E-03    1.5610        .91560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1281        .18695        .20489E-03   -.88854    
  21  Prefactor     .71379        .18323        .24702E-03   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53404e-09
Minuit parameter uncertainties:
  1  8.50537
  2  43.7539
  3  3.50471e-05
  4  6.90252e-06
  5  0.000101538
  6  9.8777
  7  2.6499e-06
  8  8.55886e-07
  9  6.26755e-07
  10  2.80561
  11  2.34046
  12  0.000807345
  13  0.00757992
  14  7.17858e-06
  15  1.29308e-05
  16  0.000229328
  17  7.98952e-08
  18  3.49085
  19  3.69265e-06
  20  0.187062
  21  0.183389
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  7.638e+00  3.491e+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.138e-01  1.834e-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.128e+00  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.92
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 6.53e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.11e-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) = 5648.82034524
delta logL = 0.0307902634058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5648.81683099
delta logL = 0.0343045089257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1370       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1790       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70969       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5648.817     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      256 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1370        4.1484        .95447E-04    .67907E-03
   2  alpha         2.1790        .42197        .10173E-01    .47849E-04
   3  Normalizat    1.1344        .18684        .20441E-03   -.93436E-05
   4  Prefactor     .70965        .18258        .24766E-03   -.40717E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.13696
  alpha      = 2.17902
  Normalizat = 1.1344
  Prefactor  = 0.709645
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.817     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1370        4.0981        .19089E-04   -1.5137    
   2  alpha         2.1790        .41676        .40691E-03   -.12875    
   3  Normalizat    1.1344        .18699        .81764E-05   -.88655    
   4  Prefactor     .70965        .18274        .99065E-05   -1.0315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61925e-11
Minuit parameter uncertainties:
  1  4.09828
  2  0.418748
  3  0.187102
  4  0.182899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129969': 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) = 5648.81683092
delta logL = 0.0343045834725

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  8.137e+00  4.098e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.179e+00  4.187e-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.096e-01  1.829e-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.134e+00  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.99
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.18 +/- 0.42
Photon Flux (Free Index): 6.04e-08 +/- 3.35e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.50e-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/129969/cmap_HighResolution_611020801_611280001_4FGL_J2348.0-1630_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.53e-08', energy_flux2='2.64e-05', photon_flux_error='2.98e-08', dlogl='3.43e-02', energy_flux='2.43e-05', photon_flux2='6.04e-08', job_status='DONE', time_completed='2021-09-30 05:48:13.988481', photon_index_error2='0.42', photon_index2='2.18', ts='12.92', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.13', time_epoch_completed='1633006093.99', return_code='0', job_id='129969', GAL2='0.71', EG2='1.13', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.35e-08', ts2='12.99', photon_index='2.29' WHERE bin_id='1434' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:48:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 129969: <4FGL_J2348.0-1630_daily_bin1434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1434 357.016 -16.5161 611020801 611280001 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            756 sec.

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

