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


Performing analysis on: 4FGL_J2348.1-4934_daily_bin950
RA = 357.037, Dec = -49.57
tmin = 485568001, tmax = 485827201
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='135298', job_status='RUN', time_executed='2021-09-30 05:50:58.098219', time_epoch_executed='1633006258.1' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135298/ft1_4FGL_J2348.1-4934_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135298/ft1_4FGL_J2348.1-4934_daily_bin950.fits outfile=/scratch/kocevski/135298/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin950.fits ra=357.037 dec=-49.57 rad=12.0 tmin=485568001.0 tmax=485827201.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.94
user 3.69
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.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/135298/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin950.fits evtable="EVENTS" outfile="/scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/135298/ltcube_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.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/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits
.....................!
real 11.61
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/135298/ltcube_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.fits outfile=/scratch/kocevski/135298/expmap_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.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/135298/ltcube_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.fits
.....................!
real 190.93
user 185.61
sys 4.99

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2348.1-4934 @ 357.037 -49.57

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits scfile=/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits outfile=/scratch/kocevski/135298/cmap_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.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.037 yref=-49.57 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits scfile=/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits outfile=/scratch/kocevski/135298/cmap_HighResolution_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.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.037 yref=-49.57 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135298/Model_4FGL_J2348.1-4934_daily_bin950.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/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits.....................!
real 41.62
user 40.32
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits', '/scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits', expMap='/scratch/kocevski/135298/expmap_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.fits', expCube='/scratch/kocevski/135298/ltcube_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135298/Model_4FGL_J2348.1-4934_daily_bin950.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2348.1-4934'

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  2.252e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  2.559e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/135298/ft1_filtered_4FGL_J2348.1-4934_daily_bin950.fits
Spacecraft file(s): /scratch/kocevski/135298/ft2_4FGL_J2348.1-4934_daily_bin950.fits
Exposure map: /scratch/kocevski/135298/expmap_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.fits
Exposure cube: /scratch/kocevski/135298/ltcube_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135298/Model_4FGL_J2348.1-4934_daily_bin950.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) = 5300.77818571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85371       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12827E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7365       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5551       1.0000         .10000E-03   10000.    
     9 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    94.695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0646       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8549       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.874       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3482       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.483       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3781       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.860       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1930       1.0000         .10000E-03   10000.    
    26 'norm      '    6.4107       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    32.246       1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .11370E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.5093       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .65009       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5300.775     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4800 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.887        .35942E-07** at limit **
   2  Prefactor     .74428        17.562        .13611E-05   -.14918E-03
   3  Prefactor     .10000E-03    16.308       -.11597E-06** at limit **
   4  Prefactor     12.019        10.675       -.14560E-07    .23115E-06
   5  Prefactor     9.0139        9.5964        .20404E-07   -.99526E-05
   6  Prefactor     .10000E-03    73.668       -.50037E-06** at limit **
   7  Prefactor     2.7370        5.1685       -.16232E-07   -.31767E-05
   8  Prefactor     8.5516        6.7142        .21929E-07    .65670E-06
   9  norm          .10000E-03    47.105        .16627E-06** at limit **
  10  Prefactor     54.318        39.526       -.11279E-07    .54910E-06
  11  Prefactor     94.703        81.037       -.31386E-06    .50254E-05
  12  Prefactor     9.0636        8.4579       -.39114E-06   -.55103E-04
  13  Prefactor     1.8512        174.41        .48814E-05    .15427E-04
  14  Prefactor     2.8666        13.073        .13413E-05    .77428E-04
  15  Prefactor     87.880        110.78       -.16353E-05   -.93084E-05
  16  Prefactor     .10000E-03    23.919        .19496E-08** at limit **
  17  Prefactor     .10000E-03    4.3191        .14904E-07** at limit **
  18  norm          .10000E-03    12.708        .17659E-06** at limit **
  19  norm          .10000E-03    2.2367        .27067E-08** at limit **
  20  norm          .10000E-03    1.9602       -.17081E-07** at limit **
  21  Prefactor     4.3482        7.9117        .16041E-06    .38634E-05
  22  Prefactor     38.342        67.509        .52786E-05   -.60303E-05
  23  norm          3.3924        7.8036       -.19005E-05   -.12792E-03
  24  Prefactor     10.873        24.351       -.10006E-05   -.95715E-05
  25  norm          1.1933        1.0164        .54044E-08   -.21395E-04
  26  norm          6.4104        5.6129       -.71475E-08    .39003E-04
  27  Prefactor     .10000E-03    8.8848        .92570E-07** at limit **
  28  Prefactor     .10000E-03    2.3487        .10862E-06** at limit **
  29  Prefactor     32.254        28.423       -.38330E-06   -.20341E-04
  30  norm          .10000E-03    11.964       -.17406E-06** at limit **
  31  Prefactor     .10000E-03    3.4506        .94171E-07** at limit **
  32  Prefactor     .10000E-03    4.4827        .40099E-08** at limit **
  33  Normalizat    1.5088        .24174        .28746E-05   -.11693E-03
  34  Prefactor     .65054        .24625       -.46582E-05   -.21052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.744281
  Prefactor  = 0.0001
  Prefactor  = 12.0187
  Prefactor  = 9.01386
  Prefactor  = 0.0001
  Prefactor  = 2.73704
  Prefactor  = 8.55163
  norm       = 0.0001
  Prefactor  = 54.3175
  Prefactor  = 94.7026
  Prefactor  = 9.06355
  Prefactor  = 1.85118
  Prefactor  = 2.86663
  Prefactor  = 87.8804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.34816
  Prefactor  = 38.3421
  norm       = 3.39239
  Prefactor  = 10.8731
  norm       = 1.19325
  norm       = 6.41035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2542
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50881
  Prefactor  = 0.650543
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.775     FROM HESSE     STATUS=OK           732 CALLS     5532 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74428        133.34        .56189E-02   -1.5535    
   3  Prefactor     .10000E-03    16.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.019        10.675        .11554E-03   -1.5014    
   5  Prefactor     9.0139        9.5908        .13350E-03   -1.5107    
   6  Prefactor     .10000E-03    76.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7370        5.1489        .22101E-03   -1.5377    
   8  Prefactor     8.5516        6.7194        .13705E-03   -1.5123    
   9  norm          .10000E-03    47.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     54.318        39.562        .54422E-04   -1.4233    
  11  Prefactor     94.703        81.039        .41302E-04   -1.3759    
  12  Prefactor     9.0636        8.4168        .13312E-03   -1.5106    
  13  Prefactor     1.8512        174.49        .30605E-03   -1.5436    
  14  Prefactor     2.8666        13.898        .11980E-02   -1.5369    
  15  Prefactor     87.880        110.34        .42860E-04   -1.3830    
  16  Prefactor     .10000E-03    23.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3207        .14777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2375        .10634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9604        .99525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3482        7.8026        .19317E-03   -1.5291    
  22  Prefactor     38.342        69.422        .64610E-04   -1.4469    
  23  norm          3.3924        7.8761        .20671E-03   -1.5340    
  24  Prefactor     10.873        24.028        .12157E-03   -1.5048    
  25  norm          1.1933        1.0227        .63677E-04   -1.5489    
  26  norm          6.4104        5.5911        .14617E-03   -1.5202    
  27  Prefactor     .10000E-03    8.9034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.3788        .10878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     32.254        28.328        .70563E-04   -1.4571    
  30  norm          .10000E-03    11.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.4791        .13201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    4.6591        .30054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.5088        .26426        .22315E-03   -.77531    
  34  Prefactor     .65054        .26440        .34344E-03   -1.0550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89083e-10
Minuit parameter uncertainties:
  1  5.41592e-06
  2  19.9683
  3  7.63556e-06
  4  10.6767
  5  9.59243
  6  8.75693e-05
  7  5.14977
  8  6.72
  9  1.29756e-05
  10  39.5807
  11  81.1335
  12  8.41792
  13  36.0532
  14  12.6283
  15  110.598
  16  3.65291e-06
  17  6.5168e-07
  18  2.18058e-05
  19  5.39058e-07
  20  7.18779e-07
  21  7.80438
  22  69.5686
  23  7.87852
  24  24.0494
  25  1.02269
  26  5.59151
  27  2.08087e-06
  28  2.76428e-06
  29  28.3402
  30  1.2701e-05
  31  2.46276e-06
  32  8.38894e-06
  33  0.264498
  34  0.264914
Done.

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

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  3.225e+01  2.834e+01  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  2.559e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  6.505e-01  2.649e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.509e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 357.037 -49.570
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.24e-05

TS (Fixed Index): 2.49
Ra Dec: 357.037 -49.570
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135298/likelihoodResults_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.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) = 5300.72591833
delta logL = 0.0490322752257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5300.72431959
delta logL = 0.0506310091123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.943       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8225       1.0000          .0000       10.000    
     3 'Normalizat'    1.4941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   5300.724     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.940        34.227        .78649E-04    .25912E-03
   2  Index         2.8223        .93245        .71600E-02    .85548E-04
   3  Normalizat    1.4941        .25179        .22400E-03   -.27290E-03
   4  Prefactor     .66115        .26183        .34092E-03   -.20955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9404
  Index      = 2.82231
  Normalizat = 1.49408
  Prefactor  = 0.661148
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.724     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.940        30.983        .15730E-04   -1.4689    
   2  Index         2.8223        .84382        .28640E-03   -.45064    
   3  Normalizat    1.4941        .25147        .44801E-04   -.77945    
   4  Prefactor     .66115        .26162        .13637E-04   -1.0507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59884e-10
Minuit parameter uncertainties:
  1  31.0023
  2  0.848845
  3  0.251676
  4  0.262106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135298': 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) = 5300.72431941
delta logL = 0.050631188974

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  2.594e+01  3.100e+01  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  2.822e+00  8.488e-01  0.000e+00  1.000e+01 (-1.000e+00)
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  6.611e-01  2.621e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.494e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 357.037 -49.570
Photon Index (Free Index): 2.82 +/- 0.85
Photon Flux (Free Index): 6.28e-08 +/- 5.94e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.13e-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/135298/cmap_HighResolution_485568001_485827201_4FGL_J2348.1-4934_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='1.39e-05', photon_flux_error='4.54e-08', dlogl='5.06e-02', energy_flux='1.41e-05', photon_flux2='6.28e-08', job_status='DONE', time_completed='2021-09-30 06:05:58.028759', photon_index_error2='0.85', photon_index2='2.82', ts='2.49', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.13e-05', EG='1.51', time_epoch_completed='1633007158.03', return_code='0', job_id='135298', GAL2='0.66', EG2='1.49', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.94e-08', ts2='2.60', photon_index='2.56' WHERE bin_id='950' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:05:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 135298: <4FGL_J2348.1-4934_daily_bin950> in cluster <slac> Done

Job <4FGL_J2348.1-4934_daily_bin950> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 05:50:42 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:50:44 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:50:44 2021
Terminated at Thu Sep 30 06:05:58 2021
Results reported at Thu Sep 30 06:05:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.1-4934_daily_bin950 357.037 -49.57 485568001 485827201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2348.1-4934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   893.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

