/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 144 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2348.0-1630_daily_bin375
RA = 357.016, Dec = -16.5161
tmin = 336528001, tmax = 336787201
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='125530', job_status='RUN', time_executed='2021-09-30 05:23:00.187352', time_epoch_executed='1633004580.19' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125530/ft1_4FGL_J2348.0-1630_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125530/ft2_4FGL_J2348.0-1630_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125530/ft1_4FGL_J2348.0-1630_daily_bin375.fits outfile=/scratch/kocevski/125530/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin375.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=336528001.0 tmax=336787201.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 5.78
user 5.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125530/ft1_filtered_4FGL_J2348.0-1630_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/125530/ft2_4FGL_J2348.0-1630_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/125530/ltcube_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.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/125530/ft2_4FGL_J2348.0-1630_daily_bin375.fits
.....................!
real 12.04
user 11.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125530/ft1_filtered_4FGL_J2348.0-1630_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/125530/ft2_4FGL_J2348.0-1630_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/125530/ltcube_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.fits outfile=/scratch/kocevski/125530/expmap_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.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/125530/ltcube_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.fits
.....................!
real 191.10
user 185.41
sys 5.26

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/125530/ft1_filtered_4FGL_J2348.0-1630_daily_bin375.fits scfile=/scratch/kocevski/125530/ft2_4FGL_J2348.0-1630_daily_bin375.fits outfile=/scratch/kocevski/125530/cmap_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.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/125530/ft1_filtered_4FGL_J2348.0-1630_daily_bin375.fits scfile=/scratch/kocevski/125530/ft2_4FGL_J2348.0-1630_daily_bin375.fits outfile=/scratch/kocevski/125530/cmap_HighResolution_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1769       1.0000         .10000E-03   10000.    
     2 'norm      '    26.285       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38494E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.691       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9152       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12219E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5333       1.0000         .10000E-03   10000.    
    18 'norm      '    .97189       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.979       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75776       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72626       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=   3495.853     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2259 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1787        6.7891       -.53934E-05   -.25322E-03
   2  norm          26.312        46.756        .22756E-04   -.48809E-04
   3  Prefactor     .10000E-03    34.488       -.20243E-05** at limit **
   4  Prefactor     .10000E-03    7.5727       -.56755E-06** at limit **
   5  norm          15.244        12.141       -.31092E-08    .95431E-05
   6  Prefactor     .10000E-03    62.023        .10159E-07** at limit **
   7  Prefactor     .10000E-03    30.074        .65424E-06** at limit **
   8  Prefactor     .10007E-03    151.20        .37195E-05** at limit **
   9  Prefactor     .10000E-03    4.2422       -.86792E-07** at limit **
  10  norm          .10000E-03    3.7161        .68500E-07** at limit **
  11  norm          .10000E-03    1.7367        .22061E-06** at limit **
  12  Prefactor     72.648        69.680       -.35930E-04   -.15795E-03
  13  Prefactor     .10000E-03    11.051        .89484E-06** at limit **
  14  Prefactor     8.9150        16.004        .48027E-06   -.36412E-04
  15  Prefactor     4.3080        194.37        .65413E-04   -.55474E-05
  16  Prefactor     .10000E-03    132.21        .71088E-05** at limit **
  17  norm          2.5296        1.7706        .15803E-06   -.45123E-02
  18  norm          1.0041        26.780        .33622E-05   -.25207E-03
  19  Prefactor     10.977        7.7610       -.17437E-05   -.16005E-03
  20  Normalizat    .75832        .19667        .50806E-05   -.64244E-03
  21  Prefactor     .72561        .18150       -.39934E-05   -.13514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17865
  norm       = 26.3115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.244
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100073
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 72.648
  Prefactor  = 0.000100004
  Prefactor  = 8.91504
  Prefactor  = 4.30795
  Prefactor  = 0.0001
  norm       = 2.52965
  norm       = 1.00411
  Prefactor  = 10.977
  Normalizat = 0.75832
  Prefactor  = 0.725613
 **********
 **   18 **HESSE 
 **********

 FCN=   3495.853     FROM HESSE     STATUS=OK           311 CALLS     2570 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1787        6.7857        .21771E-03   -1.5351    
   2  norm          26.312        46.317        .78137E-04   -1.4682    
   3  Prefactor     .10000E-03    34.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5781        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.244        12.141        .10258E-03   -1.4927    
   6  Prefactor     .10000E-03    64.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    157.77        .39083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2583        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.7265        .11131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7802        .15206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     72.648        69.555        .47088E-04   -1.4001    
  13  Prefactor     .10000E-03    11.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9150        15.992        .13424E-03   -1.5111    
  15  Prefactor     4.3080        193.28        .19461E-03   -1.5293    
  16  Prefactor     .10000E-03    132.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5296        1.4064        .31846E-04   -1.5390    
  18  norm          1.0041        28.998        .27240E-02   -1.5508    
  19  Prefactor     10.977        7.7555        .12091E-03   -1.5045    
  20  Normalizat    .75832        .22715        .21477E-03   -1.0163    
  21  Prefactor     .72561        .21543        .21860E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54812e-09
Minuit parameter uncertainties:
  1  6.78732
  2  46.3804
  3  9.66841e-05
  4  6.25742e-06
  5  12.1429
  6  0.000539623
  7  5.02778e-05
  8  0.00679482
  9  1.83924e-05
  10  1.98295e-05
  11  2.76455e-05
  12  69.6325
  13  0.000400334
  14  15.9999
  15  57.91
  16  0.0001387
  17  1.40643
  18  10.7973
  19  7.75622
  20  0.22743
  21  0.215681
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.004e+00  1.080e+01  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.256e-01  2.157e-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:  7.583e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/125530/likelihoodResults_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.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) = 3492.72140116
delta logL = 3.13164802805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3492.67601946
delta logL = 3.17702972568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24249       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9365       1.0000          .0000       5.0000    
     3 'Normalizat'    .56727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85211       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=   3492.676     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      247 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23905        .11443        .28421E-02   -.67323E-03
   2  alpha         4.9442        .22658        .47835       -.67902E-04
   3  Normalizat    .56687        .18434        .40490E-01   -.13278E-04
   4  Prefactor     .85253        .18234        .44392E-01   -.57264E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.239052
  alpha      = 4.9442
  Normalizat = 0.566867
  Prefactor  = 0.852527
 **********
 **   18 **HESSE 
 **********

 FCN=   3492.676     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23905        .34339        .12649E-04   -1.5610    
   2  alpha         4.9442        3.7963        .24668E-01    1.3591    
   3  Normalizat    .56687        .22118        .24250E-03   -1.0941    
   4  Prefactor     .85253        .21862        .20233E-03   -.97820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25648e-10
Minuit parameter uncertainties:
  1  0.343395
  2  0.745083
  3  0.221524
  4  0.218845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125530': 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) = 3492.6759976
delta logL = 3.17705158842

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.391e-01  3.434e-01  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  4.944e+00  7.451e-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:  8.525e-01  2.188e-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:  5.669e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.09
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 4.94 +/- 0.75
Photon Flux (Free Index): 1.71e-07 +/- 8.03e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.10e-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/125530/cmap_HighResolution_336528001_336787201_4FGL_J2348.0-1630_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-05', comment='SUCCESS', energy_flux2='2.31e-05', dlogl='3.18e+00', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-30 05:31:07.801069', photon_index_error2='0.75', photon_index2='4.94', ts='0.02', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.10e-05', EG='0.76', time_epoch_completed='1633005067.8', return_code='0', job_id='125530', GAL2='0.85', EG2='0.57', return_code2='0', photon_flux_error2='8.03e-08', ts2='7.09', photon_index='2.29' WHERE bin_id='375' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 125530: <4FGL_J2348.0-1630_daily_bin375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin375 357.016 -16.5161 336528001 336787201 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 :                                   485.25 sec.
    Max Memory :                                 1193 MB
    Average Memory :                             253.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            643 sec.

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

