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


Performing analysis on: 4FGL_J2348.1-4934_daily_bin1471
RA = 357.037, Dec = -49.57
tmin = 620611201, tmax = 620870401
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='139081', job_status='RUN', time_executed='2021-09-30 06:01:10.990921', time_epoch_executed='1633006870.99' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139081/ft1_4FGL_J2348.1-4934_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139081/ft1_4FGL_J2348.1-4934_daily_bin1471.fits outfile=/scratch/kocevski/139081/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin1471.fits ra=357.037 dec=-49.57 rad=12.0 tmin=620611201.0 tmax=620870401.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.70
user 3.50
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.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/139081/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin1471.fits evtable="EVENTS" outfile="/scratch/kocevski/139081/ft1_filtered_4FGL_J2348.1-4934_daily_bin1471.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139081/ft1_filtered_4FGL_J2348.1-4934_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/139081/ltcube_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.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/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.fits
.....................!
real 12.23
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139081/ft1_filtered_4FGL_J2348.1-4934_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/139081/ltcube_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.fits outfile=/scratch/kocevski/139081/expmap_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.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/139081/ltcube_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.fits
.....................!
real 191.32
user 186.10
sys 4.83

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/139081/ft1_filtered_4FGL_J2348.1-4934_daily_bin1471.fits scfile=/scratch/kocevski/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.fits outfile=/scratch/kocevski/139081/cmap_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.037 yref=-49.57 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139081/ft1_filtered_4FGL_J2348.1-4934_daily_bin1471.fits scfile=/scratch/kocevski/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.fits outfile=/scratch/kocevski/139081/cmap_HighResolution_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=357.037 yref=-49.57 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/139081/ft1_filtered_4FGL_J2348.1-4934_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/139081/ft2_4FGL_J2348.1-4934_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/139081/Model_4FGL_J2348.1-4934_daily_bin1471.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/139081/ft1_filtered_4FGL_J2348.1-4934_daily_bin1471.fits.....................!
real 23.22
user 22.05
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    57.940       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    103.28       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21288       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.522       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.623       1.0000         .10000E-03   10000.    
    22 'Prefactor '    103.69       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.108       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.8271       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.8952       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.6610       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .79324       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .96951       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .67948       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=   2029.132     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4815 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.296        .10954E-05** at limit **
   2  Prefactor     23.049        33.402        .66183E-06    .68493E-04
   3  Prefactor     58.000        90.103        .61240E-05    .19167E-03
   4  Prefactor     .10000E-03    7.8189        .30579E-07** at limit **
   5  Prefactor     23.620        26.337       -.43788E-06    .49284E-04
   6  Prefactor     .10000E-03    17.337        .70678E-06** at limit **
   7  Prefactor     .10000E-03    23.068       -.71862E-06** at limit **
   8  Prefactor     .10000E-03    5.1757        .22005E-06** at limit **
   9  norm          .10000E-03    30.032        .16042E-05** at limit **
  10  Prefactor     103.29        57.788        .11807E-05    .80753E-04
  11  Prefactor     .10000E-03    72.842        .74926E-06** at limit **
  12  Prefactor     .31060        19.257       -.11186E-05    .23041E-03
  13  Prefactor     .10000E-03    43.221       -.39716E-06** at limit **
  14  Prefactor     .10000E-03    11.906        .19909E-06** at limit **
  15  Prefactor     .10000E-03    58.633       -.14117E-05** at limit **
  16  Prefactor     .10000E-03    56.634       -.16754E-05** at limit **
  17  Prefactor     .10000E-03    12.797       -.49105E-06** at limit **
  18  norm          15.553        29.653        .17110E-05    .83095E-04
  19  norm          .10000E-03    4.8515       -.80281E-08** at limit **
  20  norm          .10000E-03    4.2003       -.33953E-07** at limit **
  21  Prefactor     22.625        14.416        .92285E-07   -.24978E-04
  22  Prefactor     103.68        63.136       -.26960E-05   -.22775E-04
  23  norm          .10000E-03    7.5831       -.56872E-06** at limit **
  24  Prefactor     16.114        23.191        .29621E-06   -.27865E-05
  25  norm          .10000E-03    1.2114       -.29209E-07** at limit **
  26  norm          4.8331        9.1626        .63077E-05   -.20052E-03
  27  Prefactor     5.9833        39.903        .60551E-05    .13531E-03
  28  Prefactor     4.6601        6.9393       -.31934E-06   -.99851E-04
  29  Prefactor     .10001E-03    90.537        .41976E-05** at limit **
  30  norm          .10000E-03    52.403       -.21178E-05** at limit **
  31  Prefactor     .83387        11.640        .26448E-08    .35880E-04
  32  Prefactor     .10000E-03    2.1822        .59985E-07** at limit **
  33  Normalizat    .96909        .29795       -.53994E-05    .89198E-04
  34  Prefactor     .67936        .30090        .19904E-05   -.61456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 23.0492
  Prefactor  = 58.0004
  Prefactor  = 0.0001
  Prefactor  = 23.6204
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 103.285
  Prefactor  = 0.0001
  Prefactor  = 0.310602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 15.5529
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.6248
  Prefactor  = 103.684
  norm       = 0.0001
  Prefactor  = 16.1142
  norm       = 0.0001
  norm       = 4.83306
  Prefactor  = 5.9833
  Prefactor  = 4.66013
  Prefactor  = 0.000100005
  norm       = 0.000100001
  Prefactor  = 0.833875
  Prefactor  = 0.0001
  Normalizat = 0.969089
  Prefactor  = 0.679364
 **********
 **   18 **HESSE 
 **********

 FCN=   2029.132     FROM HESSE     STATUS=OK           720 CALLS     5535 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.049        33.430        .83448E-04   -1.4747    
   3  Prefactor     58.000        92.283        .52704E-04   -1.4183    
   4  Prefactor     .10000E-03    7.8251        .12303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.620        26.451        .82436E-04   -1.4736    
   6  Prefactor     .10000E-03    17.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1895        .99962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    30.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     103.29        57.878        .19783E-03   -1.3672    
  11  Prefactor     .10000E-03    72.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31060        119.13        .37141E-02   -1.5597    
  13  Prefactor     .10000E-03    43.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.992        .15186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.818        .15741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.553        29.795        .10166E-03   -1.4919    
  19  norm          .10000E-03    4.8521        .96911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2026        .90162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.625        14.415        .84214E-04   -1.4756    
  22  Prefactor     103.68        63.456        .39488E-04   -1.3668    
  23  norm          .10000E-03    7.6746        .12077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.114        23.189        .99792E-04   -1.4905    
  25  norm          .10000E-03    1.2436        .96540E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.8331        9.4281        .85990E-03   -1.5268    
  27  Prefactor     5.9833        40.933        .16539E-03   -1.5219    
  28  Prefactor     4.6601        6.8203        .12553E-03   -1.5276    
  29  Prefactor     .10001E-03    91.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    52.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .83387        33.867        .25588E-02   -1.5525    
  32  Prefactor     .10000E-03    2.1851        .64982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .96909        .36144        .21958E-03   -.94073    
  34  Prefactor     .67936        .36481        .28041E-03   -1.0434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5438e-09
Minuit parameter uncertainties:
  1  0.000296922
  2  33.4574
  3  92.5121
  4  1.93269e-06
  5  26.4641
  6  0.000106645
  7  0.000287071
  8  2.75463e-06
  9  0.000382119
  10  57.9098
  11  0.000333446
  12  12.1883
  13  7.98032e-05
  14  6.70978e-05
  15  0.000414382
  16  0.000377978
  17  4.44056e-05
  18  29.823
  19  6.44282e-07
  20  1.45073e-06
  21  14.4172
  22  63.4973
  23  6.18575e-05
  24  23.202
  25  5.69621e-06
  26  9.43101
  27  31.33
  28  6.82141
  29  0.00136852
  30  0.000427485
  31  10.6342
  32  8.16509e-08
  33  0.362352
  34  0.366096
Done.

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

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  1.369e-03  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:  6.794e-01  3.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  9.691e-01  3.624e-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: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/139081/likelihoodResults_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.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) = 2029.13218933
delta logL = -5.17907949416e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2029.13213763
delta logL = -9.8965529105e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5132       1.0000          .0000       10.000    
     3 'Normalizat'    .96909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67937       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=   2029.132     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      282 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9878.2        .18142E-02** at limit **
   2  Index         2.5915        6.1320        .50000       -.10156E-04
   3  Normalizat    .96908        .14335        .21959E-03    .24592E-06
   4  Prefactor     .67937        .15599        .28040E-03   -.27266E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.59145
  Normalizat = 0.969083
  Prefactor  = 0.67937
 **********
 **   18 **HESSE 
 **********

 FCN=   2029.132     FROM HESSE     STATUS=OK            29 CALLS      311 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    113.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5915        6.2955        .50000       -.50260    
   3  Normalizat    .96908        .32053        .87835E-05   -.94073    
   4  Prefactor     .67937        .34888        .11216E-04   -1.0434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58375e-10
Minuit parameter uncertainties:
  1  0.00230635
  2  4.6221
  3  0.321167
  4  0.350008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139081': 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) = 2029.13213746
delta logL = 7.32300122763e-08

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.000e-04  2.306e-03  1.000e-04  1.000e+04 ( 1.000e-13)
521        Index:  2.591e+00  4.622e+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:  6.794e-01  3.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  9.691e-01  3.212e-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/139081/cmap_HighResolution_620611201_620870401_4FGL_J2348.1-4934_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-30 06:10:12.118798', job_id='139081', GAL2='0.68', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1633007412.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='7.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1471' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:10:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 139081: <4FGL_J2348.1-4934_daily_bin1471> in cluster <slac> Done

Job <4FGL_J2348.1-4934_daily_bin1471> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Sep 30 06:00:54 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:00:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:00:55 2021
Terminated at Thu Sep 30 06:10:12 2021
Results reported at Thu Sep 30 06:10:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.1-4934_daily_bin1471 357.037 -49.57 620611201 620870401 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 :                                   534.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            558 sec.

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

