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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin978
RA = 155.945, Dec = 0.6499
tmin = 492825601, tmax = 493084801
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='847118', job_status='RUN', time_executed='2021-09-01 20:00:06.937350', time_epoch_executed='1630551606.94' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847118

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847118/ft1_4FGL_J1023.7+0038_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847118/ft1_4FGL_J1023.7+0038_daily_bin978.fits outfile=/scratch/kocevski/847118/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin978.fits ra=155.945 dec=0.6499 rad=12.0 tmin=492825601.0 tmax=493084801.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.78
user 3.52
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.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/847118/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin978.fits evtable="EVENTS" outfile="/scratch/kocevski/847118/ft1_filtered_4FGL_J1023.7+0038_daily_bin978.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847118/ft1_filtered_4FGL_J1023.7+0038_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/847118/ltcube_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.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/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits
.....................!
real 14.92
user 14.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847118/ft1_filtered_4FGL_J1023.7+0038_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/847118/ltcube_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.fits outfile=/scratch/kocevski/847118/expmap_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.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/847118/ltcube_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.fits
.....................!
real 192.00
user 185.79
sys 5.73

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/847118/ft1_filtered_4FGL_J1023.7+0038_daily_bin978.fits scfile=/scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits outfile=/scratch/kocevski/847118/cmap_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847118/ft1_filtered_4FGL_J1023.7+0038_daily_bin978.fits scfile=/scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits outfile=/scratch/kocevski/847118/cmap_HighResolution_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847118/ft1_filtered_4FGL_J1023.7+0038_daily_bin978.fits', '/scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits', expMap='/scratch/kocevski/847118/expmap_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.fits', expCube='/scratch/kocevski/847118/ltcube_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847118/Model_4FGL_J1023.7+0038_daily_bin978.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/847118/ft1_filtered_4FGL_J1023.7+0038_daily_bin978.fits
Spacecraft file(s): /scratch/kocevski/847118/ft2_4FGL_J1023.7+0038_daily_bin978.fits
Exposure map: /scratch/kocevski/847118/expmap_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.fits
Exposure cube: /scratch/kocevski/847118/ltcube_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847118/Model_4FGL_J1023.7+0038_daily_bin978.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5442.57946737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16086E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1987       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.8686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46213       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1492       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1514       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=   5442.430     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1409 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26763        .59960        .10281E-01    .18418E-02
   2  Prefactor     6.3374        7.5006        .39876E-02   -.28308E-04
   3  Prefactor     .10000E-03    351.34        .90712E-02** at limit **
   4  Prefactor     .10000E-03    60.942        .90712E-02** at limit **
   5  norm          .10000E-03    5.1028        .90712E-02** at limit **
   6  Prefactor     .10000E-03    5.4346        .90712E-02** at limit **
   7  Prefactor     6.2234        81.774        .40310E-02   -.19890E-03
   8  Prefactor     .10000E-03    24.880        .90712E-02** at limit **
   9  Prefactor     .10000E-03    7.5994        .90712E-02** at limit **
  10  norm          7.8694        2.4152        .35736E-02    .22961E-03
  11  Prefactor     .10000E-03    3.5365        .90712E-02** at limit **
  12  Prefactor     4.1306        3.2318        .49583E-02    .13612E-03
  13  Prefactor     .10000E-03    7.1580        .90712E-02** at limit **
  14  norm          2.0807        .98923        .71602E-02    .12022E-02
  15  Prefactor     .37540        15.664        .77654E-01    .30084E-03
  16  Normalizat    1.1492        .22672        .66025E-01    .84485E-04
  17  Prefactor     1.1515        .17671        .53600E-01    .75006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.267633
  Prefactor  = 6.33743
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.22344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.86944
  Prefactor  = 0.0001
  Prefactor  = 4.13061
  Prefactor  = 0.0001
  norm       = 2.08073
  Prefactor  = 0.375397
  Normalizat = 1.14919
  Prefactor  = 1.1515
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.430     FROM HESSE     STATUS=OK           223 CALLS     1632 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26763        .57898        .80599E-04   -1.5605    
   2  Prefactor     6.3374        7.4992        .15950E-03   -1.5204    
   3  Prefactor     .10000E-03    358.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    61.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1042        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4660        .16792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2234        81.834        .16124E-03   -1.5209    
   8  Prefactor     .10000E-03    24.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.8694        2.4174        .60615E-04   -1.5147    
  11  Prefactor     .10000E-03    3.5516        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1306        3.2322        .11261E-03   -1.5301    
  13  Prefactor     .10000E-03    7.2686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0807        1.0998        .39074E-04   -1.5419    
  15  Prefactor     .37540        163.69        .44287E-02   -1.5585    
  16  Normalizat    1.1492        .26704        .29209E-03   -.88188    
  17  Prefactor     1.1515        .20884        .23698E-03   -.87837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84082e-09
Minuit parameter uncertainties:
  1  0.57899
  2  7.50033
  3  0.00119385
  4  0.000542206
  5  1.71098e-06
  6  2.83488e-05
  7  45.2103
  8  0.000146303
  9  2.147e-05
  10  2.41739
  11  2.88976e-05
  12  3.23232
  13  3.4925e-05
  14  1.09979
  15  15.7193
  16  0.267359
  17  0.208989
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  7.869e+00  2.417e+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.152e+00  2.090e-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.149e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.36
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.00e-07 +/- 6.15e-08
Energy Flux (Fixed Index): 6.88e-05 +/- 2.11e-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) = 5442.41685469
delta logL = 0.0127087645769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5442.41543681
delta logL = 0.0141266506407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8063       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2950       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1563       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=   5442.415     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8063        4.2587        .35880E-02    .72298E-02
   2  alpha         2.2950        .61695        .22825        .37800E-04
   3  Normalizat    1.1391        .22689        .66259E-01    .32517E-05
   4  Prefactor     1.1565        .18077        .53496E-01    .11584E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.80627
  alpha      = 2.29496
  Normalizat = 1.13914
  Prefactor  = 1.15649
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.415     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8063        2.4312        .59731E-04   -1.5149    
   2  alpha         2.2950        .37222        .95810E-02   -.82109E-01
   3  Normalizat    1.1391        .26369        .29312E-03   -.88505    
   4  Prefactor     1.1565        .21060        .23652E-03   -.87681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81789e-09
Minuit parameter uncertainties:
  1  2.4312
  2  0.373618
  3  0.263992
  4  0.210748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847118': 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) = 5442.41543609
delta logL = 0.0141273651507

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  7.806e+00  2.431e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.295e+00  3.736e-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.156e+00  2.107e-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.139e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.28
Ra Dec: 155.945 0.650
Photon Index (Free Index): 2.29 +/- 0.37
Photon Flux (Free Index): 2.09e-07 +/- 8.08e-08
Energy Flux (Free Index): 6.80e-05 +/- 2.14e-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/847118/cmap_HighResolution_492825601_493084801_4FGL_J1023.7+0038_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.00e-07', energy_flux2='6.80e-05', photon_flux_error='6.15e-08', dlogl='1.41e-02', energy_flux='6.88e-05', photon_flux2='2.09e-07', job_status='DONE', time_completed='2021-09-01 20:07:55.115257', photon_index_error2='0.37', photon_index2='2.29', ts='26.36', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.15', time_epoch_completed='1630552075.12', return_code='0', job_id='847118', GAL2='1.16', EG2='1.14', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='8.08e-08', ts2='26.28', photon_index='2.23' WHERE bin_id='978' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:07:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 847118: <4FGL_J1023.7+0038_daily_bin978> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin978> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:55:35 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:57:01 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:57:01 2021
Terminated at Wed Sep  1 20:07:55 2021
Results reported at Wed Sep  1 20:07:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin978 155.945 0.6499 492825601 493084801 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 :                             300.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            740 sec.

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

