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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin836
RA = 357.016, Dec = -16.5161
tmin = 456019201, tmax = 456278401
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='128149', job_status='RUN', time_executed='2021-09-30 05:34:22.559807', time_epoch_executed='1633005262.56' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128149/ft1_4FGL_J2348.0-1630_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128149/ft2_4FGL_J2348.0-1630_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128149/ft1_4FGL_J2348.0-1630_daily_bin836.fits outfile=/scratch/kocevski/128149/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin836.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=456019201.0 tmax=456278401.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 6.89
user 6.60
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128149/ft1_filtered_4FGL_J2348.0-1630_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/128149/ft2_4FGL_J2348.0-1630_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/128149/ltcube_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.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/128149/ft2_4FGL_J2348.0-1630_daily_bin836.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128149/ft1_filtered_4FGL_J2348.0-1630_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/128149/ft2_4FGL_J2348.0-1630_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/128149/ltcube_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.fits outfile=/scratch/kocevski/128149/expmap_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.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/128149/ltcube_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.fits
.....................!
real 189.99
user 185.16
sys 4.48

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/128149/ft1_filtered_4FGL_J2348.0-1630_daily_bin836.fits scfile=/scratch/kocevski/128149/ft2_4FGL_J2348.0-1630_daily_bin836.fits outfile=/scratch/kocevski/128149/cmap_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.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/128149/ft1_filtered_4FGL_J2348.0-1630_daily_bin836.fits scfile=/scratch/kocevski/128149/ft2_4FGL_J2348.0-1630_daily_bin836.fits outfile=/scratch/kocevski/128149/cmap_HighResolution_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128149/ft1_filtered_4FGL_J2348.0-1630_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/128149/ft2_4FGL_J2348.0-1630_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128149/Model_4FGL_J2348.0-1630_daily_bin836.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/128149/ft1_filtered_4FGL_J2348.0-1630_daily_bin836.fits.....................!
real 38.75
user 37.35
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6116       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.098       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3246       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2337       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13944E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.208       1.0000         .10000E-03   10000.    
    17 'norm      '    .80529       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2371       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.595       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85304       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79698       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.890     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2140 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6114        9.8092        .83731E-07   -.47454E-06
   2  norm          .10000E-03    28.901       -.14615E-05** at limit **
   3  Prefactor     62.605        49.672       -.21556E-07    .21872E-05
   4  Prefactor     .10000E-03    11.108       -.35816E-07** at limit **
   5  norm          19.022        12.842       -.30994E-08    .47999E-06
   6  Prefactor     .10000E-03    3.2123       -.22088E-07** at limit **
   7  Prefactor     18.090        30.446        .36999E-06   -.85298E-05
   8  Prefactor     .10000E-03    10.692       -.18585E-06** at limit **
   9  Prefactor     .10000E-03    2.9912       -.12270E-06** at limit **
  10  norm          .10000E-03    2.2585       -.22157E-07** at limit **
  11  norm          2.3257        2.8352       -.11135E-07    .21532E-04
  12  Prefactor     7.1956        60.338        .15159E-05    .13226E-04
  13  Prefactor     .10000E-03    24.575       -.54548E-05** at limit **
  14  Prefactor     .10000E-03    11.466       -.97899E-07** at limit **
  15  Prefactor     .10000E-03    66.770        .51082E-06** at limit **
  16  Prefactor     18.208        49.006        .12231E-06    .12679E-06
  17  norm          .80551        .54840       -.84897E-07    .17083E-03
  18  norm          3.2367        4.9933        .10448E-06    .51389E-04
  19  Prefactor     11.596        7.8339       -.15274E-08    .11826E-04
  20  Normalizat    .85295        .17547        .14568E-05   -.61098E-05
  21  Prefactor     .79700        .17359       -.17521E-05    .10682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.61141
  norm       = 0.0001
  Prefactor  = 62.6046
  Prefactor  = 0.0001
  norm       = 19.0225
  Prefactor  = 0.0001
  Prefactor  = 18.09
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.32571
  Prefactor  = 7.19562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2084
  norm       = 0.805509
  norm       = 3.23672
  Prefactor  = 11.5956
  Normalizat = 0.852953
  Prefactor  = 0.797003
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.890     FROM HESSE     STATUS=OK           317 CALLS     2457 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6114        9.7976        .12926E-03   -1.5088    
   2  norm          .10000E-03    28.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.605        49.669        .50715E-04   -1.4124    
   4  Prefactor     .10000E-03    11.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.022        12.844        .91833E-04   -1.4835    
   6  Prefactor     .10000E-03    3.2137        .11414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.090        30.427        .94147E-04   -1.4857    
   8  Prefactor     .10000E-03    10.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9945        .11010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.2604        .95701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3257        2.8202        .11578E-03   -1.5403    
  12  Prefactor     7.1956        60.586        .14914E-03   -1.5171    
  13  Prefactor     .10000E-03    25.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    67.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.208        49.009        .93861E-04   -1.4854    
  17  norm          .80551        .55757        .33716E-04   -1.5528    
  18  norm          3.2367        5.0619        .15073E-03   -1.5348    
  19  Prefactor     11.596        7.8376        .11765E-03   -1.5027    
  20  Normalizat    .85295        .19661        .21528E-03   -.98134    
  21  Prefactor     .79700        .19238        .22442E-03   -.99839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66339e-11
Minuit parameter uncertainties:
  1  9.79919
  2  0.000144709
  3  49.7017
  4  6.92288e-06
  5  12.8463
  6  1.28538e-07
  7  30.4535
  8  1.15569e-05
  9  5.09673e-07
  10  4.34885e-08
  11  2.82039
  12  41.816
  13  0.000121895
  14  6.72419e-06
  15  2.82493e-05
  16  49.1172
  17  0.557578
  18  5.06254
  19  7.83831
  20  0.196776
  21  0.192539
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  3.237e+00  5.063e+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.970e-01  1.925e-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.530e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128149/likelihoodResults_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.txt

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) = 4251.70721126
delta logL = 0.183110412599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4251.6977629
delta logL = 0.192558768025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7908       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0210       1.0000          .0000       5.0000    
     3 'Normalizat'    .82957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81300       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=   4251.698     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7902        41.604        .78138E-02    .50425E-03
   2  alpha         3.0213        4.0001        .38224        .36813E-04
   3  Normalizat    .82958        .44457E-01    .43995E-01    .77855E-05
   4  Prefactor     .81298        .44081E-01    .43886E-01    .70373E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.79017
  alpha      = 3.02127
  Normalizat = 0.829582
  Prefactor  = 0.812984
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.698     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7902        5.9186        .89299E-04   -1.5440    
   2  alpha         3.0213        1.8356        .13207E-01    .21005    
   3  Normalizat    .82958        .19460        .21787E-03   -.98981    
   4  Prefactor     .81298        .19474        .22242E-03   -.99251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55943e-11
Minuit parameter uncertainties:
  1  5.92056
  2  2.07623
  3  0.194768
  4  0.194909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128149': 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) = 4251.69776286
delta logL = 0.192558803152

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.790e+00  5.921e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  3.021e+00  2.076e+00  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:  8.130e-01  1.949e-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.296e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 3.02 +/- 2.08
Photon Flux (Free Index): 4.45e-08 +/- 4.88e-08
Energy Flux (Free Index): 9.14e-06 +/- 1.25e-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/128149/cmap_HighResolution_456019201_456278401_4FGL_J2348.0-1630_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', comment='SUCCESS', energy_flux2='9.14e-06', dlogl='1.93e-01', photon_flux2='4.45e-08', job_status='DONE', time_completed='2021-09-30 05:43:12.412207', photon_index_error2='2.08', photon_index2='3.02', ts='0.64', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.25e-05', EG='0.85', time_epoch_completed='1633005792.41', return_code='0', job_id='128149', GAL2='0.81', EG2='0.83', return_code2='0', photon_flux_error2='4.88e-08', ts2='1.06', photon_index='2.29' WHERE bin_id='836' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:43:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 128149: <4FGL_J2348.0-1630_daily_bin836> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin836> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:30:24 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:30:25 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:25 2021
Terminated at Thu Sep 30 05:43:13 2021
Results reported at Thu Sep 30 05:43:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin836 357.016 -16.5161 456019201 456278401 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 :                                   520.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

