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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1089
RA = 357.016, Dec = -16.5161
tmin = 521596801, tmax = 521856001
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='128523', job_status='RUN', time_executed='2021-09-30 05:33:12.522935', time_epoch_executed='1633005192.52' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128523/ft1_4FGL_J2348.0-1630_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128523/ft1_4FGL_J2348.0-1630_daily_bin1089.fits outfile=/scratch/kocevski/128523/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1089.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=521596801.0 tmax=521856001.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.34
user 4.09
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.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/128523/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1089.fits evtable="EVENTS" outfile="/scratch/kocevski/128523/ft1_filtered_4FGL_J2348.0-1630_daily_bin1089.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128523/ft1_filtered_4FGL_J2348.0-1630_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/128523/ltcube_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.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/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.fits
.....................!
real 11.88
user 11.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128523/ft1_filtered_4FGL_J2348.0-1630_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/128523/ltcube_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.fits outfile=/scratch/kocevski/128523/expmap_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.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/128523/ltcube_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.fits
.....................!
real 189.71
user 184.95
sys 4.34

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/128523/ft1_filtered_4FGL_J2348.0-1630_daily_bin1089.fits scfile=/scratch/kocevski/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.fits outfile=/scratch/kocevski/128523/cmap_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128523/ft1_filtered_4FGL_J2348.0-1630_daily_bin1089.fits scfile=/scratch/kocevski/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.fits outfile=/scratch/kocevski/128523/cmap_HighResolution_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.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/128523/ft1_filtered_4FGL_J2348.0-1630_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/128523/ft2_4FGL_J2348.0-1630_daily_bin1089.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128523/Model_4FGL_J2348.0-1630_daily_bin1089.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/128523/ft1_filtered_4FGL_J2348.0-1630_daily_bin1089.fits.....................!
real 51.21
user 49.88
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6007       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54473E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    121.21       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.644       1.0000         .10000E-03   10000.    
    10 'norm      '    13.513       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0374       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8294       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64682       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3770       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .69113       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=   6126.443     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2212 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5967        13.059       -.23833E-05   -.39288E-03
   2  norm          .10000E-03    12.308        .10093E-07** at limit **
   3  Prefactor     25.038        53.424       -.12541E-05   -.75914E-04
   4  Prefactor     .10000E-03    25.392        .19383E-05** at limit **
   5  norm          19.418        13.449        .24357E-06    .23713E-04
   6  Prefactor     .10013E-03    91.319       -.78852E-05** at limit **
   7  Prefactor     121.21        75.836       -.29219E-07   -.23111E-04
   8  Prefactor     .10000E-03    6.7890        .10139E-07** at limit **
   9  Prefactor     12.645        12.178       -.87609E-07   -.42437E-04
  10  norm          13.513        10.016       -.18929E-06   -.55811E-04
  11  norm          5.0377        3.4652       -.67624E-06   -.32744E-03
  12  Prefactor     .10000E-03    39.831       -.53136E-06** at limit **
  13  Prefactor     .10000E-03    4.0876       -.26361E-07** at limit **
  14  Prefactor     16.328        29.376       -.13931E-08   -.22699E-04
  15  Prefactor     81.300        67.279       -.91595E-07   -.29105E-04
  16  Prefactor     .10000E-03    27.958       -.12768E-05** at limit **
  17  norm          2.8294        .89815        .22772E-06   -.12286E-02
  18  norm          4.7760        5.1717       -.19734E-05   -.40142E-03
  19  Prefactor     .62661        11.089        .18824E-06   -.65077E-03
  20  Normalizat    1.3768        .19683       -.14672E-05   -.15000E-03
  21  Prefactor     .69126        .18422        .30015E-05   -.21079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.59665
  norm       = 0.0001
  Prefactor  = 25.0385
  Prefactor  = 0.0001
  norm       = 19.4177
  Prefactor  = 0.000100131
  Prefactor  = 121.207
  Prefactor  = 0.0001
  Prefactor  = 12.6447
  norm       = 13.513
  norm       = 5.03774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3278
  Prefactor  = 81.2996
  Prefactor  = 0.0001
  norm       = 2.82944
  norm       = 4.77597
  Prefactor  = 0.626612
  Normalizat = 1.3768
  Prefactor  = 0.691259
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.443     FROM HESSE     STATUS=OK           321 CALLS     2533 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5967        13.105        .13668E-03   -1.5121    
   2  norm          .10000E-03    12.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.038        53.562        .80103E-04   -1.4707    
   4  Prefactor     .10000E-03    25.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.418        13.449        .90893E-04   -1.4826    
   6  Prefactor     .10013E-03    104.74        .44930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     121.21        75.762        .36555E-04   -1.3502    
   8  Prefactor     .10000E-03    6.7906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.645        12.151        .11265E-03   -1.4997    
  10  norm          13.513        10.008        .10896E-03   -1.4973    
  11  norm          5.0377        3.4702        .11162E-03   -1.5259    
  12  Prefactor     .10000E-03    39.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0896        .15455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.328        29.359        .99129E-04   -1.4900    
  15  Prefactor     81.300        67.251        .44545E-04   -1.3902    
  16  Prefactor     .10000E-03    27.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8294        .90683        .34698E-04   -1.5372    
  18  norm          4.7760        5.2426        .15503E-03   -1.5271    
  19  Prefactor     .62661        35.029        .32283E-02   -1.5550    
  20  Normalizat    1.3768        .22977        .23383E-03   -.81302    
  21  Prefactor     .69126        .21211        .30229E-03   -1.0387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93543e-09
Minuit parameter uncertainties:
  1  13.1092
  2  7.80518e-07
  3  53.6648
  4  9.66671e-05
  5  13.4508
  6  0.00742355
  7  75.8228
  8  6.75638e-08
  9  12.1531
  10  10.0089
  11  3.47037
  12  3.48373e-05
  13  3.35992e-07
  14  29.3854
  15  67.3143
  16  0.000108258
  17  0.906834
  18  5.24306
  19  9.37504
  20  0.22994
  21  0.212362
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  4.776e+00  5.243e+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:  6.913e-01  2.124e-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.377e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/128523/likelihoodResults_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.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) = 6126.43417647
delta logL = 0.00916083702305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6126.43288824
delta logL = 0.0104490684562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0024       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68956       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=   6126.433     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0026        4.9106        .15920E-03   -.91973E-03
   2  alpha         2.1976        .63350        .14845E-01   -.83431E-04
   3  Normalizat    1.3798        .22269        .23363E-03    .97908E-04
   4  Prefactor     .68938        .21114        .30267E-03    .79104E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.00259
  alpha      = 2.19762
  Normalizat = 1.37981
  Prefactor  = 0.689381
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.433     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0026        4.8538        .63678E-05   -1.5261    
   2  alpha         2.1976        .62622        .59379E-03   -.12125    
   3  Normalizat    1.3798        .22286        .46725E-04   -.81214    
   4  Prefactor     .68938        .21130        .12107E-04   -1.0394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9531e-10
Minuit parameter uncertainties:
  1  4.85421
  2  0.633066
  3  0.223019
  4  0.211545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128523': 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) = 6126.43288723
delta logL = 0.0104500772104

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  5.003e+00  4.854e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.198e+00  6.331e-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:  6.894e-01  2.115e-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.380e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.20 +/- 0.63
Photon Flux (Free Index): 3.80e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.65e-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/128523/cmap_HighResolution_521596801_521856001_4FGL_J2348.0-1630_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='1.61e-05', photon_flux_error='4.48e-08', dlogl='1.05e-02', energy_flux='1.52e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-30 05:45:46.546559', photon_index_error2='0.63', photon_index2='2.20', ts='1.59', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.65e-05', EG='1.38', time_epoch_completed='1633005946.55', return_code='0', job_id='128523', GAL2='0.69', EG2='1.38', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='4.12e-08', ts2='1.67', photon_index='2.29' WHERE bin_id='1089' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:45:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 128523: <4FGL_J2348.0-1630_daily_bin1089> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1089> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:30:54 2021
Job was executed on host(s) <bullet0278>, 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:45:47 2021
Results reported at Thu Sep 30 05:45:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1089 357.016 -16.5161 521596801 521856001 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 :                                   596.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

