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


Performing analysis on: 4FGL_J2348.1-4934_daily_bin916
RA = 357.037, Dec = -49.57
tmin = 476755201, tmax = 477014401
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='135244', job_status='RUN', time_executed='2021-09-30 05:50:48.669684', time_epoch_executed='1633006248.67' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='916'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135244/ft1_4FGL_J2348.1-4934_daily_bin916.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135244/ft2_4FGL_J2348.1-4934_daily_bin916.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135244/ft1_4FGL_J2348.1-4934_daily_bin916.fits outfile=/scratch/kocevski/135244/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin916.fits ra=357.037 dec=-49.57 rad=12.0 tmin=476755201.0 tmax=477014401.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.53
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135244/ft2_4FGL_J2348.1-4934_daily_bin916.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/135244/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin916.fits evtable="EVENTS" outfile="/scratch/kocevski/135244/ft1_filtered_4FGL_J2348.1-4934_daily_bin916.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/135244/ft1_filtered_4FGL_J2348.1-4934_daily_bin916.fits" evtable="EVENTS" scfile=/scratch/kocevski/135244/ft2_4FGL_J2348.1-4934_daily_bin916.fits sctable="SC_DATA" outfile=/scratch/kocevski/135244/ltcube_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.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/135244/ft2_4FGL_J2348.1-4934_daily_bin916.fits
.....................!
real 12.14
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135244/ft1_filtered_4FGL_J2348.1-4934_daily_bin916.fits evtable="EVENTS" scfile=/scratch/kocevski/135244/ft2_4FGL_J2348.1-4934_daily_bin916.fits sctable="SC_DATA" expcube=/scratch/kocevski/135244/ltcube_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.fits outfile=/scratch/kocevski/135244/expmap_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.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/135244/ltcube_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.fits
.....................!
real 192.78
user 187.07
sys 5.37

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/135244/ft1_filtered_4FGL_J2348.1-4934_daily_bin916.fits scfile=/scratch/kocevski/135244/ft2_4FGL_J2348.1-4934_daily_bin916.fits outfile=/scratch/kocevski/135244/cmap_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.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/135244/ft1_filtered_4FGL_J2348.1-4934_daily_bin916.fits scfile=/scratch/kocevski/135244/ft2_4FGL_J2348.1-4934_daily_bin916.fits outfile=/scratch/kocevski/135244/cmap_HighResolution_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36053E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29206E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13800E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46942E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43136E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12916E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .17536E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32895E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55789E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9372       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24859E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .72197E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.437       1.0000         .10000E-03   10000.    
    18 'norm      '    .15254E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.1452       1.0000         .10000E-03   10000.    
    20 'norm      '    .14824E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28569E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.986       1.0000         .10000E-03   10000.    
    23 'norm      '    15.011       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.406       1.0000         .10000E-03   10000.    
    25 'norm      '    2.5477       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.899       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .40422       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    27.075       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.8573       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0315       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .93268       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=   4395.197     FROM MIGRAD    STATUS=CONVERGED   1026 CALLS     4246 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.179        .47687E-06** at limit **
   2  Prefactor     .10000E-03    11.969        .19712E-06** at limit **
   3  Prefactor     27.356        66.416       -.28837E-04   -.35630E-03
   4  Prefactor     .10000E-03    6.5882       -.83091E-07** at limit **
   5  Prefactor     .44906        10.473        .47261E-05   -.37779E-03
   6  Prefactor     .10000E-03    60.989       -.66636E-05** at limit **
   7  Prefactor     .10000E-03    4.4779        .88941E-07** at limit **
   8  Prefactor     .10000E-03    5.6718       -.44622E-07** at limit **
   9  norm          .10000E-03    65.011        .12633E-04** at limit **
  10  Prefactor     .10000E-03    16.427        .49782E-07** at limit **
  11  Prefactor     .10000E-03    42.834       -.11350E-04** at limit **
  12  Prefactor     21.592        14.896       -.31882E-05   -.40132E-04
  13  Prefactor     41.272        48.473       -.66032E-06   -.21889E-04
  14  Prefactor     6.0857        14.231        .31516E-05   -.65135E-04
  15  Prefactor     .10000E-03    40.705        .19391E-05** at limit **
  16  Prefactor     .10000E-03    18.136        .52673E-07** at limit **
  17  Prefactor     10.185        20.421       -.11766E-04   -.10224E-03
  18  norm          .10000E-03    6.7123       -.29134E-08** at limit **
  19  norm          7.0975        6.6453        .42794E-06    .62277E-04
  20  norm          .10000E-03    3.4077        .43763E-07** at limit **
  21  Prefactor     .10000E-03    4.4104        .14283E-06** at limit **
  22  Prefactor     35.108        74.012        .16292E-04   -.21328E-04
  23  norm          14.883        10.269       -.26726E-05   -.16329E-04
  24  Prefactor     10.700        14.015       -.76858E-06   -.11324E-03
  25  norm          2.5514        1.5614        .29319E-06   -.84691E-03
  26  norm          .10000E-03    2.5812       -.17854E-07** at limit **
  27  Prefactor     24.409        21.723        .34422E-05   -.13895E-03
  28  Prefactor     .36759        3.5136        .18366E-05   -.49341E-03
  29  Prefactor     .10000E-03    21.389        .14964E-06** at limit **
  30  norm          26.415        28.576       -.12465E-05   -.13155E-03
  31  Prefactor     3.8289        8.1533        .52691E-06   -.89901E-03
  32  Prefactor     .10000E-03    2.0490        .36699E-07** at limit **
  33  Normalizat    1.0308        .23251        .29152E-05   -.80867E-03
  34  Prefactor     .93384        .23258       -.82032E-06   -.47094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3564
  Prefactor  = 0.0001
  Prefactor  = 0.449064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5916
  Prefactor  = 41.2724
  Prefactor  = 6.08567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.185
  norm       = 0.0001
  norm       = 7.0975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1077
  norm       = 14.8829
  Prefactor  = 10.7001
  norm       = 2.55145
  norm       = 0.0001
  Prefactor  = 24.4087
  Prefactor  = 0.367595
  Prefactor  = 0.0001
  norm       = 26.4146
  Prefactor  = 3.82894
  Prefactor  = 0.0001
  Normalizat = 1.03077
  Prefactor  = 0.933842
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.197     FROM HESSE     STATUS=OK           728 CALLS     4974 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.209        .19620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.986        .21401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.356        70.512        .77575E-04   -1.4661    
   4  Prefactor     .10000E-03    6.6238        .16617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44906        109.79        .36558E-02   -1.5574    
   6  Prefactor     .10000E-03    61.734        .21188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4916        .13698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7627        .15410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    65.415        .20343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.451        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.763        .21102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.592        14.859        .86326E-04   -1.4778    
  13  Prefactor     41.272        48.278        .61693E-04   -1.4422    
  14  Prefactor     6.0857        14.132        .16480E-03   -1.5215    
  15  Prefactor     .10000E-03    40.704        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.140        .20962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.185        20.293        .12402E-03   -1.5070    
  18  norm          .10000E-03    6.7260        .16776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.0975        6.6513        .15007E-03   -1.5175    
  20  norm          .10000E-03    3.4105        .11943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4218        .13554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.108        74.865        .68738E-04   -1.4522    
  23  norm          14.883        10.324        .10338E-03   -1.4936    
  24  Prefactor     10.700        13.964        .12421E-03   -1.5054    
  25  norm          2.5514        1.5508        .59425E-04   -1.5388    
  26  norm          .10000E-03    2.6315        .10394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.409        21.743        .80279E-04   -1.4719    
  28  Prefactor     .36759        19.779        .21089E-02   -1.5587    
  29  Prefactor     .10000E-03    21.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          26.415        28.555        .76991E-04   -1.4680    
  31  Prefactor     3.8289        8.0432        .20547E-03   -1.5317    
  32  Prefactor     .10000E-03    2.0623        .92654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0308        .27654        .24362E-03   -.92007    
  34  Prefactor     .93384        .27627        .27504E-03   -.94968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22847e-09
Minuit parameter uncertainties:
  1  1.45793e-05
  2  7.94013e-05
  3  70.7276
  4  1.86477e-05
  5  14.0679
  6  6.41026e-05
  7  1.89511e-05
  8  8.9819e-06
  9  0.000256335
  10  8.21627e-06
  11  2.38364e-05
  12  14.8615
  13  48.3236
  14  14.1401
  15  2.96035e-06
  16  4.56201e-05
  17  20.3064
  18  8.65947e-07
  19  6.65197
  20  8.78498e-06
  21  3.01459e-05
  22  75.0663
  23  10.3249
  24  13.9686
  25  1.5508
  26  1.76264e-06
  27  21.7503
  28  5.39395
  29  0.000110152
  30  28.5694
  31  8.04543
  32  5.64842e-06
  33  0.276924
  34  0.276687
Done.

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

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  1.102e-04  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:  9.338e-01  2.767e-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.031e+00  2.769e-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: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135244/likelihoodResults_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.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) = 4395.19770061
delta logL = -0.000222243829739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4395.19747844
delta logL = -7.31579348212e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4667       1.0000          .0000       10.000    
     3 'Normalizat'    1.0308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93385       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=   4395.197     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2182.8        .90712E-02** at limit **
   2  Index         2.4733        8.7035        .50000       -.28387E-05
   3  Normalizat    1.0308        .63981E-01    .42087E-01   -.38527E-04
   4  Prefactor     .93384        .69350E-01    .45435E-01    .10367E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47327
  Normalizat = 1.03078
  Prefactor  = 0.933839
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.197     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4733        6.7342        .50000       -.52978    
   3  Normalizat    1.0308        .24634        .24362E-03   -.92006    
   4  Prefactor     .93384        .26726        .27504E-03   -.94969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26545e-10
Minuit parameter uncertainties:
  1  0.000425764
  2  12.0864
  3  0.246609
  4  0.267639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135244': 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) = 4395.19747842
delta logL = -5.79475454288e-08

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  4.258e-04  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  2.473e+00  1.209e+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:  9.338e-01  2.676e-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.031e+00  2.466e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/135244/cmap_HighResolution_476755201_477014401_4FGL_J2348.1-4934_daily_bin916.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-30 06:03:20.088363', job_id='135244', GAL2='0.93', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1633007000.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-5.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='916' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:03:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 135244: <4FGL_J2348.1-4934_daily_bin916> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.1-4934_daily_bin916 357.037 -49.57 476755201 477014401 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 :                                   741.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

