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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin325
RA = 357.016, Dec = -16.5161
tmin = 323568001, tmax = 323827201
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='125455', job_status='RUN', time_executed='2021-09-30 05:22:29.201373', time_epoch_executed='1633004549.2' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125455/ft1_4FGL_J2348.0-1630_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125455/ft2_4FGL_J2348.0-1630_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125455/ft1_4FGL_J2348.0-1630_daily_bin325.fits outfile=/scratch/kocevski/125455/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin325.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=323568001.0 tmax=323827201.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.36
user 3.17
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125455/ft1_filtered_4FGL_J2348.0-1630_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/125455/ft2_4FGL_J2348.0-1630_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/125455/ltcube_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.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/125455/ft2_4FGL_J2348.0-1630_daily_bin325.fits
.....................!
real 11.67
user 11.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125455/ft1_filtered_4FGL_J2348.0-1630_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/125455/ft2_4FGL_J2348.0-1630_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/125455/ltcube_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.fits outfile=/scratch/kocevski/125455/expmap_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.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/125455/ltcube_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.fits
.....................!
real 190.14
user 184.86
sys 4.92

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/125455/ft1_filtered_4FGL_J2348.0-1630_daily_bin325.fits scfile=/scratch/kocevski/125455/ft2_4FGL_J2348.0-1630_daily_bin325.fits outfile=/scratch/kocevski/125455/cmap_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.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/125455/ft1_filtered_4FGL_J2348.0-1630_daily_bin325.fits scfile=/scratch/kocevski/125455/ft2_4FGL_J2348.0-1630_daily_bin325.fits outfile=/scratch/kocevski/125455/cmap_HighResolution_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125455/ft1_filtered_4FGL_J2348.0-1630_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/125455/ft2_4FGL_J2348.0-1630_daily_bin325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125455/Model_4FGL_J2348.0-1630_daily_bin325.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/125455/ft1_filtered_4FGL_J2348.0-1630_daily_bin325.fits.....................!
real 51.05
user 49.73
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1837       1.0000         .10000E-03   10000.    
     2 'norm      '    7.9396       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4058       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    107.24       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7761       1.0000         .10000E-03   10000.    
    18 'norm      '    .24321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8023       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82399       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81771       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=   6355.065     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2246 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1828        9.0273        .16042E-06   -.29313E-05
   2  norm          7.9405        24.507        .23321E-06    .28250E-05
   3  Prefactor     .10000E-03    18.261        .36113E-07** at limit **
   4  Prefactor     .10000E-03    6.9130        .50230E-07** at limit **
   5  norm          12.106        12.225        .36644E-07   -.89323E-06
   6  Prefactor     .10000E-03    4.3851        .36173E-07** at limit **
   7  Prefactor     .10000E-03    47.085        .96156E-07** at limit **
   8  Prefactor     15.556        14.704        .11230E-07    .24421E-04
   9  Prefactor     .10000E-03    2.8202       -.20783E-07** at limit **
  10  norm          1.4044        4.1807        .11521E-05    .42478E-04
  11  norm          .10000E-03    .94483       -.10036E-06** at limit **
  12  Prefactor     44.851        44.662        .18775E-07   -.20174E-04
  13  Prefactor     .10000E-03    23.688       -.59445E-05** at limit **
  14  Prefactor     13.183        20.354       -.43026E-08    .52077E-05
  15  Prefactor     16.340        37.994       -.25700E-06   -.74940E-05
  16  Prefactor     107.23        83.225       -.43731E-07   -.27426E-05
  17  norm          5.7744        1.0044        .15619E-07    .56040E-03
  18  norm          .26367        2.6906       -.65183E-08   -.55655E-04
  19  Prefactor     3.8034        6.5101        .38179E-06    .11562E-04
  20  Normalizat    .82406        .15871        .12320E-05   -.17721E-05
  21  Prefactor     .81759        .15508       -.14253E-05    .10693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1828
  norm       = 7.94052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5562
  Prefactor  = 0.0001
  norm       = 1.40438
  norm       = 0.0001
  Prefactor  = 44.8506
  Prefactor  = 0.0001
  Prefactor  = 13.1831
  Prefactor  = 16.3398
  Prefactor  = 107.233
  norm       = 5.77442
  norm       = 0.263666
  Prefactor  = 3.80336
  Normalizat = 0.824062
  Prefactor  = 0.817588
 **********
 **   18 **HESSE 
 **********

 FCN=   6355.065     FROM HESSE     STATUS=OK           321 CALLS     2567 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1828        8.9870        .17657E-03   -1.5253    
   2  norm          7.9405        24.500        .14230E-03   -1.5144    
   3  Prefactor     .10000E-03    18.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.106        12.224        .11514E-03   -1.5012    
   6  Prefactor     .10000E-03    4.4159        .16303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.556        14.704        .10155E-03   -1.4919    
   9  Prefactor     .10000E-03    2.8312        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4044        4.1525        .27304E-03   -1.5471    
  11  norm          .10000E-03    .95708        .75591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.851        44.565        .59843E-04   -1.4368    
  13  Prefactor     .10000E-03    24.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.183        20.360        .11031E-03   -1.4982    
  15  Prefactor     16.340        37.986        .99077E-04   -1.4899    
  16  Prefactor     107.23        83.237        .38836E-04   -1.3633    
  17  norm          5.7744        .99173        .27484E-04   -1.5227    
  18  norm          .26367        14.086        .21606E-02   -1.5605    
  19  Prefactor     3.8034        6.4877        .20701E-03   -1.5318    
  20  Normalizat    .82406        .18155        .23431E-03   -.99182    
  21  Prefactor     .81759        .17655        .23467E-03   -.99083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06373e-08
Minuit parameter uncertainties:
  1  8.98933
  2  24.5307
  3  6.13682e-06
  4  8.4592e-07
  5  12.2261
  6  1.13399e-06
  7  2.25573e-05
  8  14.7077
  9  5.06957e-06
  10  4.1534
  11  2.64491e-07
  12  44.5979
  13  7.09967e-05
  14  20.3707
  15  38.0418
  16  83.3275
  17  0.991735
  18  3.85456
  19  6.48887
  20  0.181681
  21  0.17667
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  2.637e-01  3.855e+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.176e-01  1.767e-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.241e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125455/likelihoodResults_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.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): 102
logL (Free Index) = 6354.8807684
delta logL = 0.184226579853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6354.68969163
delta logL = 0.375303345338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62207E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .77716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84843       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=   6354.690     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      281 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62137E-01    2.7563        .50773E-02    .12426E-02
   2  alpha         5.0000        2.5194        .46267    ** at limit **
   3  Normalizat    .77693        .63326E-01    .43311E-01   -.51212E-04
   4  Prefactor     .84879        .54736E-01    .44344E-01   -.24272E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0621373
  alpha      = 5
  Normalizat = 0.776929
  Prefactor  = 0.848795
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.690     FROM HESSE     STATUS=OK            35 CALLS      316 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62137E-01    .82194E-01    .22386E-04   -1.5658    
   2  alpha         5.0000        3.3285        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77693        .18464        .24002E-03   -1.0093    
   4  Prefactor     .84879        .18001        .23058E-03   -.97954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16965e-10
Minuit parameter uncertainties:
  1  0.082194
  2  2.95363e-06
  3  0.184786
  4  0.180134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125455': 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) = 6354.68968708
delta logL = 0.375307901026

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.214e-02  8.219e-02  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  5.000e+00  2.954e-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:  8.488e-01  1.801e-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.769e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 357.016 -16.516

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/125455/cmap_HighResolution_323568001_323827201_4FGL_J2348.0-1630_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-30 05:32:35.549049', job_id='125455', GAL2='0.85', fit_tolerance='1e-08', EG2='0.78', EG='0.82', time_epoch_completed='1633005155.55', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.75e-01', ts2='0.82', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='325' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:32:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 125455: <4FGL_J2348.0-1630_daily_bin325> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin325> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:20:19 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:20:22 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:22 2021
Terminated at Thu Sep 30 05:32:36 2021
Results reported at Thu Sep 30 05:32:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin325 357.016 -16.5161 323568001 323827201 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 :                                   605.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            737 sec.

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

