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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin999
RA = 155.945, Dec = 0.6499
tmin = 498268801, tmax = 498528001
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='847150', job_status='RUN', time_executed='2021-09-01 19:57:28.656798', time_epoch_executed='1630551448.66' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847150

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847150/ft1_4FGL_J1023.7+0038_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847150/ft2_4FGL_J1023.7+0038_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847150/ft1_4FGL_J1023.7+0038_daily_bin999.fits outfile=/scratch/kocevski/847150/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin999.fits ra=155.945 dec=0.6499 rad=12.0 tmin=498268801.0 tmax=498528001.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 4.82
user 4.57
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847150/ft1_filtered_4FGL_J1023.7+0038_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/847150/ft2_4FGL_J1023.7+0038_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/847150/ltcube_498268801_498528001_4FGL_J1023.7+0038_daily_bin999.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/847150/ft2_4FGL_J1023.7+0038_daily_bin999.fits
.....................!
real 15.65
user 15.26
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847150/ft1_filtered_4FGL_J1023.7+0038_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/847150/ft2_4FGL_J1023.7+0038_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/847150/ltcube_498268801_498528001_4FGL_J1023.7+0038_daily_bin999.fits outfile=/scratch/kocevski/847150/expmap_498268801_498528001_4FGL_J1023.7+0038_daily_bin999.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/847150/ltcube_498268801_498528001_4FGL_J1023.7+0038_daily_bin999.fits
.....................!
real 191.22
user 186.52
sys 4.34

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/847150/ft1_filtered_4FGL_J1023.7+0038_daily_bin999.fits scfile=/scratch/kocevski/847150/ft2_4FGL_J1023.7+0038_daily_bin999.fits outfile=/scratch/kocevski/847150/cmap_498268801_498528001_4FGL_J1023.7+0038_daily_bin999.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847150/ft1_filtered_4FGL_J1023.7+0038_daily_bin999.fits scfile=/scratch/kocevski/847150/ft2_4FGL_J1023.7+0038_daily_bin999.fits outfile=/scratch/kocevski/847150/cmap_HighResolution_498268801_498528001_4FGL_J1023.7+0038_daily_bin999.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/847150/ft1_filtered_4FGL_J1023.7+0038_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/847150/ft2_4FGL_J1023.7+0038_daily_bin999.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/847150/Model_4FGL_J1023.7+0038_daily_bin999.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/847150/ft1_filtered_4FGL_J1023.7+0038_daily_bin999.fits.....................!
real 46.06
user 44.76
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.253       1.0000         .10000E-03   10000.    
     5 'norm      '    23.204       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.689       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .17188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.692       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4836       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .74743       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=   4151.081     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1587 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7209        .91887        .56653E-07    .12375E-03
   2  Prefactor     5.1696        12.955       -.31479E-06    .40859E-04
   3  Prefactor     64.599        61.907       -.14605E-05    .93294E-05
   4  Prefactor     27.294        48.040       -.81032E-05    .70813E-05
   5  norm          23.227        27.417       -.10598E-04    .14773E-03
   6  Prefactor     21.746        21.505        .48807E-05    .42348E-03
   7  Prefactor     .10000E-03    43.444        .23377E-06** at limit **
   8  Prefactor     2.1593        545.08       -.33738E-04   -.15022E-04
   9  Prefactor     .10000E-03    10.689       -.23766E-06** at limit **
  10  norm          4.4749        2.5583        .46790E-07    .56470E-04
  11  Prefactor     .10000E-03    7.3339       -.36313E-07** at limit **
  12  Prefactor     .10000E-03    1.2367        .34558E-07** at limit **
  13  Prefactor     .10000E-03    6.4080        .34234E-06** at limit **
  14  norm          .17161        1.1181        .49700E-05   -.88589E-03
  15  Prefactor     17.708        18.119       -.88588E-05   -.39280E-03
  16  Normalizat    1.4836        .26230       -.57121E-06   -.30481E-04
  17  Prefactor     .74748        .19710       -.12985E-08   -.33946E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7209
  Prefactor  = 5.16957
  Prefactor  = 64.5993
  Prefactor  = 27.2945
  norm       = 23.2269
  Prefactor  = 21.7465
  Prefactor  = 0.0001
  Prefactor  = 2.15928
  Prefactor  = 0.0001
  norm       = 4.47494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.171614
  Prefactor  = 17.7084
  Normalizat = 1.48355
  Prefactor  = 0.747483
 **********
 **   18 **HESSE 
 **********

 FCN=   4151.081     FROM HESSE     STATUS=OK           223 CALLS     1810 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7209        .91418        .42874E-04   -1.5446    
   2  Prefactor     5.1696        12.925        .17671E-03   -1.5253    
   3  Prefactor     64.599        61.947        .49921E-04   -1.4099    
   4  Prefactor     27.294        48.092        .76740E-04   -1.4663    
   5  norm          23.227        27.309        .83154E-04   -1.4744    
   6  Prefactor     21.746        20.911        .86006E-04   -1.4775    
   7  Prefactor     .10000E-03    43.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1593        511.71        .26022E-03   -1.5414    
   9  Prefactor     .10000E-03    10.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4749        2.5566        .73866E-04   -1.5285    
  11  Prefactor     .10000E-03    7.3849        .17031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2420        .69961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4522        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .17161        1.1596        .92205E-04   -1.5625    
  15  Prefactor     17.708        18.305        .95220E-04   -1.4866    
  16  Normalizat    1.4836        .31385        .26140E-03   -.78242    
  17  Prefactor     .74748        .23382        .27345E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71104e-10
Minuit parameter uncertainties:
  1  0.914191
  2  12.9323
  3  62.0094
  4  48.1607
  5  27.3241
  6  20.9179
  7  0.000245269
  8  67.0669
  9  0.000107898
  10  2.55666
  11  4.16615e-05
  12  4.49595e-07
  13  2.13677e-05
  14  0.891966
  15  18.3104
  16  0.314266
  17  0.234133
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  4.475e+00  2.557e+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:  7.475e-01  2.341e-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.484e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 6.51e-08
Energy Flux (Fixed Index): 3.91e-05 +/- 2.24e-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) = 4150.54591487
delta logL = 0.535410087174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4150.53798818
delta logL = 0.54333677763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5731       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0307       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80263       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=   4150.538     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5731        2.8437        .55733E-04    .61440E-03
   2  alpha         3.0309        .85757        .11820E-01    .28557E-04
   3  Normalizat    1.3819        .32093        .26855E-03   -.11091E-04
   4  Prefactor     .80260        .24247        .26453E-03   -.61372E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.57307
  alpha      = 3.03088
  Normalizat = 1.38191
  Prefactor  = 0.8026
 **********
 **   18 **HESSE 
 **********

 FCN=   4150.538     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5731        2.6527        .22293E-05   -1.5330    
   2  alpha         3.0309        .80126        .47279E-03    .21398    
   3  Normalizat    1.3819        .31977        .10742E-04   -.81153    
   4  Prefactor     .80260        .24164        .10581E-04   -.99633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02325e-11
Minuit parameter uncertainties:
  1  2.65275
  2  0.816374
  3  0.320236
  4  0.241956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847150': 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) = 4150.53798809
delta logL = 0.543336869042

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.573e+00  2.653e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  3.031e+00  8.164e-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.026e-01  2.420e-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.382e+00  3.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.94
Ra Dec: 155.945 0.650
Photon Index (Free Index): 3.03 +/- 0.82
Photon Flux (Free Index): 1.96e-07 +/- 1.15e-07
Energy Flux (Free Index): 4.06e-05 +/- 1.98e-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/847150/cmap_HighResolution_498268801_498528001_4FGL_J1023.7+0038_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='4.06e-05', photon_flux_error='6.51e-08', dlogl='5.43e-01', energy_flux='3.91e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-01 20:04:58.171616', photon_index_error2='0.82', photon_index2='3.03', ts='5.81', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.48', time_epoch_completed='1630551898.17', return_code='0', job_id='847150', GAL2='0.80', EG2='1.38', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='1.15e-07', ts2='6.94', photon_index='2.23' WHERE bin_id='999' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:04:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 847150: <4FGL_J1023.7+0038_daily_bin999> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin999> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:55:38 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:57:19 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:57:19 2021
Terminated at Wed Sep  1 20:04:58 2021
Results reported at Wed Sep  1 20:04:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin999 155.945 0.6499 498268801 498528001 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 :                                   445.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             386.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            560 sec.

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

