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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1439
RA = 357.016, Dec = -16.5161
tmin = 612316801, tmax = 612576001
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='129976', job_status='RUN', time_executed='2021-09-30 05:37:09.793524', time_epoch_executed='1633005429.79' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129976/ft1_4FGL_J2348.0-1630_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129976/ft2_4FGL_J2348.0-1630_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129976/ft1_4FGL_J2348.0-1630_daily_bin1439.fits outfile=/scratch/kocevski/129976/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1439.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=612316801.0 tmax=612576001.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.31
user 3.09
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129976/ft1_filtered_4FGL_J2348.0-1630_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/129976/ft2_4FGL_J2348.0-1630_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/129976/ltcube_612316801_612576001_4FGL_J2348.0-1630_daily_bin1439.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/129976/ft2_4FGL_J2348.0-1630_daily_bin1439.fits
.....................!
real 12.59
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129976/ft1_filtered_4FGL_J2348.0-1630_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/129976/ft2_4FGL_J2348.0-1630_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/129976/ltcube_612316801_612576001_4FGL_J2348.0-1630_daily_bin1439.fits outfile=/scratch/kocevski/129976/expmap_612316801_612576001_4FGL_J2348.0-1630_daily_bin1439.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/129976/ltcube_612316801_612576001_4FGL_J2348.0-1630_daily_bin1439.fits
.....................!
real 190.13
user 184.49
sys 5.32

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/129976/ft1_filtered_4FGL_J2348.0-1630_daily_bin1439.fits scfile=/scratch/kocevski/129976/ft2_4FGL_J2348.0-1630_daily_bin1439.fits outfile=/scratch/kocevski/129976/cmap_612316801_612576001_4FGL_J2348.0-1630_daily_bin1439.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/129976/ft1_filtered_4FGL_J2348.0-1630_daily_bin1439.fits scfile=/scratch/kocevski/129976/ft2_4FGL_J2348.0-1630_daily_bin1439.fits outfile=/scratch/kocevski/129976/cmap_HighResolution_612316801_612576001_4FGL_J2348.0-1630_daily_bin1439.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/129976/ft1_filtered_4FGL_J2348.0-1630_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/129976/ft2_4FGL_J2348.0-1630_daily_bin1439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129976/Model_4FGL_J2348.0-1630_daily_bin1439.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/129976/ft1_filtered_4FGL_J2348.0-1630_daily_bin1439.fits.....................!
real 67.42
user 66.02
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7009       1.0000         .10000E-03   10000.    
     2 'norm      '    57.712       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.4841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9900       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.196       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3256       1.0000         .10000E-03   10000.    
    11 'norm      '    9.5950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62561E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.337       1.0000         .10000E-03   10000.    
    17 'norm      '    .16565E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.632       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82894       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93842       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=   8786.170     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2237 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7014        5.7207        .39593E-05   -.42335E-04
   2  norm          57.697        31.035        .13093E-05    .28271E-03
   3  Prefactor     6.1498        18.954       -.29693E-06    .12414E-04
   4  Prefactor     .10000E-03    4.5858       -.86687E-08** at limit **
   5  norm          8.4839        7.4180        .91176E-08    .26236E-05
   6  Prefactor     5.9898        6.6609        .95962E-07   -.17568E-04
   7  Prefactor     .10000E-03    15.709        .16185E-06** at limit **
   8  Prefactor     13.195        12.616        .19280E-06   -.74091E-04
   9  Prefactor     .10000E-03    3.2672       -.94940E-07** at limit **
  10  norm          1.3247        4.4397        .49998E-05   -.11018E-03
  11  norm          9.5953        2.8232        .12511E-06   -.32175E-03
  12  Prefactor     .10004E-03    150.32        .36113E-05** at limit **
  13  Prefactor     14.850        13.395        .41442E-05   -.24719E-03
  14  Prefactor     .10000E-03    34.449        .17206E-05** at limit **
  15  Prefactor     .10000E-03    31.285       -.26468E-05** at limit **
  16  Prefactor     52.310        55.324        .32001E-05    .17118E-03
  17  norm          .10000E-03    .17083       -.28092E-06** at limit **
  18  norm          11.636        3.9136        .53551E-06    .20518E-02
  19  Prefactor     .10000E-03    5.9132       -.43347E-06** at limit **
  20  Normalizat    .82893        .12862        .15100E-06    .18712E-03
  21  Prefactor     .93847        .13042       -.84972E-06    .28838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70139
  norm       = 57.697
  Prefactor  = 6.14982
  Prefactor  = 0.0001
  norm       = 8.4839
  Prefactor  = 5.98981
  Prefactor  = 0.0001
  Prefactor  = 13.195
  Prefactor  = 0.0001
  norm       = 1.32472
  norm       = 9.59527
  Prefactor  = 0.00010004
  Prefactor  = 14.8503
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 52.3096
  norm       = 0.0001
  norm       = 11.6359
  Prefactor  = 0.0001
  Normalizat = 0.828931
  Prefactor  = 0.93847
 **********
 **   18 **HESSE 
 **********

 FCN=   8786.170     FROM HESSE     STATUS=OK           319 CALLS     2556 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7014        5.7152        .16127E-02   -1.5447    
   2  norm          57.697        31.129        .52808E-04   -1.4187    
   3  Prefactor     6.1498        18.934        .16187E-03   -1.5212    
   4  Prefactor     .10000E-03    4.5942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.4839        7.4200        .68813E-03   -1.5125    
   6  Prefactor     5.9898        6.6587        .16406E-03   -1.5218    
   7  Prefactor     .10000E-03    15.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.195        12.614        .11027E-03   -1.4981    
   9  Prefactor     .10000E-03    3.3005        .16538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3247        4.4376        .17462E-02   -1.5478    
  11  norm          9.5953        2.8218        .81813E-04   -1.5088    
  12  Prefactor     .10004E-03    151.83        .42083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.850        13.293        .10391E-03   -1.4937    
  14  Prefactor     .10000E-03    34.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.310        55.607        .55439E-04   -1.4260    
  17  norm          .10000E-03    3.0867        .69856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.636        3.7358        .96539E-04   -1.5026    
  19  Prefactor     .10000E-03    6.1465        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82893        .15113        .23475E-03   -.99004    
  21  Prefactor     .93847        .15298        .22569E-03   -.94810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17738e-09
Minuit parameter uncertainties:
  1  5.71704
  2  31.1376
  3  18.9529
  4  6.5121e-07
  5  7.42084
  6  6.65949
  7  3.09167e-05
  8  12.6161
  9  1.7914e-06
  10  4.43871
  11  2.82189
  12  0.00493903
  13  13.2957
  14  4.4596e-05
  15  0.000508852
  16  55.6621
  17  1.73173e-05
  18  3.73584
  19  2.185e-05
  20  0.151204
  21  0.153055
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.164e+01  3.736e+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:  9.385e-01  1.531e-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:  8.289e-01  1.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.24
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 9.94e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 3.71e-05 +/- 1.19e-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) = 8785.76436765
delta logL = 0.405136301024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8785.74774294
delta logL = 0.421761008167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4848       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5599       1.0000          .0000       5.0000    
     3 'Normalizat'    .80604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95349       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=   8785.748     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4847        4.1257        .82599E-04    .12522E-02
   2  alpha         2.5598        .31328        .73058E-02    .11861E-03
   3  Normalizat    .80604        .15116        .23754E-03   -.61261E-04
   4  Prefactor     .95353        .15229        .22405E-03   -.11417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.48473
  alpha      = 2.55978
  Normalizat = 0.806039
  Prefactor  = 0.95353
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.748     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4847        3.9788        .33040E-05   -1.5092    
   2  alpha         2.5598        .30200        .29223E-03    .23913E-01
   3  Normalizat    .80604        .15127        .95016E-05   -.99845    
   4  Prefactor     .95353        .15238        .89620E-05   -.94295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55241e-10
Minuit parameter uncertainties:
  1  3.97886
  2  0.302743
  3  0.151344
  4  0.152453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129976': 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) = 8785.7477427
delta logL = 0.421761244377

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  9.485e+00  3.979e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.560e+00  3.027e-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:  9.535e-01  1.525e-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:  8.060e-01  1.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.11
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.56 +/- 0.30
Photon Flux (Free Index): 1.17e-07 +/- 3.91e-08
Energy Flux (Free Index): 3.26e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/129976/cmap_HighResolution_612316801_612576001_4FGL_J2348.0-1630_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.94e-08', energy_flux2='3.26e-05', photon_flux_error='3.19e-08', dlogl='4.22e-01', energy_flux='3.71e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-30 05:50:42.043331', photon_index_error2='0.30', photon_index2='2.56', ts='22.24', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.83', time_epoch_completed='1633006242.04', return_code='0', job_id='129976', GAL2='0.95', EG2='0.81', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.91e-08', ts2='23.11', photon_index='2.29' WHERE bin_id='1439' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:50:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 129976: <4FGL_J2348.0-1630_daily_bin1439> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1439> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 05:35:39 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:35:41 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:41 2021
Terminated at Thu Sep 30 05:50:42 2021
Results reported at Thu Sep 30 05:50:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1439 357.016 -16.5161 612316801 612576001 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 :                                   652.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

