/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 2 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 = 7475
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2348.1-4934_daily_bin51
RA = 357.037, Dec = -49.57
tmin = 252547201, tmax = 252806401
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='131499', job_status='RUN', time_executed='2021-09-30 05:40:33.528940', time_epoch_executed='1633005633.53' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131499/ft1_4FGL_J2348.1-4934_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131499/ft1_4FGL_J2348.1-4934_daily_bin51.fits outfile=/scratch/kocevski/131499/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin51.fits ra=357.037 dec=-49.57 rad=12.0 tmin=252547201.0 tmax=252806401.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 1.38
user 1.21
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/131499/ltcube_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.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/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits
.....................!
real 12.62
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/131499/ltcube_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.fits outfile=/scratch/kocevski/131499/expmap_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.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/131499/ltcube_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.fits
.....................!
real 190.45
user 185.39
sys 4.69

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/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits scfile=/scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits outfile=/scratch/kocevski/131499/cmap_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits scfile=/scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits outfile=/scratch/kocevski/131499/cmap_HighResolution_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/131499/Model_4FGL_J2348.1-4934_daily_bin51.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/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits.....................!
real 42.65
user 41.43
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits', '/scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits', expMap='/scratch/kocevski/131499/expmap_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.fits', expCube='/scratch/kocevski/131499/ltcube_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/131499/Model_4FGL_J2348.1-4934_daily_bin51.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/131499/ft1_filtered_4FGL_J2348.1-4934_daily_bin51.fits
Spacecraft file(s): /scratch/kocevski/131499/ft2_4FGL_J2348.1-4934_daily_bin51.fits
Exposure map: /scratch/kocevski/131499/expmap_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.fits
Exposure cube: /scratch/kocevski/131499/ltcube_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/131499/Model_4FGL_J2348.1-4934_daily_bin51.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) = 5704.38378538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.745       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25474E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.159       1.0000         .10000E-03   10000.    
     9 'norm      '    33.294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7789       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4767       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9952       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4963       1.0000         .10000E-03   10000.    
    22 'Prefactor '    86.988       1.0000         .10000E-03   10000.    
    23 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .46931       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18530E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9411       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.6253       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .91912       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0471       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=   5704.355     FROM MIGRAD    STATUS=CONVERGED    926 CALLS     4871 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.056       -.17401E-05** at limit **
   2  Prefactor     35.793        22.874       -.29825E-06   -.46657E-04
   3  Prefactor     .10000E-03    11.897       -.10860E-05** at limit **
   4  Prefactor     16.318        11.037       -.26038E-07    .33814E-04
   5  Prefactor     .92205        7.7091        .26362E-05   -.14442E-03
   6  Prefactor     33.775        38.879        .68750E-05    .43156E-03
   7  Prefactor     .10000E-03    5.0656        .24131E-06** at limit **
   8  Prefactor     21.149        8.6316       -.94421E-06   -.16942E-03
   9  norm          33.292        27.871       -.23700E-06   -.31971E-04
  10  Prefactor     .10001E-03    46.662        .53252E-05** at limit **
  11  Prefactor     .10000E-03    16.130        .22805E-05** at limit **
  12  Prefactor     1.7803        5.4741        .16149E-05    .64046E-04
  13  Prefactor     .10000E-03    9.3484        .14284E-05** at limit **
  14  Prefactor     .10000E-03    12.857       -.10766E-05** at limit **
  15  Prefactor     .10000E-03    39.138       -.10604E-05** at limit **
  16  Prefactor     27.047        25.676        .57085E-07    .28431E-04
  17  Prefactor     4.4797        12.846        .60472E-05   -.24426E-03
  18  norm          .10000E-03    6.6150       -.31586E-06** at limit **
  19  norm          .10000E-03    2.8739       -.67023E-07** at limit **
  20  norm          1.9957        2.8602        .31355E-06    .28723E-03
  21  Prefactor     5.4942        6.2411       -.82605E-07    .11368E-03
  22  Prefactor     86.972        46.636        .74093E-06    .21153E-03
  23  norm          .10002E-03    3.3383       -.17076E-05** at limit **
  24  Prefactor     .10000E-03    23.784       -.13888E-05** at limit **
  25  norm          .46884        1.3389       -.40928E-06   -.46026E-03
  26  norm          .10000E-03    2.5558       -.19406E-06** at limit **
  27  Prefactor     .10086E-03    11.480       -.19563E-05** at limit **
  28  Prefactor     1.9403        2.8473        .15392E-06    .11296E-03
  29  Prefactor     .10000E-03    6.8993        .76149E-06** at limit **
  30  norm          .10000E-03    7.6275       -.66186E-06** at limit **
  31  Prefactor     6.6239        5.2015       -.42024E-06   -.15129E-03
  32  Prefactor     .10000E-03    1.5793       -.24097E-07** at limit **
  33  Normalizat    .91966        .19249        .10403E-05    .30165E-03
  34  Prefactor     1.0464        .20031       -.15454E-05    .37383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 35.7933
  Prefactor  = 0.0001
  Prefactor  = 16.3183
  Prefactor  = 0.92205
  Prefactor  = 33.7746
  Prefactor  = 0.000100003
  Prefactor  = 21.1488
  norm       = 33.2923
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 1.78027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0472
  Prefactor  = 4.47966
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.99568
  Prefactor  = 5.49415
  Prefactor  = 86.9717
  norm       = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.46884
  norm       = 0.0001
  Prefactor  = 0.00010086
  Prefactor  = 1.94035
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.62391
  Prefactor  = 0.0001
  Normalizat = 0.919661
  Prefactor  = 1.04639
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.355     FROM HESSE     STATUS=OK           732 CALLS     5603 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.793        22.874        .66979E-04   -1.4511    
   3  Prefactor     .10000E-03    11.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.318        11.048        .99140E-04   -1.4900    
   5  Prefactor     .92205        7.8377        .40716E-03   -1.5516    
   6  Prefactor     33.775        40.520        .68982E-04   -1.4545    
   7  Prefactor     .10000E-03    26.931        .32879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.149        8.8190        .87076E-04   -1.4788    
   9  norm          33.292        27.873        .69446E-04   -1.4553    
  10  Prefactor     .10001E-03    47.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7803        5.4456        .29966E-03   -1.5441    
  13  Prefactor     .10000E-03    9.3954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.047        25.678        .77034E-04   -1.4667    
  17  Prefactor     4.4797        13.267        .95151E-03   -1.5285    
  18  norm          .10000E-03    6.6512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8767        .12501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9957        2.8414        .14802E-03   -1.5425    
  21  Prefactor     5.4942        6.1057        .17138E-03   -1.5239    
  22  Prefactor     86.972        43.025        .43076E-04   -1.3840    
  23  norm          .10002E-03    8.1029        .23113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .46884        1.2729        .12474E-03   -1.5571    
  26  norm          .10000E-03    2.5777        .11773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10086E-03    107.76        .47983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.9403        2.8052        .14450E-03   -1.5429    
  29  Prefactor     .10000E-03    6.9178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    7.6354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.6239        5.1831        .14354E-03   -1.5193    
  32  Prefactor     .10000E-03    1.5890        .92604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .91966        .23133        .25086E-03   -.95773    
  34  Prefactor     1.0464        .24155        .26111E-03   -.91199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2294e-08
Minuit parameter uncertainties:
  1  0.000390011
  2  22.8794
  3  0.000123031
  4  11.049
  5  5.37719
  6  40.5526
  7  0.00056168
  8  8.81956
  9  27.8834
  10  0.00118199
  11  0.000303875
  12  5.44714
  13  0.000135203
  14  0.000122345
  15  0.00022543
  16  25.6883
  17  13.2759
  18  2.3782e-05
  19  4.46171e-06
  20  2.84164
  21  6.10641
  22  43.0403
  23  0.000850375
  24  0.000193063
  25  1.27301
  26  8.73129e-06
  27  0.019287
  28  2.80542
  29  6.82179e-05
  30  5.4027e-05
  31  5.18348
  32  4.79145e-07
  33  0.231578
  34  0.241798
Done.

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

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  6.822e-05  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:  1.046e+00  2.418e-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:  9.197e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.037 -49.570
Photon Flux Upper Limit: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/131499/likelihoodResults_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.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) = 5704.35615277
delta logL = -0.000687441637638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5704.35546531
delta logL = 1.42917997437e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5417       1.0000          .0000       10.000    
     3 'Normalizat'    .91965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0464       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=   5704.355     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.876        .18142E-01** at limit **
   2  Index         1.9238        8.8780        .50000        .15223E-06
   3  Normalizat    .91966        .81570E-02    .25086E-03    .20285E-03
   4  Prefactor     1.0464        .90395E-02    .26111E-03    .19901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92381
  Normalizat = 0.919662
  Prefactor  = 1.04639
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.355     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    270.24        .22018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9238        8.9547        .50000       -.66269    
   3  Normalizat    .91966        .24950E-01    .10034E-04   -.95773    
   4  Prefactor     1.0464        .27650E-01    .52223E-04   -.91199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78791e-09
Minuit parameter uncertainties:
  1  5.88907e-05
  2  1007.64
  3  0.0249507
  4  0.0276504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131499': 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): 102
logL (Free Index) = 5704.35546371
delta logL = 1.61880961969e-06

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  5.889e-05  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  1.924e+00  1.008e+03  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:  1.046e+00  2.765e-02  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:  9.197e-01  2.495e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.037 -49.570

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/131499/cmap_HighResolution_252547201_252806401_4FGL_J2348.1-4934_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-09-30 05:55:44.371665', job_id='131499', GAL2='1.05', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1633006544.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='51' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 131499: <4FGL_J2348.1-4934_daily_bin51> in cluster <slac> Done

Job <4FGL_J2348.1-4934_daily_bin51> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 05:40:21 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:40:23 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:40:23 2021
Terminated at Thu Sep 30 05:55:45 2021
Results reported at Thu Sep 30 05:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.1-4934_daily_bin51 357.037 -49.57 252547201 252806401 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 :                                   909.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

