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


Performing analysis on: 4FGL_J2348.1-4934_daily_bin535
RA = 357.037, Dec = -49.57
tmin = 378000001, tmax = 378259201
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='133447', job_status='RUN', time_executed='2021-09-30 05:46:05.708798', time_epoch_executed='1633005965.71' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/133447

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/133447/ft1_4FGL_J2348.1-4934_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/133447/ft2_4FGL_J2348.1-4934_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/133447/ft1_4FGL_J2348.1-4934_daily_bin535.fits outfile=/scratch/kocevski/133447/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin535.fits ra=357.037 dec=-49.57 rad=12.0 tmin=378000001.0 tmax=378259201.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.49
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/133447/ft2_4FGL_J2348.1-4934_daily_bin535.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/133447/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin535.fits evtable="EVENTS" outfile="/scratch/kocevski/133447/ft1_filtered_4FGL_J2348.1-4934_daily_bin535.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.54
user 0.36
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/133447/ft1_filtered_4FGL_J2348.1-4934_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/133447/ft2_4FGL_J2348.1-4934_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/133447/ltcube_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.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/133447/ft2_4FGL_J2348.1-4934_daily_bin535.fits
.....................!
real 12.77
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/133447/ft1_filtered_4FGL_J2348.1-4934_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/133447/ft2_4FGL_J2348.1-4934_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/133447/ltcube_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.fits outfile=/scratch/kocevski/133447/expmap_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.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/133447/ltcube_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.fits
.....................!
real 190.28
user 185.28
sys 4.63

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/133447/ft1_filtered_4FGL_J2348.1-4934_daily_bin535.fits scfile=/scratch/kocevski/133447/ft2_4FGL_J2348.1-4934_daily_bin535.fits outfile=/scratch/kocevski/133447/cmap_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/133447/ft1_filtered_4FGL_J2348.1-4934_daily_bin535.fits scfile=/scratch/kocevski/133447/ft2_4FGL_J2348.1-4934_daily_bin535.fits outfile=/scratch/kocevski/133447/cmap_HighResolution_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.236       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5098       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8138       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9349       1.0000         .10000E-03   10000.    
     9 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.349       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.774       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9614       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2404       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1632       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .13506       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.0223       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.5163       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.7531       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2006       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .49946       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=   6683.992     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     4085 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.238        .10240E-06** at limit **
   2  Prefactor     .10000E-03    12.057       -.26569E-06** at limit **
   3  Prefactor     11.220        30.758        .56448E-07   -.26039E-04
   4  Prefactor     9.5102        8.7133        .15126E-05   -.47975E-04
   5  Prefactor     8.8134        8.0986        .78623E-07   -.15385E-05
   6  Prefactor     .10000E-03    11.429       -.10642E-06** at limit **
   7  Prefactor     .10000E-03    6.4125       -.11702E-06** at limit **
   8  Prefactor     3.9346        3.2166        .10061E-07   -.10745E-04
   9  norm          .10000E-03    21.044       -.29401E-06** at limit **
  10  Prefactor     6.7864        11.569        .10661E-06   -.12007E-05
  11  Prefactor     29.307        36.107       -.30133E-06   -.90061E-04
  12  Prefactor     .10000E-03    2.4541        .59392E-07** at limit **
  13  Prefactor     .10000E-03    31.047        .49799E-07** at limit **
  14  Prefactor     11.474        9.2776        .10225E-05   -.36210E-04
  15  Prefactor     .10000E-03    33.500        .11995E-06** at limit **
  16  Prefactor     .10000E-03    28.430        .24048E-06** at limit **
  17  Prefactor     31.773        16.097        .72539E-08   -.22100E-04
  18  norm          6.9612        9.5531        .13038E-06   -.10253E-04
  19  norm          .10000E-03    1.7147       -.93029E-08** at limit **
  20  norm          2.2440        3.0848        .26291E-07   -.25776E-04
  21  Prefactor     1.1627        3.4182        .10017E-05    .13593E-04
  22  Prefactor     .10000E-03    12.131        .78290E-07** at limit **
  23  norm          .12777        1.4185        .79687E-07   -.45469E-04
  24  Prefactor     .10000E-03    5.7494       -.60786E-07** at limit **
  25  norm          5.0223        1.3482       -.20773E-07   -.14554E-03
  26  norm          .10000E-03    1.1068        .51131E-07** at limit **
  27  Prefactor     .10000E-03    20.909       -.33400E-07** at limit **
  28  Prefactor     4.5162        2.9191        .63308E-07   -.21213E-04
  29  Prefactor     .10000E-03    13.520        .12800E-07** at limit **
  30  norm          .10000E-03    5.8577        .44751E-07** at limit **
  31  Prefactor     .10000E-03    1.8959       -.67592E-07** at limit **
  32  Prefactor     1.7522        3.3688        .71753E-06   -.18122E-04
  33  Normalizat    1.2007        .15671       -.40138E-07   -.73825E-04
  34  Prefactor     .49945        .16799       -.14892E-05   -.30068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2202
  Prefactor  = 9.51017
  Prefactor  = 8.81339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.93456
  norm       = 0.0001
  Prefactor  = 6.78637
  Prefactor  = 29.3069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7732
  norm       = 6.96118
  norm       = 0.0001
  norm       = 2.24396
  Prefactor  = 1.1627
  Prefactor  = 0.0001
  norm       = 0.127766
  Prefactor  = 0.0001
  norm       = 5.02234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51623
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75218
  Normalizat = 1.20067
  Prefactor  = 0.499451
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.992     FROM HESSE     STATUS=OK           730 CALLS     4815 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.220        30.750        .11952E-03   -1.5038    
   4  Prefactor     9.5102        8.7160        .64977E-03   -1.5091    
   5  Prefactor     8.8134        8.0818        .13501E-03   -1.5114    
   6  Prefactor     .10000E-03    11.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9346        3.2101        .12725E-03   -1.5311    
   9  norm          .10000E-03    21.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7864        11.556        .15401E-03   -1.5187    
  11  Prefactor     29.307        36.163        .73955E-04   -1.4625    
  12  Prefactor     .10000E-03    2.4648        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.474        9.2588        .59138E-03   -1.5030    
  15  Prefactor     .10000E-03    33.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.773        16.116        .71084E-04   -1.4580    
  18  norm          6.9612        9.5439        .15205E-03   -1.5180    
  19  norm          .10000E-03    1.7156        .10455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2440        3.2766        .15663E-03   -1.5408    
  21  Prefactor     1.1627        3.3638        .25064E-03   -1.5492    
  22  Prefactor     .10000E-03    12.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .12777        7.3913        .17976E-02   -1.5637    
  24  Prefactor     .10000E-03    5.7714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.0223        1.3465        .46092E-04   -1.5260    
  26  norm          .10000E-03    1.1187        .83978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.5162        2.9141        .10696E-03   -1.5283    
  29  Prefactor     .10000E-03    13.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    5.8598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.9181        .10983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.7522        3.3606        .19689E-03   -1.5443    
  33  Normalizat    1.2007        .17912        .19593E-03   -.86582    
  34  Prefactor     .49945        .18991        .31864E-03   -1.1200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60153e-08
Minuit parameter uncertainties:
  1  4.89019e-05
  2  5.1031e-06
  3  30.7935
  4  8.71718
  5  8.08278
  6  1.64631e-05
  7  9.49654e-06
  8  3.21019
  9  6.63651e-05
  10  11.5602
  11  36.1896
  12  2.25822e-07
  13  3.25788e-05
  14  9.25993
  15  6.02206e-05
  16  3.51761e-05
  17  16.1186
  18  9.546
  19  4.31486e-07
  20  3.27683
  21  3.36433
  22  1.18699e-05
  23  1.94305
  24  1.3026e-05
  25  1.34649
  26  1.05622e-06
  27  2.65544e-05
  28  2.91416
  29  2.8962e-05
  30  1.01715e-05
  31  4.84794e-07
  32  3.36094
  33  0.17921
  34  0.190151
Done.

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

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  2.896e-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:  4.995e-01  1.902e-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.201e+00  1.792e-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: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/133447/likelihoodResults_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.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) = 6683.99268111
delta logL = -0.00035098203989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6683.99233024
delta logL = -1.12763700599e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5638       1.0000          .0000       10.000    
     3 'Normalizat'    1.2006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49951       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.

 FCN=   6683.992     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1922.8        .90712E-02** at limit **
   2  Index         2.5687        5.4480        .50000       -.32373E-05
   3  Normalizat    1.2007        .57147E-01    .34876E-01    .47372E-05
   4  Prefactor     .49945        .62283E-01    .71973E-01    .40842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56868
  Normalizat = 1.20067
  Prefactor  = 0.499451
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.992     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5687        6.2818        .50000       -.50781    
   3  Normalizat    1.2007        .17150        .19593E-03   -.86582    
   4  Prefactor     .49945        .18704        .31864E-03   -1.1200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05858e-11
Minuit parameter uncertainties:
  1  8.55682e-06
  2  4.44865
  3  0.171576
  4  0.187273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/133447': 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) = 6683.99233012
delta logL = 7.20774551155e-09

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  8.557e-06  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  2.569e+00  4.449e+00  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:  4.995e-01  1.873e-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.201e+00  1.716e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/133447/cmap_HighResolution_378000001_378259201_4FGL_J2348.1-4934_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-09-30 06:02:17.056204', job_id='133447', GAL2='0.50', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1633006937.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='7.21e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='535' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:02:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 133447: <4FGL_J2348.1-4934_daily_bin535> in cluster <slac> Done

Job <4FGL_J2348.1-4934_daily_bin535> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 05:45:48 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:45:49 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:45:49 2021
Terminated at Thu Sep 30 06:02:17 2021
Results reported at Thu Sep 30 06:02:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.1-4934_daily_bin535 357.037 -49.57 378000001 378259201 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 :                                   961.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

