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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1665
RA = 357.356, Dec = 5.579
tmin = 670896001, tmax = 671155201
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='358206', job_status='RUN', time_executed='2022-04-09 00:41:23.590960', time_epoch_executed='1649490083.59' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358206/ft1_4FGL_J2349.4+0534_daily_bin1665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358206/ft2_4FGL_J2349.4+0534_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358206/ft1_4FGL_J2349.4+0534_daily_bin1665.fits outfile=/scratch/kocevski/358206/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1665.fits ra=357.356 dec=5.579 rad=12.0 tmin=670896001.0 tmax=671155201.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 5.43
user 5.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358206/ft2_4FGL_J2349.4+0534_daily_bin1665.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/358206/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1665.fits evtable="EVENTS" outfile="/scratch/kocevski/358206/ft1_filtered_4FGL_J2349.4+0534_daily_bin1665.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.31
sys 0.17

Number of photons that the gtmktime cut: 595

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358206/ft1_filtered_4FGL_J2349.4+0534_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358206/ft2_4FGL_J2349.4+0534_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/358206/ltcube_670896001_671155201_4FGL_J2349.4+0534_daily_bin1665.fits outfile=/scratch/kocevski/358206/expmap_670896001_671155201_4FGL_J2349.4+0534_daily_bin1665.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/358206/ltcube_670896001_671155201_4FGL_J2349.4+0534_daily_bin1665.fits
.....................!
real 189.77
user 184.68
sys 4.59

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/358206/ft1_filtered_4FGL_J2349.4+0534_daily_bin1665.fits scfile=/scratch/kocevski/358206/ft2_4FGL_J2349.4+0534_daily_bin1665.fits outfile=/scratch/kocevski/358206/cmap_670896001_671155201_4FGL_J2349.4+0534_daily_bin1665.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358206/ft1_filtered_4FGL_J2349.4+0534_daily_bin1665.fits scfile=/scratch/kocevski/358206/ft2_4FGL_J2349.4+0534_daily_bin1665.fits outfile=/scratch/kocevski/358206/cmap_HighResolution_670896001_671155201_4FGL_J2349.4+0534_daily_bin1665.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.758       1.0000         .10000E-03   10000.    
     2 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.335       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.031       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10223E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.524       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.767       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89602       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=   6677.188     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2539 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.747        18.507        .41586E-06    .22424E-03
   2  norm          .10000E-03    2.0946       -.59023E-07** at limit **
   3  norm          .10000E-03    1.7410        .51449E-07** at limit **
   4  Prefactor     19.310        16.055        .16195E-06    .12114E-03
   5  Prefactor     19.314        36.159        .70718E-06   -.83125E-04
   6  Prefactor     .10000E-03    5.4751       -.16746E-06** at limit **
   7  Prefactor     15.034        13.955       -.49386E-07   -.47910E-04
   8  norm          .10000E-03    .22753        .78162E-08** at limit **
   9  Prefactor     .10000E-03    2.1574        .20215E-08** at limit **
  10  Prefactor     .10000E-03    27.529        .50678E-08** at limit **
  11  norm          .10000E-03    5.3929       -.15762E-06** at limit **
  12  Prefactor     .10000E-03    2.0591       -.44343E-08** at limit **
  13  Prefactor     .10000E-03    47.647        .10058E-06** at limit **
  14  Prefactor     .10000E-03    20.822       -.68276E-05** at limit **
  15  Prefactor     .10000E-03    11.615        .68367E-07** at limit **
  16  norm          .10000E-03    10.785        .36731E-07** at limit **
  17  norm          1.5371        33.183       -.83490E-05   -.57929E-05
  18  Prefactor     .10000E-03    2.0882        .20961E-06** at limit **
  19  Prefactor     40.531        41.820       -.33817E-06   -.17343E-04
  20  Prefactor     29.775        24.862       -.26502E-07    .26435E-04
  21  Prefactor     .10000E-03    4.9862        .34740E-07** at limit **
  22  Normalizat    1.1614        .20203       -.64847E-06   -.15340E-03
  23  Prefactor     .89630        .13240        .14631E-06   -.22310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7465
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.3095
  Prefactor  = 19.3136
  Prefactor  = 0.0001
  Prefactor  = 15.0342
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.53713
  Prefactor  = 0.0001
  Prefactor  = 40.5313
  Prefactor  = 29.7754
  Prefactor  = 0.0001
  Normalizat = 1.16141
  Prefactor  = 0.896295
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.188     FROM HESSE     STATUS=OK           362 CALLS     2901 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.747        18.614        .83964E-04   -1.4754    
   2  norm          .10000E-03    2.1746        .22991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7469        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.310        16.181        .91159E-04   -1.4829    
   5  Prefactor     19.314        36.327        .91086E-04   -1.4829    
   6  Prefactor     .10000E-03    5.4972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.034        13.961        .10331E-03   -1.4932    
   8  norm          .10000E-03    .23246        .38043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1589        .11721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.5949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0635        .11450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.781        .35130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5371        33.614        .35093E-03   -1.5460    
  18  Prefactor     .10000E-03    2.1844        .23128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.531        41.890        .62968E-04   -1.4434    
  20  Prefactor     29.775        24.884        .73434E-04   -1.4616    
  21  Prefactor     .10000E-03    4.9975        .17820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1614        .23951        .28051E-03   -.87804    
  23  Prefactor     .89630        .15627        .21477E-03   -.96271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27519e-10
Minuit parameter uncertainties:
  1  18.6183
  2  2.81829e-06
  3  8.01676e-06
  4  16.1846
  5  36.3688
  6  1.56237e-05
  7  13.9644
  8  9.21942e-07
  9  5.93701e-06
  10  0.000104914
  11  9.99329e-05
  12  1.53339e-07
  13  3.09029e-05
  14  0.000143187
  15  5.85674e-05
  16  1.32986e-05
  17  14.3849
  18  1.78299e-05
  19  41.9204
  20  24.8931
  21  4.9928e-06
  22  0.239739
  23  0.15635
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.978e+01  2.489e+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:  8.963e-01  1.563e-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:  1.161e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.94e-08 +/- 4.97e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/358206/likelihoodResults_670896001_671155201_4FGL_J2349.4+0534_daily_bin1665.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) = 6677.13119974
delta logL = 0.056654738094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6677.12893393
delta logL = 0.0589205466686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.903       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7314       1.0000          .0000       10.000    
     3 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90305       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=   6677.129     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      290 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.899        31.092        .81932E-04    .25887E-03
   2  Index         2.7309        .88102        .72247E-02    .85701E-04
   3  Normalizat    1.1450        .23197        .28220E-03   -.35046E-03
   4  Prefactor     .90304        .15579        .21404E-03   -.63542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8994
  Index      = 2.73094
  Normalizat = 1.14499
  Prefactor  = 0.903044
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.129     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.899        27.509        .16386E-04   -1.4730    
   2  Index         2.7309        .77911        .28899E-03   -.47104    
   3  Normalizat    1.1450        .23116        .56439E-04   -.88320    
   4  Prefactor     .90304        .15541        .42809E-04   -.96035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85442e-10
Minuit parameter uncertainties:
  1  27.5239
  2  0.783141
  3  0.231366
  4  0.155485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358206': 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) = 6677.12893342
delta logL = 0.058921058635

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.390e+01  2.752e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.731e+00  7.831e-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:  9.030e-01  1.555e-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:  1.145e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.73 +/- 0.78
Photon Flux (Free Index): 7.43e-08 +/- 6.83e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.36e-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/358206/cmap_HighResolution_670896001_671155201_4FGL_J2349.4+0534_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='5.94e-08', energy_flux2='1.75e-05', photon_flux_error='4.97e-08', dlogl='5.89e-02', energy_flux='1.79e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2022-04-09 00:52:35.916535', photon_index_error2='0.78', photon_index2='2.73', ts='2.41', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.36e-05', EG='1.16', time_epoch_completed='1649490755.92', return_code='0', job_id='358206', GAL2='0.90', EG2='1.14', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.83e-08', ts2='2.53', photon_index='2.47' WHERE bin_id='1665' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:52:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 358206: <4FGL_J2349.4+0534_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:40:18 2022
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:40:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr  9 00:40:21 2022
Terminated at Sat Apr  9 00:52:36 2022
Results reported at Sat Apr  9 00:52:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1665 357.356 5.579 670896001 671155201 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 :                                   673.44 sec.
    Max Memory :                                 1049 MB
    Average Memory :                             308.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            738 sec.

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

