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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1376
RA = 357.016, Dec = -16.5161
tmin = 595987201, tmax = 596246401
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='129884', job_status='RUN', time_executed='2021-09-30 05:36:14.969814', time_epoch_executed='1633005374.97' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129884/ft1_4FGL_J2348.0-1630_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129884/ft2_4FGL_J2348.0-1630_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129884/ft1_4FGL_J2348.0-1630_daily_bin1376.fits outfile=/scratch/kocevski/129884/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1376.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=595987201.0 tmax=596246401.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.19
user 2.93
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/129884/ft2_4FGL_J2348.0-1630_daily_bin1376.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/129884/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1376.fits evtable="EVENTS" outfile="/scratch/kocevski/129884/ft1_filtered_4FGL_J2348.0-1630_daily_bin1376.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.52
user 0.36
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129884/ft1_filtered_4FGL_J2348.0-1630_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/129884/ft2_4FGL_J2348.0-1630_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/129884/ltcube_595987201_596246401_4FGL_J2348.0-1630_daily_bin1376.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/129884/ft2_4FGL_J2348.0-1630_daily_bin1376.fits
.....................!
real 11.90
user 11.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129884/ft1_filtered_4FGL_J2348.0-1630_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/129884/ft2_4FGL_J2348.0-1630_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/129884/ltcube_595987201_596246401_4FGL_J2348.0-1630_daily_bin1376.fits outfile=/scratch/kocevski/129884/expmap_595987201_596246401_4FGL_J2348.0-1630_daily_bin1376.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/129884/ltcube_595987201_596246401_4FGL_J2348.0-1630_daily_bin1376.fits
.....................!
real 190.31
user 184.93
sys 4.96

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/129884/ft1_filtered_4FGL_J2348.0-1630_daily_bin1376.fits scfile=/scratch/kocevski/129884/ft2_4FGL_J2348.0-1630_daily_bin1376.fits outfile=/scratch/kocevski/129884/cmap_595987201_596246401_4FGL_J2348.0-1630_daily_bin1376.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.52
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/129884/ft1_filtered_4FGL_J2348.0-1630_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/129884/ft2_4FGL_J2348.0-1630_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129884/Model_4FGL_J2348.0-1630_daily_bin1376.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/129884/ft1_filtered_4FGL_J2348.0-1630_daily_bin1376.fits.....................!
real 38.39
user 36.98
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.391       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      '    12.056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7607       1.0000         .10000E-03   10000.    
    11 'norm      '    14.104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    50.289       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6116       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90523       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80675       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=   4251.649     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1827 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.391        11.978        .43570E-07    .51084E-04
   2  norm          .10000E-03    15.185        .66513E-05** at limit **
   3  Prefactor     .10000E-03    24.776       -.18643E-04** at limit **
   4  Prefactor     .10000E-03    8.3162        .25980E-05** at limit **
   5  norm          12.056        11.880        .22544E-07    .12425E-04
   6  Prefactor     22.903        16.246        .62582E-07   -.25200E-04
   7  Prefactor     .10000E-03    28.881        .13362E-04** at limit **
   8  Prefactor     .10000E-03    10.172       -.38175E-05** at limit **
   9  Prefactor     .10000E-03    3.1666        .78365E-08** at limit **
  10  norm          3.7605        4.7342        .50626E-06    .83326E-04
  11  norm          14.104        4.7914        .85822E-07   -.13838E-03
  12  Prefactor     .10000E-03    53.616        .57954E-04** at limit **
  13  Prefactor     .10000E-03    7.9515       -.33827E-05** at limit **
  14  Prefactor     .10000E-03    8.2764        .24470E-05** at limit **
  15  Prefactor     .10000E-03    72.162       -.68320E-04** at limit **
  16  Prefactor     .10000E-03    26.650       -.51867E-05** at limit **
  17  norm          .10000E-03    .24156       -.76816E-08** at limit **
  18  norm          50.289        9.2818       -.12676E-07   -.18941E-03
  19  Prefactor     5.6115        8.0194       -.12241E-06   -.11109E-03
  20  Normalizat    .90519        .20142       -.50641E-07   -.29298E-04
  21  Prefactor     .80680        .19229       -.51330E-07   -.35929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0556
  Prefactor  = 22.9033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76046
  norm       = 14.1043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 50.289
  Prefactor  = 5.6115
  Normalizat = 0.905192
  Prefactor  = 0.806801
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.649     FROM HESSE     STATUS=OK           311 CALLS     2138 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.391        11.970        .98927E-04   -1.4898    
   2  norm          .10000E-03    15.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.056        11.882        .11537E-03   -1.5013    
   6  Prefactor     22.903        16.247        .83695E-04   -1.4750    
   7  Prefactor     .10000E-03    28.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1694        .11332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7605        4.7311        .15520E-03   -1.5320    
  11  norm          14.104        4.7922        .79917E-04   -1.4957    
  12  Prefactor     .10000E-03    53.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9725        .17961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    72.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .24792        .62252E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          50.289        9.2505        .56551E-04   -1.4288    
  19  Prefactor     5.6115        8.0092        .16959E-03   -1.5234    
  20  Normalizat    .90519        .23237        .25104E-03   -.96278    
  21  Prefactor     .80680        .22156        .25432E-03   -.99478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85538e-11
Minuit parameter uncertainties:
  1  11.9719
  2  1.2521e-06
  3  3.55763e-06
  4  2.37936e-08
  5  11.8842
  6  16.2498
  7  3.17619e-06
  8  2.03735e-06
  9  4.54978e-07
  10  4.73153
  11  4.79229
  12  0.000244169
  13  1.94985e-05
  14  8.72473e-07
  15  9.44278e-05
  16  5.08095e-08
  17  1.84943e-07
  18  9.25075
  19  8.01077
  20  0.232627
  21  0.2218
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  5.029e+01  9.251e+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.068e-01  2.218e-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.052e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 123.32
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 4.30e-07 +/- 7.90e-08
Energy Flux (Fixed Index): 1.60e-04 +/- 2.95e-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) = 4249.02844264
delta logL = 2.62080649338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4248.58370608
delta logL = 3.06554305134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.657       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8524       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73728       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=   4248.584     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      217 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.657        12.341        .12879E-02   -.14962E-02
   2  alpha         1.8524        .17528        .98070E-01    .75758E-05
   3  Normalizat    1.0201        .20326        .43332E-01    .56835E-05
   4  Prefactor     .73730        .19228        .42895E-01    .11535E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.6575
  alpha      = 1.85238
  Normalizat = 1.02015
  Prefactor  = 0.737302
 **********
 **   18 **HESSE 
 **********

 FCN=   4248.584     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.657        11.823        .51517E-04   -1.4149    
   2  alpha         1.8524        .17011        .42853E-03   -.26204    
   3  Normalizat    1.0201        .23416        .23932E-03   -.92358    
   4  Prefactor     .73730        .22101        .26512E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1719e-10
Minuit parameter uncertainties:
  1  11.8233
  2  0.170249
  3  0.234397
  4  0.221274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129884': 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) = 4248.58370601
delta logL = 3.06554312055

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.066e+01  1.182e+01  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  1.852e+00  1.702e-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:  7.373e-01  2.213e-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.020e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 129.25
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 1.85 +/- 0.17
Photon Flux (Free Index): 3.15e-07 +/- 7.67e-08
Energy Flux (Free Index): 2.55e-04 +/- 7.87e-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/129884/cmap_HighResolution_595987201_596246401_4FGL_J2348.0-1630_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.30e-07', energy_flux2='2.55e-04', photon_flux_error='7.90e-08', dlogl='3.07e+00', energy_flux='1.60e-04', photon_flux2='3.15e-07', job_status='DONE', time_completed='2021-09-30 05:45:00.379931', photon_index_error2='0.17', photon_index2='1.85', ts='123.32', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='7.87e-05', EG='0.91', time_epoch_completed='1633005900.38', return_code='0', job_id='129884', GAL2='0.74', EG2='1.02', return_code2='0', energy_flux_error='2.95e-05', photon_flux_error2='7.67e-08', ts2='129.25', photon_index='2.29' WHERE bin_id='1376' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 129884: <4FGL_J2348.0-1630_daily_bin1376> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1376> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 05:35:32 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:35:34 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:35:34 2021
Terminated at Thu Sep 30 05:45:01 2021
Results reported at Thu Sep 30 05:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1376 357.016 -16.5161 595987201 596246401 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 :                                   446.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            569 sec.

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

