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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1087
RA = 357.016, Dec = -16.5161
tmin = 521078401, tmax = 521337601
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='128520', job_status='RUN', time_executed='2021-09-30 05:34:55.957362', time_epoch_executed='1633005295.96' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128520

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128520/ft1_4FGL_J2348.0-1630_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128520/ft2_4FGL_J2348.0-1630_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128520/ft1_4FGL_J2348.0-1630_daily_bin1087.fits outfile=/scratch/kocevski/128520/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1087.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.60
user 4.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128520/ft1_filtered_4FGL_J2348.0-1630_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/128520/ft2_4FGL_J2348.0-1630_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/128520/ltcube_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.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/128520/ft2_4FGL_J2348.0-1630_daily_bin1087.fits
.....................!
real 11.69
user 11.37
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128520/ft1_filtered_4FGL_J2348.0-1630_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/128520/ft2_4FGL_J2348.0-1630_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/128520/ltcube_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.fits outfile=/scratch/kocevski/128520/expmap_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.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/128520/ltcube_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.fits
.....................!
real 190.20
user 185.81
sys 4.09

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/128520/ft1_filtered_4FGL_J2348.0-1630_daily_bin1087.fits scfile=/scratch/kocevski/128520/ft2_4FGL_J2348.0-1630_daily_bin1087.fits outfile=/scratch/kocevski/128520/cmap_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128520/ft1_filtered_4FGL_J2348.0-1630_daily_bin1087.fits scfile=/scratch/kocevski/128520/ft2_4FGL_J2348.0-1630_daily_bin1087.fits outfile=/scratch/kocevski/128520/cmap_HighResolution_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.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/128520/ft1_filtered_4FGL_J2348.0-1630_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/128520/ft2_4FGL_J2348.0-1630_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128520/Model_4FGL_J2348.0-1630_daily_bin1087.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/128520/ft1_filtered_4FGL_J2348.0-1630_daily_bin1087.fits.....................!
real 52.36
user 51.07
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.100       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.932       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2734       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7286       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.814       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4107       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2770       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4064       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .55056       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=   6478.574     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2193 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6846       -.10706E-06** at limit **
   2  norm          .10000E-03    28.608       -.29336E-07** at limit **
   3  Prefactor     .10000E-03    18.628        .48871E-07** at limit **
   4  Prefactor     .10000E-03    8.3408        .67099E-07** at limit **
   5  norm          14.050        10.170        .15737E-07    .38330E-05
   6  Prefactor     2.3635        9.2315        .93285E-06   -.38036E-04
   7  Prefactor     79.095        41.351       -.57313E-06   -.10005E-03
   8  Prefactor     21.580        15.684        .26099E-06    .54675E-04
   9  Prefactor     .10000E-03    2.3779       -.29137E-07** at limit **
  10  norm          21.932        8.2507        .76353E-08   -.24173E-04
  11  norm          1.2748        2.4114        .42259E-06    .34332E-05
  12  Prefactor     2.7006        112.16       -.18208E-04   -.13570E-03
  13  Prefactor     .10000E-03    8.6080       -.85893E-06** at limit **
  14  Prefactor     9.9549        21.579       -.79313E-06   -.55968E-04
  15  Prefactor     38.814        51.051        .11423E-06    .82855E-05
  16  Prefactor     .10000E-03    57.296        .67825E-06** at limit **
  17  norm          3.4108        .88957        .26986E-07    .48550E-03
  18  norm          5.2774        5.7926        .18425E-07    .21145E-04
  19  Prefactor     6.4060        5.6605        .24959E-05   -.10044E-02
  20  Normalizat    1.0701        .15233        .61924E-06   -.11950E-04
  21  Prefactor     .55056        .14158       -.14096E-05    .89296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.05
  Prefactor  = 2.36347
  Prefactor  = 79.0953
  Prefactor  = 21.5796
  Prefactor  = 0.0001
  norm       = 21.9319
  norm       = 1.27483
  Prefactor  = 2.70059
  Prefactor  = 0.0001
  Prefactor  = 9.95488
  Prefactor  = 38.814
  Prefactor  = 0.0001
  norm       = 3.41076
  norm       = 5.27736
  Prefactor  = 6.406
  Normalizat = 1.07012
  Prefactor  = 0.550556
 **********
 **   18 **HESSE 
 **********

 FCN=   6478.574     FROM HESSE     STATUS=OK           321 CALLS     2514 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7101        .15090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.050        10.171        .10686E-03   -1.4958    
   6  Prefactor     2.3635        9.2364        .26654E-03   -1.5400    
   7  Prefactor     79.095        41.439        .45155E-04   -1.3927    
   8  Prefactor     21.580        15.695        .86223E-04   -1.4779    
   9  Prefactor     .10000E-03    2.3790        .12115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.932        8.2495        .85529E-04   -1.4771    
  11  norm          1.2748        2.3640        .15700E-03   -1.5482    
  12  Prefactor     2.7006        133.47        .24651E-03   -1.5379    
  13  Prefactor     .10000E-03    8.5992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9549        21.485        .12696E-03   -1.5077    
  15  Prefactor     38.814        51.034        .64335E-04   -1.4461    
  16  Prefactor     .10000E-03    57.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4108        .90914        .30990E-04   -1.5339    
  18  norm          5.2774        5.9126        .16138E-03   -1.5248    
  19  Prefactor     6.4060        5.9955        .79287E-03   -1.5202    
  20  Normalizat    1.0701        .17768        .20944E-03   -.90717    
  21  Prefactor     .55056        .16276        .27266E-03   -1.0971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76165e-09
Minuit parameter uncertainties:
  1  1.37517e-05
  2  3.32151e-05
  3  2.21792e-06
  4  1.50971e-06
  5  10.1719
  6  9.24202
  7  41.4537
  8  15.6983
  9  2.66477e-06
  10  8.24996
  11  2.36415
  12  38.0602
  13  0.000117043
  14  21.5015
  15  51.0916
  16  0.000165418
  17  0.909145
  18  5.91328
  19  5.99607
  20  0.177779
  21  0.162896
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  5.277e+00  5.913e+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.506e-01  1.629e-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.070e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 5.05e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.88e-05

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

Saving results to:
/scratch/kocevski/128520/likelihoodResults_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.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) = 6473.55260719
delta logL = 5.02178074042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6473.50064206
delta logL = 5.07374586492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25452       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9998       1.0000          .0000       5.0000    
     3 'Normalizat'    .88366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67343       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6473.501     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      395 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25443        .11018        .13044E-04   -.90732E-03
   2  alpha         5.0000        .26245        .50000    ** at limit **
   3  Normalizat    .88350        .18071        .22591E-03   -.18861E-03
   4  Prefactor     .67359        .16870        .24819E-03   -.10765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.254425
  alpha      = 5
  Normalizat = 0.883501
  Prefactor  = 0.673586
 **********
 **   18 **HESSE 
 **********

 FCN=   6473.501     FROM HESSE     STATUS=OK            31 CALLS      426 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25443        .10999        .52175E-06   -1.5607    
   2  alpha         5.0000        .26156        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88350        .18094        .90364E-05   -.97042    
   4  Prefactor     .67359        .16891        .99276E-05   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29237e-10
Minuit parameter uncertainties:
  1  0.109986
  2  2.59552e-06
  3  0.181067
  4  0.169034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128520': 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) = 6473.50063585
delta logL = 5.07375207504

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.544e-01  1.100e-01  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  5.000e+00  2.596e-06  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:  6.736e-01  1.690e-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.835e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.94
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.01e-07 +/- 8.65e-08
Energy Flux (Free Index): 2.72e-05 +/- 1.17e-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/128520/cmap_HighResolution_521078401_521337601_4FGL_J2348.0-1630_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-05', comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='2.72e-05', photon_flux_error='5.05e-08', dlogl='5.07e+00', energy_flux='1.68e-05', photon_flux2='2.01e-07', job_status='DONE', time_completed='2021-09-30 05:47:00.039030', photon_index_error2='0.00', photon_index2='5.00', ts='1.42', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.17e-05', EG='1.07', time_epoch_completed='1633006020.04', return_code='0', job_id='128520', GAL2='0.67', EG2='0.88', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='8.65e-08', ts2='12.94', photon_index='2.29' WHERE bin_id='1087' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:47:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 128520: <4FGL_J2348.0-1630_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1087 357.016 -16.5161 521078401 521337601 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

