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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1067
RA = 357.016, Dec = -16.5161
tmin = 515894401, tmax = 516153601
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='128491', job_status='RUN', time_executed='2021-09-30 05:34:32.825091', time_epoch_executed='1633005272.83' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128491/ft1_4FGL_J2348.0-1630_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128491/ft2_4FGL_J2348.0-1630_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128491/ft1_4FGL_J2348.0-1630_daily_bin1067.fits outfile=/scratch/kocevski/128491/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1067.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=515894401.0 tmax=516153601.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.72
user 3.49
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128491/ft1_filtered_4FGL_J2348.0-1630_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/128491/ft2_4FGL_J2348.0-1630_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/128491/ltcube_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.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/128491/ft2_4FGL_J2348.0-1630_daily_bin1067.fits
.....................!
real 14.49
user 14.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128491/ft1_filtered_4FGL_J2348.0-1630_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/128491/ft2_4FGL_J2348.0-1630_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/128491/ltcube_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.fits outfile=/scratch/kocevski/128491/expmap_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.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/128491/ltcube_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.fits
.....................!
real 189.99
user 185.05
sys 4.59

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/128491/ft1_filtered_4FGL_J2348.0-1630_daily_bin1067.fits scfile=/scratch/kocevski/128491/ft2_4FGL_J2348.0-1630_daily_bin1067.fits outfile=/scratch/kocevski/128491/cmap_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128491/ft1_filtered_4FGL_J2348.0-1630_daily_bin1067.fits scfile=/scratch/kocevski/128491/ft2_4FGL_J2348.0-1630_daily_bin1067.fits outfile=/scratch/kocevski/128491/cmap_HighResolution_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.638       1.0000         .10000E-03   10000.    
     2 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.608       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.528       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.630       1.0000         .10000E-03   10000.    
    10 'norm      '    7.5159       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29467E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7129       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.739       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1321       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7071       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29098       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88432       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85168       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6867.553     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1879 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.647        8.4140        .47967E-06    .11484E-02
   2  norm          .10000E-03    18.416       -.21787E-05** at limit **
   3  Prefactor     .15153E-03    6586.2       -.81688E-05** at limit **
   4  Prefactor     .10000E-03    4.3280        .45698E-06** at limit **
   5  norm          24.603        3.6117       -.71851E-07   -.43247E-02
   6  Prefactor     37.524        1.9334       -.18184E-06   -.16111E-02
   7  Prefactor     11.187        3.4665       -.33569E-07   -.85045E-03
   8  Prefactor     .10000E-03    10.933        .38265E-06** at limit **
   9  Prefactor     16.633        2.0137       -.17032E-06   -.24206E-03
  10  norm          7.5157        5.4376       -.66204E-06    .27855E-04
  11  norm          2.1450        2.7269        .23161E-06    .91765E-05
  12  Prefactor     .10015E-03    69.099       -.14013E-04** at limit **
  13  Prefactor     6.7027        4.7820       -.10686E-05   -.30851E-02
  14  Prefactor     19.223        25.727       -.88036E-08    .10600E-02
  15  Prefactor     21.694        8.6985        .11322E-06   -.61643E-02
  16  Prefactor     .10000E-03    24.119        .14924E-05** at limit **
  17  norm          2.1321        .71070        .14761E-07    .20687E-03
  18  norm          6.7075        4.8458        .43606E-06    .94606E-04
  19  Prefactor     .27745        23.010       -.45019E-06   -.81324E-03
  20  Normalizat    .88423        .17796        .31035E-05    .58999E-04
  21  Prefactor     .85181        .17381       -.20598E-05    .37039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6466
  norm       = 0.0001
  Prefactor  = 0.000151535
  Prefactor  = 0.0001
  norm       = 24.6032
  Prefactor  = 37.5242
  Prefactor  = 11.1873
  Prefactor  = 0.0001
  Prefactor  = 16.6326
  norm       = 7.51571
  norm       = 2.14502
  Prefactor  = 0.00010015
  Prefactor  = 6.70273
  Prefactor  = 19.2233
  Prefactor  = 21.6945
  Prefactor  = 0.000100002
  norm       = 2.13211
  norm       = 6.70749
  Prefactor  = 0.277449
  Normalizat = 0.88423
  Prefactor  = 0.851814
 **********
 **   18 **HESSE 
 **********

 FCN=   6867.553     FROM HESSE     STATUS=OK           377 CALLS     2256 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.647        8.6146        .28170E-02   -1.4997    
   2  norm          .10000E-03    18.362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15153E-03    22.051        .14480       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.603        12.513        .20188E-02   -1.4716    
   6  Prefactor     37.524        15.095        .16356E-02   -1.4482    
   7  Prefactor     11.187        65.849        .29918E-02   -1.5039    
   8  Prefactor     .10000E-03    10.905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.633        11.529        .24553E-02   -1.4892    
  10  norm          7.5157        6.0480        .36571E-02   -1.5160    
  11  norm          2.1450        2.7758        .70375E-02   -1.5415    
  12  Prefactor     .10015E-03    74.421        .10699E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7027        14.827        .38718E-02   -1.5190    
  14  Prefactor     19.223        26.252        .22820E-02   -1.4831    
  15  Prefactor     21.694        39.714        .21477E-02   -1.4776    
  16  Prefactor     .10000E-03    24.180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1321        .70381        .70587E-02   -1.5416    
  18  norm          6.7075        4.7782        .38735E-02   -1.5190    
  19  Prefactor     .27745        3.1086        .79603E-01   -1.5603    
  20  Normalizat    .88423        .15672        .44701E-01   -.97016    
  21  Prefactor     .85181        .14932        .44386E-01   -.97846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47267e-07
Minuit parameter uncertainties:
  1  8.61543
  2  5.38589e-05
  3  0.0674458
  4  4.29444e-06
  5  12.5143
  6  15.0963
  7  54.3735
  8  6.18741e-06
  9  11.5308
  10  6.04854
  11  2.77599
  12  0.00670091
  13  14.835
  14  26.2676
  15  39.762
  16  0.000406004
  17  0.703816
  18  4.77847
  19  1.85719
  20  0.156798
  21  0.149395
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.707e+00  4.778e+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:  8.518e-01  1.494e-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.842e-01  1.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/128491/likelihoodResults_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.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) = 6867.07728386
delta logL = 0.475247275652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6867.03413187
delta logL = 0.518399269418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1638       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9257       1.0000          .0000       5.0000    
     3 'Normalizat'    .84270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87926       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=   6867.034     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1608        36.543        .49380E-02    .41130E-03
   2  alpha         2.9262        3.9029        .26318        .71274E-04
   3  Normalizat    .84256        .60261E-01    .44165E-01    .24674E-04
   4  Prefactor     .87938        .52807E-01    .44740E-01    .19733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16078
  alpha      = 2.92623
  Normalizat = 0.842556
  Prefactor  = 0.879385
 **********
 **   18 **HESSE 
 **********

 FCN=   6867.034     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1608        5.0029        .86208E-04   -1.5300    
   2  alpha         2.9262        .81919        .10153E-01    .17133    
   3  Normalizat    .84256        .18025        .24135E-03   -.98509    
   4  Prefactor     .87938        .17673        .23725E-03   -.96865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46642e-11
Minuit parameter uncertainties:
  1  5.00339
  2  0.835091
  3  0.18038
  4  0.176843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128491': 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) = 6867.0341313
delta logL = 0.518399841556

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  4.161e+00  5.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.926e+00  8.351e-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.794e-01  1.768e-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.426e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.93 +/- 0.84
Photon Flux (Free Index): 8.91e-08 +/- 5.25e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/128491/cmap_HighResolution_515894401_516153601_4FGL_J2348.0-1630_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='1.92e-05', photon_flux_error='4.08e-08', dlogl='5.18e-01', energy_flux='2.14e-05', photon_flux2='8.91e-08', job_status='DONE', time_completed='2021-09-30 05:46:49.220549', photon_index_error2='0.84', photon_index2='2.93', ts='3.53', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.13e-05', EG='0.88', time_epoch_completed='1633006009.22', return_code='0', job_id='128491', GAL2='0.88', EG2='0.84', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.25e-08', ts2='4.81', photon_index='2.29' WHERE bin_id='1067' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:46:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 128491: <4FGL_J2348.0-1630_daily_bin1067> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1067 357.016 -16.5161 515894401 516153601 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 :                                   613.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

