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


Performing analysis on: 4FGL_J2348.1-4934_daily_bin441
RA = 357.037, Dec = -49.57
tmin = 353635201, tmax = 353894401
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='133283', job_status='RUN', time_executed='2021-09-30 05:45:44.649737', time_epoch_executed='1633005944.65' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/133283

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/133283/ft1_4FGL_J2348.1-4934_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/133283/ft2_4FGL_J2348.1-4934_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/133283/ft1_4FGL_J2348.1-4934_daily_bin441.fits outfile=/scratch/kocevski/133283/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin441.fits ra=357.037 dec=-49.57 rad=12.0 tmin=353635201.0 tmax=353894401.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.56
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/133283/ft2_4FGL_J2348.1-4934_daily_bin441.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/133283/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin441.fits evtable="EVENTS" outfile="/scratch/kocevski/133283/ft1_filtered_4FGL_J2348.1-4934_daily_bin441.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/133283/ft1_filtered_4FGL_J2348.1-4934_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/133283/ft2_4FGL_J2348.1-4934_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/133283/ltcube_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.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/133283/ft2_4FGL_J2348.1-4934_daily_bin441.fits
.....................!
real 11.60
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/133283/ft1_filtered_4FGL_J2348.1-4934_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/133283/ft2_4FGL_J2348.1-4934_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/133283/ltcube_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.fits outfile=/scratch/kocevski/133283/expmap_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.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/133283/ltcube_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.fits
.....................!
real 190.79
user 185.22
sys 4.98

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/133283/ft1_filtered_4FGL_J2348.1-4934_daily_bin441.fits scfile=/scratch/kocevski/133283/ft2_4FGL_J2348.1-4934_daily_bin441.fits outfile=/scratch/kocevski/133283/cmap_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/133283/ft1_filtered_4FGL_J2348.1-4934_daily_bin441.fits scfile=/scratch/kocevski/133283/ft2_4FGL_J2348.1-4934_daily_bin441.fits outfile=/scratch/kocevski/133283/cmap_HighResolution_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/133283/ft1_filtered_4FGL_J2348.1-4934_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/133283/ft2_4FGL_J2348.1-4934_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/133283/Model_4FGL_J2348.1-4934_daily_bin441.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/133283/ft1_filtered_4FGL_J2348.1-4934_daily_bin441.fits.....................!
real 37.38
user 36.05
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5954       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.023       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16491       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.543       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .95400       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.540       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6727       1.0000         .10000E-03   10000.    
    25 'norm      '    5.3556       1.0000         .10000E-03   10000.    
    26 'norm      '    9.5067       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .52493       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.3579       1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.0688       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0876       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .76787       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=   4629.589     FROM MIGRAD    STATUS=CONVERGED   1024 CALLS     4932 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    181.73       -.22703E-07** at limit **
   2  Prefactor     .10000E-03    24.310       -.11999E-05** at limit **
   3  Prefactor     .10000E-03    15.769        .16752E-06** at limit **
   4  Prefactor     .10000E-03    3.9873        .24195E-07** at limit **
   5  Prefactor     .10000E-03    5.6070        .24250E-07** at limit **
   6  Prefactor     .10000E-03    9.3463       -.37557E-07** at limit **
   7  Prefactor     .10000E-03    2.9563       -.19675E-07** at limit **
   8  Prefactor     1.5951        5.4645        .99842E-06   -.47315E-04
   9  norm          .10000E-03    12.503        .51702E-07** at limit **
  10  Prefactor     74.787        40.531       -.58888E-06   -.11098E-03
  11  Prefactor     .10000E-03    50.037        .94985E-07** at limit **
  12  Prefactor     11.604        11.857        .12261E-07   -.77474E-04
  13  Prefactor     32.468        48.227        .48553E-06    .39092E-05
  14  Prefactor     .11325E-03    14.945       -.31322E-06** at limit **
  15  Prefactor     37.711        82.325        .75980E-06    .29476E-04
  16  Prefactor     .10000E-03    28.563        .36144E-06** at limit **
  17  Prefactor     .10000E-03    14.447       -.89571E-07** at limit **
  18  norm          .10000E-03    4.6542        .20937E-07** at limit **
  19  norm          .10000E-03    2.7089        .11762E-07** at limit **
  20  norm          .95325        6.7298        .23147E-05   -.48065E-04
  21  Prefactor     .10000E-03    3.5840        .13661E-06** at limit **
  22  Prefactor     .10000E-03    38.388       -.16187E-06** at limit **
  23  norm          16.534        8.1693       -.35534E-06   -.10858E-03
  24  Prefactor     3.6685        18.944        .36022E-06    .22521E-04
  25  norm          5.3555        1.9566       -.57212E-07   -.18729E-03
  26  norm          9.5054        6.4783        .69552E-07   -.58295E-04
  27  Prefactor     .10000E-03    21.912        .10029E-05** at limit **
  28  Prefactor     .53296        3.7797        .45020E-06   -.22105E-03
  29  Prefactor     .10000E-03    18.820       -.39830E-06** at limit **
  30  norm          .10000E-03    11.339       -.48536E-07** at limit **
  31  Prefactor     7.3563        6.6142        .17452E-09   -.14352E-03
  32  Prefactor     8.0685        5.9476        .10317E-05   -.29836E-03
  33  Normalizat    1.0877        .20866       -.20330E-06   -.67734E-04
  34  Prefactor     .76791        .21526       -.52834E-06   -.37625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59512
  norm       = 0.0001
  Prefactor  = 74.7872
  Prefactor  = 0.0001
  Prefactor  = 11.6037
  Prefactor  = 32.4677
  Prefactor  = 0.000113247
  Prefactor  = 37.7111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.953249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.5339
  Prefactor  = 3.66846
  norm       = 5.35555
  norm       = 9.50536
  Prefactor  = 0.000100001
  Prefactor  = 0.532956
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.35632
  Prefactor  = 8.06849
  Normalizat = 1.08769
  Prefactor  = 0.767906
 **********
 **   18 **HESSE 
 **********

 FCN=   4629.589     FROM HESSE     STATUS=OK           736 CALLS     5668 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    183.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9990        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.6729        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9632        .11425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5951        5.3837        .26256E-03   -1.5455    
   9  norm          .10000E-03    12.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     74.787        40.232        .46428E-04   -1.3976    
  11  Prefactor     .10000E-03    50.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.604        11.877        .11751E-03   -1.5027    
  13  Prefactor     32.468        49.753        .70808E-04   -1.4568    
  14  Prefactor     .11325E-03    30.208        .65004E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.711        82.530        .65411E-04   -1.4479    
  16  Prefactor     .10000E-03    28.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6550        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7103        .10937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95325        6.5908        .32415E-03   -1.5513    
  21  Prefactor     .10000E-03    3.5879        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.534        8.0957        .98482E-04   -1.4895    
  24  Prefactor     3.6685        18.781        .21076E-03   -1.5325    
  25  norm          5.3555        1.9366        .52343E-04   -1.5245    
  26  norm          9.5054        6.4760        .12997E-03   -1.5091    
  27  Prefactor     .10000E-03    22.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .53296        6.1058        .23105E-02   -1.5562    
  29  Prefactor     .10000E-03    18.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    11.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.3563        6.5051        .14786E-03   -1.5165    
  32  Prefactor     8.0685        5.9445        .67289E-03   -1.5140    
  33  Normalizat    1.0877        .24916        .22840E-03   -.90148    
  34  Prefactor     .76791        .25602        .28823E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86522e-08
Minuit parameter uncertainties:
  1  4.2956e-05
  2  0.000463775
  3  7.54402e-05
  4  1.52973e-06
  5  1.7787e-06
  6  1.21493e-06
  7  1.09084e-06
  8  5.38538
  9  1.48691e-05
  10  40.247
  11  4.57095e-05
  12  11.8797
  13  49.8171
  14  0.0400293
  15  82.7819
  16  0.000209835
  17  4.58848e-05
  18  1.1169e-07
  19  1.60575e-07
  20  5.01356
  21  2.45567e-06
  22  9.18276e-05
  23  8.09625
  24  16.609
  25  1.93659
  26  6.4765
  27  0.000299806
  28  3.60795
  29  0.00013776
  30  5.56818e-06
  31  6.50575
  32  5.9449
  33  0.249429
  34  0.256419
Done.

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

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  1.378e-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:  7.679e-01  2.564e-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.088e+00  2.494e-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: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/133283/likelihoodResults_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.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) = 4629.58948654
delta logL = -0.000251838761869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4629.58923475
delta logL = -4.21132426709e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4609       1.0000          .0000       10.000    
     3 'Normalizat'    1.0877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76791       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=   4629.589     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6336.3        .90712E-02** at limit **
   2  Index         2.4638        5.1069        .50000       -.13867E-05
   3  Normalizat    1.0877        .79276E-01    .38524E-01    .60009E-05
   4  Prefactor     .76791        .85703E-01    .65154E-01    .14231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46377
  Normalizat = 1.08769
  Prefactor  = 0.767906
 **********
 **   18 **HESSE 
 **********

 FCN=   4629.589     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4638        5.8990        .50000       -.53199    
   3  Normalizat    1.0877        .23280        .22840E-03   -.90148    
   4  Prefactor     .76791        .25185        .28823E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62951e-12
Minuit parameter uncertainties:
  1  1.34515e-05
  2  6.72525
  3  0.233022
  4  0.252225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/133283': 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) = 4629.58923473
delta logL = -2.76158971246e-08

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  1.345e-05  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  2.464e+00  6.725e+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:  7.679e-01  2.522e-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.088e+00  2.330e-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/133283/cmap_HighResolution_353635201_353894401_4FGL_J2348.1-4934_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-30 05:59:29.756091', job_id='133283', GAL2='0.77', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1633006769.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-2.76e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='441' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 133283: <4FGL_J2348.1-4934_daily_bin441> in cluster <slac> Done

Job <4FGL_J2348.1-4934_daily_bin441> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 05:45:32 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:45:33 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:33 2021
Terminated at Thu Sep 30 05:59:30 2021
Results reported at Thu Sep 30 05:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.1-4934_daily_bin441 357.037 -49.57 353635201 353894401 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 :                                   820.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

