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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1337
RA = 357.016, Dec = -16.5161
tmin = 585878401, tmax = 586137601
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='129827', job_status='RUN', time_executed='2021-09-30 05:36:40.481244', time_epoch_executed='1633005400.48' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129827/ft1_4FGL_J2348.0-1630_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129827/ft2_4FGL_J2348.0-1630_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129827/ft1_4FGL_J2348.0-1630_daily_bin1337.fits outfile=/scratch/kocevski/129827/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1337.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=585878401.0 tmax=586137601.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 2.80
user 2.59
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/129827/ft2_4FGL_J2348.0-1630_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/129827/ltcube_585878401_586137601_4FGL_J2348.0-1630_daily_bin1337.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/129827/ft2_4FGL_J2348.0-1630_daily_bin1337.fits
.....................!
real 13.95
user 13.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/129827/ft2_4FGL_J2348.0-1630_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/129827/ltcube_585878401_586137601_4FGL_J2348.0-1630_daily_bin1337.fits outfile=/scratch/kocevski/129827/expmap_585878401_586137601_4FGL_J2348.0-1630_daily_bin1337.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/129827/ltcube_585878401_586137601_4FGL_J2348.0-1630_daily_bin1337.fits
.....................!
real 190.91
user 185.20
sys 5.36

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/129827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1337.fits scfile=/scratch/kocevski/129827/ft2_4FGL_J2348.0-1630_daily_bin1337.fits outfile=/scratch/kocevski/129827/cmap_585878401_586137601_4FGL_J2348.0-1630_daily_bin1337.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/129827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/129827/ft2_4FGL_J2348.0-1630_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129827/Model_4FGL_J2348.0-1630_daily_bin1337.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/129827/ft1_filtered_4FGL_J2348.0-1630_daily_bin1337.fits.....................!
real 41.18
user 39.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.956       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.570       1.0000         .10000E-03   10000.    
     5 'norm      '    .12413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.008       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.380       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62557E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.029       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11202E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.526       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.014       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63722       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4133       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .57571       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=   4293.742     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2259 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6609       -.42753E-07** at limit **
   2  norm          18.910        27.411        .41171E-06    .76565E-04
   3  Prefactor     .10000E-03    25.571       -.17368E-07** at limit **
   4  Prefactor     41.566        30.826        .20373E-06    .41157E-04
   5  norm          .13975E-03    14.479       -.14985E-05** at limit **
   6  Prefactor     .10000E-03    15.877        .55853E-07** at limit **
   7  Prefactor     10.010        54.194        .58335E-06   -.80760E-05
   8  Prefactor     24.356        33.483        .32963E-06    .33602E-04
   9  Prefactor     .10000E-03    3.0181       -.23558E-06** at limit **
  10  norm          .10000E-03    2.0539       -.76803E-07** at limit **
  11  norm          1.9236        4.8741        .10259E-05    .66028E-04
  12  Prefactor     .10000E-03    405.52        .11850E-05** at limit **
  13  Prefactor     38.022        36.049        .20311E-05    .42489E-04
  14  Prefactor     .10000E-03    54.362       -.62627E-06** at limit **
  15  Prefactor     .10000E-03    70.014       -.39333E-06** at limit **
  16  Prefactor     69.459        130.49        .20617E-07   -.18680E-04
  17  norm          .10000E-03    .29066       -.44479E-07** at limit **
  18  norm          17.015        6.6500        .88193E-07    .64423E-04
  19  Prefactor     .63703        9.1782        .40796E-05    .51171E-04
  20  Normalizat    1.4135        .21949       -.93987E-06   -.41966E-05
  21  Prefactor     .57575        .19350       -.16947E-06   -.40586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.9095
  Prefactor  = 0.0001
  Prefactor  = 41.5659
  norm       = 0.00013975
  Prefactor  = 0.0001
  Prefactor  = 10.01
  Prefactor  = 24.3564
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.92362
  Prefactor  = 0.0001
  Prefactor  = 38.0225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.4589
  norm       = 0.0001
  norm       = 17.0148
  Prefactor  = 0.637034
  Normalizat = 1.41346
  Prefactor  = 0.57575
 **********
 **   18 **HESSE 
 **********

 FCN=   4293.742     FROM HESSE     STATUS=OK           325 CALLS     2584 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6649        .10439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.910        27.432        .91993E-04   -1.4838    
   3  Prefactor     .10000E-03    25.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.566        30.829        .62173E-04   -1.4418    
   5  norm          .13975E-03    16.080        .78439E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.010        54.223        .12666E-03   -1.5075    
   8  Prefactor     24.356        33.488        .81127E-04   -1.4721    
   9  Prefactor     .10000E-03    3.0192        .11111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0555        .91704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9236        4.8696        .21918E-03   -1.5431    
  12  Prefactor     .10000E-03    405.92        .21042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.022        36.077        .64993E-04   -1.4474    
  14  Prefactor     .10000E-03    54.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    70.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     69.459        130.56        .24070E-03   -1.4039    
  17  norm          .10000E-03    .64146        .66135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.015        6.4429        .97069E-04   -1.4883    
  19  Prefactor     .63703        9.2095        .37136E-03   -1.5548    
  20  Normalizat    1.4135        .25822        .22113E-03   -.80240    
  21  Prefactor     .57575        .22642        .29870E-03   -1.0862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05555e-10
Minuit parameter uncertainties:
  1  2.74933e-06
  2  27.4506
  3  6.16078e-07
  4  30.841
  5  0.0505766
  6  4.58823e-06
  7  46.6605
  8  33.5138
  9  3.47335e-06
  10  7.24829e-07
  11  4.87065
  12  0.000652179
  13  36.0981
  14  7.17877e-05
  15  9.61963e-05
  16  131.099
  17  6.50293e-06
  18  6.44319
  19  4.84479
  20  0.258455
  21  0.226775
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.701e+01  6.443e+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:  5.758e-01  2.268e-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.413e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.67
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 5.50e-08
Energy Flux (Fixed Index): 5.42e-05 +/- 2.05e-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) = 4293.38799967
delta logL = 0.354338641429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4293.34482353
delta logL = 0.397514784262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.828       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9757       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55496       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=   4293.345     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.829        7.1373        .17973E-05   -.15690E-02
   2  alpha         1.9759        .29724       -.80132E-05   -.35204E-03
   3  Normalizat    1.4499        .21398        .25800E-06    .84415E-04
   4  Prefactor     .55498        .19202       -.69058E-06    .42499E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.8287
  alpha      = 1.97592
  Normalizat = 1.44989
  Prefactor  = 0.554984
 **********
 **   18 **HESSE 
 **********

 FCN=   4293.345     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.829        7.3664        .92304E-04   -1.4840    
   2  alpha         1.9759        .34401        .83576E-02   -.21120    
   3  Normalizat    1.4499        .25130        .21899E-03   -.79196    
   4  Prefactor     .55498        .22455        .30394E-03   -1.0952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04383e-09
Minuit parameter uncertainties:
  1  7.36678
  2  0.345151
  3  0.251515
  4  0.224908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129827': 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) = 4293.34482286
delta logL = 0.397515452466

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.883e+01  7.367e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  1.976e+00  3.452e-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:  5.550e-01  2.249e-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.450e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.52
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 1.98 +/- 0.35
Photon Flux (Free Index): 1.11e-07 +/- 5.70e-08
Energy Flux (Free Index): 6.90e-05 +/- 3.61e-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/129827/cmap_HighResolution_585878401_586137601_4FGL_J2348.0-1630_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='6.90e-05', photon_flux_error='5.50e-08', dlogl='3.98e-01', energy_flux='5.42e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-30 05:46:53.668711', photon_index_error2='0.35', photon_index2='1.98', ts='23.67', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='3.61e-05', EG='1.41', time_epoch_completed='1633006013.67', return_code='0', job_id='129827', GAL2='0.55', EG2='1.45', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='5.70e-08', ts2='24.52', photon_index='2.29' WHERE bin_id='1337' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 129827: <4FGL_J2348.0-1630_daily_bin1337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1337 357.016 -16.5161 585878401 586137601 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 :                                   471.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

