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


Performing analysis on: 4FGL_J0354.4+4643_weekly_bin747
RA = 58.609, Dec = 46.7231
tmin = 690768001, tmax = 691372801
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='465416', job_status='RUN', time_executed='2022-11-29 01:23:38.525268', time_epoch_executed='1669713818.53' WHERE source_name='4FGL J0354.4+4643' and cadence='weekly' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465416

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465416/ft1_4FGL_J0354.4+4643_weekly_bin747.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465416/ft1_4FGL_J0354.4+4643_weekly_bin747.fits outfile=/scratch/kocevski/465416/ft1_filteredMKT_4FGL_J0354.4+4643_weekly_bin747.fits ra=58.609 dec=46.7231 rad=12.0 tmin=690768001.0 tmax=691372801.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 5.88
user 5.60
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.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/465416/ft1_filteredMKT_4FGL_J0354.4+4643_weekly_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.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: 265

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/465416/ltcube_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.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/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits
.....................!
real 28.93
user 28.36
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/465416/ltcube_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.fits outfile=/scratch/kocevski/465416/expmap_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.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/465416/ltcube_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.fits
.....................!
real 193.77
user 187.85
sys 4.75

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 G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 168 point sources and 4 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 J0354.4+4643 @ 58.609 46.7231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits scfile=/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits outfile=/scratch/kocevski/465416/cmap_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.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=58.609 yref=46.7231 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits scfile=/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits outfile=/scratch/kocevski/465416/cmap_HighResolution_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.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=58.609 yref=46.7231 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465416/Model_4FGL_J0354.4+4643_weekly_bin747.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits.....................!
real 59.92
user 58.58
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits', '/scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits', expMap='/scratch/kocevski/465416/expmap_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.fits', expCube='/scratch/kocevski/465416/ltcube_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465416/Model_4FGL_J0354.4+4643_weekly_bin747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0354.4+4643'

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.443e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
298        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/465416/ft1_filtered_4FGL_J0354.4+4643_weekly_bin747.fits
Spacecraft file(s): /scratch/kocevski/465416/ft2_4FGL_J0354.4+4643_weekly_bin747.fits
Exposure map: /scratch/kocevski/465416/expmap_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.fits
Exposure cube: /scratch/kocevski/465416/ltcube_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465416/Model_4FGL_J0354.4+4643_weekly_bin747.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) = 2909.85284668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11613E-06   1.0000          .0000       .10000E+07
     2 'norm      '    45.691       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20604E-02   1.0000          .0000       .10000E+07
     4 'norm      '    2.4416       1.0000          .0000       .10000E+07
     5 'Prefactor '    573.06       1.0000          .0000       .10000E+07
     6 'Prefactor '    .50754       1.0000          .0000       .10000E+07
     7 'norm      '    10.404       1.0000          .0000       .10000E+07
     8 'Prefactor '    .31654E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .56575E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.4425       1.0000          .0000       .10000E+07
    11 'Prefactor '    76614.       1.0000          .0000       .10000E+07
    12 'norm      '    7.8805       1.0000          .0000       .10000E+07
    13 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    14 'Prefactor '    .71535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2817.400     FROM MIGRAD    STATUS=CONVERGED    301 CALLS     1130 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88818E-09    2.8750        .43586E-06** at limit **
   2  norm          38.685        16.432        .80089E-07   -.29424E-02
   3  Prefactor     .37359E-07    17.662        .62780E-06** at limit **
   4  norm          2.2793        1.8507        .11352E-06    .11021E-01
   5  Prefactor     636.49        909.07        .11927E-05   -.21590E-03
   6  Prefactor     .16653E-08    82.168       -.14311E-05** at limit **
   7  norm          .73275E-08    324.01        .14238E-05** at limit **
   8  Prefactor     .10658E-07    43.841       -.17776E-05** at limit **
   9  Prefactor     .44409E-09    16.457        .10765E-05** at limit **
  10  norm          .55511E-09    202.82       -.48203E-05** at limit **
  11  Prefactor     19664.        9997.7        .21574E-06   -.24873E-04
  12  norm          .10000E+07    9600.8        .19036E-05** at limit **
  13  Normalizat    .10000E-01    .60472E-01    .14457E-04** at limit **
  14  Prefactor     .65314        .55670E-01    .58062E-06   -.20085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88178e-10
  norm       = 38.6853
  Prefactor  = 3.7359e-08
  norm       = 2.27927
  Prefactor  = 636.494
  Prefactor  = 1.66533e-09
  norm       = 7.32747e-09
  Prefactor  = 1.06581e-08
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-10
  Prefactor  = 19664.3
  norm       = 1e+06
  Normalizat = 0.01
  Prefactor  = 0.653136
 **********
 **   18 **HESSE 
 **********

 FCN=   2817.400     FROM HESSE     STATUS=OK           184 CALLS     1314 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88818E-09    2.9859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          38.685        16.311        .14795E-03   -1.5584    
   3  Prefactor     .37359E-07    29.816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2793        1.8706        .65449E-03   -1.5678    
   5  Prefactor     636.49        920.07        .41785E-04   -1.5203    
   6  Prefactor     .16653E-08    95.469        .77955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .73275E-08    354.18        .31039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10658E-07    43.391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    17.382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-09    208.13        .54487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19664.        10033.        .48155E-05   -1.8522    
  12  norm          .10000E+07    9742.0        .35695E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    .10000E-01    .68699E-01    .19573       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .65314        .56148E-01    .25711E-01   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34196e-09
Minuit parameter uncertainties:
  1  0.000103314
  2  16.3108
  3  0.00211013
  4  1.87058
  5  920.269
  6  0.000800537
  7  0.00322256
  8  0.00136112
  9  0.000171157
  10  0.000673496
  11  10042.1
  12  0.365728
  13  3.95863e-06
  14  0.0561526
Done.

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

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  4.441e-10  1.712e-04  0.000e+00  1.000e+06 ( 1.000e-12)
298        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.531e-01  5.615e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  3.959e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 58.609 46.723
Photon Flux Upper Limit: 1.84e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/465416/likelihoodResults_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.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) = 2817.42753652
delta logL = -0.0275048512672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2817.40003529
delta logL = -3.61944012184e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2817.400     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      238 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .59195E-01    .42118E-03** at limit **
   2  Index         3.0058        7.8406        .41300        .16516E-10
   3  Normalizat    .10000E-01    .72943E-06    .19573    ** at limit **
   4  Prefactor     .65314        .17727E-03    .25712E-01   -.22357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 3.00575
  Normalizat = 0.01
  Prefactor  = 0.653136
 **********
 **   18 **HESSE 
 **********

 FCN=   2817.400     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      265 TOTAL
                     EDM=   .86E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .19977        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0058        7.6365        .50000       -.41026    
   3  Normalizat    .10000E-01    .25151E-05    .42801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .65314        .32568E-03    .11365E-03   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.55392e-14
Minuit parameter uncertainties:
  1  4.86282e-06
  2  28256.4
  3  2.91153e-09
  4  0.000325684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465416': 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) = 2817.40003167
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  5.551e-11  4.863e-06  0.000e+00  1.000e+06 ( 1.000e-12)
298        Index:  3.006e+00  2.826e+04  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.531e-01  3.257e-04  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  2.912e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 58.609 46.723

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/465416/cmap_HighResolution_690768001_691372801_4FGL_J0354.4+4643_weekly_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-01', job_status='DONE', photon_flux_upper_limit='1.84e-06', time_completed='2022-11-29 01:31:29.017990', job_id='465416', GAL2='0.65', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1669714289.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-9.09e-13', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='747' AND source_name='4FGL J0354.4+4643' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Nov 29 01:31:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 465416: <4FGL_J0354.4+4643_weekly_bin747> in cluster <slac> Done

Job <4FGL_J0354.4+4643_weekly_bin747> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Nov 29 01:15:19 2022
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov 29 01:23:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov 29 01:23:13 2022
Terminated at Tue Nov 29 01:31:29 2022
Results reported at Tue Nov 29 01:31:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.4+4643_weekly_bin747 58.609 46.7231 690768001 691372801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.4+4643 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   470.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   496 sec.
    Turnaround time :                            970 sec.

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

