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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1028
RA = 357.016, Dec = -16.5161
tmin = 505785601, tmax = 506044801
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='128433', job_status='RUN', time_executed='2021-09-30 05:33:12.356982', time_epoch_executed='1633005192.36' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128433

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128433/ft1_4FGL_J2348.0-1630_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128433/ft1_4FGL_J2348.0-1630_daily_bin1028.fits outfile=/scratch/kocevski/128433/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1028.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=505785601.0 tmax=506044801.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.58
user 3.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.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/128433/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/128433/ft1_filtered_4FGL_J2348.0-1630_daily_bin1028.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128433/ft1_filtered_4FGL_J2348.0-1630_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/128433/ltcube_505785601_506044801_4FGL_J2348.0-1630_daily_bin1028.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/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.fits
.....................!
real 14.57
user 14.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128433/ft1_filtered_4FGL_J2348.0-1630_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/128433/ltcube_505785601_506044801_4FGL_J2348.0-1630_daily_bin1028.fits outfile=/scratch/kocevski/128433/expmap_505785601_506044801_4FGL_J2348.0-1630_daily_bin1028.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/128433/ltcube_505785601_506044801_4FGL_J2348.0-1630_daily_bin1028.fits
.....................!
real 192.71
user 187.19
sys 5.21

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/128433/ft1_filtered_4FGL_J2348.0-1630_daily_bin1028.fits scfile=/scratch/kocevski/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.fits outfile=/scratch/kocevski/128433/cmap_505785601_506044801_4FGL_J2348.0-1630_daily_bin1028.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/128433/ft1_filtered_4FGL_J2348.0-1630_daily_bin1028.fits scfile=/scratch/kocevski/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.fits outfile=/scratch/kocevski/128433/cmap_HighResolution_505785601_506044801_4FGL_J2348.0-1630_daily_bin1028.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=357.016 yref=-16.5161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128433/ft1_filtered_4FGL_J2348.0-1630_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/128433/ft2_4FGL_J2348.0-1630_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128433/Model_4FGL_J2348.0-1630_daily_bin1028.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/128433/ft1_filtered_4FGL_J2348.0-1630_daily_bin1028.fits.....................!
real 48.81
user 47.51
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8996       1.0000         .10000E-03   10000.    
     2 'norm      '    38.661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.945       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.5545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.867       1.0000         .10000E-03   10000.    
    17 'norm      '    .38782       1.0000         .10000E-03   10000.    
    18 'norm      '    8.6655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5410       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99646       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82023       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=   5957.256     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2178 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8981        9.0819       -.11396E-05    .10744E-04
   2  norm          38.661        34.858        .33595E-06   -.10256E-04
   3  Prefactor     .10000E-03    20.186       -.27737E-06** at limit **
   4  Prefactor     .10000E-03    6.7600        .21182E-06** at limit **
   5  norm          .10000E-03    3.7975        .19622E-07** at limit **
   6  Prefactor     14.570        13.258        .37792E-06   -.10713E-04
   7  Prefactor     27.938        41.798        .15815E-05    .21932E-04
   8  Prefactor     .10000E-03    10.582       -.57386E-06** at limit **
   9  Prefactor     .10000E-03    6.2708       -.68819E-06** at limit **
  10  norm          .10000E-03    3.6372       -.19230E-06** at limit **
  11  norm          7.5547        3.7341        .12594E-06   -.81649E-04
  12  Prefactor     21.846        43.000       -.27253E-05   -.12056E-03
  13  Prefactor     .10000E-03    11.267        .24435E-05** at limit **
  14  Prefactor     6.7717        16.854       -.21516E-07   -.22706E-04
  15  Prefactor     .10000E-03    43.648        .11338E-06** at limit **
  16  Prefactor     31.826        76.227        .68299E-05   -.20711E-04
  17  norm          .38772        .45542        .10002E-06    .97919E-03
  18  norm          8.6667        4.6691       -.26354E-07   -.16084E-03
  19  Prefactor     2.5419        6.7495        .68436E-05   -.13111E-03
  20  Normalizat    .99626        .17259       -.20029E-05   -.52519E-04
  21  Prefactor     .82045        .16612        .38750E-06   -.92975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.89814
  norm       = 38.6608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5701
  Prefactor  = 27.9381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.55468
  Prefactor  = 21.8458
  Prefactor  = 0.000100002
  Prefactor  = 6.77168
  Prefactor  = 0.0001
  Prefactor  = 31.8257
  norm       = 0.387715
  norm       = 8.66668
  Prefactor  = 2.54191
  Normalizat = 0.996257
  Prefactor  = 0.820451
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.256     FROM HESSE     STATUS=OK           319 CALLS     2497 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8981        9.0774        .23863E-03   -1.5367    
   2  norm          38.661        34.864        .64461E-04   -1.4464    
   3  Prefactor     .10000E-03    20.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7994        .14690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.570        13.260        .52464E-03   -1.4944    
   7  Prefactor     27.938        41.752        .75785E-04   -1.4650    
   8  Prefactor     .10000E-03    10.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.6736        .14370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5547        3.7308        .98665E-04   -1.5158    
  12  Prefactor     21.846        43.354        .85716E-04   -1.4773    
  13  Prefactor     .10000E-03    11.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7717        16.832        .15419E-03   -1.5187    
  15  Prefactor     .10000E-03    43.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.826        75.792        .70980E-04   -1.4579    
  17  norm          .38772        .41918        .50298E-03   -1.5583    
  18  norm          8.6667        4.5833        .10817E-03   -1.5119    
  19  Prefactor     2.5419        6.7623        .12809E-02   -1.5389    
  20  Normalizat    .99626        .20388        .22976E-03   -.93156    
  21  Prefactor     .82045        .19651        .24681E-03   -.98979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77912e-10
Minuit parameter uncertainties:
  1  9.08166
  2  34.8824
  3  5.61859e-06
  4  1.73366e-06
  5  1.56463e-06
  6  13.2626
  7  41.7955
  8  5.74303e-05
  9  7.90896e-05
  10  2.04462e-05
  11  3.73087
  12  43.417
  13  0.000296819
  14  16.8438
  15  2.0338e-05
  16  76.0222
  17  0.419179
  18  4.58344
  19  6.76428
  20  0.20404
  21  0.196677
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  8.667e+00  4.583e+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:  8.205e-01  1.967e-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:  9.963e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.19
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.46e-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) = 5957.20410366
delta logL = 0.0520064639268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5957.20302014
delta logL = 0.0530899829591

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5957.203     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      255 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9648        77.076        .35532E-02    .11103E-03
   2  alpha         2.4331        3.6948        .24480        .45467E-04
   3  Normalizat    .98639        .10136        .45999E-01    .62365E-05
   4  Prefactor     .82654        .82506E-01    .44060E-01    .12933E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.9648
  alpha      = 2.43314
  Normalizat = 0.986386
  Prefactor  = 0.826543
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.203     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9648        4.7171        .10050E-03   -1.5143    
   2  alpha         2.4331        .45230        .98306E-02   -.26748E-01
   3  Normalizat    .98639        .19922        .23071E-03   -.93488    
   4  Prefactor     .82654        .19435        .24595E-03   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20158e-09
Minuit parameter uncertainties:
  1  4.71732
  2  0.454806
  3  0.199367
  4  0.194509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128433': 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) = 5957.20301484
delta logL = 0.0530952812278

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  7.965e+00  4.717e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.433e+00  4.548e-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:  8.265e-01  1.945e-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:  9.864e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.37
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.43 +/- 0.45
Photon Flux (Free Index): 8.24e-08 +/- 4.61e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.36e-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/128433/cmap_HighResolution_505785601_506044801_4FGL_J2348.0-1630_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='2.59e-05', photon_flux_error='3.91e-08', dlogl='5.31e-02', energy_flux='2.76e-05', photon_flux2='8.24e-08', job_status='DONE', time_completed='2021-09-30 05:44:45.845107', photon_index_error2='0.45', photon_index2='2.43', ts='9.19', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.00', time_epoch_completed='1633005885.85', return_code='0', job_id='128433', GAL2='0.83', EG2='0.99', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.61e-08', ts2='9.37', photon_index='2.29' WHERE bin_id='1028' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 128433: <4FGL_J2348.0-1630_daily_bin1028> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1028> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:30:47 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:30:48 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:30:48 2021
Terminated at Thu Sep 30 05:44:48 2021
Results reported at Thu Sep 30 05:44:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1028 357.016 -16.5161 505785601 506044801 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 :                                   535.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

