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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin485
RA = 357.016, Dec = -16.5161
tmin = 365040001, tmax = 365299201
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='126845', job_status='RUN', time_executed='2021-09-30 05:25:32.188221', time_epoch_executed='1633004732.19' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126845/ft1_4FGL_J2348.0-1630_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126845/ft2_4FGL_J2348.0-1630_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126845/ft1_4FGL_J2348.0-1630_daily_bin485.fits outfile=/scratch/kocevski/126845/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin485.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=365040001.0 tmax=365299201.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.65
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126845/ft1_filtered_4FGL_J2348.0-1630_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/126845/ft2_4FGL_J2348.0-1630_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/126845/ltcube_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.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/126845/ft2_4FGL_J2348.0-1630_daily_bin485.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126845/ft1_filtered_4FGL_J2348.0-1630_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/126845/ft2_4FGL_J2348.0-1630_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/126845/ltcube_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.fits outfile=/scratch/kocevski/126845/expmap_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.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/126845/ltcube_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.fits
.....................!
real 192.57
user 187.55
sys 4.65

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/126845/ft1_filtered_4FGL_J2348.0-1630_daily_bin485.fits scfile=/scratch/kocevski/126845/ft2_4FGL_J2348.0-1630_daily_bin485.fits outfile=/scratch/kocevski/126845/cmap_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.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/126845/ft1_filtered_4FGL_J2348.0-1630_daily_bin485.fits scfile=/scratch/kocevski/126845/ft2_4FGL_J2348.0-1630_daily_bin485.fits outfile=/scratch/kocevski/126845/cmap_HighResolution_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.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/126845/ft1_filtered_4FGL_J2348.0-1630_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/126845/ft2_4FGL_J2348.0-1630_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126845/Model_4FGL_J2348.0-1630_daily_bin485.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/126845/ft1_filtered_4FGL_J2348.0-1630_daily_bin485.fits.....................!
real 52.82
user 51.46
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.263       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .69226E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.634       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.318       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2851       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3793       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32673E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77245       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0021       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=   6845.034     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2309 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.253        10.365       -.12802E-06   -.26036E-04
   2  norm          .10000E-03    9.6702        .10818E-06** at limit **
   3  Prefactor     .10000E-03    22.378        .22457E-06** at limit **
   4  Prefactor     .10000E-03    6.3495        .86698E-07** at limit **
   5  norm          6.8196        6.5430        .29259E-07    .42867E-04
   6  Prefactor     .10021E-03    38.564       -.86783E-07** at limit **
   7  Prefactor     21.870        31.617       -.16449E-05   -.12595E-03
   8  Prefactor     .10000E-03    6.5021        .74630E-07** at limit **
   9  Prefactor     .10000E-03    3.2449        .36738E-06** at limit **
  10  norm          .10000E-03    3.8129       -.99058E-06** at limit **
  11  norm          .10000E-03    1.1892        .18066E-06** at limit **
  12  Prefactor     23.999        33.610       -.16123E-05   -.18020E-03
  13  Prefactor     .10000E-03    17.358        .35879E-06** at limit **
  14  Prefactor     12.637        23.491       -.33295E-07   -.10682E-04
  15  Prefactor     22.425        52.965        .66243E-06    .16235E-04
  16  Prefactor     .10000E-03    71.113        .16685E-06** at limit **
  17  norm          3.2851        .76608        .37478E-08   -.52745E-03
  18  norm          5.3790        4.2730       -.78561E-07   -.18289E-03
  19  Prefactor     .61250E-01    31.868       -.49513E-05    .58183E-03
  20  Normalizat    .77232        .16750        .40985E-05   -.14253E-03
  21  Prefactor     1.0021        .16078       -.42330E-05   -.74570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2531
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.81958
  Prefactor  = 0.000100208
  Prefactor  = 21.8696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 23.9994
  Prefactor  = 0.0001
  Prefactor  = 12.6372
  Prefactor  = 22.4255
  Prefactor  = 0.0001
  norm       = 3.28509
  norm       = 5.37904
  Prefactor  = 0.0612496
  Normalizat = 0.772316
  Prefactor  = 1.00212
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.034     FROM HESSE     STATUS=OK           325 CALLS     2634 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.253        10.348        .11439E-03   -1.5008    
   2  norm          .10000E-03    9.6810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8196        6.5470        .15364E-03   -1.5186    
   6  Prefactor     .10021E-03    51.305        .41835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.870        31.713        .85720E-04   -1.4772    
   8  Prefactor     .10000E-03    6.5082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2922        .14620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.139        .28121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2268        .17612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.999        33.633        .81789E-04   -1.4728    
  13  Prefactor     .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.637        23.498        .11270E-03   -1.4997    
  15  Prefactor     22.425        53.024        .84786E-04   -1.4761    
  16  Prefactor     .10000E-03    71.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2851        .77896        .30144E-04   -1.5345    
  18  norm          5.3790        4.3417        .13186E-03   -1.5244    
  19  Prefactor     .61250E-01    4.4840        .48343E-01   -1.5659    
  20  Normalizat    .77232        .17262        .24348E-03   -1.0110    
  21  Prefactor     1.0021        .16913        .21967E-03   -.92659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28796e-09
Minuit parameter uncertainties:
  1  10.3494
  2  3.02483e-05
  3  4.2966e-05
  4  2.24313e-05
  5  6.54772
  6  0.00654219
  7  31.7377
  8  1.03099e-05
  9  7.2717e-06
  10  0.000443681
  11  1.40924e-05
  12  33.6593
  13  4.02074e-05
  14  23.5147
  15  53.1354
  16  0.000308367
  17  0.778967
  18  4.34197
  19  1.04735
  20  0.172741
  21  0.16922
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  5.379e+00  4.342e+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:  1.002e+00  1.692e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  7.723e-01  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.38e-05

TS (Fixed Index): 3.31
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126845/likelihoodResults_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.txt

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) = 6845.02919143
delta logL = 0.00505209149742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6845.02828217
delta logL = 0.00596135600517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5177       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2118       1.0000          .0000       5.0000    
     3 'Normalizat'    .77594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99988       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=   6845.028     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      231 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5174        4.1581        .13554E-03    .11680E-02
   2  alpha         2.2119        .70652        .14797E-01    .11298E-03
   3  Normalizat    .77594        .16907        .24300E-03   -.19869E-03
   4  Prefactor     .99988        .16979        .21991E-03   -.26443E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.51736
  alpha      = 2.21194
  Normalizat = 0.775936
  Prefactor  = 0.999879
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.028     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5174        4.1065        .54217E-05   -1.5238    
   2  alpha         2.2119        .69714        .59189E-03   -.11548    
   3  Normalizat    .77594        .16908        .97201E-05   -1.0097    
   4  Prefactor     .99988        .16986        .43981E-04   -.92734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2339e-09
Minuit parameter uncertainties:
  1  4.10676
  2  0.706633
  3  0.169192
  4  0.169954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126845': 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) = 6845.02828214
delta logL = 0.00596138249421

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  5.517e+00  4.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.212e+00  7.066e-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:  9.999e-01  1.700e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  7.759e-01  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.21 +/- 0.71
Photon Flux (Free Index): 4.27e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/126845/cmap_HighResolution_365040001_365299201_4FGL_J2348.0-1630_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-05', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.77e-05', photon_flux_error='3.71e-08', dlogl='5.96e-03', energy_flux='1.71e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-09-30 05:36:11.421755', photon_index_error2='0.71', photon_index2='2.21', ts='3.31', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.41e-05', EG='0.77', time_epoch_completed='1633005371.42', return_code='0', job_id='126845', GAL2='1.00', EG2='0.78', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.31e-08', ts2='3.43', photon_index='2.29' WHERE bin_id='485' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 126845: <4FGL_J2348.0-1630_daily_bin485> in cluster <slac> Done

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

Your job looked like:

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

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

