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


Performing analysis on: 4FGL_J2349.4+0534_weekly_bin742
RA = 357.356, Dec = 5.579
tmin = 687744001, tmax = 688348801
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='924757', job_status='RUN', time_executed='2022-10-25 00:52:11.296567', time_epoch_executed='1666684331.3' WHERE source_name='4FGL J2349.4+0534' and cadence='weekly' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924757

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924757/ft1_4FGL_J2349.4+0534_weekly_bin742.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924757/ft2_4FGL_J2349.4+0534_weekly_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924757/ft1_4FGL_J2349.4+0534_weekly_bin742.fits outfile=/scratch/kocevski/924757/ft1_filteredMKT_4FGL_J2349.4+0534_weekly_bin742.fits ra=357.356 dec=5.579 rad=12.0 tmin=687744001.0 tmax=688348801.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.93
user 8.59
sys 0.31

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

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

Number of photons that the gtmktime cut: 1149

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924757/ft1_filtered_4FGL_J2349.4+0534_weekly_bin742.fits" evtable="EVENTS" scfile=/scratch/kocevski/924757/ft2_4FGL_J2349.4+0534_weekly_bin742.fits sctable="SC_DATA" outfile=/scratch/kocevski/924757/ltcube_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.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/924757/ft2_4FGL_J2349.4+0534_weekly_bin742.fits
.....................!
real 25.77
user 25.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924757/ft1_filtered_4FGL_J2349.4+0534_weekly_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/924757/ft2_4FGL_J2349.4+0534_weekly_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/924757/ltcube_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.fits outfile=/scratch/kocevski/924757/expmap_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.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/924757/ltcube_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.fits
.....................!
real 189.37
user 185.15
sys 3.87

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/924757/ft1_filtered_4FGL_J2349.4+0534_weekly_bin742.fits scfile=/scratch/kocevski/924757/ft2_4FGL_J2349.4+0534_weekly_bin742.fits outfile=/scratch/kocevski/924757/cmap_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924757/ft1_filtered_4FGL_J2349.4+0534_weekly_bin742.fits scfile=/scratch/kocevski/924757/ft2_4FGL_J2349.4+0534_weekly_bin742.fits outfile=/scratch/kocevski/924757/cmap_HighResolution_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4654       1.0000          .0000       .10000E+07
     2 'norm      '    .35122E-06   1.0000          .0000       .10000E+07
     3 'norm      '    4.5286       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15995E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10806E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20490E-02   1.0000          .0000       .10000E+07
     7 'norm      '    1.4661       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33699E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    60.569       1.0000          .0000       .10000E+07
    10 'norm      '    5.2798       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.0266       1.0000          .0000       .10000E+07
    12 'Prefactor '    .50039E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .10317E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .30796E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5245       1.0000          .0000       .10000E+07
    16 'Prefactor '    19.377       1.0000          .0000       .10000E+07
    17 'Prefactor '    .62284E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0589       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86341       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=   12810.66     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1408 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4799        6.1958        .32390E-06   -.10267E-03
   2  norm           .0000        .64975        .14104E-07** at limit **
   3  norm          4.5303        2.8348        .35566E-07    .11350E-03
   4  Prefactor      .0000        12.615       -.41785E-06** at limit **
   5  Prefactor     .77716E-09    57.792       -.38527E-06** at limit **
   6  Prefactor      .0000        6.3660       -.19156E-06** at limit **
   7  norm          1.4650        .70288       -.23851E-07    .27211E-03
   8  Prefactor      .0000        3.4653        .26156E-06** at limit **
   9  Prefactor     60.699        1.2750        .13171E-08    .69070E-02
  10  norm          5.3641        5.0912        .23147E-08    .23439E-03
  11  Prefactor     2.9412        5.0456       -.11718E-07    .25865E-03
  12  Prefactor      .0000        3.5199        .20184E-06** at limit **
  13  norm           .0000        2.6883        .95729E-07** at limit **
  14  norm           .0000        7.4323       -.16852E-06** at limit **
  15  Prefactor     1.5239        2.2768        .19293E-06   -.32382E-03
  16  Prefactor     19.367        1.0757       -.24496E-08    .30522E-01
  17  Prefactor      .0000        44.600        .19597E-06** at limit **
  18  Normalizat    1.0592        .15427       -.28356E-05    .20350E-04
  19  Prefactor     .86331        .10409       -.44597E-06    .89215E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.47991
  norm       = 0
  norm       = 4.53032
  Prefactor  = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  norm       = 1.465
  Prefactor  = 0
  Prefactor  = 60.6987
  norm       = 5.36411
  Prefactor  = 2.94124
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 1.52387
  Prefactor  = 19.3667
  Prefactor  = 0
  Normalizat = 1.05916
  Prefactor  = 0.863314
 **********
 **   18 **HESSE 
 **********

 FCN=   12810.66     FROM HESSE     STATUS=OK           312 CALLS     1720 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4799        6.2022        .47626E-03   -1.5666    
   2  norm           .0000        .64309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5303        2.8844        .47284E-03   -1.5665    
   4  Prefactor      .0000        2.9311        .10660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .77716E-09    57.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.3444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4650        .70842        .88767E-03   -1.5684    
   8  Prefactor      .0000        3.4503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.699        36.347        .12850E-03   -1.5552    
  10  norm          5.3641        5.1831        .43719E-03   -1.5662    
  11  Prefactor     2.9412        5.1473        .58305E-03   -1.5674    
  12  Prefactor      .0000        3.5177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.6879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        7.4165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5239        2.3023        .86464E-03   -1.5683    
  16  Prefactor     19.367        16.695        .22725E-03   -1.5620    
  17  Prefactor      .0000        44.407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0592        .13303        .61218E-01   -.91074    
  19  Prefactor     .86331        .88651E-01    .44537E-01   -.97435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65143e-08
Minuit parameter uncertainties:
  1  6.20217
  2  5.35152e-07
  3  2.88444
  4  3.88511e-06
  5  0.000426881
  6  1.64324e-06
  7  0.708423
  8  1.6745e-06
  9  36.3468
  10  5.18311
  11  5.14734
  12  1.78944e-06
  13  3.61577e-06
  14  2.61662e-05
  15  2.3023
  16  16.6947
  17  3.36022e-05
  18  0.133068
  19  0.0886656
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  0.000e+00  3.360e-05  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:  8.633e-01  8.867e-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:  1.059e+00  1.331e-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: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924757/likelihoodResults_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.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): 102
logL (Free Index) = 12810.6747661
delta logL = -0.0127072370524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12810.6616443
delta logL = 0.000414589623688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16949       1.0000          .0000       .10000E+07
     2 'Index     '    3.0609       1.0000          .0000       10.000    
     3 'Normalizat'    1.0582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86343       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=   12810.66     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      262 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17912        2.1533        .10055E-01** at limit **
   2  Index         3.1038        .96344        .50000        .58657E-05
   3  Normalizat    1.0583        .34720E-02    .61240E-01    .16447E-04
   4  Prefactor     .86342        .24067E-02    .44537E-01    .25437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.179121
  Index      = 3.10381
  Normalizat = 1.05834
  Prefactor  = 0.863415
 **********
 **   18 **HESSE 
 **********

 FCN=   12810.66     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      297 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17912        9219.0        .31358E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1038        6.4433        .22414E-01   -.38897    
   3  Normalizat    1.0583        .17849        .27085E-03   -.91101    
   4  Prefactor     .86342        .78985E-01    .20466E-03   -.97431    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76714e-07
Minuit parameter uncertainties:
  1  81.3981
  2  91.3062
  3  0.178594
  4  0.0789957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924757': 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): 102
logL (Free Index) = 12810.6616192
delta logL = 0.000439711875515

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.791e-01  8.140e+01  0.000e+00  1.000e+06 ( 1.000e-13)
499        Index:  3.104e+00  9.131e+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:  8.634e-01  7.900e-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:  1.058e+00  1.786e-01  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/924757/cmap_HighResolution_687744001_688348801_4FGL_J2349.4+0534_weekly_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2022-10-25 01:06:12.968896', job_id='924757', GAL2='0.86', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1666685172.97', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.40e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='742' AND source_name='4FGL J2349.4+0534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 25 01:06:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 924757: <4FGL_J2349.4+0534_weekly_bin742> in cluster <slac> Done

Job <4FGL_J2349.4+0534_weekly_bin742> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 25 00:50:39 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 25 00:50:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 25 00:50:41 2022
Terminated at Tue Oct 25 01:06:14 2022
Results reported at Tue Oct 25 01:06:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_weekly_bin742 357.356 5.579 687744001 688348801 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 :                                   840.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             317.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

