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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1446
RA = 357.016, Dec = -16.5161
tmin = 614131201, tmax = 614390401
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='129987', job_status='RUN', time_executed='2021-09-30 05:36:06.807428', time_epoch_executed='1633005366.81' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129987

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129987/ft1_4FGL_J2348.0-1630_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129987/ft2_4FGL_J2348.0-1630_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129987/ft1_4FGL_J2348.0-1630_daily_bin1446.fits outfile=/scratch/kocevski/129987/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1446.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=614131201.0 tmax=614390401.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 4.69
user 4.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129987/ft1_filtered_4FGL_J2348.0-1630_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/129987/ft2_4FGL_J2348.0-1630_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/129987/ltcube_614131201_614390401_4FGL_J2348.0-1630_daily_bin1446.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/129987/ft2_4FGL_J2348.0-1630_daily_bin1446.fits
.....................!
real 10.90
user 10.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129987/ft1_filtered_4FGL_J2348.0-1630_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/129987/ft2_4FGL_J2348.0-1630_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/129987/ltcube_614131201_614390401_4FGL_J2348.0-1630_daily_bin1446.fits outfile=/scratch/kocevski/129987/expmap_614131201_614390401_4FGL_J2348.0-1630_daily_bin1446.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/129987/ltcube_614131201_614390401_4FGL_J2348.0-1630_daily_bin1446.fits
.....................!
real 189.59
user 184.98
sys 4.29

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/129987/ft1_filtered_4FGL_J2348.0-1630_daily_bin1446.fits scfile=/scratch/kocevski/129987/ft2_4FGL_J2348.0-1630_daily_bin1446.fits outfile=/scratch/kocevski/129987/cmap_614131201_614390401_4FGL_J2348.0-1630_daily_bin1446.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/129987/ft1_filtered_4FGL_J2348.0-1630_daily_bin1446.fits scfile=/scratch/kocevski/129987/ft2_4FGL_J2348.0-1630_daily_bin1446.fits outfile=/scratch/kocevski/129987/cmap_HighResolution_614131201_614390401_4FGL_J2348.0-1630_daily_bin1446.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.57
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/129987/ft1_filtered_4FGL_J2348.0-1630_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/129987/ft2_4FGL_J2348.0-1630_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129987/Model_4FGL_J2348.0-1630_daily_bin1446.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/129987/ft1_filtered_4FGL_J2348.0-1630_daily_bin1446.fits.....................!
real 34.14
user 32.90
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13829E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1571       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.984       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3545       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70704       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=   3447.670     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2193 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.586       -.13316E-06** at limit **
   2  norm          .10000E-03    419.65        .24175E-04** at limit **
   3  Prefactor     75.666        75.936       -.95723E-06   -.93112E-07
   4  Prefactor     .10000E-03    15.446        .98636E-06** at limit **
   5  norm          2.1613        14.271        .37026E-05   -.32816E-05
   6  Prefactor     .10000E-03    36.759        .11205E-05** at limit **
   7  Prefactor     .10000E-03    36.090        .17818E-05** at limit **
   8  Prefactor     .10000E-03    50.958       -.32741E-05** at limit **
   9  Prefactor     .10000E-03    2.5874       -.51602E-07** at limit **
  10  norm          .10000E-03    2.9867       -.18466E-07** at limit **
  11  norm          5.2161        3.8328       -.35245E-08   -.46928E-05
  12  Prefactor     .10000E-03    17.255       -.74711E-06** at limit **
  13  Prefactor     .10000E-03    10.603        .12907E-07** at limit **
  14  Prefactor     15.965        27.957        .92811E-06    .96254E-06
  15  Prefactor     .10000E-03    44.368       -.13972E-05** at limit **
  16  Prefactor     .10000E-03    83.908        .14244E-05** at limit **
  17  norm          .10000E-03    .55386       -.81849E-07** at limit **
  18  norm          20.280        7.8220        .14728E-06    .13122E-03
  19  Prefactor     4.3539        6.1744        .39322E-06    .13483E-04
  20  Normalizat    1.0090        .21372       -.14478E-06   -.75910E-04
  21  Prefactor     .70702        .20558       -.61441E-06   -.63537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.6662
  Prefactor  = 0.0001
  norm       = 2.16133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.21612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.2803
  Prefactor  = 4.35392
  Normalizat = 1.00899
  Prefactor  = 0.707015
 **********
 **   18 **HESSE 
 **********

 FCN=   3447.670     FROM HESSE     STATUS=OK           311 CALLS     2504 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    421.13        .41067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     75.666        75.713        .46166E-04   -1.3966    
   4  Prefactor     .10000E-03    15.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1613        14.257        .14024E-02   -1.5414    
   6  Prefactor     .10000E-03    37.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5890        .92243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.9930        .99104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2161        3.8286        .93621E-04   -1.5251    
  12  Prefactor     .10000E-03    17.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.965        27.969        .10018E-03   -1.4909    
  15  Prefactor     .10000E-03    44.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    83.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6493        .74372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.280        6.9245        .86065E-04   -1.4807    
  19  Prefactor     4.3539        6.1707        .16721E-03   -1.5291    
  20  Normalizat    1.0090        .25484        .22155E-03   -.92730    
  21  Prefactor     .70702        .24410        .24936E-03   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30381e-10
Minuit parameter uncertainties:
  1  3.5286e-05
  2  0.000840944
  3  75.8099
  4  7.07747e-06
  5  11.1058
  6  1.05943e-05
  7  1.73441e-05
  8  1.08283e-05
  9  2.58181e-08
  10  3.47485e-07
  11  3.82875
  12  4.47387e-06
  13  2.90737e-06
  14  27.9919
  15  1.03116e-05
  16  1.62686e-05
  17  4.27516e-05
  18  6.92482
  19  6.17164
  20  0.25515
  21  0.244471
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.028e+01  6.925e+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:  7.070e-01  2.445e-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.009e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.41
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 5.91e-08
Energy Flux (Fixed Index): 6.46e-05 +/- 2.21e-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) = 3447.66778211
delta logL = 0.00247449952894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3447.66662798
delta logL = 0.0036286270647

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.648       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2637       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70504       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=   3447.667     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      191 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.648        20.696        .22036E-02   -.33446E-03
   2  alpha         2.2637        .74822        .13414        .18157E-04
   3  Normalizat    1.0119        .21892        .45023E-01    .73162E-06
   4  Prefactor     .70504        .20899        .42468E-01    .15097E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6485
  alpha      = 2.26372
  Normalizat = 1.01193
  Prefactor  = 0.70504
 **********
 **   18 **HESSE 
 **********

 FCN=   3447.667     FROM HESSE     STATUS=OK            29 CALLS      220 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.648        8.2271        .87104E-04   -1.4799    
   2  alpha         2.2637        .30781        .58001E-03   -.94655E-01
   3  Normalizat    1.0119        .25616        .22127E-03   -.92632    
   4  Prefactor     .70504        .24407        .24969E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5345e-11
Minuit parameter uncertainties:
  1  8.2276
  2  0.308605
  3  0.256471
  4  0.244441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129987': 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) = 3447.66662798
delta logL = 0.00362862714974

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.065e+01  8.228e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.264e+00  3.086e-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.050e-01  2.444e-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.012e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.33
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.26 +/- 0.31
Photon Flux (Free Index): 1.71e-07 +/- 6.65e-08
Energy Flux (Free Index): 6.59e-05 +/- 2.71e-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/129987/cmap_HighResolution_614131201_614390401_4FGL_J2348.0-1630_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='6.59e-05', photon_flux_error='5.91e-08', dlogl='3.63e-03', energy_flux='6.46e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-30 05:43:59.331004', photon_index_error2='0.31', photon_index2='2.26', ts='24.41', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.71e-05', EG='1.01', time_epoch_completed='1633005839.33', return_code='0', job_id='129987', GAL2='0.71', EG2='1.01', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='6.65e-08', ts2='24.33', photon_index='2.29' WHERE bin_id='1446' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:43:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 129987: <4FGL_J2348.0-1630_daily_bin1446> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1446> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 05:35:40 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:35:43 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:43 2021
Terminated at Thu Sep 30 05:44:00 2021
Results reported at Thu Sep 30 05:44:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1446 357.016 -16.5161 614131201 614390401 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 :                                   439.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   496 sec.
    Turnaround time :                            500 sec.

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

