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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1063
RA = 357.016, Dec = -16.5161
tmin = 514857601, tmax = 515116801
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='128484', job_status='RUN', time_executed='2021-09-30 05:31:02.045377', time_epoch_executed='1633005062.05' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128484

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128484/ft1_4FGL_J2348.0-1630_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128484/ft2_4FGL_J2348.0-1630_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128484/ft1_4FGL_J2348.0-1630_daily_bin1063.fits outfile=/scratch/kocevski/128484/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1063.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=514857601.0 tmax=515116801.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.55
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128484/ft1_filtered_4FGL_J2348.0-1630_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/128484/ft2_4FGL_J2348.0-1630_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/128484/ltcube_514857601_515116801_4FGL_J2348.0-1630_daily_bin1063.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/128484/ft2_4FGL_J2348.0-1630_daily_bin1063.fits
.....................!
real 12.04
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128484/ft1_filtered_4FGL_J2348.0-1630_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/128484/ft2_4FGL_J2348.0-1630_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/128484/ltcube_514857601_515116801_4FGL_J2348.0-1630_daily_bin1063.fits outfile=/scratch/kocevski/128484/expmap_514857601_515116801_4FGL_J2348.0-1630_daily_bin1063.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/128484/ltcube_514857601_515116801_4FGL_J2348.0-1630_daily_bin1063.fits
.....................!
real 189.66
user 185.12
sys 4.14

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/128484/ft1_filtered_4FGL_J2348.0-1630_daily_bin1063.fits scfile=/scratch/kocevski/128484/ft2_4FGL_J2348.0-1630_daily_bin1063.fits outfile=/scratch/kocevski/128484/cmap_514857601_515116801_4FGL_J2348.0-1630_daily_bin1063.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128484/ft1_filtered_4FGL_J2348.0-1630_daily_bin1063.fits scfile=/scratch/kocevski/128484/ft2_4FGL_J2348.0-1630_daily_bin1063.fits outfile=/scratch/kocevski/128484/cmap_HighResolution_514857601_515116801_4FGL_J2348.0-1630_daily_bin1063.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
     2 'norm      '    11.115       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.893       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11126E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.405       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7431       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    97.104       1.0000         .10000E-03   10000.    
    17 'norm      '    .59545       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0204       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9999       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2788       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .58505       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=   5462.515     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2232 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.726        8.3036       -.14475E-05   -.35140E-03
   2  norm          11.076        27.384       -.61423E-07   -.19566E-04
   3  Prefactor     47.129        48.502        .73928E-05    .37390E-03
   4  Prefactor     .10000E-03    28.454       -.51654E-07** at limit **
   5  norm          16.272        13.679        .75815E-07   -.44841E-05
   6  Prefactor     10.892        10.379        .39176E-06    .80913E-04
   7  Prefactor     16.177        43.888        .64458E-05    .11513E-03
   8  Prefactor     .10000E-03    8.9169        .16299E-07** at limit **
   9  Prefactor     .10000E-03    10.499        .20143E-05** at limit **
  10  norm          26.404        10.611       -.99699E-06   -.55743E-03
  11  norm          5.7443        3.6256        .13673E-06   -.28420E-04
  12  Prefactor     .10000E-03    53.245        .30370E-07** at limit **
  13  Prefactor     .10000E-03    8.0338        .19883E-07** at limit **
  14  Prefactor     .10000E-03    12.076       -.59500E-07** at limit **
  15  Prefactor     .10000E-03    36.609        .24473E-07** at limit **
  16  Prefactor     96.568        106.23       -.31333E-05   -.93159E-04
  17  norm          .59525        .51106        .59152E-08   -.14868E-03
  18  norm          6.0206        4.1245        .35425E-08   -.33380E-04
  19  Prefactor     2.9996        4.5154        .44227E-05   -.10423E-02
  20  Normalizat    1.2786        .17729       -.22783E-06   -.74422E-04
  21  Prefactor     .58537        .16767       -.11325E-05   -.37721E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7258
  norm       = 11.0765
  Prefactor  = 47.1288
  Prefactor  = 0.0001
  norm       = 16.2719
  Prefactor  = 10.8918
  Prefactor  = 16.1771
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 26.4037
  norm       = 5.7443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.5685
  norm       = 0.595252
  norm       = 6.02061
  Prefactor  = 2.99959
  Normalizat = 1.27858
  Prefactor  = 0.585367
 **********
 **   18 **HESSE 
 **********

 FCN=   5462.515     FROM HESSE     STATUS=OK           311 CALLS     2543 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.726        8.3604        .12234E-03   -1.5053    
   2  norm          11.076        27.387        .12017E-03   -1.5042    
   3  Prefactor     47.129        50.674        .58392E-04   -1.4334    
   4  Prefactor     .10000E-03    28.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.272        13.680        .99287E-04   -1.4901    
   6  Prefactor     10.892        10.385        .12139E-03   -1.5048    
   7  Prefactor     16.177        44.054        .99525E-04   -1.4903    
   8  Prefactor     .10000E-03    8.9213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.404        10.713        .77960E-04   -1.4680    
  11  norm          5.7443        3.6283        .10658E-03   -1.5229    
  12  Prefactor     .10000E-03    53.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     96.568        106.87        .40791E-04   -1.3739    
  17  norm          .59525        .50978        .43837E-04   -1.5554    
  18  norm          6.0206        4.1344        .11137E-03   -1.5217    
  19  Prefactor     2.9996        4.7287        .97330E-03   -1.5362    
  20  Normalizat    1.2786        .20880        .21334E-03   -.84208    
  21  Prefactor     .58537        .19569        .28854E-03   -1.0821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31284e-09
Minuit parameter uncertainties:
  1  8.36129
  2  27.4176
  3  50.7201
  4  2.07708e-05
  5  13.6824
  6  10.3867
  7  44.143
  8  2.97857e-06
  9  0.000229569
  10  10.7134
  11  3.62843
  12  2.56401e-05
  13  3.04171e-06
  14  1.19274e-05
  15  2.05166e-05
  16  107.084
  17  0.509779
  18  4.13456
  19  4.72932
  20  0.208941
  21  0.195914
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.021e+00  4.135e+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.854e-01  1.959e-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.279e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.32e-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) = 5462.40061461
delta logL = 0.11436639411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5462.3960105
delta logL = 0.118970508026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5617       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0222       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57881       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=   5462.396     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      241 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5624        142.34        .39166E-02    .35268E-04
   2  alpha         2.0226        2.6103        .35664        .92713E-05
   3  Normalizat    1.2903        .18510        .48079E-01    .19449E-05
   4  Prefactor     .57886        .13403        .65549E-01    .25384E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.56244
  alpha      = 2.02257
  Normalizat = 1.29028
  Prefactor  = 0.578862
 **********
 **   18 **HESSE 
 **********

 FCN=   5462.396     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5624        4.3174        .11994E-03   -1.5196    
   2  alpha         2.0226        .54142        .13250E-01   -.19215    
   3  Normalizat    1.2903        .20593        .21254E-03   -.83857    
   4  Prefactor     .57886        .19486        .29007E-03   -1.0848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65753e-13
Minuit parameter uncertainties:
  1  4.31762
  2  0.545914
  3  0.206061
  4  0.195091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128484': 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) = 5462.39601022
delta logL = 0.118970788342

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.562e+00  4.318e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.023e+00  5.459e-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.789e-01  1.951e-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.290e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.02 +/- 0.55
Photon Flux (Free Index): 4.06e-08 +/- 3.44e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.89e-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/128484/cmap_HighResolution_514857601_515116801_4FGL_J2348.0-1630_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='2.31e-05', photon_flux_error='3.53e-08', dlogl='1.19e-01', energy_flux='1.92e-05', photon_flux2='4.06e-08', job_status='DONE', time_completed='2021-09-30 05:39:43.216441', photon_index_error2='0.55', photon_index2='2.02', ts='6.27', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.28', time_epoch_completed='1633005583.22', return_code='0', job_id='128484', GAL2='0.58', EG2='1.29', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='3.44e-08', ts2='6.54', photon_index='2.29' WHERE bin_id='1063' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:39:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 128484: <4FGL_J2348.0-1630_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1063 357.016 -16.5161 514857601 515116801 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 :                                   516.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             404.78 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.

