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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin789
RA = 155.945, Dec = 0.6499
tmin = 443836801, tmax = 444096001
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='845773', job_status='RUN', time_executed='2021-09-01 19:57:13.852500', time_epoch_executed='1630551433.85' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845773/ft1_4FGL_J1023.7+0038_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845773/ft2_4FGL_J1023.7+0038_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845773/ft1_4FGL_J1023.7+0038_daily_bin789.fits outfile=/scratch/kocevski/845773/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin789.fits ra=155.945 dec=0.6499 rad=12.0 tmin=443836801.0 tmax=444096001.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.48
user 3.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845773/ft1_filtered_4FGL_J1023.7+0038_daily_bin789.fits" evtable="EVENTS" scfile=/scratch/kocevski/845773/ft2_4FGL_J1023.7+0038_daily_bin789.fits sctable="SC_DATA" outfile=/scratch/kocevski/845773/ltcube_443836801_444096001_4FGL_J1023.7+0038_daily_bin789.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/845773/ft2_4FGL_J1023.7+0038_daily_bin789.fits
.....................!
real 13.13
user 12.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845773/ft1_filtered_4FGL_J1023.7+0038_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/845773/ft2_4FGL_J1023.7+0038_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/845773/ltcube_443836801_444096001_4FGL_J1023.7+0038_daily_bin789.fits outfile=/scratch/kocevski/845773/expmap_443836801_444096001_4FGL_J1023.7+0038_daily_bin789.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/845773/ltcube_443836801_444096001_4FGL_J1023.7+0038_daily_bin789.fits
.....................!
real 191.04
user 185.30
sys 5.02

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/845773/ft1_filtered_4FGL_J1023.7+0038_daily_bin789.fits scfile=/scratch/kocevski/845773/ft2_4FGL_J1023.7+0038_daily_bin789.fits outfile=/scratch/kocevski/845773/cmap_443836801_444096001_4FGL_J1023.7+0038_daily_bin789.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845773/ft1_filtered_4FGL_J1023.7+0038_daily_bin789.fits scfile=/scratch/kocevski/845773/ft2_4FGL_J1023.7+0038_daily_bin789.fits outfile=/scratch/kocevski/845773/cmap_HighResolution_443836801_444096001_4FGL_J1023.7+0038_daily_bin789.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845773/ft1_filtered_4FGL_J1023.7+0038_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/845773/ft2_4FGL_J1023.7+0038_daily_bin789.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845773/Model_4FGL_J1023.7+0038_daily_bin789.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/845773/ft1_filtered_4FGL_J1023.7+0038_daily_bin789.fits.....................!
real 56.03
user 54.66
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.717       1.0000         .10000E-03   10000.    
     5 'norm      '    18.698       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12343E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.051       1.0000         .10000E-03   10000.    
    10 'norm      '    5.5828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6168       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .97181       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92771       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=   5593.185     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1578 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4417        .80242       -.12383E-07    .93267E-04
   2  Prefactor     .10000E-03    6.4024        .13936E-06** at limit **
   3  Prefactor     52.238        49.387        .40146E-06    .69311E-05
   4  Prefactor     27.710        39.202        .48898E-06    .51901E-06
   5  norm          18.701        15.690       -.12453E-05    .24434E-05
   6  Prefactor     .10000E-03    38.760        .52177E-05** at limit **
   7  Prefactor     .10000E-03    18.577        .44980E-06** at limit **
   8  Prefactor     .10000E-03    48.658        .32215E-05** at limit **
   9  Prefactor     48.044        24.593       -.15899E-05   -.10732E-03
  10  norm          5.5831        1.9903       -.33004E-07   -.29033E-04
  11  Prefactor     .10000E-03    2.2103        .18524E-06** at limit **
  12  Prefactor     3.7598        3.4336       -.16314E-06    .21085E-03
  13  Prefactor     3.6164        6.1712       -.66202E-06    .19986E-03
  14  norm          2.3059        .70233       -.49331E-08    .40293E-03
  15  Prefactor     .10000E-03    13.439       -.73528E-07** at limit **
  16  Normalizat    .97175        .21733       -.95942E-06    .13130E-04
  17  Prefactor     .92778        .16541        .86056E-07   -.31213E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44166
  Prefactor  = 0.0001
  Prefactor  = 52.2384
  Prefactor  = 27.7103
  norm       = 18.7013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.0442
  norm       = 5.58307
  Prefactor  = 0.0001
  Prefactor  = 3.75984
  Prefactor  = 3.61636
  norm       = 2.30594
  Prefactor  = 0.0001
  Normalizat = 0.971755
  Prefactor  = 0.927783
 **********
 **   18 **HESSE 
 **********

 FCN=   5593.185     FROM HESSE     STATUS=OK           227 CALLS     1805 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4417        .79335        .47265E-04   -1.5468    
   2  Prefactor     .10000E-03    6.4150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.238        49.386        .55483E-04   -1.4261    
   4  Prefactor     27.710        39.216        .76096E-04   -1.4655    
   5  norm          18.701        15.691        .92624E-04   -1.4843    
   6  Prefactor     .10000E-03    38.431        .41287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.044        24.511        .57847E-04   -1.4321    
  10  norm          5.5831        1.9904        .60041E-04   -1.5235    
  11  Prefactor     .10000E-03    2.2147        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7598        3.4233        .12497E-03   -1.5320    
  13  Prefactor     3.6164        6.1103        .21245E-03   -1.5328    
  14  norm          2.3059        .69920        .32959E-04   -1.5404    
  15  Prefactor     .10000E-03    13.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97175        .25006        .28690E-03   -.93983    
  17  Prefactor     .92778        .19140        .23137E-03   -.95177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05855e-11
Minuit parameter uncertainties:
  1  0.793359
  2  9.69617e-06
  3  49.4248
  4  39.2528
  5  15.6949
  6  1.99342e-05
  7  1.15235e-05
  8  2.17923e-05
  9  24.5163
  10  1.99038
  11  3.30964e-06
  12  3.42345
  13  6.11136
  14  0.699198
  15  5.43789e-05
  16  0.250361
  17  0.191538
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  5.583e+00  1.990e+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:  9.278e-01  1.915e-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.718e-01  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.19
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 5.07e-08
Energy Flux (Fixed Index): 4.88e-05 +/- 1.74e-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) = 5592.78214171
delta logL = 0.402492926862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5592.78169506
delta logL = 0.402939576019

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5592.782     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      294 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1910        1.9584        .54349E-04    .20277E-02
   2  alpha         2.5884        .40408        .97581E-02    .95540E-04
   3  Normalizat    .93100        .24616        .29223E-03    .13379E-03
   4  Prefactor     .94785        .19280        .22907E-03    .21083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.19103
  alpha      = 2.58836
  Normalizat = 0.931
  Prefactor  = 0.94785
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.782     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1910        1.9350        .10870E-04   -1.5252    
   2  alpha         2.5884        .39912        .39032E-03    .35351E-01
   3  Normalizat    .93100        .24633        .11689E-04   -.95379    
   4  Prefactor     .94785        .19293        .45814E-04   -.94489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93984e-10
Minuit parameter uncertainties:
  1  1.93502
  2  0.400839
  3  0.246632
  4  0.193068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845773': 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) = 5592.78169095
delta logL = 0.402943684127

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  5.191e+00  1.935e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.588e+00  4.008e-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:  9.478e-01  1.931e-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.310e-01  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.92
Ra Dec: 155.945 0.650
Photon Index (Free Index): 2.59 +/- 0.40
Photon Flux (Free Index): 1.81e-07 +/- 7.20e-08
Energy Flux (Free Index): 4.72e-05 +/- 1.59e-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/845773/cmap_HighResolution_443836801_444096001_4FGL_J1023.7+0038_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='4.72e-05', photon_flux_error='5.07e-08', dlogl='4.03e-01', energy_flux='4.88e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-01 20:05:10.220649', photon_index_error2='0.40', photon_index2='2.59', ts='19.19', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.97', time_epoch_completed='1630551910.22', return_code='0', job_id='845773', GAL2='0.95', EG2='0.93', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.20e-08', ts2='19.92', photon_index='2.23' WHERE bin_id='789' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:05:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 845773: <4FGL_J1023.7+0038_daily_bin789> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin789 155.945 0.6499 443836801 444096001 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 :                                   474.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            864 sec.

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

