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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin816
RA = 155.945, Dec = 0.6499
tmin = 450835201, tmax = 451094401
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='845821', job_status='RUN', time_executed='2021-09-01 19:58:07.170302', time_epoch_executed='1630551487.17' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845821/ft1_4FGL_J1023.7+0038_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845821/ft2_4FGL_J1023.7+0038_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845821/ft1_4FGL_J1023.7+0038_daily_bin816.fits outfile=/scratch/kocevski/845821/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin816.fits ra=155.945 dec=0.6499 rad=12.0 tmin=450835201.0 tmax=451094401.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.42
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845821/ft1_filtered_4FGL_J1023.7+0038_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/845821/ft2_4FGL_J1023.7+0038_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/845821/ltcube_450835201_451094401_4FGL_J1023.7+0038_daily_bin816.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/845821/ft2_4FGL_J1023.7+0038_daily_bin816.fits
.....................!
real 16.55
user 16.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845821/ft1_filtered_4FGL_J1023.7+0038_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/845821/ft2_4FGL_J1023.7+0038_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/845821/ltcube_450835201_451094401_4FGL_J1023.7+0038_daily_bin816.fits outfile=/scratch/kocevski/845821/expmap_450835201_451094401_4FGL_J1023.7+0038_daily_bin816.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/845821/ltcube_450835201_451094401_4FGL_J1023.7+0038_daily_bin816.fits
.....................!
real 192.31
user 187.29
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/845821/ft1_filtered_4FGL_J1023.7+0038_daily_bin816.fits scfile=/scratch/kocevski/845821/ft2_4FGL_J1023.7+0038_daily_bin816.fits outfile=/scratch/kocevski/845821/cmap_450835201_451094401_4FGL_J1023.7+0038_daily_bin816.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845821/ft1_filtered_4FGL_J1023.7+0038_daily_bin816.fits scfile=/scratch/kocevski/845821/ft2_4FGL_J1023.7+0038_daily_bin816.fits outfile=/scratch/kocevski/845821/cmap_HighResolution_450835201_451094401_4FGL_J1023.7+0038_daily_bin816.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.945 yref=0.6499 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.034       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.797       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33669E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7936       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0137       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0812       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90140       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=   5883.805     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2074 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .44635        .73522E-03** at limit **
   2  Prefactor     12.027        10.864        .11548E-03    .29338E-04
   3  Prefactor     .10000E-03    21.265        .18142E-02** at limit **
   4  Prefactor     .10000E-03    18.722        .18142E-02** at limit **
   5  norm          .10000E-03    9.1538        .18142E-02** at limit **
   6  Prefactor     10.798        14.231        .12193E-03    .15179E-03
   7  Prefactor     .10000E-03    75.088        .16178    ** at limit **
   8  Prefactor     31.621        87.892        .71190E-04    .89429E-05
   9  Prefactor     .10000E-03    40.034        .18142E-02** at limit **
  10  norm          3.7939        1.7755        .66521E-04    .59816E-05
  11  Prefactor     12.889        8.5095        .11158E-03   -.16811E-04
  12  Prefactor     1.7391        3.3994        .18771E-03    .36703E-04
  13  Prefactor     .10000E-03    11.230        .36285E-03** at limit **
  14  norm          2.0137        .69663        .36138E-04   -.59300E-03
  15  Prefactor     .10000E-03    13.732        .36285E-03** at limit **
  16  Normalizat    1.0810        .23751        .26909E-03   -.73428E-04
  17  Prefactor     .90148        .17519        .22782E-03    .47957E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.0267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.798
  Prefactor  = 0.0001
  Prefactor  = 31.6212
  Prefactor  = 0.0001
  norm       = 3.79387
  Prefactor  = 12.8885
  Prefactor  = 1.73907
  Prefactor  = 0.0001
  norm       = 2.0137
  Prefactor  = 0.0001
  Normalizat = 1.08103
  Prefactor  = 0.90148
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.805     FROM HESSE     STATUS=OK           215 CALLS     2289 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .44689        .14704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.027        10.864        .46190E-05   -1.5014    
   3  Prefactor     .10000E-03    21.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.1560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.798        14.227        .48773E-05   -1.5051    
   7  Prefactor     .10000E-03    79.931        .15562       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.621        87.879        .28476E-05   -1.4583    
   9  Prefactor     .10000E-03    40.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7939        1.7754        .26609E-05   -1.5318    
  11  Prefactor     12.889        8.5091        .44634E-05   -1.4990    
  12  Prefactor     1.7391        3.3989        .75082E-05   -1.5444    
  13  Prefactor     .10000E-03    11.231        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0137        .69663        .14455E-05   -1.5424    
  15  Prefactor     .10000E-03    13.732        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0810        .23773        .10764E-04   -.90363    
  17  Prefactor     .90148        .17536        .91126E-05   -.96089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82331e-10
Minuit parameter uncertainties:
  1  1.70027e-05
  2  10.8658
  3  5.71883e-05
  4  1.77423e-05
  5  6.73885e-06
  6  14.2315
  7  0.000392728
  8  88.2415
  9  1.85187e-05
  10  1.77545
  11  8.50986
  12  3.39926
  13  3.40253e-05
  14  0.696636
  15  3.04426e-05
  16  0.237964
  17  0.175472
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.794e+00  1.775e+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.015e-01  1.755e-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.081e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.97
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.66e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.55e-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) = 5883.47916468
delta logL = 0.325507850664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5883.44619284
delta logL = 0.358479687062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2917       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7701       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88846       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=   5883.446     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2912        1.6231        .55790E-02    .10971E-03
   2  alpha         1.7699        .42370        .32153       -.27938E-04
   3  Normalizat    1.1152        .19048        .60077E-01    .70941E-05
   4  Prefactor     .88835        .14852        .44858E-01    .32531E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.29118
  alpha      = 1.76992
  Normalizat = 1.1152
  Prefactor  = 0.888353
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.446     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2912        1.9429        .66177E-04   -1.5345    
   2  alpha         1.7699        .54354        .13197E-01   -.29635    
   3  Normalizat    1.1152        .22270        .26570E-03   -.89265    
   4  Prefactor     .88835        .17326        .22939E-03   -.96549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54313e-10
Minuit parameter uncertainties:
  1  1.94292
  2  0.548334
  3  0.222893
  4  0.173372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845821': 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) = 5883.44619253
delta logL = 0.358480004375

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.291e+00  1.943e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.770e+00  5.483e-01  0.000e+00  5.000e+00 ( 1.000e+00)
216         beta:  1.811e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
217           Eb:  5.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  8.884e-01  1.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:  1.115e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.74
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.77 +/- 0.55
Photon Flux (Free Index): 6.21e-08 +/- 4.77e-08
Energy Flux (Free Index): 3.61e-05 +/- 1.88e-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/845821/cmap_HighResolution_450835201_451094401_4FGL_J1023.7+0038_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.66e-08', energy_flux2='3.61e-05', photon_flux_error='4.52e-08', dlogl='3.58e-01', energy_flux='3.32e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-01 20:06:52.908197', photon_index_error2='0.55', photon_index2='1.77', ts='9.97', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.08', time_epoch_completed='1630552012.91', return_code='0', job_id='845821', GAL2='0.89', EG2='1.12', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.77e-08', ts2='10.74', photon_index='2.23' WHERE bin_id='816' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 845821: <4FGL_J1023.7+0038_daily_bin816> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin816> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:50:51 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:55:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:55:02 2021
Terminated at Wed Sep  1 20:06:53 2021
Results reported at Wed Sep  1 20:06:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin816 155.945 0.6499 450835201 451094401 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 :                                   524.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            962 sec.

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

