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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin49
RA = 155.945, Dec = 0.6499
tmin = 252028801, tmax = 252288001
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='841373', job_status='RUN', time_executed='2021-09-01 19:41:46.550005', time_epoch_executed='1630550506.55' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841373

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841373/ft1_4FGL_J1023.7+0038_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841373/ft2_4FGL_J1023.7+0038_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841373/ft1_4FGL_J1023.7+0038_daily_bin49.fits outfile=/scratch/kocevski/841373/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin49.fits ra=155.945 dec=0.6499 rad=12.0 tmin=252028801.0 tmax=252288001.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.46
user 1.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841373/ft1_filtered_4FGL_J1023.7+0038_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/841373/ft2_4FGL_J1023.7+0038_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/841373/ltcube_252028801_252288001_4FGL_J1023.7+0038_daily_bin49.fits outfile=/scratch/kocevski/841373/expmap_252028801_252288001_4FGL_J1023.7+0038_daily_bin49.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/841373/ltcube_252028801_252288001_4FGL_J1023.7+0038_daily_bin49.fits
.....................!
real 190.30
user 185.28
sys 4.62

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/841373/ft1_filtered_4FGL_J1023.7+0038_daily_bin49.fits scfile=/scratch/kocevski/841373/ft2_4FGL_J1023.7+0038_daily_bin49.fits outfile=/scratch/kocevski/841373/cmap_252028801_252288001_4FGL_J1023.7+0038_daily_bin49.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841373/ft1_filtered_4FGL_J1023.7+0038_daily_bin49.fits scfile=/scratch/kocevski/841373/ft2_4FGL_J1023.7+0038_daily_bin49.fits outfile=/scratch/kocevski/841373/cmap_HighResolution_252028801_252288001_4FGL_J1023.7+0038_daily_bin49.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/841373/ft1_filtered_4FGL_J1023.7+0038_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/841373/ft2_4FGL_J1023.7+0038_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/841373/Model_4FGL_J1023.7+0038_daily_bin49.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/841373/ft1_filtered_4FGL_J1023.7+0038_daily_bin49.fits.....................!
real 81.35
user 79.97
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11897E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.675       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .78158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1725       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4825       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7467       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1639       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .72571       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=   8828.651     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1654 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7944        .69892       -.83568E-08    .34066E-04
   2  Prefactor     7.9528        9.1608        .22824E-05    .20406E-04
   3  Prefactor     .10000E-03    17.592        .15800E-07** at limit **
   4  Prefactor     11.773        26.731       -.88382E-06    .97327E-06
   5  norm          .10000E-03    4.2155       -.28653E-07** at limit **
   6  Prefactor     30.973        13.066       -.38039E-06    .51736E-04
   7  Prefactor     22.140        26.605       -.64195E-05    .18137E-05
   8  Prefactor     1.2680        477.81       -.35420E-05    .13897E-04
   9  Prefactor     .10000E-03    9.2550        .17362E-06** at limit **
  10  norm          .78072        .94378        .22766E-07    .46836E-04
  11  Prefactor     9.1709        5.5709       -.11713E-07   -.20952E-03
  12  Prefactor     3.1971        2.2328        .16574E-07    .15686E-04
  13  Prefactor     2.4827        2.7077       -.65773E-07   -.76278E-03
  14  norm          1.9326        .66347       -.26863E-07    .11569E-03
  15  Prefactor     4.7622        10.683        .33388E-06   -.24348E-03
  16  Normalizat    1.1640        .16384        .50465E-06   -.26406E-04
  17  Prefactor     .72564        .12189       -.20106E-06    .38998E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79436
  Prefactor  = 7.95275
  Prefactor  = 0.0001
  Prefactor  = 11.7726
  norm       = 0.0001
  Prefactor  = 30.973
  Prefactor  = 22.1399
  Prefactor  = 1.26798
  Prefactor  = 0.0001
  norm       = 0.780721
  Prefactor  = 9.17089
  Prefactor  = 3.19708
  Prefactor  = 2.48273
  norm       = 1.93264
  Prefactor  = 4.7622
  Normalizat = 1.16399
  Prefactor  = 0.725643
 **********
 **   18 **HESSE 
 **********

 FCN=   8828.651     FROM HESSE     STATUS=OK           235 CALLS     1889 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7944        .70177        .37062E-04   -1.5374    
   2  Prefactor     7.9528        9.1884        .14218E-03   -1.5144    
   3  Prefactor     .10000E-03    17.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.773        26.858        .11724E-03   -1.5022    
   5  norm          .10000E-03    4.2194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.973        12.124        .72038E-04   -1.4594    
   7  Prefactor     22.140        26.614        .85175E-04   -1.4767    
   8  Prefactor     1.2680        411.26        .34878E-03   -1.5483    
   9  Prefactor     .10000E-03    9.2627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .78072        .85648        .95367E-03   -1.5531    
  11  Prefactor     9.1709        5.6441        .66166E-03   -1.5102    
  12  Prefactor     3.1971        2.2483        .11200E-03   -1.5350    
  13  Prefactor     2.4827        5.5103        .12973E-02   -1.5393    
  14  norm          1.9326        .71982        .34732E-04   -1.5430    
  15  Prefactor     4.7622        11.637        .92341E-03   -1.5271    
  16  Normalizat    1.1640        .19625        .25333E-03   -.87723    
  17  Prefactor     .72564        .14305        .24592E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78135e-10
Minuit parameter uncertainties:
  1  0.70177
  2  9.19001
  3  3.71424e-06
  4  26.8855
  5  5.44344e-06
  6  12.1246
  7  26.628
  8  45.9917
  9  4.633e-05
  10  0.856489
  11  5.64445
  12  2.24835
  13  5.51139
  14  0.719819
  15  11.6423
  16  0.196371
  17  0.143125
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  7.807e-01  8.565e-01  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:  7.256e-01  1.431e-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.164e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 6.83e-06 +/- 7.49e-06

TS (Fixed Index): 1.13
Ra Dec: 155.945 0.650
Photon Flux Upper Limit: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841373/likelihoodResults_252028801_252288001_4FGL_J1023.7+0038_daily_bin49.txt

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) = 8828.26444351
delta logL = 0.386094771848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8828.25748283
delta logL = 0.39305545424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69588       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0272       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73388       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=   8828.257     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69665        12.796        .12046E-01    .12900E-02
   2  alpha         3.0255        3.5982        .42372        .42846E-04
   3  Normalizat    1.1447        .44220E-01    .57676E-01    .86257E-05
   4  Prefactor     .73393        .35285E-01    .42850E-01    .20131E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.696649
  alpha      = 3.02554
  Normalizat = 1.14469
  Prefactor  = 0.733933
 **********
 **   18 **HESSE 
 **********

 FCN=   8828.257     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69665        .86011        .66898E-03   -1.5541    
   2  alpha         3.0255        1.0295        .24509E-01    .21179    
   3  Normalizat    1.1447        .18226        .25506E-03   -.88330    
   4  Prefactor     .73393        .14260        .24456E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96444e-09
Minuit parameter uncertainties:
  1  0.86013
  2  1.06268
  3  0.18236
  4  0.14267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841373': 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) = 8828.25748102
delta logL = 0.393057264126

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  6.966e-01  8.601e-01  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  3.026e+00  1.063e+00  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:  7.339e-01  1.427e-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.145e+00  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 155.945 0.650
Photon Index (Free Index): 3.03 +/- 1.06
Photon Flux (Free Index): 3.79e-08 +/- 3.40e-08
Energy Flux (Free Index): 7.89e-06 +/- 6.90e-06

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/841373/cmap_HighResolution_252028801_252288001_4FGL_J1023.7+0038_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='7.89e-06', photon_flux_error='2.18e-08', dlogl='3.93e-01', energy_flux='6.83e-06', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-01 19:52:03.702281', photon_index_error2='1.06', photon_index2='3.03', ts='1.13', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='6.97e-08', energy_flux_error2='6.90e-06', EG='1.16', time_epoch_completed='1630551123.7', return_code='0', job_id='841373', GAL2='0.73', EG2='1.14', return_code2='0', energy_flux_error='7.49e-06', photon_flux_error2='3.40e-08', ts2='1.92', photon_index='2.23' WHERE bin_id='49' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 841373: <4FGL_J1023.7+0038_daily_bin49> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin49 155.945 0.6499 252028801 252288001 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 :                                   616.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            980 sec.

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

