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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1011
RA = 357.016, Dec = -16.5161
tmin = 501379201, tmax = 501638401
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='128408', job_status='RUN', time_executed='2021-09-30 05:31:02.238134', time_epoch_executed='1633005062.24' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128408

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128408/ft1_4FGL_J2348.0-1630_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128408/ft2_4FGL_J2348.0-1630_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128408/ft1_4FGL_J2348.0-1630_daily_bin1011.fits outfile=/scratch/kocevski/128408/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1011.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=501379201.0 tmax=501638401.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.59
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128408/ft1_filtered_4FGL_J2348.0-1630_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/128408/ft2_4FGL_J2348.0-1630_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/128408/ltcube_501379201_501638401_4FGL_J2348.0-1630_daily_bin1011.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/128408/ft2_4FGL_J2348.0-1630_daily_bin1011.fits
.....................!
real 12.14
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128408/ft1_filtered_4FGL_J2348.0-1630_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/128408/ft2_4FGL_J2348.0-1630_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/128408/ltcube_501379201_501638401_4FGL_J2348.0-1630_daily_bin1011.fits outfile=/scratch/kocevski/128408/expmap_501379201_501638401_4FGL_J2348.0-1630_daily_bin1011.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/128408/ltcube_501379201_501638401_4FGL_J2348.0-1630_daily_bin1011.fits
.....................!
real 192.05
user 186.13
sys 5.55

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/128408/ft1_filtered_4FGL_J2348.0-1630_daily_bin1011.fits scfile=/scratch/kocevski/128408/ft2_4FGL_J2348.0-1630_daily_bin1011.fits outfile=/scratch/kocevski/128408/cmap_501379201_501638401_4FGL_J2348.0-1630_daily_bin1011.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/128408/ft1_filtered_4FGL_J2348.0-1630_daily_bin1011.fits scfile=/scratch/kocevski/128408/ft2_4FGL_J2348.0-1630_daily_bin1011.fits outfile=/scratch/kocevski/128408/cmap_HighResolution_501379201_501638401_4FGL_J2348.0-1630_daily_bin1011.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128408/ft1_filtered_4FGL_J2348.0-1630_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/128408/ft2_4FGL_J2348.0-1630_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128408/Model_4FGL_J2348.0-1630_daily_bin1011.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/128408/ft1_filtered_4FGL_J2348.0-1630_daily_bin1011.fits.....................!
real 44.68
user 43.29
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38434       1.0000         .10000E-03   10000.    
     5 'norm      '    31.604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.996       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.7489       1.0000         .10000E-03   10000.    
    11 'norm      '    .82295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15455E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.933       1.0000         .10000E-03   10000.    
    17 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.3358       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9013       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0864       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .64142       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=   5141.180     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2280 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0843       -.15299E-06** at limit **
   2  norm          .10000E-03    11.339       -.23321E-07** at limit **
   3  Prefactor     .10000E-03    54.800       -.11451E-04** at limit **
   4  Prefactor     .35905        12.030       -.82611E-06   -.13534E-03
   5  norm          31.614        15.948       -.15706E-06    .22938E-04
   6  Prefactor     17.994        15.589        .26066E-07   -.64956E-05
   7  Prefactor     .10000E-03    39.807       -.28881E-04** at limit **
   8  Prefactor     23.513        20.912        .18035E-05    .16507E-06
   9  Prefactor     .10000E-03    10.881        .17811E-05** at limit **
  10  norm          7.7518        7.9235       -.77760E-05   -.18208E-03
  11  norm          .82228        2.5673       -.14150E-05   -.15656E-02
  12  Prefactor     .10000E-03    80.984        .41994E-05** at limit **
  13  Prefactor     .10000E-03    7.0106        .13960E-06** at limit **
  14  Prefactor     .10000E-03    40.262        .36022E-04** at limit **
  15  Prefactor     .34993        103.91        .47349E-05    .76042E-04
  16  Prefactor     42.933        90.628       -.32061E-04   -.32706E-04
  17  norm          .10000E-03    .37811        .67130E-08** at limit **
  18  norm          6.3343        4.4106       -.26902E-06   -.20759E-03
  19  Prefactor     6.9029        6.4488       -.60894E-06   -.22506E-03
  20  Normalizat    1.0865        .16725        .19615E-05   -.33862E-03
  21  Prefactor     .64123        .15846        .82110E-06   -.11197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.359048
  norm       = 31.6136
  Prefactor  = 17.9942
  Prefactor  = 0.0001
  Prefactor  = 23.5131
  Prefactor  = 0.000100003
  norm       = 7.7518
  norm       = 0.82228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.349929
  Prefactor  = 42.9332
  norm       = 0.0001
  norm       = 6.3343
  Prefactor  = 6.90292
  Normalizat = 1.08651
  Prefactor  = 0.64123
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.180     FROM HESSE     STATUS=OK           325 CALLS     2605 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1141        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    55.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .35905        113.97        .48166E-02   -1.5588    
   5  norm          31.614        15.947        .71274E-04   -1.4583    
   6  Prefactor     17.994        15.590        .94414E-04   -1.4859    
   7  Prefactor     .10000E-03    39.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.513        20.915        .82594E-04   -1.4738    
   9  Prefactor     .10000E-03    11.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.7518        7.9510        .14405E-03   -1.5151    
  11  norm          .82228        2.5889        .19319E-03   -1.5527    
  12  Prefactor     .10000E-03    81.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34993        102.59        .16642       -1.5590    
  16  Prefactor     42.933        90.853        .61183E-04   -1.4397    
  17  norm          .10000E-03    1.4918        .75365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.3343        3.9048        .10567E-03   -1.5205    
  19  Prefactor     6.9029        6.4541        .15272E-03   -1.5182    
  20  Normalizat    1.0865        .19193        .20410E-03   -.90186    
  21  Prefactor     .64123        .18137        .25266E-03   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51324e-09
Minuit parameter uncertainties:
  1  4.89742e-06
  2  8.30105e-06
  3  3.63095e-05
  4  12.8168
  5  15.949
  6  15.5939
  7  0.000269627
  8  20.9211
  9  0.000362035
  10  7.95206
  11  2.58923
  12  0.000292088
  13  1.72572e-05
  14  0.000177956
  15  12.0025
  16  91.1481
  17  3.8871e-06
  18  3.90493
  19  6.45473
  20  0.192051
  21  0.181541
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.334e+00  3.905e+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:  6.412e-01  1.815e-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.087e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.24e-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) = 5141.00844148
delta logL = 0.171436471248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5141.00424316
delta logL = 0.175634797126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9033       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6073       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65033       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=   5141.004     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      226 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9033        63.386        .45411E-02    .70320E-03
   2  alpha         2.6074        3.7872        .24254        .45849E-04
   3  Normalizat    1.0730        .73332E-01    .39227E-01    .41691E-05
   4  Prefactor     .65030        .70554E-01    .41736E-01    .17920E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.90329
  alpha      = 2.60742
  Normalizat = 1.07298
  Prefactor  = 0.650304
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.004     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9033        4.3071        .88315E-04   -1.5265    
   2  alpha         2.6074        .58624        .98302E-02    .42983E-01
   3  Normalizat    1.0730        .18688        .20517E-03   -.90624    
   4  Prefactor     .65030        .18110        .25103E-03   -1.0551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39187e-09
Minuit parameter uncertainties:
  1  4.30739
  2  0.59176
  3  0.186993
  4  0.181261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128408': 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) = 5141.00424303
delta logL = 0.175634921131

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  4.903e+00  4.307e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.607e+00  5.918e-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:  6.503e-01  1.813e-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.073e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.59
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.61 +/- 0.59
Photon Flux (Free Index): 6.49e-08 +/- 4.00e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.13e-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/128408/cmap_HighResolution_501379201_501638401_4FGL_J2348.0-1630_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='1.73e-05', photon_flux_error='3.34e-08', dlogl='1.76e-01', energy_flux='2.02e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-30 05:39:36.876717', photon_index_error2='0.59', photon_index2='2.61', ts='4.25', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.09', time_epoch_completed='1633005576.88', return_code='0', job_id='128408', GAL2='0.65', EG2='1.07', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.00e-08', ts2='4.59', photon_index='2.29' WHERE bin_id='1011' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:39:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 128408: <4FGL_J2348.0-1630_daily_bin1011> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1011> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:30:45 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:30:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 05:30:47 2021
Terminated at Thu Sep 30 05:39:37 2021
Results reported at Thu Sep 30 05:39:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1011 357.016 -16.5161 501379201 501638401 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 :                                   510.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            532 sec.

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

