/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 93 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 = 7398
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.7+0038_daily_bin30
RA = 155.945, Dec = 0.6499
tmin = 247104001, tmax = 247363201
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='841345', job_status='RUN', time_executed='2021-09-01 19:42:04.064269', time_epoch_executed='1630550524.06' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841345/ft1_4FGL_J1023.7+0038_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841345/ft2_4FGL_J1023.7+0038_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841345/ft1_4FGL_J1023.7+0038_daily_bin30.fits outfile=/scratch/kocevski/841345/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin30.fits ra=155.945 dec=0.6499 rad=12.0 tmin=247104001.0 tmax=247363201.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 1.53
user 1.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841345/ft1_filtered_4FGL_J1023.7+0038_daily_bin30.fits" evtable="EVENTS" scfile=/scratch/kocevski/841345/ft2_4FGL_J1023.7+0038_daily_bin30.fits sctable="SC_DATA" outfile=/scratch/kocevski/841345/ltcube_247104001_247363201_4FGL_J1023.7+0038_daily_bin30.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/841345/ft2_4FGL_J1023.7+0038_daily_bin30.fits
.....................!
real 14.11
user 13.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841345/ft1_filtered_4FGL_J1023.7+0038_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/841345/ft2_4FGL_J1023.7+0038_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/841345/ltcube_247104001_247363201_4FGL_J1023.7+0038_daily_bin30.fits outfile=/scratch/kocevski/841345/expmap_247104001_247363201_4FGL_J1023.7+0038_daily_bin30.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/841345/ltcube_247104001_247363201_4FGL_J1023.7+0038_daily_bin30.fits
.....................!
real 190.21
user 184.85
sys 4.97

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/841345/ft1_filtered_4FGL_J1023.7+0038_daily_bin30.fits scfile=/scratch/kocevski/841345/ft2_4FGL_J1023.7+0038_daily_bin30.fits outfile=/scratch/kocevski/841345/cmap_247104001_247363201_4FGL_J1023.7+0038_daily_bin30.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841345/ft1_filtered_4FGL_J1023.7+0038_daily_bin30.fits scfile=/scratch/kocevski/841345/ft2_4FGL_J1023.7+0038_daily_bin30.fits outfile=/scratch/kocevski/841345/cmap_HighResolution_247104001_247363201_4FGL_J1023.7+0038_daily_bin30.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/841345/ft1_filtered_4FGL_J1023.7+0038_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/841345/ft2_4FGL_J1023.7+0038_daily_bin30.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/841345/Model_4FGL_J1023.7+0038_daily_bin30.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/841345/ft1_filtered_4FGL_J1023.7+0038_daily_bin30.fits.....................!
real 84.13
user 80.88
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0270       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1832       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12811E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10366E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.974       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12284E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7486       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0944       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .74548       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1258       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=   9041.777     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1351 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0268        .60224        .72651E-02   -.26435E-03
   2  Prefactor     44.324        13.094        .15060E-02    .34361E-02
   3  Prefactor     3.0715        76.268        .56782E-02    .57586E-03
   4  Prefactor     .10001E-03    33.386        .90712E-02** at limit **
   5  norm          .10000E-03    3.2517        .90712E-02** at limit **
   6  Prefactor     26.971        9.6871        .19284E-02    .20134E-02
   7  Prefactor     .10000E-03    18.657        .90712E-02** at limit **
   8  Prefactor     .10000E-03    25.189        .90712E-02** at limit **
   9  Prefactor     .10000E-03    4.6613        .90712E-02** at limit **
  10  norm          2.7944        1.2878        .60842E-02   -.45988E-03
  11  Prefactor     2.8630        4.2038        .60050E-02    .10860E-02
  12  Prefactor     2.7489        2.5855        .61388E-02    .12896E-02
  13  Prefactor     .10000E-03    3.0291        .90712E-02** at limit **
  14  norm          1.0949        .48303        .92902E-02    .30394E-02
  15  Prefactor     .10000E-03    3.6503        .90712E-02** at limit **
  16  Normalizat    .74554        .16529        .69653E-01    .77917E-03
  17  Prefactor     1.1256        .13065        .36681E-01    .83508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02683
  Prefactor  = 44.3244
  Prefactor  = 3.07154
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 26.9714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79436
  Prefactor  = 2.86296
  Prefactor  = 2.74886
  Prefactor  = 0.0001
  norm       = 1.09487
  Prefactor  = 0.0001
  Normalizat = 0.745536
  Prefactor  = 1.12561
 **********
 **   18 **HESSE 
 **********

 FCN=   9041.777     FROM HESSE     STATUS=OK           217 CALLS     1568 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0268        .60038        .38223E-04   -1.5423    
   2  Prefactor     44.324        13.105        .30119E-03   -1.4375    
   3  Prefactor     3.0715        76.053        .11356E-02   -1.5357    
   4  Prefactor     .10001E-03    33.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2527        .16745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.971        9.6883        .77135E-04   -1.4669    
   7  Prefactor     .10000E-03    18.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7944        1.2824        .69498E-04   -1.5374    
  11  Prefactor     2.8630        4.1849        .22404E-03   -1.5370    
  12  Prefactor     2.7489        2.5834        .13957E-03   -1.5376    
  13  Prefactor     .10000E-03    3.0701        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0949        .47417        .41711E-04   -1.5499    
  15  Prefactor     .10000E-03    3.6755        .17702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .74554        .18983        .30823E-03   -1.0212    
  17  Prefactor     1.1256        .15094        .21195E-03   -.88652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97721e-09
Minuit parameter uncertainties:
  1  0.600384
  2  13.1054
  3  30.6111
  4  0.00130274
  5  3.7964e-06
  6  9.68891
  7  3.34708e-05
  8  0.000167735
  9  1.54756e-05
  10  1.2824
  11  4.18533
  12  2.58349
  13  2.219e-05
  14  0.474174
  15  5.82869e-05
  16  0.190001
  17  0.150998
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.794e+00  1.282e+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.126e+00  1.510e-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:  7.455e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.68
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.12e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.12e-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) = 9041.37895797
delta logL = 0.398017751309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9041.37752792
delta logL = 0.399447796488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4916       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6426       1.0000          .0000       5.0000    
     3 'Normalizat'    .72028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1391       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=   9041.378     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      234 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4905        19.333        .64737E-03    .20092E-02
   2  alpha         2.6430        3.7517        .33443        .43719E-04
   3  Normalizat    .72036        .97733E-01    .70717E-01    .34315E-04
   4  Prefactor     1.1390        .80286E-01    .36262E-01    .32443E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49052
  alpha      = 2.643
  Normalizat = 0.720362
  Prefactor  = 1.13896
 **********
 **   18 **HESSE 
 **********

 FCN=   9041.378     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4905        1.2815        .12947E-03   -1.5392    
   2  alpha         2.6430        .49092        .13552E-01    .57232E-01
   3  Normalizat    .72036        .18290        .31296E-03   -1.0309    
   4  Prefactor     1.1390        .15124        .21081E-03   -.88231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20314e-09
Minuit parameter uncertainties:
  1  1.28151
  2  0.494139
  3  0.183056
  4  0.151299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841345': 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) = 9041.37752722
delta logL = 0.399448498771

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.491e+00  1.282e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.643e+00  4.941e-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.139e+00  1.513e-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:  7.204e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.46
Ra Dec: 155.945 0.650
Photon Index (Free Index): 2.64 +/- 0.49
Photon Flux (Free Index): 9.13e-08 +/- 4.26e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/841345/cmap_HighResolution_247104001_247363201_4FGL_J1023.7+0038_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.12e-08', energy_flux2='2.31e-05', photon_flux_error='3.27e-08', dlogl='3.99e-01', energy_flux='2.44e-05', photon_flux2='9.13e-08', job_status='DONE', time_completed='2021-09-01 19:51:14.540807', photon_index_error2='0.49', photon_index2='2.64', ts='8.68', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='0.75', time_epoch_completed='1630551074.54', return_code='0', job_id='841345', GAL2='1.14', EG2='0.72', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.26e-08', ts2='9.46', photon_index='2.23' WHERE bin_id='30' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:51:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin30 155.945 0.6499 247104001 247363201 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 :                                   547.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            934 sec.

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

