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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1641
RA = 357.016, Dec = -16.5161
tmin = 664675201, tmax = 664934401
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='374112', job_status='RUN', time_executed='2022-01-27 00:41:54.435371', time_epoch_executed='1643272914.44' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374112

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374112/ft1_4FGL_J2348.0-1630_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374112/ft2_4FGL_J2348.0-1630_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374112/ft1_4FGL_J2348.0-1630_daily_bin1641.fits outfile=/scratch/kocevski/374112/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1641.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=664675201.0 tmax=664934401.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.69
user 3.47
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374112/ft1_filtered_4FGL_J2348.0-1630_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/374112/ft2_4FGL_J2348.0-1630_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/374112/ltcube_664675201_664934401_4FGL_J2348.0-1630_daily_bin1641.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/374112/ft2_4FGL_J2348.0-1630_daily_bin1641.fits
.....................!
real 12.18
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374112/ft1_filtered_4FGL_J2348.0-1630_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374112/ft2_4FGL_J2348.0-1630_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/374112/ltcube_664675201_664934401_4FGL_J2348.0-1630_daily_bin1641.fits outfile=/scratch/kocevski/374112/expmap_664675201_664934401_4FGL_J2348.0-1630_daily_bin1641.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/374112/ltcube_664675201_664934401_4FGL_J2348.0-1630_daily_bin1641.fits
.....................!
real 190.50
user 185.58
sys 4.56

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/374112/ft1_filtered_4FGL_J2348.0-1630_daily_bin1641.fits scfile=/scratch/kocevski/374112/ft2_4FGL_J2348.0-1630_daily_bin1641.fits outfile=/scratch/kocevski/374112/cmap_664675201_664934401_4FGL_J2348.0-1630_daily_bin1641.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374112/ft1_filtered_4FGL_J2348.0-1630_daily_bin1641.fits scfile=/scratch/kocevski/374112/ft2_4FGL_J2348.0-1630_daily_bin1641.fits outfile=/scratch/kocevski/374112/cmap_HighResolution_664675201_664934401_4FGL_J2348.0-1630_daily_bin1641.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/374112/ft1_filtered_4FGL_J2348.0-1630_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374112/ft2_4FGL_J2348.0-1630_daily_bin1641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374112/Model_4FGL_J2348.0-1630_daily_bin1641.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/374112/ft1_filtered_4FGL_J2348.0-1630_daily_bin1641.fits.....................!
real 36.84
user 35.57
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.929       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1929       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14274E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.599       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5201       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .56357       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=   3963.112     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2188 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2490        .33998E-07** at limit **
   2  norm          .10000E-03    13.572       -.27472E-07** at limit **
   3  Prefactor     .10000E-03    24.159        .34966E-06** at limit **
   4  Prefactor     .10000E-03    16.609       -.10565E-05** at limit **
   5  norm          .10000E-03    6.3592       -.11945E-07** at limit **
   6  Prefactor     .10000E-03    21.893        .26726E-05** at limit **
   7  Prefactor     .10000E-03    71.313       -.12004E-06** at limit **
   8  Prefactor     .10000E-03    25.125       -.23233E-05** at limit **
   9  Prefactor     .10000E-03    10.115       -.68182E-07** at limit **
  10  norm          .10000E-03    12.638        .68022E-06** at limit **
  11  norm          .10000E-03    1.1917       -.14198E-06** at limit **
  12  Prefactor     21.917        45.051       -.19618E-05   -.86847E-04
  13  Prefactor     .10000E-03    8.5618       -.63776E-07** at limit **
  14  Prefactor     2.1921        107.69        .23257E-04   -.11562E-03
  15  Prefactor     .10006E-03    159.22       -.12270E-04** at limit **
  16  Prefactor     .10004E-03    128.01        .94969E-05** at limit **
  17  norm          .10000E-03    .24375       -.14934E-06** at limit **
  18  norm          10.600        5.5734       -.28679E-06   -.50764E-03
  19  Prefactor     .10000E-03    3.2764        .35948E-07** at limit **
  20  Normalizat    1.5200        .21664       -.20180E-06   -.21188E-04
  21  Prefactor     .56364        .19497       -.52421E-06   -.72702E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9171
  Prefactor  = 0.0001
  Prefactor  = 2.19209
  Prefactor  = 0.000100059
  Prefactor  = 0.000100038
  norm       = 0.0001
  norm       = 10.5999
  Prefactor  = 0.0001
  Normalizat = 1.51998
  Prefactor  = 0.56364
 **********
 **   18 **HESSE 
 **********

 FCN=   3963.112     FROM HESSE     STATUS=OK           305 CALLS     2493 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2591        .12673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.3612        .15506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    71.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1981        .67161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.917        45.311        .85534E-04   -1.4771    
  13  Prefactor     .10000E-03    8.5684        .17987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1921        118.75        .13895E-02   -1.5412    
  15  Prefactor     .10006E-03    169.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    133.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .26297        .59424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.600        5.5305        .10258E-03   -1.5057    
  19  Prefactor     .10000E-03    3.2955        .11127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5200        .25423        .20954E-03   -.77218    
  21  Prefactor     .56364        .22717        .29767E-03   -1.0914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72006e-09
Minuit parameter uncertainties:
  1  1.50381e-06
  2  3.16172e-06
  3  6.80468e-05
  4  0.000183461
  5  2.12598e-06
  6  0.000499499
  7  6.32954e-05
  8  0.000451039
  9  1.64527e-05
  10  8.19125e-05
  11  6.13791e-06
  12  45.3822
  13  1.8942e-05
  14  32.3356
  15  0.00631259
  16  0.00451102
  17  4.50202e-06
  18  5.5308
  19  2.27085e-06
  20  0.25444
  21  0.227534
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.060e+01  5.531e+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.636e-01  2.275e-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.520e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.72
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 9.06e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 1.76e-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) = 3962.98186002
delta logL = 0.130474675964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3962.97441894
delta logL = 0.137915751923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.273       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0349       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55385       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=   3962.974     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 89.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.273        5.5658        .10152E-05   -.17960E-02
   2  alpha         2.0350        .39611       -.87255E-05   -.21439E-03
   3  Normalizat    1.5396        .21495        .27805E-06    .90749E-04
   4  Prefactor     .55383        .19532       -.36317E-06    .53005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2733
  alpha      = 2.03497
  Normalizat = 1.53956
  Prefactor  = 0.553826
 **********
 **   18 **HESSE 
 **********

 FCN=   3962.974     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.273        6.2505        .11291E-03   -1.5036    
   2  alpha         2.0350        .48762        .10678E-01   -.18710    
   3  Normalizat    1.5396        .25176        .20857E-03   -.76673    
   4  Prefactor     .55383        .22715        .30024E-03   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95591e-09
Minuit parameter uncertainties:
  1  6.25082
  2  0.490885
  3  0.251967
  4  0.227523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374112': 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) = 3962.97441886
delta logL = 0.13791583248

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.127e+01  6.251e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.035e+00  4.909e-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.538e-01  2.275e-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.540e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.01
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.03 +/- 0.49
Photon Flux (Free Index): 7.07e-08 +/- 5.45e-08
Energy Flux (Free Index): 3.94e-05 +/- 2.63e-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/374112/cmap_HighResolution_664675201_664934401_4FGL_J2348.0-1630_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.06e-08', energy_flux2='3.94e-05', photon_flux_error='4.72e-08', dlogl='1.38e-01', energy_flux='3.38e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2022-01-27 00:49:29.797356', photon_index_error2='0.49', photon_index2='2.03', ts='13.72', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='1.52', time_epoch_completed='1643273369.8', return_code='0', job_id='374112', GAL2='0.55', EG2='1.54', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='5.45e-08', ts2='14.01', photon_index='2.29' WHERE bin_id='1641' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:49:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 374112: <4FGL_J2348.0-1630_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:49 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:50 2022
Terminated at Thu Jan 27 00:49:30 2022
Results reported at Thu Jan 27 00:49:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1641 357.016 -16.5161 664675201 664934401 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 :                                   457.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   520 sec.
    Turnaround time :                            521 sec.

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

