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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1590
RA = 357.016, Dec = -16.5161
tmin = 651456001, tmax = 651715201
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='131380', job_status='RUN', time_executed='2021-09-30 05:41:10.205314', time_epoch_executed='1633005670.21' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131380/ft1_4FGL_J2348.0-1630_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131380/ft2_4FGL_J2348.0-1630_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131380/ft1_4FGL_J2348.0-1630_daily_bin1590.fits outfile=/scratch/kocevski/131380/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1590.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=651456001.0 tmax=651715201.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.49
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131380/ft1_filtered_4FGL_J2348.0-1630_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/131380/ft2_4FGL_J2348.0-1630_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/131380/ltcube_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.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/131380/ft2_4FGL_J2348.0-1630_daily_bin1590.fits
.....................!
real 12.09
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131380/ft1_filtered_4FGL_J2348.0-1630_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/131380/ft2_4FGL_J2348.0-1630_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/131380/ltcube_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.fits outfile=/scratch/kocevski/131380/expmap_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.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/131380/ltcube_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.fits
.....................!
real 193.35
user 187.82
sys 5.20

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/131380/ft1_filtered_4FGL_J2348.0-1630_daily_bin1590.fits scfile=/scratch/kocevski/131380/ft2_4FGL_J2348.0-1630_daily_bin1590.fits outfile=/scratch/kocevski/131380/cmap_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/131380/ft1_filtered_4FGL_J2348.0-1630_daily_bin1590.fits scfile=/scratch/kocevski/131380/ft2_4FGL_J2348.0-1630_daily_bin1590.fits outfile=/scratch/kocevski/131380/cmap_HighResolution_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/131380/ft1_filtered_4FGL_J2348.0-1630_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/131380/ft2_4FGL_J2348.0-1630_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/131380/Model_4FGL_J2348.0-1630_daily_bin1590.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/131380/ft1_filtered_4FGL_J2348.0-1630_daily_bin1590.fits.....................!
real 40.28
user 38.96
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.308       1.0000         .10000E-03   10000.    
     2 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.457       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.842       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    79.323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .79385       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0108       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83997       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=   4365.831     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2196 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.309        13.695        .28137E-07   -.16642E-03
   2  norm          .10000E-03    49.013        .66952E-05** at limit **
   3  Prefactor     .10000E-03    26.087        .21006E-04** at limit **
   4  Prefactor     .10000E-03    8.9565       -.55487E-06** at limit **
   5  norm          18.433        16.873        .55391E-08   -.85526E-05
   6  Prefactor     .10000E-03    9.8183       -.23999E-05** at limit **
   7  Prefactor     .10000E-03    31.249       -.18766E-04** at limit **
   8  Prefactor     13.656        23.817       -.10003E-05   -.10575E-04
   9  Prefactor     .10000E-03    4.6000       -.57856E-07** at limit **
  10  norm          .10000E-03    4.4872       -.88851E-07** at limit **
  11  norm          11.458        4.7803       -.15279E-06   -.11551E-02
  12  Prefactor     24.848        53.096        .42118E-05   -.62016E-05
  13  Prefactor     .10000E-03    13.994        .10386E-05** at limit **
  14  Prefactor     .10000E-03    21.132       -.77955E-05** at limit **
  15  Prefactor     79.341        88.607        .14686E-04    .23034E-05
  16  Prefactor     .10000E-03    306.46       -.81578E-05** at limit **
  17  norm          .79388        .47084        .86252E-09   -.14108E-03
  18  norm          .10000E-03    1.6778        .67217E-08** at limit **
  19  Prefactor     .10000E-03    9.4045        .24798E-05** at limit **
  20  Normalizat    1.0108        .19994       -.43633E-06   -.42911E-04
  21  Prefactor     .84000        .19152       -.13303E-05   -.12241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.4333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.656
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4585
  Prefactor  = 24.8479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.3408
  Prefactor  = 0.0001
  norm       = 0.793881
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01075
  Prefactor  = 0.840005
 **********
 **   18 **HESSE 
 **********

 FCN=   4365.831     FROM HESSE     STATUS=OK           311 CALLS     2507 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.309        13.694        .93605E-04   -1.4852    
   2  norm          .10000E-03    49.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.433        16.874        .93290E-04   -1.4849    
   6  Prefactor     .10000E-03    9.9344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.656        23.823        .10839E-03   -1.4969    
   9  Prefactor     .10000E-03    4.6113        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.5120        .13668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.458        4.7972        .44731E-03   -1.5031    
  12  Prefactor     24.848        53.062        .80369E-04   -1.4711    
  13  Prefactor     .10000E-03    14.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     79.341        88.627        .45092E-04   -1.3924    
  16  Prefactor     .10000E-03    308.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .79388        .46940        .33778E-04   -1.5530    
  18  norm          .10000E-03    1.6862        .83521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0108        .23466        .23713E-03   -.92671    
  21  Prefactor     .84000        .22447        .24596E-03   -.98270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09064e-10
Minuit parameter uncertainties:
  1  13.6965
  2  4.04275e-05
  3  2.4393e-06
  4  4.14327e-06
  5  16.8781
  6  1.92505e-05
  7  3.3879e-05
  8  23.8395
  9  1.38053e-05
  10  2.38248e-05
  11  4.79734
  12  53.1627
  13  2.74802e-05
  14  2.61595e-05
  15  88.7748
  16  0.000471435
  17  0.469403
  18  9.48455e-07
  19  2.07279e-05
  20  0.234904
  21  0.224713
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.000e-04  9.485e-07  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.290e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.400e-01  2.247e-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.011e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/131380/likelihoodResults_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.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): 102
logL (Free Index) = 4365.83352594
delta logL = -0.00279893406605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4365.83072692
delta logL = 8.64729372552e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2743       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84003       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=   4365.831     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      236 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    58.361        .84367E-02** at limit **
   2  alpha         1.6826        3.0687        .50000       -.48658E-07
   3  Normalizat    1.0108        .26822E-01    .23713E-03    .24422E-03
   4  Prefactor     .84000        .25728E-01    .24596E-03    .24808E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68261
  Normalizat = 1.01075
  Prefactor  = 0.840005
 **********
 **   18 **HESSE 
 **********

 FCN=   4365.831     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    366.76        .93323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6826        4.1347        .50000       -.33308    
   3  Normalizat    1.0108        .92635E-01    .47427E-04   -.92671    
   4  Prefactor     .84000        .88859E-01    .49193E-04   -.98270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.05122e-10
Minuit parameter uncertainties:
  1  5.27129e-05
  2  1510.12
  3  0.0926498
  4  0.0888745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131380': 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): 102
logL (Free Index) = 4365.83072115
delta logL = 5.86087026022e-06

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.000e-04  5.271e-05  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  1.683e+00  1.510e+03  0.000e+00  5.000e+00 ( 1.000e+00)
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.400e-01  8.887e-02  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.011e+00  9.265e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.016 -16.516

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/131380/cmap_HighResolution_651456001_651715201_4FGL_J2348.0-1630_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-30 05:49:45.639690', job_id='131380', GAL2='0.84', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1633006185.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1590' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:49:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 131380: <4FGL_J2348.0-1630_daily_bin1590> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1590> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 05:40:14 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:40:16 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:16 2021
Terminated at Thu Sep 30 05:49:46 2021
Results reported at Thu Sep 30 05:49:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1590 357.016 -16.5161 651456001 651715201 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 :                                   507.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            572 sec.

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

