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


Performing analysis on: 4FGL_J1023.7+0038_weekly_bin754
RA = 155.945, Dec = 0.6499
tmin = 695001601, tmax = 695606401
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='951007', job_status='RUN', time_executed='2023-01-17 00:56:09.649361', time_epoch_executed='1673945769.65' WHERE source_name='4FGL J1023.7+0038' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951007

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951007/ft1_4FGL_J1023.7+0038_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951007/ft1_4FGL_J1023.7+0038_weekly_bin754.fits outfile=/scratch/kocevski/951007/ft1_filteredMKT_4FGL_J1023.7+0038_weekly_bin754.fits ra=155.945 dec=0.6499 rad=12.0 tmin=695001601.0 tmax=695606401.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.68
user 5.38
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.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/951007/ft1_filteredMKT_4FGL_J1023.7+0038_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.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.40
sys 0.14

Number of photons that the gtmktime cut: 926

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/951007/ltcube_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.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/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits
.....................!
real 30.93
user 30.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/951007/ltcube_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.fits outfile=/scratch/kocevski/951007/expmap_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.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/951007/ltcube_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.fits
.....................!
real 190.38
user 185.38
sys 4.60

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J1023.7+0038 @ 155.945 0.6499

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits scfile=/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits outfile=/scratch/kocevski/951007/cmap_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.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=155.945 yref=0.6499 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.60
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits scfile=/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits outfile=/scratch/kocevski/951007/cmap_HighResolution_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.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=155.945 yref=0.6499 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.61
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951007/Model_4FGL_J1023.7+0038_weekly_bin754.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/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits.....................!
real 95.18
user 93.64
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits', '/scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits', expMap='/scratch/kocevski/951007/expmap_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.fits', expCube='/scratch/kocevski/951007/ltcube_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/951007/Model_4FGL_J1023.7+0038_weekly_bin754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.7+0038'

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.061e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
215        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
216         beta:  1.811e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
217           Eb:  5.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/951007/ft1_filtered_4FGL_J1023.7+0038_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/951007/ft2_4FGL_J1023.7+0038_weekly_bin754.fits
Exposure map: /scratch/kocevski/951007/expmap_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.fits
Exposure cube: /scratch/kocevski/951007/ltcube_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/951007/Model_4FGL_J1023.7+0038_weekly_bin754.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) = 10913.9883348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30941       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18499E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .25386E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .50543E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28224E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    119.19       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15552E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.015       1.0000          .0000       .10000E+07
     9 'norm      '    2.5601       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.2495       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.6457       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14515E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .78338       1.0000          .0000       .10000E+07
    14 'Normalizat'    .90653       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .99838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10913.97     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     1011 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30935        .48282        .17200E-07   -.18245E-02
   2  Prefactor     .55511E-10    11.710        .14391E-05** at limit **
   3  Prefactor     .38858E-09    21.636        .28087E-05** at limit **
   4  Prefactor     .22204E-09    13.047        .15622E-05** at limit **
   5  Prefactor      .0000        7.6382        .29520E-06** at limit **
   6  Prefactor     120.59        69.284        .24127E-06   -.19661E-03
   7  Prefactor     .33307E-09    30.261        .46916E-05** at limit **
   8  Prefactor     11.995        12.610       -.44359E-07    .12544E-04
   9  norm          2.5592        1.2301        .21562E-06   -.24666E-02
  10  Prefactor     7.2749        5.7338       -.20589E-06   -.93622E-03
  11  Prefactor     2.6433        2.2464       -.39647E-06    .14504E-02
  12  Prefactor     .55511E-10    3.0409        .37862E-06** at limit **
  13  norm          .78378        .38585        .63795E-07   -.48346E-02
  14  Normalizat    .90582        .17508        .33791E-04   -.12072E-03
  15  Prefactor     .99854        .13054       -.16594E-04   -.59035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.309346
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 120.586
  Prefactor  = 3.33067e-10
  Prefactor  = 11.9953
  norm       = 2.55918
  Prefactor  = 7.27486
  Prefactor  = 2.64332
  Prefactor  = 5.55112e-11
  norm       = 0.783776
  Normalizat = 0.905823
  Prefactor  = 0.998537
 **********
 **   18 **HESSE 
 **********

 FCN=   10913.97     FROM HESSE     STATUS=OK           214 CALLS     1225 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30935        .49987        .20311E-02   -1.5697    
   2  Prefactor     .55511E-10    11.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38858E-09    21.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22204E-09    13.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        7.5683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     120.59        68.982        .91603E-04   -1.5488    
   7  Prefactor     .33307E-09    30.120        .17349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.995        12.622        .28874E-03   -1.5639    
   9  norm          2.5592        1.2344        .63778E-03   -1.5676    
  10  Prefactor     7.2749        5.7338        .37229E-03   -1.5654    
  11  Prefactor     2.6433        2.2495        .62652E-03   -1.5675    
  12  Prefactor     .55511E-10    3.0335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .78378        .38931        .54182E-03   -1.5690    
  14  Normalizat    .90582        .14795        .65182E-01   -.96256    
  15  Prefactor     .99854        .10935        .46247E-01   -.92778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20871e-08
Minuit parameter uncertainties:
  1  0.499875
  2  4.07826e-05
  3  0.000186804
  4  0.000110969
  5  2.04154e-05
  6  68.9823
  7  0.000207938
  8  12.6222
  9  1.23443
  10  5.73383
  11  2.2495
  12  2.64768e-05
  13  0.38931
  14  0.14802
  15  0.109378
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.559e+00  1.234e+00  0.000e+00  1.000e+06 ( 1.000e-11)
215        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
216         beta:  1.811e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
217           Eb:  5.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  9.985e-01  1.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  9.058e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.34
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.52e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.08e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10913.9686698
delta logL = 0.00141286638063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10913.9686151
delta logL = 0.00146760819734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5570       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2056       1.0000          .0000       5.0000    
     3 'Normalizat'    .90760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10913.97     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      268 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5572        1.2180        .76182E-05   -.10804E-02
   2  alpha         2.2056        .49450        .17051E-01   -.25416E-05
   3  Normalizat    .90750        .16995        .28809E-03   -.56036E-04
   4  Prefactor     .99772        .13047        .21264E-03   -.91532E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55716
  alpha      = 2.20556
  Normalizat = 0.907495
  Prefactor  = 0.997721
 **********
 **   18 **HESSE 
 **********

 FCN=   10913.97     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5572        1.2194        .30473E-06   -1.5676    
   2  alpha         2.2056        .49483        .68206E-03   -.11805    
   3  Normalizat    .90750        .17008        .11524E-04   -.96197    
   4  Prefactor     .99772        .13055        .85055E-05   -.92806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91571e-12
Minuit parameter uncertainties:
  1  1.21936
  2  0.498167
  3  0.170181
  4  0.130588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951007': 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): 0
logL (Free Index) = 10913.9686126
delta logL = 0.00147005875442

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.557e+00  1.219e+00  0.000e+00  1.000e+06 ( 1.000e-11)
215        alpha:  2.206e+00  4.982e-01  0.000e+00  5.000e+00 ( 1.000e+00)
216         beta:  1.811e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
217           Eb:  5.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  9.977e-01  1.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  9.075e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.34
Ra Dec: 155.945 0.650
Photon Index (Free Index): 2.21 +/- 0.50
Photon Flux (Free Index): 6.38e-08 +/- 4.01e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.08e-05

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/951007/cmap_HighResolution_695001601_695606401_4FGL_J1023.7+0038_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.52e-08', energy_flux2='2.24e-05', photon_flux_error='3.14e-08', dlogl='1.47e-03', energy_flux='2.24e-05', photon_flux2='6.38e-08', job_status='DONE', time_completed='2023-01-17 01:06:02.870233', photon_index_error2='0.50', photon_index2='2.21', ts='7.34', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.91', time_epoch_completed='1673946362.87', return_code='0', job_id='951007', GAL2='1.00', EG2='0.91', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.01e-08', ts2='7.34', photon_index='2.23' WHERE bin_id='754' AND source_name='4FGL J1023.7+0038' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:06:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 951007: <4FGL_J1023.7+0038_weekly_bin754> in cluster <slac> Done

Job <4FGL_J1023.7+0038_weekly_bin754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 17 00:55:24 2023
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:55:49 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:55:49 2023
Terminated at Tue Jan 17 01:06:03 2023
Results reported at Tue Jan 17 01:06:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_weekly_bin754 155.945 0.6499 695001601 695606401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.7+0038 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            639 sec.

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

