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 55 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 = 7485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1663
RA = 357.356, Dec = 5.579
tmin = 670377601, tmax = 670636801
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='261700', job_status='RUN', time_executed='2022-04-03 00:36:54.696936', time_epoch_executed='1648971414.7' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261700/ft1_4FGL_J2349.4+0534_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261700/ft1_4FGL_J2349.4+0534_daily_bin1663.fits outfile=/scratch/kocevski/261700/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1663.fits ra=357.356 dec=5.579 rad=12.0 tmin=670377601.0 tmax=670636801.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.82
user 3.61
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.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/261700/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1663.fits evtable="EVENTS" outfile="/scratch/kocevski/261700/ft1_filtered_4FGL_J2349.4+0534_daily_bin1663.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261700/ft1_filtered_4FGL_J2349.4+0534_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/261700/ltcube_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.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/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits
.....................!
real 11.83
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261700/ft1_filtered_4FGL_J2349.4+0534_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261700/ltcube_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.fits outfile=/scratch/kocevski/261700/expmap_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.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/261700/ltcube_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.fits
.....................!
real 190.08
user 185.05
sys 4.72

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/261700/ft1_filtered_4FGL_J2349.4+0534_daily_bin1663.fits scfile=/scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits outfile=/scratch/kocevski/261700/cmap_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261700/ft1_filtered_4FGL_J2349.4+0534_daily_bin1663.fits scfile=/scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits outfile=/scratch/kocevski/261700/cmap_HighResolution_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261700/ft1_filtered_4FGL_J2349.4+0534_daily_bin1663.fits', '/scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits', expMap='/scratch/kocevski/261700/expmap_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.fits', expCube='/scratch/kocevski/261700/ltcube_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261700/Model_4FGL_J2349.4+0534_daily_bin1663.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/261700/ft1_filtered_4FGL_J2349.4+0534_daily_bin1663.fits
Spacecraft file(s): /scratch/kocevski/261700/ft2_4FGL_J2349.4+0534_daily_bin1663.fits
Exposure map: /scratch/kocevski/261700/expmap_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.fits
Exposure cube: /scratch/kocevski/261700/ltcube_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261700/Model_4FGL_J2349.4+0534_daily_bin1663.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) = 7702.29006403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.317       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3252       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2448       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.223       1.0000         .10000E-03   10000.    
    11 'norm      '    .14352E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    128.21       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11489E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0620       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6939       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3012       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99388       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1467       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.

 FCN=   7702.245     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2494 TOTAL
                     EDM=   .34E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.603        .11734E-06** at limit **
   2  norm          12.319        4.6083        .57092E-07   -.58083E-05
   3  norm          5.7611        4.4571        .27568E-07   -.17928E-05
   4  Prefactor     28.436        16.442        .25148E-07   -.32505E-05
   5  Prefactor     .10000E-03    35.741        .33880E-07** at limit **
   6  Prefactor     .10000E-03    7.6612        .21757E-06** at limit **
   7  Prefactor     6.3247        10.526        .23346E-05   -.48249E-05
   8  norm          1.2456        .89451       -.17630E-06   -.69722E-05
   9  Prefactor     .10000E-03    9.0553       -.17445E-06** at limit **
  10  Prefactor     13.199        59.451        .74118E-06    .43876E-05
  11  norm          .10000E-03    9.0604       -.12481E-06** at limit **
  12  Prefactor     .10000E-03    6.5034        .22340E-06** at limit **
  13  Prefactor     127.84        180.71        .59494E-06   -.81070E-05
  14  Prefactor     .10000E-03    6.8736       -.23665E-05** at limit **
  15  Prefactor     1.9311        82.866        .23070E-05   -.42674E-06
  16  norm          .10000E-03    6.9936        .14035E-06** at limit **
  17  norm          .10000E-03    8.7869       -.10275E-05** at limit **
  18  Prefactor     4.6961        3.4879       -.43729E-07    .96330E-04
  19  Prefactor     .10000E-03    40.542        .13503E-06** at limit **
  20  Prefactor     19.134        19.787       -.12025E-07   -.75260E-06
  21  Prefactor     6.2942        17.153        .40428E-06    .41242E-05
  22  Normalizat    .99376        .22144       -.17096E-06    .11273E-04
  23  Prefactor     1.1469        .14145       -.24026E-06    .15135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.3191
  norm       = 5.76107
  Prefactor  = 28.4357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32467
  norm       = 1.24564
  Prefactor  = 0.0001
  Prefactor  = 13.1988
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.844
  Prefactor  = 0.0001
  Prefactor  = 1.93113
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.69615
  Prefactor  = 0.0001
  Prefactor  = 19.134
  Prefactor  = 6.2942
  Normalizat = 0.993761
  Prefactor  = 1.14685
 **********
 **   18 **HESSE 
 **********

 FCN=   7702.245     FROM HESSE     STATUS=OK           372 CALLS     2866 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.319        4.6426        .10512E-03   -1.5006    
   3  norm          5.7611        4.4541        .15549E-03   -1.5228    
   4  Prefactor     28.436        16.457        .75128E-04   -1.4641    
   5  Prefactor     .10000E-03    35.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3247        10.533        .79800E-03   -1.5205    
   8  norm          1.2456        .87991        .67232E-04   -1.5485    
   9  Prefactor     .10000E-03    9.1183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.199        59.796        .11015E-03   -1.4981    
  11  norm          .10000E-03    9.2019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     127.84        180.55        .17778E-03   -1.3442    
  14  Prefactor     .10000E-03    6.8584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9311        82.548        .28776E-03   -1.5430    
  16  norm          .10000E-03    7.0081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.7898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6961        3.4866        .13493E-03   -1.5275    
  19  Prefactor     .10000E-03    40.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.134        19.787        .91568E-04   -1.4833    
  21  Prefactor     6.2942        17.178        .15991E-03   -1.5206    
  22  Normalizat    .99376        .25515        .33779E-03   -.93240    
  23  Prefactor     1.1469        .16287        .21722E-03   -.87983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79038e-12
Minuit parameter uncertainties:
  1  5.41004e-07
  2  4.64271
  3  4.45434
  4  16.4592
  5  3.23701e-05
  6  3.34974e-06
  7  10.5363
  8  0.879923
  9  6.72487e-06
  10  56.2801
  11  9.0145e-06
  12  3.80007e-07
  13  181.339
  14  1.08097e-05
  15  25.2882
  16  2.79287e-07
  17  6.6371e-06
  18  3.48675
  19  4.81623e-05
  20  19.7935
  21  17.1915
  22  0.255459
  23  0.162943
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.913e+01  1.979e+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.147e+00  1.629e-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:  9.938e-01  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.19e-05

TS (Fixed Index): 1.34
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261700/likelihoodResults_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.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) = 7702.23926258
delta logL = 0.0053379608762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7702.23556662
delta logL = 0.00903392553482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.165       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5948       1.0000          .0000       10.000    
     3 'Normalizat'    .98849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1491       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.

 FCN=   7702.236     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      213 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.130        382.30        .24168E-02    .43066E-03
   2  Index         2.5977        3.4592        .23215        .70162E-04
   3  Normalizat    .98847        .66895E-01    .76512E-01    .67595E-05
   4  Prefactor     1.1491        .39639E-01    .35962E-01   -.27567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.13
  Index      = 2.59772
  Normalizat = 0.988468
  Prefactor  = 1.14912
 **********
 **   18 **HESSE 
 **********

 FCN=   7702.236     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.130        26.790        .48335E-03   -1.4880    
   2  Index         2.5977        1.1079        .80783E-02   -.50117    
   3  Normalizat    .98847        .23600        .33860E-03   -.93418    
   4  Prefactor     1.1491        .16072        .21704E-03   -.87912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09179e-09
Minuit parameter uncertainties:
  1  26.8083
  2  1.12003
  3  0.236244
  4  0.160788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261700': 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) = 7702.2355618
delta logL = 0.00903874376763

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.713e+01  2.681e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.598e+00  1.120e+00  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.149e+00  1.608e-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:  9.885e-01  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.60 +/- 1.12
Photon Flux (Free Index): 4.25e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261700/cmap_HighResolution_670377601_670636801_4FGL_J2349.4+0534_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-03', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.12e-05', photon_flux_error='3.95e-08', dlogl='9.04e-03', energy_flux='1.15e-05', photon_flux2='4.25e-08', job_status='DONE', time_completed='2022-04-03 00:48:35.609063', photon_index_error2='1.12', photon_index2='2.60', ts='1.34', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.20e-05', EG='0.99', time_epoch_completed='1648972115.61', return_code='0', job_id='261700', GAL2='1.15', EG2='0.99', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.18e-08', ts2='1.35', photon_index='2.47' WHERE bin_id='1663' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:48:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 261700: <4FGL_J2349.4+0534_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:49 2022
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:51 2022
Terminated at Sun Apr  3 00:48:36 2022
Results reported at Sun Apr  3 00:48:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1663 357.356 5.579 670377601 670636801 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 :                                   703.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            767 sec.

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

