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


Performing analysis on: 4FGL_J2349.4+0534_weekly_bin762
RA = 357.356, Dec = 5.579
tmin = 699840001, tmax = 700444801
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='19981', job_status='RUN', time_executed='2023-03-14 04:40:41.014104', time_epoch_executed='1678794041.01' WHERE source_name='4FGL J2349.4+0534' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19981

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19981/ft1_4FGL_J2349.4+0534_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19981/ft2_4FGL_J2349.4+0534_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19981/ft1_4FGL_J2349.4+0534_weekly_bin762.fits outfile=/scratch/kocevski/19981/ft1_filteredMKT_4FGL_J2349.4+0534_weekly_bin762.fits ra=357.356 dec=5.579 rad=12.0 tmin=699840001.0 tmax=700444801.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 8.06
user 7.73
sys 0.30

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

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

Number of photons that the gtmktime cut: 1348

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19981/ft1_filtered_4FGL_J2349.4+0534_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/19981/ft2_4FGL_J2349.4+0534_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/19981/ltcube_699840001_700444801_4FGL_J2349.4+0534_weekly_bin762.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/19981/ft2_4FGL_J2349.4+0534_weekly_bin762.fits
.....................!
real 26.10
user 25.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19981/ft1_filtered_4FGL_J2349.4+0534_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/19981/ft2_4FGL_J2349.4+0534_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/19981/ltcube_699840001_700444801_4FGL_J2349.4+0534_weekly_bin762.fits outfile=/scratch/kocevski/19981/expmap_699840001_700444801_4FGL_J2349.4+0534_weekly_bin762.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/19981/ltcube_699840001_700444801_4FGL_J2349.4+0534_weekly_bin762.fits
.....................!
real 191.32
user 186.30
sys 4.67

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/19981/ft1_filtered_4FGL_J2349.4+0534_weekly_bin762.fits scfile=/scratch/kocevski/19981/ft2_4FGL_J2349.4+0534_weekly_bin762.fits outfile=/scratch/kocevski/19981/cmap_699840001_700444801_4FGL_J2349.4+0534_weekly_bin762.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.58
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.912       1.0000          .0000       .10000E+07
     2 'norm      '    .74822E-03   1.0000          .0000       .10000E+07
     3 'norm      '    2.5855       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7925       1.0000          .0000       .10000E+07
     5 'Prefactor '    32.012       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.603       1.0000          .0000       .10000E+07
     7 'norm      '    3.5239       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19248E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .71218E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .39436E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.0312       1.0000          .0000       .10000E+07
    12 'Prefactor '    .95305E-05   1.0000          .0000       .10000E+07
    13 'norm      '    6.4206       1.0000          .0000       .10000E+07
    14 'norm      '    15.977       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.6411       1.0000          .0000       .10000E+07
    16 'Prefactor '    .72069E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16392E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .78395       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2537       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=   15059.90     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1150 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.798        4.3267       -.93115E-07   -.23203E-01
   2  norm          .33473E-07    8.4187       -.45405E-06** at limit **
   3  norm          2.5852        2.5586        .19129E-06    .21919E-02
   4  Prefactor     1.7956        7.0877        .76034E-06    .85027E-03
   5  Prefactor     31.136        9.1078        .54326E-07    .13523    
   6  Prefactor     10.602        8.6191       -.12712E-06   -.74090E-01
   7  norm          3.5223        .97128       -.37882E-07   -.18279E-02
   8  Prefactor     .73064E-06    3.1711        .22095E-06** at limit **
   9  Prefactor     .81390E-06    21.011        .12995E-05** at limit **
  10  norm          .43299E-08    2.2749       -.27178E-07** at limit **
  11  Prefactor     6.0878        4.8197        .16852E-06    .74387E-04
  12  Prefactor     .31164E-06    3.7513        .90019E-07** at limit **
  13  norm          6.4132        6.6442       -.12348E-06    .16614E-02
  14  norm          16.081        1.2533       -.13769E-07   -.76214E-02
  15  Prefactor     6.6217        3.8326        .32391E-07   -.27714E-04
  16  Prefactor     .45297E-07    17.335        .15389E-05** at limit **
  17  Prefactor     .15377E-07    8.0587        .55244E-07** at limit **
  18  Normalizat    .78423        .15983        .10255E-04    .97688E-04
  19  Prefactor     1.2538        .11063       -.33436E-05    .78519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7981
  norm       = 3.34732e-08
  norm       = 2.58524
  Prefactor  = 1.79564
  Prefactor  = 31.1361
  Prefactor  = 10.6023
  norm       = 3.52229
  Prefactor  = 7.30638e-07
  Prefactor  = 8.13904e-07
  norm       = 4.32987e-09
  Prefactor  = 6.08781
  Prefactor  = 3.1164e-07
  norm       = 6.41316
  norm       = 16.0807
  Prefactor  = 6.62173
  Prefactor  = 4.52971e-08
  Prefactor  = 1.53766e-08
  Normalizat = 0.784232
  Prefactor  = 1.25384
 **********
 **   18 **HESSE 
 **********

 FCN=   15059.90     FROM HESSE     STATUS=OK           312 CALLS     1462 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.798        13.568        .21368E-03   -1.5615    
   2  norm          .33473E-07    1.1755        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5852        2.5783        .63437E-03   -1.5676    
   4  Prefactor     1.7956        7.1447        .78085E-03   -1.5681    
   5  Prefactor     31.136        24.923        .17677E-03   -1.5596    
   6  Prefactor     10.602        9.3862        .30744E-03   -1.5643    
   7  norm          3.5223        .97374        .53827E-03   -1.5670    
   8  Prefactor     .73064E-06    6.5825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81390E-06    23.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .43299E-08    2.2799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0878        4.8261        .40861E-03   -1.5659    
  12  Prefactor     .31164E-06    5.1787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4132        6.6517        .39586E-03   -1.5657    
  14  norm          16.081        18.152        .25030E-03   -1.5628    
  15  Prefactor     6.6217        4.4724        .38916E-03   -1.5656    
  16  Prefactor     .45297E-07    17.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15377E-07    8.2091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .78423        .14679        .79186E-01   -1.0066    
  19  Prefactor     1.2538        .99250E-01    .33470E-01   -.84690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24538e-07
Minuit parameter uncertainties:
  1  13.5684
  2  0.000396611
  3  2.57828
  4  7.14471
  5  24.9232
  6  9.38622
  7  0.973739
  8  0.00438612
  9  0.00875166
  10  0.000198564
  11  4.82606
  12  0.0025407
  13  6.65172
  14  18.1522
  15  4.47238
  16  0.00180262
  17  0.000710015
  18  0.146863
  19  0.0992647
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.538e-08  7.100e-04  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:  1.254e+00  9.926e-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:  7.842e-01  1.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/19981/likelihoodResults_699840001_700444801_4FGL_J2349.4+0534_weekly_bin762.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) = 15059.9586078
delta logL = -0.0596298201526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15059.8989787
delta logL = -6.44788087811e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56539E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.7428       1.0000          .0000       10.000    
     3 'Normalizat'    .78412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2539       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15059.90     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      235 TOTAL
                     EDM=   .87E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.4660        .42118E-03** at limit **
   2  Index         2.7265        1.2100        .66341E-04     .0000    
   3  Normalizat    .78423        1.1233        .10746E-04   -.39534E-04
   4  Prefactor     1.2538        1.0877       -.80067E-05   -.58168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.72645
  Normalizat = 0.784231
  Prefactor  = 1.25385
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15059.90     FROM HESSE     STATUS=FAILED         9 CALLS      244 TOTAL
                     EDM=   .87E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.4660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .84182        1.9702        .66341E-04   -.47205    
   3  Normalizat    .78423        1.1233        .10746E-04   -1.0066    
   4  Prefactor     1.2538        1.0877       -.80067E-05   -.84690    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.67846e-13
Minuit parameter uncertainties:
  1  2.84634e-06
  2  1.2254
  3  1.15936
  4  1.10824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19981': 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): 101
logL (Free Index) = 15059.898978
delta logL = 9.40417521633e-10

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  0.000e+00  2.846e-06  0.000e+00  1.000e+06 ( 1.000e-13)
499        Index:  2.726e+00  1.225e+00  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.254e+00  1.108e+00  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.842e-01  1.159e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/19981/cmap_HighResolution_699840001_700444801_4FGL_J2349.4+0534_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2023-03-14 04:55:27.126920', job_id='19981', GAL2='1.25', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1678794927.13', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='9.40e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='762' AND source_name='4FGL J2349.4+0534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 04:55:27 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0012>
Subject: Job 19981: <4FGL_J2349.4+0534_weekly_bin762> in cluster <slac> Done

Job <4FGL_J2349.4+0534_weekly_bin762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 04:40:22 2023
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 04:40:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 04:40:24 2023
Terminated at Tue Mar 14 04:55:27 2023
Results reported at Tue Mar 14 04:55:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_weekly_bin762 357.356 5.579 699840001 700444801 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 :                                   885.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

