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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin733
RA = 155.945, Dec = 0.6499
tmin = 429321601, tmax = 429580801
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='845681', job_status='RUN', time_executed='2021-09-01 19:57:12.809961', time_epoch_executed='1630551432.81' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845681/ft1_4FGL_J1023.7+0038_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845681/ft2_4FGL_J1023.7+0038_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845681/ft1_4FGL_J1023.7+0038_daily_bin733.fits outfile=/scratch/kocevski/845681/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin733.fits ra=155.945 dec=0.6499 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.57
user 6.26
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845681/ft1_filtered_4FGL_J1023.7+0038_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/845681/ft2_4FGL_J1023.7+0038_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/845681/ltcube_429321601_429580801_4FGL_J1023.7+0038_daily_bin733.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/845681/ft2_4FGL_J1023.7+0038_daily_bin733.fits
.....................!
real 18.25
user 17.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845681/ft1_filtered_4FGL_J1023.7+0038_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/845681/ft2_4FGL_J1023.7+0038_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/845681/ltcube_429321601_429580801_4FGL_J1023.7+0038_daily_bin733.fits outfile=/scratch/kocevski/845681/expmap_429321601_429580801_4FGL_J1023.7+0038_daily_bin733.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/845681/ltcube_429321601_429580801_4FGL_J1023.7+0038_daily_bin733.fits
.....................!
real 192.72
user 187.36
sys 4.67

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/845681/ft1_filtered_4FGL_J1023.7+0038_daily_bin733.fits scfile=/scratch/kocevski/845681/ft2_4FGL_J1023.7+0038_daily_bin733.fits outfile=/scratch/kocevski/845681/cmap_429321601_429580801_4FGL_J1023.7+0038_daily_bin733.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845681/ft1_filtered_4FGL_J1023.7+0038_daily_bin733.fits scfile=/scratch/kocevski/845681/ft2_4FGL_J1023.7+0038_daily_bin733.fits outfile=/scratch/kocevski/845681/cmap_HighResolution_429321601_429580801_4FGL_J1023.7+0038_daily_bin733.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845681/ft1_filtered_4FGL_J1023.7+0038_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/845681/ft2_4FGL_J1023.7+0038_daily_bin733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845681/Model_4FGL_J1023.7+0038_daily_bin733.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/845681/ft1_filtered_4FGL_J1023.7+0038_daily_bin733.fits.....................!
real 37.38
user 35.99
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94799       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.049       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17623E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.826       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7861       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86686       1.0000         .10000E-03   10000.    
    14 'norm      '    .90907       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5814       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .90564       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1308       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=   3078.164     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1417 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94814        .94691        .18968E-06    .17492E-02
   2  Prefactor     .10000E-03    20.889       -.47074E-06** at limit **
   3  Prefactor     2.0102        469.51       -.32605E-03    .28394E-04
   4  Prefactor     .10000E-03    27.067        .18076E-05** at limit **
   5  norm          11.049        15.225       -.74286E-06    .20792E-04
   6  Prefactor     .10000E-03    7.7498        .54339E-08** at limit **
   7  Prefactor     .10000E-03    47.836       -.29907E-05** at limit **
   8  Prefactor     .10000E-03    86.287        .68280E-05** at limit **
   9  Prefactor     56.824        33.571       -.10638E-05    .71819E-04
  10  norm          3.7863        2.5827        .79690E-06    .11657E-02
  11  Prefactor     17.956        11.087        .14480E-05    .53095E-03
  12  Prefactor     3.1797        3.4194       -.43850E-06    .10531E-03
  13  Prefactor     .86617        9.6125       -.41871E-05   -.68299E-03
  14  norm          .90908        .75570       -.21110E-06    .32302E-04
  15  Prefactor     6.5814        8.5982        .32924E-06   -.33753E-05
  16  Normalizat    .90572        .29991        .15148E-04    .32420E-03
  17  Prefactor     1.1307        .23388       -.21612E-05    .76111E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.948136
  Prefactor  = 0.0001
  Prefactor  = 2.01022
  Prefactor  = 0.000100004
  norm       = 11.0492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.8242
  norm       = 3.7863
  Prefactor  = 17.9564
  Prefactor  = 3.17972
  Prefactor  = 0.866171
  norm       = 0.909076
  Prefactor  = 6.58136
  Normalizat = 0.905721
  Prefactor  = 1.1307
 **********
 **   18 **HESSE 
 **********

 FCN=   3078.164     FROM HESSE     STATUS=OK           223 CALLS     1640 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94814        .91841        .50502E-03   -1.5513    
   2  Prefactor     .10000E-03    21.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0102        477.93        .28699E-03   -1.5424    
   4  Prefactor     .10000E-03    27.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.049        15.223        .12053E-03   -1.5043    
   6  Prefactor     .10000E-03    7.7579        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    86.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.824        33.624        .53216E-04   -1.4199    
  10  norm          3.7863        2.5793        .69771E-04   -1.5319    
  11  Prefactor     17.956        11.091        .94525E-04   -1.4860    
  12  Prefactor     3.1797        3.4174        .10245E-03   -1.5351    
  13  Prefactor     .86617        9.7738        .33368E-03   -1.5522    
  14  norm          .90908        .76348        .40955E-04   -1.5517    
  15  Prefactor     6.5814        8.6090        .15643E-03   -1.5195    
  16  Normalizat    .90572        .34701        .29791E-03   -.96259    
  17  Prefactor     1.1307        .27311        .22183E-03   -.88491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97352e-09
Minuit parameter uncertainties:
  1  0.918421
  2  0.000120184
  3  62.5015
  4  0.000645918
  5  15.2281
  6  9.71215e-06
  7  0.000134744
  8  0.000121929
  9  33.6355
  10  2.5794
  11  11.0926
  12  3.41757
  13  5.82007
  14  0.763486
  15  8.61058
  16  0.347871
  17  0.273446
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.786e+00  2.579e+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:  1.131e+00  2.734e-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.057e-01  3.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.64e-08 +/- 6.57e-08
Energy Flux (Fixed Index): 3.31e-05 +/- 2.26e-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) = 3078.15481725
delta logL = 0.0087342723491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3078.15428416
delta logL = 0.00926736554811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7385       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1369       1.0000          .0000       5.0000    
     3 'Normalizat'    .91329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1278       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=   3078.154     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      198 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7385        4.9328        .52207E-02    .27714E-02
   2  alpha         2.1368        1.1505        .33911       -.23763E-05
   3  Normalizat    .91326        .28854        .67114E-01    .92774E-05
   4  Prefactor     1.1278        .23696        .36616E-01    .14116E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.73852
  alpha      = 2.13682
  Normalizat = 0.913265
  Prefactor  = 1.12784
 **********
 **   18 **HESSE 
 **********

 FCN=   3078.154     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7385        2.6455        .71383E-04   -1.5321    
   2  alpha         2.1368        .70138        .13457E-01   -.14579    
   3  Normalizat    .91326        .33290        .29689E-03   -.95996    
   4  Prefactor     1.1278        .27185        .22212E-03   -.88582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34125e-09
Minuit parameter uncertainties:
  1  2.6456
  2  0.711137
  3  0.333657
  4  0.272187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845681': 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) = 3078.15428409
delta logL = 0.00926742931597

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.739e+00  2.646e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.137e+00  7.111e-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:  1.128e+00  2.722e-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.133e-01  3.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 155.945 0.650
Photon Index (Free Index): 2.14 +/- 0.71
Photon Flux (Free Index): 8.85e-08 +/- 8.48e-08
Energy Flux (Free Index): 3.33e-05 +/- 2.32e-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/845681/cmap_HighResolution_429321601_429580801_4FGL_J1023.7+0038_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.64e-08', energy_flux2='3.33e-05', photon_flux_error='6.57e-08', dlogl='9.27e-03', energy_flux='3.31e-05', photon_flux2='8.85e-08', job_status='DONE', time_completed='2021-09-01 20:04:17.367775', photon_index_error2='0.71', photon_index2='2.14', ts='5.11', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.91', time_epoch_completed='1630551857.37', return_code='0', job_id='845681', GAL2='1.13', EG2='0.91', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='8.48e-08', ts2='5.14', photon_index='2.23' WHERE bin_id='733' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 845681: <4FGL_J1023.7+0038_daily_bin733> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin733> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:50:40 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:54:05 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:54:05 2021
Terminated at Wed Sep  1 20:04:18 2021
Results reported at Wed Sep  1 20:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin733 155.945 0.6499 429321601 429580801 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 :                                   421.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             230.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            818 sec.

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

