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


Performing analysis on: 4FGL_J2349.2+4535_weekly_bin740
RA = 357.305, Dec = 45.5979
tmin = 686534401, tmax = 687139201
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='835835', job_status='RUN', time_executed='2022-10-11 00:57:03.374101', time_epoch_executed='1665475023.37' WHERE source_name='4FGL J2349.2+4535' and cadence='weekly' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835835

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835835/ft1_4FGL_J2349.2+4535_weekly_bin740.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835835/ft1_4FGL_J2349.2+4535_weekly_bin740.fits outfile=/scratch/kocevski/835835/ft1_filteredMKT_4FGL_J2349.2+4535_weekly_bin740.fits ra=357.305 dec=45.5979 rad=12.0 tmin=686534401.0 tmax=687139201.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.21
user 6.94
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.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/835835/ft1_filteredMKT_4FGL_J2349.2+4535_weekly_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.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.55
user 0.39
sys 0.14

Number of photons that the gtmktime cut: 1036

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/835835/ltcube_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.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/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits
.....................!
real 30.21
user 29.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/835835/ltcube_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.fits outfile=/scratch/kocevski/835835/expmap_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.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/835835/ltcube_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.fits
.....................!
real 192.07
user 187.61
sys 4.03

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2349.2+4535 @ 357.305 45.5979

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits scfile=/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits outfile=/scratch/kocevski/835835/cmap_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.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.305 yref=45.5979 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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits scfile=/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits outfile=/scratch/kocevski/835835/cmap_HighResolution_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.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.305 yref=45.5979 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835835/Model_4FGL_J2349.2+4535_weekly_bin740.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits.....................!
real 141.23
user 139.75
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits', '/scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits', expMap='/scratch/kocevski/835835/expmap_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.fits', expCube='/scratch/kocevski/835835/ltcube_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/835835/Model_4FGL_J2349.2+4535_weekly_bin740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.2+4535'

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.568e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/835835/ft1_filtered_4FGL_J2349.2+4535_weekly_bin740.fits
Spacecraft file(s): /scratch/kocevski/835835/ft2_4FGL_J2349.2+4535_weekly_bin740.fits
Exposure map: /scratch/kocevski/835835/expmap_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.fits
Exposure cube: /scratch/kocevski/835835/ltcube_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/835835/Model_4FGL_J2349.2+4535_weekly_bin740.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) = 11210.1928247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.458       1.0000          .0000       .10000E+07
     2 'norm      '    .16738E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.5889       1.0000          .0000       .10000E+07
     4 'norm      '    4.2005       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49735E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .94905       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.077       1.0000          .0000       .10000E+07
     8 'Prefactor '    95.072       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.8313       1.0000          .0000       .10000E+07
    10 'Prefactor '    49.050       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36979E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .91266E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .20095E-07   1.0000          .0000       .10000E+07
    14 'norm      '    14.514       1.0000          .0000       .10000E+07
    15 'Prefactor '    .60942       1.0000          .0000       .10000E+07
    16 'Prefactor '    .32754E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .49516E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    .73944       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11210.19     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1557 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.457        25.385       -.12654E-06   -.16752    
   2  norm          .11102E-09    13.110        .51795E-06** at limit **
   3  Prefactor     3.5852        6.7890        .62449E-07   -.93854E-04
   4  norm          4.1993        2.5734       -.32697E-07   -.20161E-02
   5  Prefactor     .38795E-01    6.4617        .14156E-06** at limit **
   6  Prefactor     .89138        18.464        .24532E-06   -.81485E-01
   7  Prefactor     25.985        8.7959        .38956E-07   -.72748E-02
   8  Prefactor     94.704        14.161       -.31042E-07    .17250    
   9  Prefactor     5.8300        5.8659       -.18801E-06   -.36732E-02
  10  Prefactor     48.964        7.2470        .19873E-07   -.12214E-01
  11  Prefactor     .83267E-09    64.723        .68819E-06** at limit **
  12  norm          .77716E-08    18.207       -.30761E-06** at limit **
  13  norm          .11102E-09    7.1554       -.38708E-07** at limit **
  14  norm          14.610        11.126       -.23302E-07   -.69495E-02
  15  Prefactor     .91311E-04    318.95       -.18248E-06** at limit **
  16  Prefactor     .21705E-07    33.738        .10337E-05** at limit **
  17  Prefactor     .33307E-09    4.5032       -.11197E-06** at limit **
  18  Normalizat    .74000        .23292       -.81923E-05   -.18765E-03
  19  Prefactor     .93022        .63591E-01    .78296E-06   -.52531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4569
  norm       = 1.11022e-10
  Prefactor  = 3.58517
  norm       = 4.19933
  Prefactor  = 0.0387949
  Prefactor  = 0.891385
  Prefactor  = 25.9845
  Prefactor  = 94.7035
  Prefactor  = 5.82999
  Prefactor  = 48.9644
  Prefactor  = 8.32667e-10
  norm       = 7.77156e-09
  norm       = 1.11022e-10
  norm       = 14.6102
  Prefactor  = 9.13112e-05
  Prefactor  = 2.17049e-08
  Prefactor  = 3.33067e-10
  Normalizat = 0.739996
  Prefactor  = 0.930219
 **********
 **   18 **HESSE 
 **********

 FCN=   11210.19     FROM HESSE     STATUS=OK           326 CALLS     1883 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.457        27.569        .21107E-03   -1.5613    
   2  norm          .11102E-09    13.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5852        6.7988        .53316E-03   -1.5670    
   4  norm          4.1993        2.5824        .49147E-03   -1.5667    
   5  Prefactor     .38795E-01    5.3981        .58573E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .89138        308.28        .42426E-03   -1.5689    
   7  Prefactor     25.985        37.069        .19586E-03   -1.5606    
   8  Prefactor     94.704        75.399        .10257E-03   -1.5513    
   9  Prefactor     5.8300        5.8939        .41565E-03   -1.5660    
  10  Prefactor     48.964        38.801        .14279E-03   -1.5568    
  11  Prefactor     .83267E-09    5.7918        .13548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .77716E-08    18.347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11102E-09    1.6105        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.610        11.125        .26265E-03   -1.5632    
  15  Prefactor     .91311E-04    323.85        .68388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21705E-07    34.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33307E-09    4.5068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .74000        .24477        .12100       -1.0233    
  19  Prefactor     .93022        .61255E-01    .29735E-01   -.95093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07709e-05
Minuit parameter uncertainties:
  1  27.5697
  2  6.80963e-05
  3  6.79882
  4  2.58243
  5  0.915246
  6  33.1556
  7  37.069
  8  75.4001
  9  5.89389
  10  38.8014
  11  0.000138173
  12  0.000755583
  13  2.55977e-05
  14  11.1253
  15  0.343947
  16  0.00172168
  17  7.51297e-05
  18  0.245128
  19  0.0612591
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  9.131e-05  3.439e-01  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.302e-01  6.126e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  7.400e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.305 45.598
Photon Flux Upper Limit: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835835/likelihoodResults_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.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) = 11210.1925283
delta logL = -0.0016659599296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11210.1908679
delta logL = -5.55462611374e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12252       1.0000          .0000       .10000E+07
     2 'Index     '    2.4493       1.0000          .0000       10.000    
     3 'Normalizat'    .73916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11210.19     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      273 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12086        5.6689        .17337E-01** at limit **
   2  Index         2.4713        .91620        .50000        .23129E-04
   3  Normalizat    .73987        .32679E-02    .12101        .36611E-03
   4  Prefactor     .93023        .89356E-03    .29735E-01    .15682E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.120856
  Index      = 2.4713
  Normalizat = 0.739869
  Prefactor  = 0.930228
 **********
 **   18 **HESSE 
 **********

 FCN=   11210.19     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      312 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12086        225.82        .15364E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4713        6.6425        .40868E-01   -.53024    
   3  Normalizat    .73987        .19389E-01    .53693E-03   -1.0234    
   4  Prefactor     .93023        .53170E-02    .13140E-03   -.95093    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.37045e-08
Minuit parameter uncertainties:
  1  10.4486
  2  39.021
  3  0.0193896
  4  0.00531702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835835': 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) = 11210.190857
delta logL = 5.32320700586e-06

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.209e-01  1.045e+01  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  2.471e+00  3.902e+01  0.000e+00  1.000e+01 (-1.000e+00)
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.302e-01  5.317e-03  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  7.399e-01  1.939e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.305 45.598

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/835835/cmap_HighResolution_686534401_687139201_4FGL_J2349.2+4535_weekly_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2022-10-11 01:12:07.251371', job_id='835835', GAL2='0.93', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1665475927.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.32e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='740' AND source_name='4FGL J2349.2+4535' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 11 01:12:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 835835: <4FGL_J2349.2+4535_weekly_bin740> in cluster <slac> Done

Job <4FGL_J2349.2+4535_weekly_bin740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 11 00:55:33 2022
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 11 00:55:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 11 00:55:34 2022
Terminated at Tue Oct 11 01:12:08 2022
Results reported at Tue Oct 11 01:12:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_weekly_bin740 357.305 45.5979 686534401 687139201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.2+4535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   905.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             335.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

