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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1674
RA = 357.356, Dec = 5.579
tmin = 673228801, tmax = 673488001
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='719034', job_status='RUN', time_executed='2022-05-06 03:17:28.784399', time_epoch_executed='1651832248.78' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719034/ft1_4FGL_J2349.4+0534_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719034/ft2_4FGL_J2349.4+0534_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719034/ft1_4FGL_J2349.4+0534_daily_bin1674.fits outfile=/scratch/kocevski/719034/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1674.fits ra=357.356 dec=5.579 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.78
user 2.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719034/ft2_4FGL_J2349.4+0534_daily_bin1674.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/719034/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/719034/ft1_filtered_4FGL_J2349.4+0534_daily_bin1674.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 533

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719034/ft1_filtered_4FGL_J2349.4+0534_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/719034/ft2_4FGL_J2349.4+0534_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/719034/ltcube_673228801_673488001_4FGL_J2349.4+0534_daily_bin1674.fits outfile=/scratch/kocevski/719034/expmap_673228801_673488001_4FGL_J2349.4+0534_daily_bin1674.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/719034/ltcube_673228801_673488001_4FGL_J2349.4+0534_daily_bin1674.fits
.....................!
real 193.40
user 186.89
sys 5.33

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/719034/ft1_filtered_4FGL_J2349.4+0534_daily_bin1674.fits scfile=/scratch/kocevski/719034/ft2_4FGL_J2349.4+0534_daily_bin1674.fits outfile=/scratch/kocevski/719034/cmap_673228801_673488001_4FGL_J2349.4+0534_daily_bin1674.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9473       1.0000         .10000E-03   10000.    
     2 'norm      '    .67057E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .25798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86903       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19394E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.399       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0026       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21173E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0591       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96533       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=   5933.545     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2619 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9497        22.248       -.82172E-06   -.15122E-04
   2  norm          .66975E-01    1.9288        .19724E-06    .28117E-05
   3  norm          6.5946        5.0078        .25639E-06    .12865E-04
   4  Prefactor     .10000E-03    26.125        .24974E-06** at limit **
   5  Prefactor     .10000E-03    13.750       -.23783E-06** at limit **
   6  Prefactor     9.2327        11.117        .10977E-06    .14387E-04
   7  Prefactor     .10000E-03    3.9550       -.73190E-07** at limit **
   8  norm          .25873        .55845       -.15254E-06   -.18993E-03
   9  Prefactor     .86748        31.407        .63721E-05    .19282E-05
  10  Prefactor     .10000E-03    30.581       -.49380E-06** at limit **
  11  norm          .10000E-03    5.4587       -.19555E-06** at limit **
  12  Prefactor     .10000E-03    4.0127       -.29426E-06** at limit **
  13  Prefactor     36.893        158.88       -.29903E-05   -.18335E-05
  14  Prefactor     11.068        15.556       -.62747E-07   -.12044E-03
  15  Prefactor     .10000E-03    15.356       -.12399E-06** at limit **
  16  norm          .10000E-03    5.1569       -.98362E-07** at limit **
  17  norm          22.898        27.142       -.39754E-06   -.82966E-04
  18  Prefactor     .10000E-03    120.29       -.24778E-05** at limit **
  19  Prefactor     15.405        28.171        .24199E-06    .13295E-04
  20  Prefactor     1.9977        71.474       -.40071E-05    .14365E-05
  21  Prefactor     .10000E-03    45.910       -.39795E-05** at limit **
  22  Normalizat    1.0596        .24203       -.17011E-05    .58693E-04
  23  Prefactor     .96510        .16501        .82909E-06    .87173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.94968
  norm       = 0.0669747
  norm       = 6.59457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23271
  Prefactor  = 0.0001
  norm       = 0.258731
  Prefactor  = 0.867483
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.8934
  Prefactor  = 11.0683
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.8981
  Prefactor  = 0.0001
  Prefactor  = 15.4049
  Prefactor  = 1.99773
  Prefactor  = 0.0001
  Normalizat = 1.05956
  Prefactor  = 0.965101
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.545     FROM HESSE     STATUS=OK           388 CALLS     3007 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9497        26.262        .12705E-03   -1.5077    
   2  norm          .66975E-01    58.935        .18139E-02   -1.5656    
   3  norm          6.5946        5.0036        .14534E-03   -1.5194    
   4  Prefactor     .10000E-03    26.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2327        11.112        .13188E-03   -1.5100    
   7  Prefactor     .10000E-03    3.9578        .14962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .25873        .55026        .88487E-03   -1.5606    
   9  Prefactor     .86748        31.684        .35379E-02   -1.5522    
  10  Prefactor     .10000E-03    30.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.5277        .17551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0668        .15062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.893        159.95        .32810E-03   -1.4492    
  14  Prefactor     11.068        15.846        .12034E-03   -1.5042    
  15  Prefactor     .10000E-03    15.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1645        .17086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.898        27.162        .83744E-04   -1.4751    
  18  Prefactor     .10000E-03    8.0517        .36676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.405        28.161        .10207E-03   -1.4923    
  20  Prefactor     1.9977        72.139        .29263E-03   -1.5425    
  21  Prefactor     .10000E-03    46.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0596        .24637        .28426E-03   -.91061    
  23  Prefactor     .96510        .16573        .20579E-03   -.93902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05657e-09
Minuit parameter uncertainties:
  1  26.2926
  2  3.97443
  3  5.00389
  4  4.60423e-05
  5  4.25964e-06
  6  11.1149
  7  6.39855e-07
  8  0.550273
  9  10.4906
  10  1.91814e-06
  11  1.48956e-06
  12  7.69869e-07
  13  154.338
  14  15.8525
  15  9.42598e-06
  16  1.51424e-06
  17  27.1767
  18  3.14376e-05
  19  28.185
  20  24.0403
  21  0.000213356
  22  0.246637
  23  0.165817
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.998e+00  2.404e+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:  9.651e-01  1.658e-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.060e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/719034/likelihoodResults_673228801_673488001_4FGL_J2349.4+0534_daily_bin1674.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) = 5933.54400169
delta logL = 0.00121013904754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5933.54357778
delta logL = 0.00163405059902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7485       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3186       1.0000          .0000       10.000    
     3 'Normalizat'    1.0601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96499       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=   5933.544     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      256 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7838        649.77        .61389E-02    .50269E-04
   2  Index         2.3149        1.9818        .50000        .26236E-05
   3  Normalizat    1.0601        .16949E-01    .64250E-01   -.12840E-03
   4  Prefactor     .96446        .11831E-01    .45828E-01   -.19876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78379
  Index      = 2.3149
  Normalizat = 1.06007
  Prefactor  = 0.964461
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.544     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7838        75.783        .24555E-03   -1.5374    
   2  Index         2.3149        2.3496        .11356E-01   -.56690    
   3  Normalizat    1.0601        .22889        .28420E-03   -.91044    
   4  Prefactor     .96446        .16103        .20585E-03   -.93924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26761e-11
Minuit parameter uncertainties:
  1  29.0896
  2  2.49212
  3  0.229104
  4  0.16111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719034': 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) = 5933.54355349
delta logL = 0.00165834209474

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.784e+00  2.909e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.315e+00  2.492e+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:  9.645e-01  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:  1.060e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 357.356 5.579

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/719034/cmap_HighResolution_673228801_673488001_4FGL_J2349.4+0534_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2022-05-06 03:28:22.110874', job_id='719034', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1651832902.11', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.66e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1674' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:28:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 719034: <4FGL_J2349.4+0534_daily_bin1674> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1674> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri May  6 03:15:12 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 03:16:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 03:16:22 2022
Terminated at Fri May  6 03:28:22 2022
Results reported at Fri May  6 03:28:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1674 357.356 5.579 673228801 673488001 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            790 sec.

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

