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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin701
RA = 155.945, Dec = 0.6499
tmin = 421027201, tmax = 421286401
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='845632', job_status='RUN', time_executed='2021-09-01 19:57:04.601166', time_epoch_executed='1630551424.6' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845632/ft1_4FGL_J1023.7+0038_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845632/ft2_4FGL_J1023.7+0038_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845632/ft1_4FGL_J1023.7+0038_daily_bin701.fits outfile=/scratch/kocevski/845632/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin701.fits ra=155.945 dec=0.6499 rad=12.0 tmin=421027201.0 tmax=421286401.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.77
user 3.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845632/ft1_filtered_4FGL_J1023.7+0038_daily_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/845632/ft2_4FGL_J1023.7+0038_daily_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/845632/ltcube_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.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/845632/ft2_4FGL_J1023.7+0038_daily_bin701.fits
.....................!
real 15.49
user 15.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845632/ft1_filtered_4FGL_J1023.7+0038_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/845632/ft2_4FGL_J1023.7+0038_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/845632/ltcube_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.fits outfile=/scratch/kocevski/845632/expmap_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.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/845632/ltcube_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.fits
.....................!
real 191.81
user 186.93
sys 4.40

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/845632/ft1_filtered_4FGL_J1023.7+0038_daily_bin701.fits scfile=/scratch/kocevski/845632/ft2_4FGL_J1023.7+0038_daily_bin701.fits outfile=/scratch/kocevski/845632/cmap_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.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/845632/ft1_filtered_4FGL_J1023.7+0038_daily_bin701.fits scfile=/scratch/kocevski/845632/ft2_4FGL_J1023.7+0038_daily_bin701.fits outfile=/scratch/kocevski/845632/cmap_HighResolution_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.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/845632/ft1_filtered_4FGL_J1023.7+0038_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/845632/ft2_4FGL_J1023.7+0038_daily_bin701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845632/Model_4FGL_J1023.7+0038_daily_bin701.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/845632/ft1_filtered_4FGL_J1023.7+0038_daily_bin701.fits.....................!
real 59.37
user 57.97
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61150       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.982       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34443E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    41.685       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    226.07       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11778E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12852E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21548       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.316       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .99681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0967       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=   5842.934     FROM MIGRAD    STATUS=CONVERGED    313 CALLS     1590 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61166        .68351        .12502E-06    .27820E-03
   2  Prefactor     29.991        26.277        .56358E-06    .20635E-04
   3  Prefactor     .10000E-03    21.461       -.17534E-06** at limit **
   4  Prefactor     .10000E-03    89.233       -.31929E-05** at limit **
   5  norm          41.683        30.217       -.26271E-06   -.15971E-05
   6  Prefactor     .10000E-03    4.6887        .79890E-06** at limit **
   7  Prefactor     226.16        100.90        .14033E-05    .52276E-04
   8  Prefactor     .10000E-03    27.422        .13357E-05** at limit **
   9  Prefactor     .10000E-03    19.813        .15647E-05** at limit **
  10  norm          1.9001        1.5872        .91209E-07    .10644E-03
  11  Prefactor     21.004        10.621        .18182E-06   -.76378E-04
  12  Prefactor     8.2205        4.4466        .25408E-06    .83229E-04
  13  Prefactor     .10000E-03    4.2573        .65390E-07** at limit **
  14  norm          .21476        .40474        .15401E-06    .11786E-02
  15  Prefactor     11.326        8.7203        .25328E-07    .58815E-05
  16  Normalizat    .99534        .28019       -.67301E-05   -.43173E-04
  17  Prefactor     1.0977        .20573        .38639E-05   -.21292E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.611656
  Prefactor  = 29.9908
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 41.6833
  Prefactor  = 0.0001
  Prefactor  = 226.158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90005
  Prefactor  = 21.0045
  Prefactor  = 8.2205
  Prefactor  = 0.0001
  norm       = 0.21476
  Prefactor  = 11.3259
  Normalizat = 0.995336
  Prefactor  = 1.09768
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.934     FROM HESSE     STATUS=OK           229 CALLS     1819 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61166        .65887        .63104E-03   -1.5552    
   2  Prefactor     29.991        26.254        .73171E-04   -1.4612    
   3  Prefactor     .10000E-03    21.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    90.525        .21331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          41.683        30.213        .62088E-04   -1.4416    
   6  Prefactor     .10000E-03    4.7324        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     226.16        101.26        .13455E-03   -1.2689    
   8  Prefactor     .10000E-03    27.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9001        1.5777        .83683E-04   -1.5432    
  11  Prefactor     21.004        10.616        .87403E-04   -1.4791    
  12  Prefactor     8.2205        4.4440        .11214E-03   -1.5134    
  13  Prefactor     .10000E-03    4.2884        .15398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21476        .35687        .62004E-03   -1.5615    
  15  Prefactor     11.326        8.5500        .11909E-03   -1.5035    
  16  Normalizat    .99534        .28093        .31352E-03   -.93187    
  17  Prefactor     1.0977        .20719        .23545E-03   -.89541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15258e-10
Minuit parameter uncertainties:
  1  0.658878
  2  26.2642
  3  1.28003e-05
  4  0.000772173
  5  30.2246
  6  3.24251e-05
  7  101.338
  8  0.000143169
  9  0.000105528
  10  1.57776
  11  10.6167
  12  4.44419
  13  6.06212e-06
  14  0.356875
  15  8.55092
  16  0.281348
  17  0.207337
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.900e+00  1.578e+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.098e+00  2.073e-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:  9.953e-01  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.38e-05

TS (Fixed Index): 2.46
Ra Dec: 155.945 0.650
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/845632/likelihoodResults_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.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) = 5842.86065127
delta logL = 0.0735678167002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5842.85747892
delta logL = 0.0767401617259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8141       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5587       1.0000          .0000       5.0000    
     3 'Normalizat'    .98046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1053       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=   5842.857     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8142        40.529        .77535E-02    .53124E-03
   2  alpha         2.5591        2.5612        .41166        .16588E-04
   3  Normalizat    .98026        .93847E-01    .71326E-01    .14675E-04
   4  Prefactor     1.1054        .78471E-01    .37390E-01    .70562E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81421
  alpha      = 2.5591
  Normalizat = 0.980259
  Prefactor  = 1.10545
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.857     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8142        1.5907        .78129E-04   -1.5439    
   2  alpha         2.5591        .86818        .19856E-01    .23643E-01
   3  Normalizat    .98026        .26244        .31557E-03   -.93695    
   4  Prefactor     1.1054        .20584        .23471E-03   -.89293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6996e-10
Minuit parameter uncertainties:
  1  1.59071
  2  0.886664
  3  0.262783
  4  0.205987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845632': 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) = 5842.85747844
delta logL = 0.0767406433897

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.814e+00  1.591e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.559e+00  8.867e-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.105e+00  2.060e-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:  9.803e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 155.945 0.650
Photon Index (Free Index): 2.56 +/- 0.89
Photon Flux (Free Index): 6.14e-08 +/- 5.57e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.31e-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/845632/cmap_HighResolution_421027201_421286401_4FGL_J1023.7+0038_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='1.64e-05', photon_flux_error='4.02e-08', dlogl='7.67e-02', energy_flux='1.66e-05', photon_flux2='6.14e-08', job_status='DONE', time_completed='2021-09-01 20:05:41.962868', photon_index_error2='0.89', photon_index2='2.56', ts='2.46', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.31e-05', EG='1.00', time_epoch_completed='1630551941.96', return_code='0', job_id='845632', GAL2='1.11', EG2='0.98', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.57e-08', ts2='2.61', photon_index='2.23' WHERE bin_id='701' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:05:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 845632: <4FGL_J1023.7+0038_daily_bin701> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin701> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:50:35 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:53:43 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:53:43 2021
Terminated at Wed Sep  1 20:05:42 2021
Results reported at Wed Sep  1 20:05:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin701 155.945 0.6499 421027201 421286401 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 :                                   517.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            907 sec.

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

