/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 149 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 = 7680
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.7+0038_daily_bin441
RA = 155.945, Dec = 0.6499
tmin = 353635201, tmax = 353894401
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='844145', job_status='RUN', time_executed='2021-09-01 19:52:44.504801', time_epoch_executed='1630551164.5' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844145

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844145/ft1_4FGL_J1023.7+0038_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844145/ft2_4FGL_J1023.7+0038_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844145/ft1_4FGL_J1023.7+0038_daily_bin441.fits outfile=/scratch/kocevski/844145/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin441.fits ra=155.945 dec=0.6499 rad=12.0 tmin=353635201.0 tmax=353894401.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.63
user 3.38
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844145/ft1_filtered_4FGL_J1023.7+0038_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/844145/ft2_4FGL_J1023.7+0038_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/844145/ltcube_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.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/844145/ft2_4FGL_J1023.7+0038_daily_bin441.fits
.....................!
real 14.50
user 14.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844145/ft1_filtered_4FGL_J1023.7+0038_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/844145/ft2_4FGL_J1023.7+0038_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/844145/ltcube_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.fits outfile=/scratch/kocevski/844145/expmap_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.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/844145/ltcube_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.fits
.....................!
real 190.35
user 185.64
sys 4.28

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/844145/ft1_filtered_4FGL_J1023.7+0038_daily_bin441.fits scfile=/scratch/kocevski/844145/ft2_4FGL_J1023.7+0038_daily_bin441.fits outfile=/scratch/kocevski/844145/cmap_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844145/ft1_filtered_4FGL_J1023.7+0038_daily_bin441.fits scfile=/scratch/kocevski/844145/ft2_4FGL_J1023.7+0038_daily_bin441.fits outfile=/scratch/kocevski/844145/cmap_HighResolution_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844145/ft1_filtered_4FGL_J1023.7+0038_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/844145/ft2_4FGL_J1023.7+0038_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844145/Model_4FGL_J1023.7+0038_daily_bin441.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/844145/ft1_filtered_4FGL_J1023.7+0038_daily_bin441.fits.....................!
real 65.80
user 64.38
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.721       1.0000         .10000E-03   10000.    
     5 'norm      '    8.9379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7172       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1809       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.172       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4673       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3581       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .65734       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=   6687.996     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1614 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81579        .48437        .17679E-07   -.72689E-04
   2  Prefactor     .10000E-03    3.8539       -.32800E-06** at limit **
   3  Prefactor     40.334        35.935       -.50994E-06   -.51006E-04
   4  Prefactor     25.751        25.975       -.50316E-06   -.75684E-04
   5  norm          8.9377        9.0596       -.12201E-06    .15934E-04
   6  Prefactor     .10000E-03    2.4331       -.34917E-06** at limit **
   7  Prefactor     9.2462        59.013       -.24397E-05   -.42788E-04
   8  Prefactor     .10000E-03    13.435       -.50334E-06** at limit **
   9  Prefactor     .10000E-03    4.4988       -.29353E-06** at limit **
  10  norm          .10000E-03    .63709       -.15753E-06** at limit **
  11  Prefactor     1.7184        5.6736        .17335E-05    .10662E-03
  12  Prefactor     1.1835        3.7843        .15535E-05    .14328E-03
  13  Prefactor     11.173        9.3162       -.70948E-06   -.99446E-04
  14  norm          1.4644        .68622        .21651E-07   -.47625E-04
  15  Prefactor     9.4702        8.8427       -.21272E-07   -.32277E-04
  16  Normalizat    1.3576        .20716        .27278E-05   -.20164E-03
  17  Prefactor     .65765        .15149       -.35909E-05    .33534E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.81579
  Prefactor  = 0.0001
  Prefactor  = 40.3337
  Prefactor  = 25.7511
  norm       = 8.93769
  Prefactor  = 0.0001
  Prefactor  = 9.2462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71837
  Prefactor  = 1.18348
  Prefactor  = 11.1732
  norm       = 1.46436
  Prefactor  = 9.47018
  Normalizat = 1.35764
  Prefactor  = 0.657651
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.996     FROM HESSE     STATUS=OK           227 CALLS     1841 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81579        .47464        .42039E-04   -1.5527    
   2  Prefactor     .10000E-03    3.8641        .15678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.334        35.923        .63101E-04   -1.4437    
   4  Prefactor     25.751        25.992        .78987E-04   -1.4693    
   5  norm          8.9377        9.0531        .13407E-03   -1.5110    
   6  Prefactor     .10000E-03    2.4378        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.2462        59.765        .13132E-03   -1.5100    
   8  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5048        .16943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1488        .12561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7184        5.8239        .32065E-03   -1.5446    
  12  Prefactor     1.1835        3.8607        .25860E-03   -1.5490    
  13  Prefactor     11.173        9.2352        .11986E-03   -1.5039    
  14  norm          1.4644        .68877        .40795E-04   -1.5466    
  15  Prefactor     9.4702        8.9259        .13025E-03   -1.5092    
  16  Normalizat    1.3576        .22084        .23382E-03   -.81862    
  17  Prefactor     .65765        .15934        .25078E-03   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32439e-10
Minuit parameter uncertainties:
  1  0.474638
  2  5.19863e-06
  3  35.9425
  4  26.0036
  5  9.05451
  6  5.10085e-06
  7  47.0835
  8  1.81624e-05
  9  5.90512e-06
  10  9.82177e-08
  11  5.82578
  12  3.86151
  13  9.23642
  14  0.68877
  15  8.92714
  16  0.220998
  17  0.159452
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  9.822e-08  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:  6.577e-01  1.595e-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.358e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/844145/likelihoodResults_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.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): 102
logL (Free Index) = 6688.00018536
delta logL = -0.00415358363443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6687.99602005
delta logL = 1.1727655874e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65766       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=   6687.042     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      294 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11566        .95172E-01    .47779E-02   -.19227E-02
   2  alpha         4.9817        3.3664        .41298       -.95894E-04
   3  Normalizat    1.2689        .17817        .54349E-01   -.20805E-04
   4  Prefactor     .69861        .13643        .41835E-01   -.11872E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.115662
  alpha      = 4.98168
  Normalizat = 1.26887
  Prefactor  = 0.698605
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.042     FROM HESSE     STATUS=OK            37 CALLS      331 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11566        .10238        .21763E-03   -1.5776    
   2  alpha         4.9817        3.3600        .50000        1.4497    
   3  Normalizat    1.2689        .21202        .24032E-03   -.84500    
   4  Prefactor     .69861        .16089        .24387E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55142e-09
Minuit parameter uncertainties:
  1  0.102381
  2  0.344417
  3  0.212164
  4  0.160999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844145': 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) = 6687.0417663
delta logL = 0.954265484021

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.157e-01  1.024e-01  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  4.982e+00  3.444e-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:  6.986e-01  1.610e-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.269e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 155.945 0.650
Photon Index (Free Index): 4.98 +/- 0.34
Photon Flux (Free Index): 7.38e-08 +/- 6.11e-08
Energy Flux (Free Index): 1.02e-05 +/- 8.40e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/844145/cmap_HighResolution_353635201_353894401_4FGL_J1023.7+0038_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='9.54e-01', photon_flux2='7.38e-08', job_status='DONE', time_completed='2021-09-01 20:02:02.346277', photon_index_error2='0.34', photon_index2='4.98', ts='-0.00', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='6.24e-08', energy_flux_error2='8.40e-06', EG='1.36', time_epoch_completed='1630551722.35', return_code='0', job_id='844145', GAL2='0.70', EG2='1.27', return_code2='0', photon_flux_error2='6.11e-08', ts2='2.03', photon_index='2.23' WHERE bin_id='441' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:02:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 844145: <4FGL_J1023.7+0038_daily_bin441> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin441> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 19:45:32 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:50:07 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:50:07 2021
Terminated at Wed Sep  1 20:02:02 2021
Results reported at Wed Sep  1 20:02:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin441 155.945 0.6499 353635201 353894401 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 :                                   556.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            990 sec.

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

