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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1773
RA = 209.29, Dec = 19.3608
tmin = 698889601, tmax = 699148801
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='790699', job_status='RUN', time_executed='2023-02-27 09:48:57.446536', time_epoch_executed='1677520137.45' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790699/ft1_4FGL_J1357.1+1921_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790699/ft1_4FGL_J1357.1+1921_daily_bin1773.fits outfile=/scratch/kocevski/790699/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1773.fits ra=209.29 dec=19.3608 rad=12.0 tmin=698889601.0 tmax=699148801.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 3.05
user 2.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.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/790699/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.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.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 457

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/790699/ltcube_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.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/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits
.....................!
real 12.67
user 12.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/790699/ltcube_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.fits outfile=/scratch/kocevski/790699/expmap_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.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/790699/ltcube_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.fits
.....................!
real 190.48
user 185.24
sys 4.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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits scfile=/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits outfile=/scratch/kocevski/790699/cmap_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.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=209.29 yref=19.3608 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits scfile=/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits outfile=/scratch/kocevski/790699/cmap_HighResolution_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.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=209.29 yref=19.3608 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790699/Model_4FGL_J1357.1+1921_daily_bin1773.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/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits.....................!
real 42.35
user 40.98
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits', '/scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits', expMap='/scratch/kocevski/790699/expmap_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.fits', expCube='/scratch/kocevski/790699/ltcube_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790699/Model_4FGL_J1357.1+1921_daily_bin1773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1357.1+1921'

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.782e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790699/ft1_filtered_4FGL_J1357.1+1921_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/790699/ft2_4FGL_J1357.1+1921_daily_bin1773.fits
Exposure map: /scratch/kocevski/790699/expmap_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.fits
Exposure cube: /scratch/kocevski/790699/ltcube_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790699/Model_4FGL_J1357.1+1921_daily_bin1773.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) = 5137.16572274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9304       1.0000          .0000       .10000E+07
     2 'norm      '    20.177       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12085E-01   1.0000          .0000       .10000E+07
     4 'norm      '    2.8400       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14594E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.1772       1.0000          .0000       .10000E+07
     7 'Prefactor '    .76495E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56420E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.1710       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12360E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .53327E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    82.824       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.5322       1.0000          .0000       .10000E+07
    14 'norm      '    4.5239       1.0000          .0000       .10000E+07
    15 'norm      '    .20701E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15465E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    .99633       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5137.086     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1052 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8455        1.4577       -.37897E-07   -.39525E-02
   2  norm          20.039        6.7871       -.56049E-07   -.31354E-01
   3  Prefactor     .71283E-05    41.810        .27760E-06** at limit **
   4  norm          2.9562        8.4490        .77066E-07    .87802E-02
   5  Prefactor      .0000        11.057        .54553E-06** at limit **
   6  Prefactor     8.1003        1.1665        .14536E-07   -.22155E-03
   7  Prefactor     .21094E-07    23.871       -.19841E-05** at limit **
   8  Prefactor     .13300        50.366       -.43246E-05** at limit **
   9  Prefactor     4.0945        5.3297       -.50076E-06   -.15312E-04
  10  Prefactor     .68556E-07    31.472       -.16064E-05** at limit **
  11  Prefactor     .61062E-09    14.517       -.24281E-07** at limit **
  12  Prefactor     79.396        24.636        .39038E-07    .93832E-01
  13  Prefactor     7.6994        7.1470        .16682E-06   -.78528E-03
  14  norm          4.5188        2.6997        .16662E-07    .98659E-04
  15  norm           .0000        1.9892       -.16243E-06** at limit **
  16  Prefactor     .16653E-09    15.075        .36514E-06** at limit **
  17  Normalizat    .99630        .26972       -.22389E-05    .36117E-05
  18  Prefactor     1.2376        .22676        .32163E-05    .57781E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.84553
  norm       = 20.0386
  Prefactor  = 7.1283e-06
  norm       = 2.9562
  Prefactor  = 0
  Prefactor  = 8.10027
  Prefactor  = 2.10942e-08
  Prefactor  = 0.132995
  Prefactor  = 4.09452
  Prefactor  = 6.85563e-08
  Prefactor  = 6.10623e-10
  Prefactor  = 79.3955
  Prefactor  = 7.69939
  norm       = 4.51875
  norm       = 0
  Prefactor  = 1.66533e-10
  Normalizat = 0.996304
  Prefactor  = 1.23759
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.086     FROM HESSE     STATUS=OK           286 CALLS     1338 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8455        22.712        .31774E-03   -1.5645    
   2  norm          20.039        14.610        .22270E-03   -1.5618    
   3  Prefactor     .71283E-05    67.889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9562        14.452        .60312E-03   -1.5674    
   5  Prefactor      .0000        11.081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1003        22.570        .35036E-03   -1.5651    
   7  Prefactor     .21094E-07    24.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13300        2.6597        .85083E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0945        5.3601        .49326E-03   -1.5667    
  10  Prefactor     .68556E-07    31.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61062E-09    15.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     79.396        39.232        .10989E-03   -1.5530    
  13  Prefactor     7.6994        7.1695        .36518E-03   -1.5652    
  14  norm          4.5188        2.7000        .47309E-03   -1.5665    
  15  norm           .0000        2.0045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16653E-09    15.731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .99630        .22531        .46121E-01   -.93154    
  18  Prefactor     1.2376        .19056        .51027E-01   -.85182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05148e-07
Minuit parameter uncertainties:
  1  22.7124
  2  14.6098
  3  0.0439975
  4  13.0728
  5  1.05137e-05
  6  22.5707
  7  0.00142715
  8  1.1895
  9  5.36013
  10  0.00295287
  11  0.000193745
  12  39.2323
  13  7.16952
  14  2.7
  15  5.83466e-07
  16  0.000101482
  17  0.225524
  18  0.190664
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.106e-10  1.937e-04  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.238e+00  1.907e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  9.963e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790699/likelihoodResults_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.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) = 5137.11907809
delta logL = -0.032940542972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5137.08613793
delta logL = -3.88656189898e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5137.086     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      206 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.8477        .42118E-03** at limit **
   2  Index         3.3975        1.2056        .39776E-03     .0000    
   3  Normalizat    .99631        1.3262       -.29025E-04    .43423E-03
   4  Prefactor     1.2376        1.0920        .28609E-04    .44960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.39753
  Normalizat = 0.996307
  Prefactor  = 1.23759
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5137.086     FROM HESSE     STATUS=FAILED         9 CALLS      215 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.8477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2893        2.1610        .39776E-03   -.32625    
   3  Normalizat    .99631        1.3262       -.29025E-04   -.93154    
   4  Prefactor     1.2376        1.0920        .28609E-04   -.85182    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.27099e-10
Minuit parameter uncertainties:
  1  8.17954e-06
  2  1.21899
  3  1.37447
  4  1.11308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790699': 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) = 5137.08613754
delta logL = -1.47338141687e-10

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  8.180e-06  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.398e+00  1.219e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.238e+00  1.113e+00  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  9.963e-01  1.374e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

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/790699/cmap_HighResolution_698889601_699148801_4FGL_J1357.1+1921_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2023-02-27 09:56:26.883509', job_id='790699', GAL2='1.24', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1677520586.88', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-1.47e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1773' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:56:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 790699: <4FGL_J1357.1+1921_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 09:45:29 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:45:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:45:30 2023
Terminated at Mon Feb 27 09:56:27 2023
Results reported at Mon Feb 27 09:56:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1773 209.29 19.3608 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1357.1+1921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   451.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            658 sec.

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

