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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin241
RA = 155.945, Dec = 0.6499
tmin = 301795201, tmax = 302054401
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='842711', job_status='RUN', time_executed='2021-09-01 19:45:54.957370', time_epoch_executed='1630550754.96' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842711/ft1_4FGL_J1023.7+0038_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842711/ft2_4FGL_J1023.7+0038_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842711/ft1_4FGL_J1023.7+0038_daily_bin241.fits outfile=/scratch/kocevski/842711/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin241.fits ra=155.945 dec=0.6499 rad=12.0 tmin=301795201.0 tmax=302054401.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.14
user 3.83
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842711/ft1_filtered_4FGL_J1023.7+0038_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/842711/ft2_4FGL_J1023.7+0038_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/842711/ltcube_301795201_302054401_4FGL_J1023.7+0038_daily_bin241.fits outfile=/scratch/kocevski/842711/expmap_301795201_302054401_4FGL_J1023.7+0038_daily_bin241.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/842711/ltcube_301795201_302054401_4FGL_J1023.7+0038_daily_bin241.fits
.....................!
real 189.77
user 185.25
sys 4.11

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/842711/ft1_filtered_4FGL_J1023.7+0038_daily_bin241.fits scfile=/scratch/kocevski/842711/ft2_4FGL_J1023.7+0038_daily_bin241.fits outfile=/scratch/kocevski/842711/cmap_301795201_302054401_4FGL_J1023.7+0038_daily_bin241.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=155.945 yref=0.6499 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842711/ft1_filtered_4FGL_J1023.7+0038_daily_bin241.fits scfile=/scratch/kocevski/842711/ft2_4FGL_J1023.7+0038_daily_bin241.fits outfile=/scratch/kocevski/842711/cmap_HighResolution_301795201_302054401_4FGL_J1023.7+0038_daily_bin241.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.945 yref=0.6499 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842711/ft1_filtered_4FGL_J1023.7+0038_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/842711/ft2_4FGL_J1023.7+0038_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842711/Model_4FGL_J1023.7+0038_daily_bin241.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/842711/ft1_filtered_4FGL_J1023.7+0038_daily_bin241.fits.....................!
real 61.44
user 60.07
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5610       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14670E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14262E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    12.140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21409E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .30417E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0291       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8705       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9396       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3124       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .81230       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=   6054.332     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1441 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5611        .96393        .57702E-08   -.29674E-04
   2  Prefactor     .10000E-03    5.4197       -.49826E-07** at limit **
   3  Prefactor     .10000E-03    65.742        .12707E-05** at limit **
   4  Prefactor     .10001E-03    47.503        .24826E-07** at limit **
   5  norm          12.171        15.705        .34031E-05    .27329E-05
   6  Prefactor     17.849        11.851       -.12999E-05   -.17666E-04
   7  Prefactor     .10000E-03    33.169       -.30014E-06** at limit **
   8  Prefactor     .10000E-03    41.941        .10397E-05** at limit **
   9  Prefactor     .10000E-03    7.8883        .48094E-07** at limit **
  10  norm          .10000E-03    .69313        .25506E-07** at limit **
  11  Prefactor     11.080        7.9057        .27303E-07   -.13232E-03
  12  Prefactor     1.0229        3.0198        .18419E-07   -.53078E-04
  13  Prefactor     9.8770        8.3834        .80119E-07   -.86321E-04
  14  norm          .10000E-03    .21226        .21183E-08** at limit **
  15  Prefactor     2.9371        1.7536        .84733E-08   -.54516E-03
  16  Normalizat    1.3125        .20993        .34986E-07   -.26351E-04
  17  Prefactor     .81246        .15628       -.17111E-06   -.14460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 12.1713
  Prefactor  = 17.8493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0797
  Prefactor  = 1.02294
  Prefactor  = 9.87697
  norm       = 0.0001
  Prefactor  = 2.93709
  Normalizat = 1.31246
  Prefactor  = 0.812464
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.332     FROM HESSE     STATUS=OK           237 CALLS     1678 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5611        .96568        .37741E-04   -1.5331    
   2  Prefactor     .10000E-03    5.4299        .17691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    66.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    44.133        .13089       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.171        15.697        .11497E-03   -1.5010    
   6  Prefactor     17.849        11.882        .94821E-04   -1.4863    
   7  Prefactor     .10000E-03    33.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.646        .12297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.080        7.9798        .60176E-03   -1.5042    
  12  Prefactor     1.0229        2.9635        .21845E-03   -1.5506    
  13  Prefactor     9.8770        8.3664        .63773E-03   -1.5079    
  14  norm          .10000E-03    .21242        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9371        5.8353        .11845E-02   -1.5365    
  16  Normalizat    1.3125        .24965        .25945E-03   -.83195    
  17  Prefactor     .81246        .18415        .24824E-03   -.99271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37286e-10
Minuit parameter uncertainties:
  1  0.965686
  2  1.93542e-05
  3  8.29994e-06
  4  0.000979803
  5  15.7025
  6  11.8838
  7  1.4408e-05
  8  3.0641e-05
  9  5.73729e-06
  10  2.33375e-05
  11  7.98056
  12  2.96388
  13  8.36738
  14  1.21977e-08
  15  5.83639
  16  0.249878
  17  0.184294
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  2.334e-05  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:  8.125e-01  1.843e-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.312e+00  2.499e-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: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842711/likelihoodResults_301795201_302054401_4FGL_J1023.7+0038_daily_bin241.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) = 6054.33190604
delta logL = -0.000392138199459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6054.33151273
delta logL = 1.17331182992e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3325       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81233       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=   6054.292     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      304 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26017E-01    .75991E-01    .90712E-02   -.40782E-02
   2  alpha         5.0000        4.9875        .41269    ** at limit **
   3  Normalizat    1.2932        .20221        .59029E-01   -.55777E-04
   4  Prefactor     .82157        .15624        .43878E-01   -.37423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0260168
  alpha      = 5
  Normalizat = 1.2932
  Prefactor  = 0.821571
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.292     FROM HESSE     STATUS=OK            33 CALLS      337 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26017E-01    .96677E-01    .33602E-03   -1.5740    
   2  alpha         5.0000        5.0000        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2932        .24736        .26106E-03   -.83770    
   4  Prefactor     .82157        .18700        .24700E-03   -.98938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14242e-08
Minuit parameter uncertainties:
  1  0.0966776
  2  1.2592e-05
  3  0.247582
  4  0.187148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842711': 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) = 6054.2921559
delta logL = 0.0393580101982

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.602e-02  9.668e-02  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  5.000e+00  1.259e-05  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.216e-01  1.871e-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.293e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.945 0.650

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/842711/cmap_HighResolution_301795201_302054401_4FGL_J1023.7+0038_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-01 19:54:37.201481', job_id='842711', GAL2='0.82', fit_tolerance='1e-08', EG2='1.29', EG='1.31', time_epoch_completed='1630551277.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.94e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='241' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:54:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 842711: <4FGL_J1023.7+0038_daily_bin241> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin241> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:40:38 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:45: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:45:43 2021
Terminated at Wed Sep  1 19:54:38 2021
Results reported at Wed Sep  1 19:54:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin241 155.945 0.6499 301795201 302054401 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 :                                   519.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            840 sec.

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

