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 54 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1773
RA = 357.356, Dec = 5.579
tmin = 698889601, tmax = 699148801
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='808580', job_status='RUN', time_executed='2023-02-27 10:46:38.157871', time_epoch_executed='1677523598.16' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808580/ft1_4FGL_J2349.4+0534_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808580/ft1_4FGL_J2349.4+0534_daily_bin1773.fits outfile=/scratch/kocevski/808580/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1773.fits ra=357.356 dec=5.579 rad=12.0 tmin=698889601.0 tmax=699148801.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.93
user 2.75
sys 0.16

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

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

Number of photons that the gtmktime cut: 423

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808580/ft1_filtered_4FGL_J2349.4+0534_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/808580/ltcube_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.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/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits
.....................!
real 15.16
user 14.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808580/ft1_filtered_4FGL_J2349.4+0534_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/808580/ltcube_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.fits outfile=/scratch/kocevski/808580/expmap_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.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/808580/ltcube_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.fits
.....................!
real 192.38
user 187.29
sys 4.71

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/808580/ft1_filtered_4FGL_J2349.4+0534_daily_bin1773.fits scfile=/scratch/kocevski/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits outfile=/scratch/kocevski/808580/cmap_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808580/ft1_filtered_4FGL_J2349.4+0534_daily_bin1773.fits scfile=/scratch/kocevski/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits outfile=/scratch/kocevski/808580/cmap_HighResolution_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.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.55
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808580/ft1_filtered_4FGL_J2349.4+0534_daily_bin1773.fits', '/scratch/kocevski/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits', expMap='/scratch/kocevski/808580/expmap_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.fits', expCube='/scratch/kocevski/808580/ltcube_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808580/Model_4FGL_J2349.4+0534_daily_bin1773.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  0.000e+00  1.000e+06 ( 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/808580/ft1_filtered_4FGL_J2349.4+0534_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/808580/ft2_4FGL_J2349.4+0534_daily_bin1773.fits
Exposure map: /scratch/kocevski/808580/expmap_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.fits
Exposure cube: /scratch/kocevski/808580/ltcube_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808580/Model_4FGL_J2349.4+0534_daily_bin1773.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) = 5037.56114619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.411       1.0000          .0000       .10000E+07
     2 'norm      '    .24958E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .10100E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .24995E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    39.958       1.0000          .0000       .10000E+07
     6 'Prefactor '    36.669       1.0000          .0000       .10000E+07
     7 'norm      '    2.4929       1.0000          .0000       .10000E+07
     8 'Prefactor '    20.339       1.0000          .0000       .10000E+07
     9 'Prefactor '    .61088       1.0000          .0000       .10000E+07
    10 'norm      '    .15406E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .77616       1.0000          .0000       .10000E+07
    12 'Prefactor '    42.389       1.0000          .0000       .10000E+07
    13 'norm      '    .52865E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .26662E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    5.5709       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.3383       1.0000          .0000       .10000E+07
    17 'Prefactor '    21.557       1.0000          .0000       .10000E+07
    18 'Normalizat'    .78968       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97405       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=   5037.556     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1459 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.381        5.0748        .32291E-07    .95363E-01
   2  norm           .0000        1.4695        .83526E-07** at limit **
   3  norm          .55511E-10    2.6828       -.17861E-05** at limit **
   4  Prefactor      .0000        5.4883        .33139E-06** at limit **
   5  Prefactor     38.637        67.618       -.22723E-05    .12490E-01
   6  Prefactor     37.450        11.263        .39432E-06    .62608E-01
   7  norm          2.4948        2.6425        .47957E-07    .74990E-03
   8  Prefactor     20.502        14.749       -.69108E-06   -.33399E-01
   9  Prefactor     .16493E-05    133.61       -.30852E-05** at limit **
  10  norm          .22915E-05    15.867        .52633E-06** at limit **
  11  Prefactor     .78107        15.440       -.24699E-05    .36942E-01
  12  Prefactor     42.294        4.9909       -.26670E-06   -.57604E-01
  13  norm           .0000        6.8485        .24061E-05** at limit **
  14  norm          .21875E-05    16.748        .22156E-05** at limit **
  15  Prefactor     5.5525        8.0716       -.15354E-06    .76762E-03
  16  Prefactor     3.4517        1.9168        .16199E-06    .11193E-02
  17  Prefactor     21.626        1.7712       -.30586E-07   -.55199E-01
  18  Normalizat    .78974        .25137        .21659E-04   -.13785E-05
  19  Prefactor     .97391        .17186       -.66572E-05    .32607E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3814
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 38.6368
  Prefactor  = 37.4499
  norm       = 2.49476
  Prefactor  = 20.5018
  Prefactor  = 1.64935e-06
  norm       = 2.2915e-06
  Prefactor  = 0.781075
  Prefactor  = 42.2944
  norm       = 0
  norm       = 2.18747e-06
  Prefactor  = 5.5525
  Prefactor  = 3.4517
  Prefactor  = 21.6262
  Normalizat = 0.789744
  Prefactor  = 0.973913
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.556     FROM HESSE     STATUS=OK           308 CALLS     1767 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.381        19.045        .22141E-03   -1.5618    
   2  norm           .0000        1.4697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    2.6690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        5.4804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.637        68.433        .15821E-03   -1.5584    
   6  Prefactor     37.450        36.230        .16516E-03   -1.5586    
   7  norm          2.4948        2.6582        .64708E-03   -1.5676    
   8  Prefactor     20.502        19.287        .22181E-03   -1.5617    
   9  Prefactor     .16493E-05    146.40        .68259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .22915E-05    20.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .78107        30.528        .54729E-03   -1.5690    
  12  Prefactor     42.294        44.015        .15361E-03   -1.5578    
  13  norm           .0000        6.8416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21875E-05    20.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5525        8.0974        .42541E-03   -1.5661    
  16  Prefactor     3.4517        98.189        .55371E-03   -1.5671    
  17  Prefactor     21.626        25.376        .21544E-03   -1.5615    
  18  Normalizat    .78974        .22097        .73209E-01   -1.0045    
  19  Prefactor     .97391        .14818        .45942E-01   -.93604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01035e-06
Minuit parameter uncertainties:
  1  19.0448
  2  1.06996e-05
  3  2.19293e-05
  4  1.02699e-05
  5  68.4347
  6  36.23
  7  2.65822
  8  19.2869
  9  0.0310793
  10  0.0136253
  11  9.76622
  12  44.0148
  13  1.27404e-05
  14  0.0135138
  15  8.09745
  16  36.8201
  17  25.3757
  18  0.221217
  19  0.148246
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.163e+01  2.538e+01  0.000e+00  1.000e+06 ( 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.739e-01  1.482e-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:  7.897e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.53e-05

TS (Fixed Index): 1.10
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/808580/likelihoodResults_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.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) = 5037.2407621
delta logL = 0.315123320776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5037.24064933
delta logL = 0.315236084961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.651       1.0000          .0000       .10000E+07
     2 'Index     '    1.8725       1.0000          .0000       10.000    
     3 'Normalizat'    .80971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96406       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=   5037.241     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      238 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.598        58.166        .17777E-03    .77572E-04
   2  Index         1.8736        1.0059        .19989       -.15034E-04
   3  Normalizat    .80978        .21848        .72383E-01    .23810E-04
   4  Prefactor     .96403        .14766        .45816E-01    .22090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5976
  Index      = 1.87355
  Normalizat = 0.80978
  Prefactor  = 0.964033
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.241     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.598        32.638        .71109E-05   -1.5596    
   2  Index         1.8736        .66157        .99740E-02   -.67550    
   3  Normalizat    .80978        .24971        .32033E-03   -.99707    
   4  Prefactor     .96403        .17021        .19989E-03   -.93938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07154e-12
Minuit parameter uncertainties:
  1  32.6387
  2  0.664778
  3  0.250068
  4  0.170301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808580': 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) = 5037.2406464
delta logL = 0.315239018024

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.160e+01  3.264e+01  0.000e+00  1.000e+06 ( 1.000e-13)
499        Index:  1.874e+00  6.648e-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.640e-01  1.703e-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.098e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.87 +/- 0.66
Photon Flux (Free Index): 2.70e-08 +/- 3.58e-08
Energy Flux (Free Index): 2.60e-05 +/- 3.81e-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/808580/cmap_HighResolution_698889601_699148801_4FGL_J2349.4+0534_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='2.60e-05', photon_flux_error='5.06e-08', dlogl='3.15e-01', energy_flux='1.30e-05', photon_flux2='2.70e-08', job_status='DONE', time_completed='2023-02-27 10:54:57.104257', photon_index_error2='0.66', photon_index2='1.87', ts='1.10', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='3.81e-05', EG='0.79', time_epoch_completed='1677524097.1', return_code='0', job_id='808580', GAL2='0.96', EG2='0.81', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='3.58e-08', ts2='1.74', photon_index='2.47' WHERE bin_id='1773' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:54:57 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 808580: <4FGL_J2349.4+0534_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 10:45:13 2023
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:45:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:45:14 2023
Terminated at Mon Feb 27 10:55:01 2023
Results reported at Mon Feb 27 10:55:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1773 357.356 5.579 698889601 699148801 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 :                                   501.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            588 sec.

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

