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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin746
RA = 155.945, Dec = 0.6499
tmin = 432691201, tmax = 432950401
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='845703', job_status='RUN', time_executed='2021-09-01 19:57:27.260008', time_epoch_executed='1630551447.26' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845703/ft1_4FGL_J1023.7+0038_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845703/ft2_4FGL_J1023.7+0038_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845703/ft1_4FGL_J1023.7+0038_daily_bin746.fits outfile=/scratch/kocevski/845703/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin746.fits ra=155.945 dec=0.6499 rad=12.0 tmin=432691201.0 tmax=432950401.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 5.35
user 5.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845703/ft1_filtered_4FGL_J1023.7+0038_daily_bin746.fits" evtable="EVENTS" scfile=/scratch/kocevski/845703/ft2_4FGL_J1023.7+0038_daily_bin746.fits sctable="SC_DATA" outfile=/scratch/kocevski/845703/ltcube_432691201_432950401_4FGL_J1023.7+0038_daily_bin746.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/845703/ft2_4FGL_J1023.7+0038_daily_bin746.fits
.....................!
real 13.43
user 12.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845703/ft1_filtered_4FGL_J1023.7+0038_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/845703/ft2_4FGL_J1023.7+0038_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/845703/ltcube_432691201_432950401_4FGL_J1023.7+0038_daily_bin746.fits outfile=/scratch/kocevski/845703/expmap_432691201_432950401_4FGL_J1023.7+0038_daily_bin746.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/845703/ltcube_432691201_432950401_4FGL_J1023.7+0038_daily_bin746.fits
.....................!
real 190.97
user 185.58
sys 4.44

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/845703/ft1_filtered_4FGL_J1023.7+0038_daily_bin746.fits scfile=/scratch/kocevski/845703/ft2_4FGL_J1023.7+0038_daily_bin746.fits outfile=/scratch/kocevski/845703/cmap_432691201_432950401_4FGL_J1023.7+0038_daily_bin746.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845703/ft1_filtered_4FGL_J1023.7+0038_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/845703/ft2_4FGL_J1023.7+0038_daily_bin746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845703/Model_4FGL_J1023.7+0038_daily_bin746.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/845703/ft1_filtered_4FGL_J1023.7+0038_daily_bin746.fits.....................!
real 50.02
user 48.73
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26295E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46462E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    11.052       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15990E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24428E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.274       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1172       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36410       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.109       1.0000         .10000E-03   10000.    
    14 'norm      '    .61657       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.332       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .87040       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0656       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=   4826.609     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1273 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .36283        .27150E-01** at limit **
   2  Prefactor     .10000E-03    11.081        .10722E-01** at limit **
   3  Prefactor     7.4905        23.625        .37978E-02   -.30773E-04
   4  Prefactor     .10000E-03    40.010        .92528E-02** at limit **
   5  norm          10.986        11.079        .30128E-02   -.11134E-02
   6  Prefactor     .10000E-03    5.8056        .90712E-02** at limit **
   7  Prefactor     7.8413        91.732        .36841E-02    .12184E-03
   8  Prefactor     .10001E-03    42.344        .10020E-01** at limit **
   9  Prefactor     20.755        19.319        .22238E-02   -.24370E-04
  10  norm          7.1147        2.3033        .37591E-02    .30961E-03
  11  Prefactor     .10000E-03    6.8803        .62683E-01** at limit **
  12  Prefactor     .36434        2.2058        .10703E-01    .13352E-02
  13  Prefactor     16.048        9.2038        .24948E-02   -.38552E-04
  14  norm          .61507        .68389        .11437E-01   -.16934E-02
  15  Prefactor     11.432        10.842        .29752E-02   -.60223E-03
  16  Normalizat    .86947        .22399        .65922E-01    .11500E-03
  17  Prefactor     1.0656        .17204        .39069E-01   -.13152E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.49046
  Prefactor  = 0.000100002
  norm       = 10.9861
  Prefactor  = 0.0001
  Prefactor  = 7.84133
  Prefactor  = 0.000100008
  Prefactor  = 20.7548
  norm       = 7.1147
  Prefactor  = 0.000100003
  Prefactor  = 0.364342
  Prefactor  = 16.0483
  norm       = 0.615068
  Prefactor  = 11.4322
  Normalizat = 0.869467
  Prefactor  = 1.06559
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.609     FROM HESSE     STATUS=OK           223 CALLS     1496 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9589        .78605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.156        .21444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4905        23.609        .15191E-03   -1.5161    
   4  Prefactor     .10000E-03    40.299        .18506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.986        11.076        .12051E-03   -1.5045    
   6  Prefactor     .10000E-03    5.8167        .16340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8413        91.736        .14736E-03   -1.5148    
   8  Prefactor     .10001E-03    42.371        .20041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.755        19.285        .88953E-04   -1.4797    
  10  norm          7.1147        2.2889        .56871E-04   -1.5174    
  11  Prefactor     .10000E-03    21.912        .34367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36434        2.1155        .19936E-03   -1.5587    
  13  Prefactor     16.048        9.1864        .99790E-04   -1.4907    
  14  norm          .61507        .64631        .53016E-03   -1.5551    
  15  Prefactor     11.432        10.814        .11901E-03   -1.5032    
  16  Normalizat    .86947        .25764        .29162E-03   -.97541    
  17  Prefactor     1.0656        .20218        .21336E-03   -.90574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25047e-09
Minuit parameter uncertainties:
  1  4.55762e-05
  2  0.000243989
  3  23.6381
  4  0.000519534
  5  11.0783
  6  0.000103945
  7  53.7439
  8  0.00115637
  9  19.2909
  10  2.28891
  11  0.000525869
  12  1.75572
  13  9.18723
  14  0.646313
  15  10.8162
  16  0.258005
  17  0.202323
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  7.115e+00  2.289e+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.066e+00  2.023e-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:  8.695e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.87
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.81e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 6.22e-05 +/- 2.00e-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) = 4824.87684156
delta logL = 1.73230843693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4824.75063762
delta logL = 1.8585123839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7661       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5436       1.0000          .0000       5.0000    
     3 'Normalizat'    .94632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0376       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=   4824.751     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7630        2.1873        .41816E-02   -.39977E-04
   2  alpha         1.5433        .30095        .18903       -.22665E-04
   3  Normalizat    .94633        .21622        .45491E-01    .11827E-04
   4  Prefactor     1.0376        .17369        .40699E-01    .32138E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.76297
  alpha      = 1.54327
  Normalizat = 0.946326
  Prefactor  = 1.03757
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.751     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .96E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7630        2.5721        .56876E-04   -1.5228    
   2  alpha         1.5433        .35999        .81984E-03   -.39271    
   3  Normalizat    .94633        .25051        .28106E-03   -.94851    
   4  Prefactor     1.0376        .20132        .21621E-03   -.91487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63352e-15
Minuit parameter uncertainties:
  1  2.57212
  2  0.361468
  3  0.250821
  4  0.201463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845703': 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) = 4824.75063683
delta logL = 1.85851316602

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  5.763e+00  2.572e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.543e+00  3.615e-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.038e+00  2.015e-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.463e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.75
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.54 +/- 0.36
Photon Flux (Free Index): 9.99e-08 +/- 5.10e-08
Energy Flux (Free Index): 8.17e-05 +/- 3.41e-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/845703/cmap_HighResolution_432691201_432950401_4FGL_J1023.7+0038_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-07', energy_flux2='8.17e-05', photon_flux_error='5.83e-08', dlogl='1.86e+00', energy_flux='6.22e-05', photon_flux2='9.99e-08', job_status='DONE', time_completed='2021-09-01 20:04:50.797717', photon_index_error2='0.36', photon_index2='1.54', ts='38.87', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='0.87', time_epoch_completed='1630551890.8', return_code='0', job_id='845703', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='5.10e-08', ts2='42.75', photon_index='2.23' WHERE bin_id='746' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 845703: <4FGL_J1023.7+0038_daily_bin746> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin746 155.945 0.6499 432691201 432950401 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 :                                   441.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             249.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            850 sec.

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

