aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 78 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 = 7478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1694
RA = 357.356, Dec = 5.579
tmin = 678412801, tmax = 678672001
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='699930', job_status='RUN', time_executed='2022-07-05 04:06:50.545964', time_epoch_executed='1657019210.55' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/699930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/699930/ft1_4FGL_J2349.4+0534_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/699930/ft1_4FGL_J2349.4+0534_daily_bin1694.fits outfile=/scratch/kocevski/699930/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1694.fits ra=357.356 dec=5.579 rad=12.0 tmin=678412801.0 tmax=678672001.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.65
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.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/699930/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.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.52
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 600

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/699930/ltcube_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.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/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits
.....................!
real 13.99
user 13.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/699930/ltcube_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.fits outfile=/scratch/kocevski/699930/expmap_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.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/699930/ltcube_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.fits
.....................!
real 191.55
user 186.11
sys 4.91

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits scfile=/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits outfile=/scratch/kocevski/699930/cmap_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.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.356 yref=5.579 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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits scfile=/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits outfile=/scratch/kocevski/699930/cmap_HighResolution_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.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.356 yref=5.579 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/699930/Model_4FGL_J2349.4+0534_daily_bin1694.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/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits....................!
real 69.51
user 68.13
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits', '/scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits', expMap='/scratch/kocevski/699930/expmap_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.fits', expCube='/scratch/kocevski/699930/ltcube_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/699930/Model_4FGL_J2349.4+0534_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.4+0534'

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/699930/ft1_filtered_4FGL_J2349.4+0534_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/699930/ft2_4FGL_J2349.4+0534_daily_bin1694.fits
Exposure map: /scratch/kocevski/699930/expmap_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.fits
Exposure cube: /scratch/kocevski/699930/ltcube_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/699930/Model_4FGL_J2349.4+0534_daily_bin1694.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) = 6527.90799788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9969       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19664       1.0000         .10000E-03   10000.    
     8 'norm      '    .49918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3973       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.631       1.0000         .10000E-03   10000.    
    11 'norm      '    .60410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8567       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.782       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1809       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.159       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.174       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83400       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6527.895     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     2167 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    19.768        .48850E-05** at limit **
   2  norm          .10000E-03    .77363        .54934E-06** at limit **
   3  norm          .10000E-03    1.8644       -.58004E-06** at limit **
   4  Prefactor     .10000E-03    8.9002        .21095E-05** at limit **
   5  Prefactor     63.308        3.6998        .84541E-07   -.30122E-02
   6  Prefactor     5.9947        1.3978        .16314E-07    .13225E-02
   7  Prefactor     .10305E-03    1097.1        .10240E-04** at limit **
   8  norm          .49917        .50518        .18555E-06    .39958E-03
   9  Prefactor     7.3884        6.1914       -.18148E-06   -.72583E-02
  10  Prefactor     45.638        3.8478        .94922E-07   -.25665E-02
  11  norm          .62720        8.9668       -.19078E-05    .15868E-02
  12  Prefactor     6.6745        5.8617       -.54373E-06   -.15852E-02
  13  Prefactor     .11392E-03    144.06        .55613E-05** at limit **
  14  Prefactor     7.8689        4.3093        .10174E-06    .80146E-02
  15  Prefactor     27.764        10.710        .41368E-06    .24199E-03
  16  norm          .10000E-03    4.4789       -.42866E-06** at limit **
  17  norm          .10000E-03    14.322        .13395E-05** at limit **
  18  Prefactor     3.1804        3.6494        .73019E-07   -.68863E-03
  19  Prefactor     12.157        1.0297        .28867E-08    .50146E-03
  20  Prefactor     41.169        1.3282        .37054E-07    .79785E-03
  21  Prefactor     .10001E-03    35.236       -.15068E-05** at limit **
  22  Normalizat    .83399        .21813       -.53735E-05   -.31574E-03
  23  Prefactor     1.0759        .15565        .14431E-05   -.35251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100051
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.3085
  Prefactor  = 5.9947
  Prefactor  = 0.000103046
  norm       = 0.499167
  Prefactor  = 7.38842
  Prefactor  = 45.6379
  norm       = 0.627204
  Prefactor  = 6.67453
  Prefactor  = 0.000113915
  Prefactor  = 7.86893
  Prefactor  = 27.7637
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.18037
  Prefactor  = 12.1568
  Prefactor  = 41.1685
  Prefactor  = 0.000100007
  Normalizat = 0.83399
  Prefactor  = 1.07591
 **********
 **   18 **HESSE 
 **********

 FCN=   6527.895     FROM HESSE     STATUS=OK           430 CALLS     2597 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    19.751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .76878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     63.308        42.070        .12609E-02   -1.4115    
   6  Prefactor     5.9947        11.364        .40992E-02   -1.5218    
   7  Prefactor     .10305E-03    12.460        .99623E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .49917        .48474        .11267E-01   -1.5567    
   9  Prefactor     7.3884        8.1133        .36866E-02   -1.5164    
  10  Prefactor     45.638        51.198        .14838E-02   -1.4356    
  11  norm          .62720        5.5319        .88091E-01   -1.5550    
  12  Prefactor     6.6745        6.7088        .38796E-02   -1.5191    
  13  Prefactor     .11392E-03    231.65        .10381E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8689        11.470        .35763E-02   -1.5147    
  15  Prefactor     27.764        26.071        .19002E-02   -1.4654    
  16  norm          .10000E-03    4.4766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1804        3.9201        .56803E-02   -1.5351    
  19  Prefactor     12.157        38.570        .28720E-02   -1.5010    
  20  Prefactor     41.169        24.552        .15618E-02   -1.4424    
  21  Prefactor     .10001E-03    34.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .83399        .19643        .70267E-01   -.98820    
  23  Prefactor     1.0759        .13615        .38590E-01   -.90240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25227e-07
Minuit parameter uncertainties:
  1  0.00200218
  2  6.58362e-06
  3  1.07159e-05
  4  7.17097e-05
  5  42.0895
  6  11.3685
  7  0.0123234
  8  0.48474
  9  8.11447
  10  51.2476
  11  3.72555
  12  6.70952
  13  0.113993
  14  11.4728
  15  26.0816
  16  1.28784e-05
  17  0.000119065
  18  3.92045
  19  38.6496
  20  24.5583
  21  0.000995076
  22  0.196597
  23  0.136196
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.117e+01  2.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.076e+00  1.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.340e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.22e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.48e-05

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) = 6527.82118308
delta logL = 0.0736394002879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6527.81054272
delta logL = 0.0842797585201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.754       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8074       1.0000          .0000       10.000    
     3 'Normalizat'    .80370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0910       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   6527.811     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      306 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.736        48.561        .74714E-04    .36887E-03
   2  Index         2.8072        1.1994        .49493E-02    .18981E-03
   3  Normalizat    .80354        .24013        .31610E-03    .20259E-03
   4  Prefactor     1.0912        .16522        .19771E-03   -.83853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7363
  Index      = 2.80722
  Normalizat = 0.803537
  Prefactor  = 1.0912
 **********
 **   18 **HESSE 
 **********

 FCN=   6527.811     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.736        36.321        .14943E-04   -1.4635    
   2  Index         2.8072        .89963        .19797E-03   -.45399    
   3  Normalizat    .80354        .23118        .12644E-04   -.99938    
   4  Prefactor     1.0912        .16104        .39543E-04   -.89748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24722e-09
Minuit parameter uncertainties:
  1  36.3485
  2  0.905746
  3  0.231465
  4  0.161111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/699930': 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) = 6527.81054021
delta logL = 0.0842822695276

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.874e+01  3.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.807e+00  9.057e-01  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.091e+00  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.035e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.81 +/- 0.91
Photon Flux (Free Index): 1.02e-07 +/- 7.24e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.30e-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/699930/cmap_HighResolution_678412801_678672001_4FGL_J2349.4+0534_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.22e-08', energy_flux2='2.27e-05', photon_flux_error='4.90e-08', dlogl='8.43e-02', energy_flux='2.48e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2022-07-05 04:16:44.712251', photon_index_error2='0.91', photon_index2='2.81', ts='5.69', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.83', time_epoch_completed='1657019804.71', return_code='0', job_id='699930', GAL2='1.09', EG2='0.80', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='7.24e-08', ts2='5.90', photon_index='2.47' WHERE bin_id='1694' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:16:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 699930: <4FGL_J2349.4+0534_daily_bin1694> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1694> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jul  5 04:05:14 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 04:05:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 04:05:22 2022
Terminated at Tue Jul  5 04:16:45 2022
Results reported at Tue Jul  5 04:16:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1694 357.356 5.579 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.4+0534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   596.39 sec.
    Max Memory :                                 1184 MB
    Average Memory :                             295.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            691 sec.

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

