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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1164
RA = 357.016, Dec = -16.5161
tmin = 541036801, tmax = 541296001
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='128621', job_status='RUN', time_executed='2021-09-30 05:33:36.650528', time_epoch_executed='1633005216.65' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128621/ft1_4FGL_J2348.0-1630_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128621/ft1_4FGL_J2348.0-1630_daily_bin1164.fits outfile=/scratch/kocevski/128621/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1164.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=541036801.0 tmax=541296001.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.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/128621/ltcube_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.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/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits
.....................!
real 12.08
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/128621/ltcube_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.fits outfile=/scratch/kocevski/128621/expmap_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.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/128621/ltcube_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.fits
.....................!
real 190.95
user 185.47
sys 5.13

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/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits scfile=/scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits outfile=/scratch/kocevski/128621/cmap_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits scfile=/scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits outfile=/scratch/kocevski/128621/cmap_HighResolution_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.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/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128621/Model_4FGL_J2348.0-1630_daily_bin1164.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/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits.....................!
real 39.64
user 38.28
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits', '/scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits', expMap='/scratch/kocevski/128621/expmap_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.fits', expCube='/scratch/kocevski/128621/ltcube_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/128621/Model_4FGL_J2348.0-1630_daily_bin1164.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/128621/ft1_filtered_4FGL_J2348.0-1630_daily_bin1164.fits
Spacecraft file(s): /scratch/kocevski/128621/ft2_4FGL_J2348.0-1630_daily_bin1164.fits
Exposure map: /scratch/kocevski/128621/expmap_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.fits
Exposure cube: /scratch/kocevski/128621/ltcube_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/128621/Model_4FGL_J2348.0-1630_daily_bin1164.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4336.1524254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.231       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.158       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.0734       1.0000         .10000E-03   10000.    
    11 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.235       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .71492       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.5166       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=   4336.103     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     2828 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.860        .18142E-02** at limit **
   2  norm          10.196        66.902        .12527E-03    .72602E-06
   3  Prefactor     17.120        38.728        .96691E-04   -.30923E-04
   4  Prefactor     .10000E-03    10.301        .18142E-02** at limit **
   5  norm          .10000E-03    6.4068        .16272E-02** at limit **
   6  Prefactor     9.1631        10.792        .13241E-03    .41213E-05
   7  Prefactor     39.471        48.971        .63775E-04   -.25670E-04
   8  Prefactor     .10000E-03    20.741        .18142E-02** at limit **
   9  Prefactor     .10000E-03    6.0773        .15820E-02** at limit **
  10  norm          9.0724        8.6328        .13306E-03   -.35886E-04
  11  norm          .10000E-03    4.3942        .26365E-03** at limit **
  12  Prefactor     7.0791        1050.0        .15148E-03    .25667E-04
  13  Prefactor     28.763        64.300        .74680E-04    .11886E-03
  14  Prefactor     .10000E-03    301.74        .78911E-02** at limit **
  15  Prefactor     .10000E-03    27.271        .18142E-02** at limit **
  16  Prefactor     .10000E-03    46.345        .18142E-02** at limit **
  17  norm          .10000E-03    .36035        .69704E-03** at limit **
  18  norm          10.230        6.0459        .58752E-03    .50267E-03
  19  Prefactor     .10000E-03    7.8460        .35567E-03** at limit **
  20  Normalizat    .71481        .27956        .31690E-03    .12101E-03
  21  Prefactor     1.5167        .27460        .22684E-03    .39609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.1964
  Prefactor  = 17.1203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.16309
  Prefactor  = 39.471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.0724
  norm       = 0.0001
  Prefactor  = 7.07908
  Prefactor  = 28.7634
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.2305
  Prefactor  = 0.0001
  Normalizat = 0.714815
  Prefactor  = 1.51666
 **********
 **   18 **HESSE 
 **********

 FCN=   4336.103     FROM HESSE     STATUS=OK           295 CALLS     3123 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.196        66.867        .50108E-05   -1.5069    
   3  Prefactor     17.120        38.712        .38677E-05   -1.4880    
   4  Prefactor     .10000E-03    10.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.4070        .32544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1631        10.792        .52963E-05   -1.5102    
   7  Prefactor     39.471        48.970        .12755E-04   -1.4451    
   8  Prefactor     .10000E-03    20.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0778        .31640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.0724        8.6326        .53223E-05   -1.5105    
  11  norm          .10000E-03    4.3943        .52731E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0791        1034.7        .60592E-05   -1.5176    
  13  Prefactor     28.763        63.851        .14936E-04   -1.4635    
  14  Prefactor     .10000E-03    310.81        .31564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .36043        .13941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.230        6.0448        .23501E-04   -1.5068    
  19  Prefactor     .10000E-03    7.8463        .71134E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .71481        .27961        .12676E-04   -1.0331    
  21  Prefactor     1.5167        .27482        .45368E-04   -.77074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89779e-10
Minuit parameter uncertainties:
  1  3.14434e-05
  2  52.3075
  3  38.7691
  4  7.63397e-06
  5  2.72591e-06
  6  10.7942
  7  49.0202
  8  4.72027e-05
  9  1.94093e-05
  10  8.6338
  11  2.38727e-05
  12  174.334
  13  64.0029
  14  0.00120345
  15  3.46072e-06
  16  1.89939e-06
  17  1.99777e-06
  18  6.0452
  19  3.20295e-05
  20  0.280174
  21  0.275085
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.517e+00  2.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  7.148e-01  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.12
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 8.74e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.93e-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) = 4334.14628552
delta logL = 1.95719042161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4333.01480258
delta logL = 3.08867335626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4356       1.0000         .10000E-03   10000.    
     2 'alpha     '    .64392       1.0000          .0000       5.0000    
     3 'Normalizat'    .78064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5011       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=   4333.015     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      221 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4379        1.3544        .90073E-02   -.11752E-03
   2  alpha         .64427        .33183        .21374       -.31077E-04
   3  Normalizat    .78034        .22435        .68779E-01   -.74562E-06
   4  Prefactor     1.5011        .22553        .51605E-01   -.38709E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43791
  alpha      = 0.644266
  Normalizat = 0.78034
  Prefactor  = 1.50115
 **********
 **   18 **HESSE 
 **********

 FCN=   4333.015     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4379        2.2852        .53835E-04   -1.5468    
   2  alpha         .64427        .54020        .95035E-03   -.83649    
   3  Normalizat    .78034        .27015        .30434E-03   -1.0080    
   4  Prefactor     1.5011        .27207        .22814E-03   -.77508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22921e-12
Minuit parameter uncertainties:
  1  2.28533
  2  0.550028
  3  0.270616
  4  0.27233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128621': 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) = 4333.01480045
delta logL = 3.0886754862

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.438e+00  2.285e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  6.443e-01  5.500e-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:  1.501e+00  2.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  7.803e-01  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.24
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 0.64 +/- 0.55
Photon Flux (Free Index): 1.04e-08 +/- 8.10e-09
Energy Flux (Free Index): 1.91e-04 +/- 1.87e-04

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/128621/cmap_HighResolution_541036801_541296001_4FGL_J2348.0-1630_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.74e-08', energy_flux2='1.91e-04', photon_flux_error='5.16e-08', dlogl='3.09e+00', energy_flux='3.26e-05', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-09-30 05:44:29.755592', photon_index_error2='0.55', photon_index2='0.64', ts='10.12', fit_tolerance='1e-08', GAL='1.52', photon_index_error='0.00', energy_flux_error2='1.87e-04', EG='0.71', time_epoch_completed='1633005869.76', return_code='0', job_id='128621', GAL2='1.50', EG2='0.78', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='8.10e-09', ts2='16.24', photon_index='2.29' WHERE bin_id='1164' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:44:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 128621: <4FGL_J2348.0-1630_daily_bin1164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1164 357.016 -16.5161 541036801 541296001 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 :                                   496.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            808 sec.

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

