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


Performing analysis on: 4FGL_J2348.1-4934_daily_bin682
RA = 357.037, Dec = -49.57
tmin = 416102401, tmax = 416361601
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='133691', job_status='RUN', time_executed='2021-09-30 05:46:22.660501', time_epoch_executed='1633005982.66' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/133691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/133691/ft1_4FGL_J2348.1-4934_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/133691/ft2_4FGL_J2348.1-4934_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/133691/ft1_4FGL_J2348.1-4934_daily_bin682.fits outfile=/scratch/kocevski/133691/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin682.fits ra=357.037 dec=-49.57 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.47
user 6.17
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/133691/ft1_filtered_4FGL_J2348.1-4934_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/133691/ft2_4FGL_J2348.1-4934_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/133691/ltcube_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.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/133691/ft2_4FGL_J2348.1-4934_daily_bin682.fits
.....................!
real 11.82
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/133691/ft1_filtered_4FGL_J2348.1-4934_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/133691/ft2_4FGL_J2348.1-4934_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/133691/ltcube_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.fits outfile=/scratch/kocevski/133691/expmap_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.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/133691/ltcube_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.fits
.....................!
real 191.46
user 186.54
sys 4.54

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/133691/ft1_filtered_4FGL_J2348.1-4934_daily_bin682.fits scfile=/scratch/kocevski/133691/ft2_4FGL_J2348.1-4934_daily_bin682.fits outfile=/scratch/kocevski/133691/cmap_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.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/133691/ft1_filtered_4FGL_J2348.1-4934_daily_bin682.fits scfile=/scratch/kocevski/133691/ft2_4FGL_J2348.1-4934_daily_bin682.fits outfile=/scratch/kocevski/133691/cmap_HighResolution_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/133691/ft1_filtered_4FGL_J2348.1-4934_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/133691/ft2_4FGL_J2348.1-4934_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/133691/Model_4FGL_J2348.1-4934_daily_bin682.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/133691/ft1_filtered_4FGL_J2348.1-4934_daily_bin682.fits.....................!
real 34.31
user 33.10
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6750       1.0000         .10000E-03   10000.    
     9 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24459E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4928       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5507       1.0000         .10000E-03   10000.    
    18 'norm      '    .73809E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1881       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.277       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2734       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.984       1.0000         .10000E-03   10000.    
    25 'norm      '    9.7465       1.0000         .10000E-03   10000.    
    26 'norm      '    5.5981       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .50171       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5964       1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.322       1.0000         .10000E-03   10000.    
    30 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.5828       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .83867       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4073.475     FROM MIGRAD    STATUS=CONVERGED   1712 CALLS     4893 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.248        .18142E-02** at limit **
   2  Prefactor     .10000E-03    35.300        .18142E-02** at limit **
   3  Prefactor     6.4136        29.697        .15859E-03    .24302E-04
   4  Prefactor     .10000E-03    4.9147        .13793E-02** at limit **
   5  Prefactor     .10000E-03    5.0033        .13899E-02** at limit **
   6  Prefactor     .10000E-03    14.414        .18142E-02** at limit **
   7  Prefactor     8.0675        11.331        .70580E-03    .15342E-04
   8  Prefactor     2.6757        4.2538        .16115E-03    .99120E-05
   9  norm          .10000E-03    12.262        .18142E-02** at limit **
  10  Prefactor     .10000E-03    8.7004        .18142E-02** at limit **
  11  Prefactor     .10078E-03    111.52        .18865    ** at limit **
  12  Prefactor     12.446        9.3118        .56778E-03    .33138E-05
  13  Prefactor     9.4917        20.760        .13007E-03    .21108E-04
  14  Prefactor     .10000E-03    4.5515        .13285E-02** at limit **
  15  Prefactor     .10000E-03    35.053        .18142E-02** at limit **
  16  Prefactor     36.240        38.899        .66519E-04   -.19740E-04
  17  Prefactor     7.5556        26.216        .14595E-03    .34742E-04
  18  norm          .10061E-03    10.908        .71037E-01** at limit **
  19  norm          .10000E-03    2.7756        .10383E-02** at limit **
  20  norm          .10000E-03    2.1779        .91959E-03** at limit **
  21  Prefactor     1.1949        10.691        .18672E-02   -.17123E-03
  22  Prefactor     12.351        46.726        .11433E-03    .45991E-04
  23  norm          1.2673        4.5430        .22550E-03   -.42173E-04
  24  Prefactor     12.993        17.142        .11116E-03    .61874E-04
  25  norm          9.7464        2.4975        .44890E-04    .27731E-03
  26  norm          5.5999        7.4952        .16448E-03    .41350E-03
  27  Prefactor     .55111        128.43        .42882E-02    .10638E-03
  28  Prefactor     3.5963        3.4475        .11063E-03   -.10754E-03
  29  Prefactor     14.322        16.354        .10584E-03    .24061E-04
  30  norm          .10000E-03    37.095        .18142E-02** at limit **
  31  Prefactor     1.5798        4.9797        .11975E-02   -.50041E-03
  32  Prefactor     .10000E-03    1.2516        .69673E-03** at limit **
  33  Normalizat    .83850        .27861        .24842E-03    .76035E-04
  34  Prefactor     1.0393        .29752        .25494E-03    .18311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.41361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06746
  Prefactor  = 2.67574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100784
  Prefactor  = 12.4462
  Prefactor  = 9.49171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2395
  Prefactor  = 7.55565
  norm       = 0.000100613
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.19495
  Prefactor  = 12.3514
  norm       = 1.26732
  Prefactor  = 12.9934
  norm       = 9.7464
  norm       = 5.59988
  Prefactor  = 0.551106
  Prefactor  = 3.59632
  Prefactor  = 14.3222
  norm       = 0.0001
  Prefactor  = 1.57984
  Prefactor  = 0.0001
  Normalizat = 0.838498
  Prefactor  = 1.03931
 **********
 **   18 **HESSE 
 **********

 FCN=   4073.475     FROM HESSE     STATUS=OK           724 CALLS     5617 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4136        29.684        .63434E-05   -1.5201    
   4  Prefactor     .10000E-03    4.9151        .27585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0040        .27797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0675        11.321        .28232E-04   -1.5140    
   8  Prefactor     2.6757        4.2531        .64459E-05   -1.5381    
   9  norm          .10000E-03    12.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10078E-03    119.83        .17988       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.446        9.3109        .22711E-04   -1.5002    
  13  Prefactor     9.4917        20.758        .52028E-05   -1.5092    
  14  Prefactor     .10000E-03    4.5517        .26570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.240        38.898        .13304E-04   -1.4503    
  17  Prefactor     7.5556        26.200        .58378E-05   -1.5158    
  18  norm          .10061E-03    10.793        .71744E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7756        .20766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1779        .18392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1949        10.563        .74690E-04   -1.5489    
  22  Prefactor     12.351        46.673        .45731E-05   -1.5005    
  23  norm          1.2673        4.5387        .90200E-05   -1.5483    
  24  Prefactor     12.993        17.069        .44465E-05   -1.4987    
  25  norm          9.7464        2.4965        .89781E-05   -1.5083    
  26  norm          5.5999        7.4899        .65793E-05   -1.5235    
  27  Prefactor     .55111        127.79        .17153E-03   -1.5560    
  28  Prefactor     3.5963        3.4470        .44254E-05   -1.5329    
  29  Prefactor     14.322        16.353        .42335E-05   -1.4951    
  30  norm          .10000E-03    37.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.5798        4.9716        .47901E-04   -1.5457    
  32  Prefactor     .10000E-03    1.2516        .13935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .83850        .27792        .99370E-05   -.98656    
  34  Prefactor     1.0393        .29781        .50989E-04   -.91431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77526e-09
Minuit parameter uncertainties:
  1  2.4597e-05
  2  0.000147592
  3  27.6181
  4  8.95707e-06
  5  1.09147e-05
  6  9.6461e-06
  7  11.3239
  8  4.25356
  9  1.16336e-06
  10  1.44848e-06
  11  0.01942
  12  9.31203
  13  20.7734
  14  1.01913e-05
  15  0.0002524
  16  38.9248
  17  26.2397
  18  0.00514356
  19  1.09656e-06
  20  2.24092e-05
  21  7.10694
  22  46.8119
  23  4.53997
  24  17.075
  25  2.49651
  26  7.49118
  27  16.8191
  28  3.44718
  29  16.3579
  30  0.000133219
  31  4.97291
  32  3.3997e-07
  33  0.278391
  34  0.29829
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.039e+00  2.983e-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:  8.385e-01  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 357.037 -49.570
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 6.26e-06 +/- 7.15e-06

TS (Fixed Index): 1.91
Ra Dec: 357.037 -49.570
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/133691/likelihoodResults_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4073.22357003
delta logL = 0.251144905419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4073.16434411
delta logL = 0.310370823246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.664       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8836       1.0000          .0000       10.000    
     3 'Normalizat'    .85009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4073.164     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.676        23.961        .86055E-04   -.11890E-05
   2  Index         1.8841        .77498        .96754E-02   -.73981E-05
   3  Normalizat    .84993        .25610        .24696E-03    .61225E-05
   4  Prefactor     1.0301        .29078        .25591E-03   -.61751E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6765
  Index      = 1.88411
  Normalizat = 0.849928
  Prefactor  = 1.03014
 **********
 **   18 **HESSE 
 **********

 FCN=   4073.164     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.676        23.959        .34422E-05   -1.4776    
   2  Index         1.8841        .77512        .19351E-02   -.67280    
   3  Normalizat    .84993        .25644        .98785E-05   -.98243    
   4  Prefactor     1.0301        .29117        .10236E-04   -.91732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28953e-12
Minuit parameter uncertainties:
  1  23.9695
  2  0.78029
  3  0.256805
  4  0.291616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/133691': 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) = 4073.16434362
delta logL = 0.310371317549

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  2.168e+01  2.397e+01  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  1.884e+00  7.803e-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:  1.030e+00  2.916e-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:  8.499e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 357.037 -49.570
Photon Index (Free Index): 1.88 +/- 0.78
Photon Flux (Free Index): 1.42e-08 +/- 1.96e-08
Energy Flux (Free Index): 1.34e-05 +/- 2.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/133691/cmap_HighResolution_416102401_416361601_4FGL_J2348.1-4934_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='1.34e-05', photon_flux_error='2.62e-08', dlogl='3.10e-01', energy_flux='6.26e-06', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-30 05:59:44.211367', photon_index_error2='0.78', photon_index2='1.88', ts='1.91', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='2.34e-05', EG='0.84', time_epoch_completed='1633006784.21', return_code='0', job_id='133691', GAL2='1.03', EG2='0.85', return_code2='0', energy_flux_error='7.15e-06', photon_flux_error2='1.96e-08', ts2='2.54', photon_index='2.56' WHERE bin_id='682' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:59:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 133691: <4FGL_J2348.1-4934_daily_bin682> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.1-4934_daily_bin682 357.037 -49.57 416102401 416361601 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 :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

