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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1643
RA = 357.016, Dec = -16.5161
tmin = 665193601, tmax = 665452801
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='497827', job_status='RUN', time_executed='2022-02-02 00:41:53.743005', time_epoch_executed='1643791313.74' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497827/ft1_4FGL_J2348.0-1630_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497827/ft1_4FGL_J2348.0-1630_daily_bin1643.fits outfile=/scratch/kocevski/497827/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1643.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=665193601.0 tmax=665452801.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.62
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.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/497827/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1643.fits evtable="EVENTS" outfile="/scratch/kocevski/497827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1643.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/497827/ltcube_665193601_665452801_4FGL_J2348.0-1630_daily_bin1643.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/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.fits
.....................!
real 12.83
user 12.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/497827/ltcube_665193601_665452801_4FGL_J2348.0-1630_daily_bin1643.fits outfile=/scratch/kocevski/497827/expmap_665193601_665452801_4FGL_J2348.0-1630_daily_bin1643.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/497827/ltcube_665193601_665452801_4FGL_J2348.0-1630_daily_bin1643.fits
.....................!
real 189.92
user 185.17
sys 4.28

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/497827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1643.fits scfile=/scratch/kocevski/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.fits outfile=/scratch/kocevski/497827/cmap_665193601_665452801_4FGL_J2348.0-1630_daily_bin1643.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1643.fits scfile=/scratch/kocevski/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.fits outfile=/scratch/kocevski/497827/cmap_HighResolution_665193601_665452801_4FGL_J2348.0-1630_daily_bin1643.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/497827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/497827/ft2_4FGL_J2348.0-1630_daily_bin1643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/497827/Model_4FGL_J2348.0-1630_daily_bin1643.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/497827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1643.fits....................!
real 39.18
user 37.96
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0434       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13107E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.463       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7999       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2408       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .59132       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=   4185.933     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2150 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3143       -.54218E-07** at limit **
   2  norm          .10000E-03    13.175       -.16375E-05** at limit **
   3  Prefactor     .10000E-03    13.196       -.70511E-06** at limit **
   4  Prefactor     .10000E-03    7.4156       -.22801E-06** at limit **
   5  norm          2.6588        16.019       -.16447E-05   -.12163E-03
   6  Prefactor     .10000E-03    9.3847        .67257E-06** at limit **
   7  Prefactor     .10000E-03    24.336       -.35030E-04** at limit **
   8  Prefactor     .10000E-03    34.975        .11600E-04** at limit **
   9  Prefactor     8.0415        7.9074       -.42527E-06    .30939E-03
  10  norm          .10000E-03    2.4954        .32435E-07** at limit **
  11  norm          1.1861        3.0432        .44240E-05    .71042E-03
  12  Prefactor     .10000E-03    21.549        .26776E-04** at limit **
  13  Prefactor     .10000E-03    4.7520       -.55578E-07** at limit **
  14  Prefactor     34.457        44.116       -.37263E-04   -.18308E-03
  15  Prefactor     .10000E-03    225.21       -.13241E-03** at limit **
  16  Prefactor     .10000E-03    183.62        .10056E-03** at limit **
  17  norm          .10000E-03    .20872        .42564E-07** at limit **
  18  norm          12.464        5.2948       -.75600E-06   -.12645E-03
  19  Prefactor     9.8018        8.4697       -.10135E-05    .33114E-04
  20  Normalizat    1.2406        .20187        .55412E-05   -.20351E-03
  21  Prefactor     .59134        .18336       -.17187E-05    .24502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.65882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.04153
  norm       = 0.0001
  norm       = 1.18606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4575
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 12.4644
  Prefactor  = 9.8018
  Normalizat = 1.2406
  Prefactor  = 0.591342
 **********
 **   18 **HESSE 
 **********

 FCN=   4185.933     FROM HESSE     STATUS=OK           309 CALLS     2459 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3226        .11502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4168        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6588        16.013        .24973E-03   -1.5382    
   6  Prefactor     .10000E-03    9.4128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0415        7.9034        .14137E-03   -1.5141    
  10  norm          .10000E-03    2.4969        .99805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1861        2.9332        .16322E-03   -1.5490    
  12  Prefactor     .10000E-03    21.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7539        .13775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.457        43.858        .68210E-04   -1.4533    
  15  Prefactor     .10000E-03    226.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    184.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .22875        .56658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.464        5.2128        .91759E-04   -1.5002    
  19  Prefactor     9.8018        8.4800        .12801E-03   -1.5082    
  20  Normalizat    1.2406        .23306        .21085E-03   -.85357    
  21  Prefactor     .59134        .21071        .27278E-03   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96837e-09
Minuit parameter uncertainties:
  1  3.08315e-06
  2  7.06017e-06
  3  3.33604e-06
  4  5.89364e-06
  5  13.0551
  6  2.38592e-05
  7  2.86874e-06
  8  0.000191193
  9  7.90438
  10  1.15542e-06
  11  2.93355
  12  2.29926e-05
  13  5.34163e-06
  14  43.8986
  15  0.00165958
  16  0.000930816
  17  2.07972e-06
  18  5.21297
  19  8.48107
  20  0.233256
  21  0.210988
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  5.913e-01  2.110e-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.241e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.02
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.45e-08
Energy Flux (Fixed Index): 3.97e-05 +/- 1.66e-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) = 4185.926096
delta logL = 0.00661446699269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4185.92415581
delta logL = 0.00855466057328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.795       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2388       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58911       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=   4185.924     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      232 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.795        5.9462        .93694E-04    .10338E-03
   2  alpha         2.2388        .39355        .84133E-02   -.42187E-05
   3  Normalizat    1.2446        .22745        .21059E-03    .14565E-04
   4  Prefactor     .58911        .20866        .27328E-03    .35777E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7954
  alpha      = 2.23876
  Normalizat = 1.24458
  Prefactor  = 0.589108
 **********
 **   18 **HESSE 
 **********

 FCN=   4185.924     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.795        5.8859        .37478E-05   -1.4992    
   2  alpha         2.2388        .38945        .33653E-03   -.10469    
   3  Normalizat    1.2446        .22759        .42117E-04   -.85236    
   4  Prefactor     .58911        .20880        .10931E-04   -1.0805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12698e-12
Minuit parameter uncertainties:
  1  5.88619
  2  0.391058
  3  0.227775
  4  0.209076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497827': 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) = 4185.92415581
delta logL = 0.00855466076428

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  5.891e-01  2.091e-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.245e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.02
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.24 +/- 0.39
Photon Flux (Free Index): 1.02e-07 +/- 5.34e-08
Energy Flux (Free Index): 4.09e-05 +/- 1.99e-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/497827/cmap_HighResolution_665193601_665452801_4FGL_J2348.0-1630_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='4.09e-05', photon_flux_error='4.45e-08', dlogl='8.55e-03', energy_flux='3.97e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2022-02-02 00:49:32.256007', photon_index_error2='0.39', photon_index2='2.24', ts='16.02', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.24', time_epoch_completed='1643791772.26', return_code='0', job_id='497827', GAL2='0.59', EG2='1.24', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.34e-08', ts2='16.02', photon_index='2.29' WHERE bin_id='1643' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:49:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 497827: <4FGL_J2348.0-1630_daily_bin1643> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1643> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Feb  2 00:40:20 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:40:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:40:22 2022
Terminated at Wed Feb  2 00:49:33 2022
Results reported at Wed Feb  2 00:49:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1643 357.016 -16.5161 665193601 665452801 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 :                                   461.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            553 sec.

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

