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


Performing analysis on: 4FGL_J2349.4+0534_weekly_bin758
RA = 357.356, Dec = 5.579
tmin = 697420801, tmax = 698025601
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='118619', job_status='RUN', time_executed='2023-02-14 03:16:40.229056', time_epoch_executed='1676373400.23' WHERE source_name='4FGL J2349.4+0534' and cadence='weekly' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118619

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118619/ft1_4FGL_J2349.4+0534_weekly_bin758.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118619/ft2_4FGL_J2349.4+0534_weekly_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118619/ft1_4FGL_J2349.4+0534_weekly_bin758.fits outfile=/scratch/kocevski/118619/ft1_filteredMKT_4FGL_J2349.4+0534_weekly_bin758.fits ra=357.356 dec=5.579 rad=12.0 tmin=697420801.0 tmax=698025601.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 7.97
user 7.60
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/118619/ft2_4FGL_J2349.4+0534_weekly_bin758.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/118619/ft1_filteredMKT_4FGL_J2349.4+0534_weekly_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/118619/ft1_filtered_4FGL_J2349.4+0534_weekly_bin758.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.54
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 1221

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118619/ft1_filtered_4FGL_J2349.4+0534_weekly_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/118619/ft2_4FGL_J2349.4+0534_weekly_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/118619/ltcube_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.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/118619/ft2_4FGL_J2349.4+0534_weekly_bin758.fits
.....................!
real 28.18
user 27.42
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118619/ft1_filtered_4FGL_J2349.4+0534_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/118619/ft2_4FGL_J2349.4+0534_weekly_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/118619/ltcube_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.fits outfile=/scratch/kocevski/118619/expmap_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.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/118619/ltcube_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.fits
.....................!
real 193.57
user 186.06
sys 5.18

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/118619/ft1_filtered_4FGL_J2349.4+0534_weekly_bin758.fits scfile=/scratch/kocevski/118619/ft2_4FGL_J2349.4+0534_weekly_bin758.fits outfile=/scratch/kocevski/118619/cmap_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118619/ft1_filtered_4FGL_J2349.4+0534_weekly_bin758.fits scfile=/scratch/kocevski/118619/ft2_4FGL_J2349.4+0534_weekly_bin758.fits outfile=/scratch/kocevski/118619/cmap_HighResolution_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1473       1.0000          .0000       .10000E+07
     2 'norm      '    .38469E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .61062E-09   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28699E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10323E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.4220       1.0000          .0000       .10000E+07
     7 'norm      '    .93571       1.0000          .0000       .10000E+07
     8 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     9 'Prefactor '    40.287       1.0000          .0000       .10000E+07
    10 'norm      '    .18319E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0521       1.0000          .0000       .10000E+07
    12 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    13 'norm      '     .0000       1.0000          .0000       .10000E+07
    14 'norm      '    6.7390       1.0000          .0000       .10000E+07
    15 'Prefactor '    .95479E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.9542       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.7028       1.0000          .0000       .10000E+07
    18 'Normalizat'    .88486       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97507       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=   14055.46     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1792 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1469        5.7170       -.12329E-06    .42255E-03
   2  norm           .0000        .47469       -.11461E-06** at limit **
   3  norm           .0000        .88579        .10118E-06** at limit **
   4  Prefactor     .55511E-10    3.7537       -.71673E-07** at limit **
   5  Prefactor     .22204E-08    222.38       -.35731E-05** at limit **
   6  Prefactor     5.4207        11.571        .15291E-06   -.16930E-01
   7  norm          .93571        .55576        .67140E-07    .58951E-02
   8  Prefactor     .47740E-08    3.0582       -.34804E-06** at limit **
   9  Prefactor     40.280        1.5065        .11043E-07   -.30123E-01
  10  norm           .0000        2.1525        .72462E-08** at limit **
  11  Prefactor     1.0521        3.0089        .54898E-07    .33476E-03
  12  Prefactor      .0000        24.285       -.36240E-06** at limit **
  13  norm          .64948E-08    3.0536        .34934E-06** at limit **
  14  norm          6.7378        11.103        .63627E-06   -.21199E-01
  15  Prefactor      .0000        .97199       -.66783E-07** at limit **
  16  Prefactor     8.9547        17.240       -.44804E-06    .11429E-01
  17  Prefactor     6.7045        5.2400        .42800E-06    .67106E-01
  18  Normalizat    .88485        .14329        .18487E-05    .20847E-03
  19  Prefactor     .97508        .99831E-01    .20734E-05    .33818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14687
  norm       = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-09
  Prefactor  = 5.4207
  norm       = 0.935708
  Prefactor  = 4.77396e-09
  Prefactor  = 40.2801
  norm       = 0
  Prefactor  = 1.05209
  Prefactor  = 0
  norm       = 6.4948e-09
  norm       = 6.73776
  Prefactor  = 0
  Prefactor  = 8.95474
  Prefactor  = 6.70448
  Normalizat = 0.88485
  Prefactor  = 0.975078
 **********
 **   18 **HESSE 
 **********

 FCN=   14055.46     FROM HESSE     STATUS=OK           304 CALLS     2096 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1469        5.7403        .57113E-03   -1.5672    
   2  norm           .0000        .47497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .88448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    3.7410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22204E-08    221.22        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4207        12.414        .43131E-03   -1.5661    
   7  norm          .93571        .55872        .43322E-03   -1.5689    
   8  Prefactor     .47740E-08    3.1320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.280        37.245        .15757E-03   -1.5581    
  10  norm           .0000        2.1571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0521        3.0590        .12042E-02   -1.5687    
  12  Prefactor      .0000        24.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .64948E-08    3.1564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7378        12.006        .38629E-03   -1.5656    
  15  Prefactor      .0000        .97029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9547        17.715        .33471E-03   -1.5648    
  17  Prefactor     6.7045        8.5512        .38734E-03   -1.5656    
  18  Normalizat    .88485        .12263        .65486E-01   -.96995    
  19  Prefactor     .97508        .84826E-01    .45955E-01   -.93565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04832e-07
Minuit parameter uncertainties:
  1  5.74029
  2  7.34403e-07
  3  3.7309e-06
  4  2.48451e-05
  5  0.00139832
  6  12.4141
  7  0.558723
  8  0.000244256
  9  37.245
  10  2.50591e-06
  11  3.05899
  12  3.24743e-05
  13  0.000286432
  14  12.0061
  15  2.56737e-06
  16  17.7148
  17  8.55117
  18  0.122666
  19  0.0848379
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.704e+00  8.551e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.751e-01  8.484e-02  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.849e-01  1.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 4.04e-06 +/- 5.15e-06

TS (Fixed Index): 1.14
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 5.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/118619/likelihoodResults_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.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) = 14055.4426081
delta logL = 0.0185332572873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14055.4420091
delta logL = 0.0191322554074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9459       1.0000          .0000       .10000E+07
     2 'Index     '    2.2254       1.0000          .0000       10.000    
     3 'Normalizat'    .88852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97404       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=   14055.44     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      220 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9459        96.428        .38043E-03   -.34907E-02
   2  Index         2.2254        1.4737        .50000        .89136E-05
   3  Normalizat    .88853        .19846E-01    .65363E-01    .39563E-04
   4  Prefactor     .97404        .13379E-01    .45942E-01    .73205E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94594
  Index      = 2.22544
  Normalizat = 0.888526
  Prefactor  = 0.974043
 **********
 **   18 **HESSE 
 **********

 FCN=   14055.44     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9459        9.0512        .15217E-04   -1.5655    
   2  Index         2.2254        1.2055        .72863E-02   -.58826    
   3  Normalizat    .88853        .14272        .28913E-03   -.96864    
   4  Prefactor     .97404        .99706E-01    .19369E-03   -.93600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74425e-10
Minuit parameter uncertainties:
  1  9.05118
  2  1.22301
  3  0.142777
  4  0.0997247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118619': 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) = 14055.4420091
delta logL = 0.0191322601004

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.946e+00  9.051e+00  0.000e+00  1.000e+06 ( 1.000e-13)
499        Index:  2.225e+00  1.223e+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.740e-01  9.972e-02  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.885e-01  1.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.23 +/- 1.22
Photon Flux (Free Index): 9.52e-09 +/- 2.16e-08
Energy Flux (Free Index): 4.08e-06 +/- 5.47e-06

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/118619/cmap_HighResolution_697420801_698025601_4FGL_J2349.4+0534_weekly_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='4.08e-06', photon_flux_error='1.71e-08', dlogl='1.91e-02', energy_flux='4.04e-06', photon_flux2='9.52e-09', job_status='DONE', time_completed='2023-02-14 03:31:39.435177', photon_index_error2='1.22', photon_index2='2.23', ts='1.14', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.96e-08', energy_flux_error2='5.47e-06', EG='0.88', time_epoch_completed='1676374299.44', return_code='0', job_id='118619', GAL2='0.97', EG2='0.89', return_code2='0', energy_flux_error='5.15e-06', photon_flux_error2='2.16e-08', ts2='1.18', photon_index='2.47' WHERE bin_id='758' AND source_name='4FGL J2349.4+0534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 14 03:31:39 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 118619: <4FGL_J2349.4+0534_weekly_bin758> in cluster <slac> Done

Job <4FGL_J2349.4+0534_weekly_bin758> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 14 03:15:25 2023
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 14 03:15:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 14 03:15:28 2023
Terminated at Tue Feb 14 03:31:40 2023
Results reported at Tue Feb 14 03:31:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_weekly_bin758 357.356 5.579 697420801 698025601 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 :                                   893.00 sec.
    Max Memory :                                 1119 MB
    Average Memory :                             331.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            975 sec.

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

