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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin1762
RA = 155.945, Dec = 0.6499
tmin = 696038401, tmax = 696297601
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='106550', job_status='RUN', time_executed='2023-01-25 00:49:14.107389', time_epoch_executed='1674636554.11' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106550/ft1_4FGL_J1023.7+0038_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106550/ft1_4FGL_J1023.7+0038_daily_bin1762.fits outfile=/scratch/kocevski/106550/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin1762.fits ra=155.945 dec=0.6499 rad=12.0 tmin=696038401.0 tmax=696297601.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.74
user 3.49
sys 0.20

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

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

Number of photons that the gtmktime cut: 569

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/106550/ltcube_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.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/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits
.....................!
real 15.07
user 14.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/106550/ltcube_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.fits outfile=/scratch/kocevski/106550/expmap_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.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/106550/ltcube_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.fits
.....................!
real 195.58
user 188.20
sys 5.68

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/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits scfile=/scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits outfile=/scratch/kocevski/106550/cmap_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits scfile=/scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits outfile=/scratch/kocevski/106550/cmap_HighResolution_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/106550/Model_4FGL_J1023.7+0038_daily_bin1762.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/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits.....................!
real 59.22
user 57.78
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits', '/scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits', expMap='/scratch/kocevski/106550/expmap_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.fits', expCube='/scratch/kocevski/106550/ltcube_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/106550/Model_4FGL_J1023.7+0038_daily_bin1762.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/106550/ft1_filtered_4FGL_J1023.7+0038_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/106550/ft2_4FGL_J1023.7+0038_daily_bin1762.fits
Exposure map: /scratch/kocevski/106550/expmap_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.fits
Exposure cube: /scratch/kocevski/106550/ltcube_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/106550/Model_4FGL_J1023.7+0038_daily_bin1762.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) = 6402.49794621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40841       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13304E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32893E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    23.678       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13795E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .25429       1.0000          .0000       .10000E+07
     7 'Prefactor '    .97548E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17109E-06   1.0000          .0000       .10000E+07
     9 'norm      '    2.3920       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12546E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.2987       1.0000          .0000       .10000E+07
    12 'Prefactor '    .16048E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .44775E-06   1.0000          .0000       .10000E+07
    14 'Normalizat'    .92187       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0423       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=   6402.484     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1056 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40779        .47566       -.11012E-08    .21510E-02
   2  Prefactor     .25907E-06    5.8027       -.60175E-06** at limit **
   3  Prefactor     .12157E-07    15.003       -.10764E-06** at limit **
   4  Prefactor     23.601        1.2063       -.12998E-08    .16982E-01
   5  Prefactor     .15099E-07    5.6684       -.19769E-06** at limit **
   6  Prefactor     .10296E-04    16.352       -.11337E-05** at limit **
   7  Prefactor     .64393E-08    23.717        .25587E-06** at limit **
   8  Prefactor     .18952E-06    5.4062        .15266E-06** at limit **
   9  norm          2.3922        1.2330       -.90363E-07    .25302E-02
  10  Prefactor      .0000        1.9833       -.68763E-07** at limit **
  11  Prefactor     1.2989        2.3574       -.28136E-06    .19787E-02
  12  Prefactor      .0000        2.7660        .62695E-07** at limit **
  13  norm           .0000        1.2568        .17458E-06** at limit **
  14  Normalizat    .92186        .20426       -.12800E-04    .64218E-04
  15  Prefactor     1.0425        .16739        .10077E-04   -.38250E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.407795
  Prefactor  = 2.59071e-07
  Prefactor  = 1.21569e-08
  Prefactor  = 23.6006
  Prefactor  = 1.5099e-08
  Prefactor  = 1.02962e-05
  Prefactor  = 6.43929e-09
  Prefactor  = 1.89515e-07
  norm       = 2.3922
  Prefactor  = 0
  Prefactor  = 1.29888
  Prefactor  = 0
  norm       = 0
  Normalizat = 0.92186
  Prefactor  = 1.04248
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.484     FROM HESSE     STATUS=OK           214 CALLS     1270 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40779        .51318        .13369E-02   -1.5695    
   2  Prefactor     .25907E-06    6.8364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12157E-07    15.078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.601        25.383        .20555E-03   -1.5611    
   5  Prefactor     .15099E-07    5.7242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10296E-04    55.599        .10880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .64393E-08    23.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18952E-06    6.1399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3922        1.2361        .66190E-03   -1.5677    
  10  Prefactor      .0000        1.9820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2989        2.3982        .96963E-03   -1.5685    
  12  Prefactor      .0000        2.7707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .22804        .23101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .92186        .17831        .45181E-01   -.95696    
  15  Prefactor     1.0425        .14344        .40381E-01   -.91327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63723e-07
Minuit parameter uncertainties:
  1  0.51318
  2  0.0026618
  3  0.000856661
  4  25.3832
  5  0.000588202
  6  0.0478526
  7  0.000784397
  8  0.00215732
  9  1.23613
  10  4.98322e-06
  11  2.39815
  12  6.56172e-07
  13  1.51333e-06
  14  0.178425
  15  0.143496
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.392e+00  1.236e+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:  1.042e+00  1.435e-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.219e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.78
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.09e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 2.09e-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) = 6401.67582203
delta logL = 0.808434748765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6401.63355988
delta logL = 0.850696893629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1037       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5751       1.0000          .0000       5.0000    
     3 'Normalizat'    .94828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0308       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.

 FCN=   6401.634     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1036        1.1185        .71116E-03   -.24334E-03
   2  alpha         1.5750        .39782        .31887       -.29296E-04
   3  Normalizat    .94829        .17401        .45516E-01    .14328E-04
   4  Prefactor     1.0308        .14299        .41198E-01    .45898E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10359
  alpha      = 1.57499
  Normalizat = 0.94829
  Prefactor  = 1.03077
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.634     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1036        1.2879        .59671E-05   -1.5679    
   2  alpha         1.5750        .48184        .13355E-01   -.37901    
   3  Normalizat    .94829        .20334        .26241E-03   -.94783    
   4  Prefactor     1.0308        .16726        .20677E-03   -.91711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86038e-13
Minuit parameter uncertainties:
  1  1.2879
  2  0.485365
  3  0.203501
  4  0.167344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106550': 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) = 6401.63355986
delta logL = 0.850696913308

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.104e+00  1.288e+00  0.000e+00  1.000e+06 ( 1.000e-11)
215        alpha:  1.575e+00  4.854e-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:  1.031e+00  1.673e-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.483e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.53
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.57 +/- 0.49
Photon Flux (Free Index): 3.68e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.78e-05

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/106550/cmap_HighResolution_696038401_696297601_4FGL_J1023.7+0038_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.09e-08', energy_flux2='2.86e-05', photon_flux_error='3.15e-08', dlogl='8.51e-01', energy_flux='2.09e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2023-01-25 00:56:59.625270', photon_index_error2='0.49', photon_index2='1.57', ts='9.78', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.92', time_epoch_completed='1674637019.63', return_code='0', job_id='106550', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.56e-08', ts2='11.53', photon_index='2.23' WHERE bin_id='1762' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 00:56:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 106550: <4FGL_J1023.7+0038_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin1762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jan 25 00:45:24 2023
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:48:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:48:37 2023
Terminated at Wed Jan 25 00:57:00 2023
Results reported at Wed Jan 25 00:57:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin1762 155.945 0.6499 696038401 696297601 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 :                                   466.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   502 sec.
    Turnaround time :                            696 sec.

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

