/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 2 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin858
RA = 155.945, Dec = 0.6499
tmin = 461721601, tmax = 461980801
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='846946', job_status='RUN', time_executed='2021-09-01 19:55:42.627090', time_epoch_executed='1630551342.63' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846946/ft1_4FGL_J1023.7+0038_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846946/ft1_4FGL_J1023.7+0038_daily_bin858.fits outfile=/scratch/kocevski/846946/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin858.fits ra=155.945 dec=0.6499 rad=12.0 tmin=461721601.0 tmax=461980801.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 4.13
user 3.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits" evtable="EVENTS" scfile=/scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits sctable="SC_DATA" outfile=/scratch/kocevski/846946/ltcube_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.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/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits
.....................!
real 16.96
user 16.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/846946/ltcube_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.fits outfile=/scratch/kocevski/846946/expmap_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.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/846946/ltcube_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.fits
.....................!
real 194.54
user 188.72
sys 5.35

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/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits scfile=/scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits outfile=/scratch/kocevski/846946/cmap_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits scfile=/scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits outfile=/scratch/kocevski/846946/cmap_HighResolution_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846946/Model_4FGL_J1023.7+0038_daily_bin858.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/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits.....................!
real 55.82
user 54.40
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits', '/scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits', expMap='/scratch/kocevski/846946/expmap_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.fits', expCube='/scratch/kocevski/846946/ltcube_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846946/Model_4FGL_J1023.7+0038_daily_bin858.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  1.000e-04  1.000e+04 ( 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  0.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/846946/ft1_filtered_4FGL_J1023.7+0038_daily_bin858.fits
Spacecraft file(s): /scratch/kocevski/846946/ft2_4FGL_J1023.7+0038_daily_bin858.fits
Exposure map: /scratch/kocevski/846946/expmap_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.fits
Exposure cube: /scratch/kocevski/846946/ltcube_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846946/Model_4FGL_J1023.7+0038_daily_bin858.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) = 5123.36728209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6779       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3605       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3355       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0407       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9091       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2914       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .83006       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.

 FCN=   5123.347     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1614 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85637        .77225        .10386E-06    .42671E-03
   2  Prefactor     9.6810        14.832        .12732E-05    .42738E-04
   3  Prefactor     .10000E-03    23.903       -.27913E-06** at limit **
   4  Prefactor     .10000E-03    31.206       -.60514E-06** at limit **
   5  norm          .10000E-03    10.996        .22653E-05** at limit **
   6  Prefactor     7.5155        9.3663        .38522E-06    .63125E-04
   7  Prefactor     27.896        80.063        .39103E-05    .35259E-04
   8  Prefactor     .10000E-03    93.208        .36435E-05** at limit **
   9  Prefactor     7.3571        15.165        .46508E-06    .42330E-04
  10  norm          5.7141        2.1800        .98804E-07    .44587E-04
  11  Prefactor     12.075        10.063        .58273E-06    .34507E-04
  12  Prefactor     1.3356        2.7499        .10472E-05    .42750E-03
  13  Prefactor     4.0440        8.2872        .88024E-06    .44477E-04
  14  norm          1.4615        .86674        .44238E-08   -.98303E-04
  15  Prefactor     7.9089        13.831        .42593E-06   -.23737E-04
  16  Normalizat    1.2906        .28891       -.10831E-04    .70773E-05
  17  Prefactor     .83060        .21212        .87582E-05   -.12615E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.856372
  Prefactor  = 9.68096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 7.5155
  Prefactor  = 27.8964
  Prefactor  = 0.000100002
  Prefactor  = 7.35714
  norm       = 5.71415
  Prefactor  = 12.0754
  Prefactor  = 1.33557
  Prefactor  = 4.04403
  norm       = 1.46146
  Prefactor  = 7.90891
  Normalizat = 1.29064
  Prefactor  = 0.830601
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.347     FROM HESSE     STATUS=OK           231 CALLS     1845 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85637        .74723        .56113E-03   -1.5523    
   2  Prefactor     9.6810        14.809        .12881E-03   -1.5086    
   3  Prefactor     .10000E-03    23.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5155        9.3468        .14627E-03   -1.5160    
   7  Prefactor     27.896        80.005        .76038E-04   -1.4651    
   8  Prefactor     .10000E-03    93.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3571        15.149        .14784E-03   -1.5165    
  10  norm          5.7141        2.1782        .61441E-04   -1.5230    
  11  Prefactor     12.075        10.058        .11529E-03   -1.5013    
  12  Prefactor     1.3356        2.7281        .16179E-03   -1.5477    
  13  Prefactor     4.0440        8.2136        .20060E-03   -1.5306    
  14  norm          1.4615        .87308        .40989E-04   -1.5466    
  15  Prefactor     7.9089        13.985        .14258E-03   -1.5145    
  16  Normalizat    1.2906        .29009        .26295E-03   -.83846    
  17  Prefactor     .83060        .21307        .25269E-03   -.98610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47412e-10
Minuit parameter uncertainties:
  1  0.74724
  2  14.8146
  3  2.74565e-05
  4  7.2532e-05
  5  0.000200646
  6  9.34858
  7  80.3155
  8  0.000881225
  9  15.1573
  10  2.17824
  11  10.0596
  12  2.72833
  13  8.21592
  14  0.873087
  15  13.991
  16  0.290453
  17  0.213287
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  5.714e+00  2.178e+00  1.000e-04  1.000e+04 ( 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  0.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:  8.306e-01  2.133e-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:  1.291e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.36
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.46e-07 +/- 5.55e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 1.90e-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) = 5122.60484858
delta logL = 0.742012927619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5122.48637867
delta logL = 0.860482833928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2107       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5813       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81117       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=   5122.486     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2099        2.0656        .49096E-02   -.32631E-04
   2  alpha         1.5811        .38665        .24436       -.26316E-04
   3  Normalizat    1.3554        .22535        .58386E-01    .15411E-05
   4  Prefactor     .81126        .17798        .43862E-01    .10280E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.20988
  alpha      = 1.58106
  Normalizat = 1.35541
  Prefactor  = 0.811257
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.486     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2099        2.8655        .62684E-04   -1.5298    
   2  alpha         1.5811        .55178        .10438E-01   -.37640    
   3  Normalizat    1.3554        .26756        .25820E-03   -.81927    
   4  Prefactor     .81126        .21036        .25600E-03   -.99315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0591e-12
Minuit parameter uncertainties:
  1  2.86555
  2  0.557095
  3  0.267836
  4  0.210571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846946': 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) = 5122.48637849
delta logL = 0.860483013152

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  4.210e+00  2.866e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.581e+00  5.571e-01  0.000e+00  5.000e+00 ( 1.000e+00)
216         beta:  1.811e-01  0.000e+00  0.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:  8.113e-01  2.106e-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:  1.355e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.11
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.58 +/- 0.56
Photon Flux (Free Index): 7.38e-08 +/- 6.03e-08
Energy Flux (Free Index): 5.68e-05 +/- 2.75e-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/846946/cmap_HighResolution_461721601_461980801_4FGL_J1023.7+0038_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-07', energy_flux2='5.68e-05', photon_flux_error='5.55e-08', dlogl='8.60e-01', energy_flux='5.00e-05', photon_flux2='7.38e-08', job_status='DONE', time_completed='2021-09-01 20:03:44.137731', photon_index_error2='0.56', photon_index2='1.58', ts='23.36', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='1.29', time_epoch_completed='1630551824.14', return_code='0', job_id='846946', GAL2='0.81', EG2='1.36', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='6.03e-08', ts2='25.11', photon_index='2.23' WHERE bin_id='858' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:03:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 846946: <4FGL_J1023.7+0038_daily_bin858> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin858> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:55:22 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:55:30 2021
Terminated at Wed Sep  1 20:03:44 2021
Results reported at Wed Sep  1 20:03:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin858 155.945 0.6499 461721601 461980801 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 :                                   478.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   494 sec.
    Turnaround time :                            502 sec.

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

