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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin773
RA = 155.945, Dec = 0.6499
tmin = 439689601, tmax = 439948801
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='845746', job_status='RUN', time_executed='2021-09-01 19:56:48.639387', time_epoch_executed='1630551408.64' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845746

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845746/ft1_4FGL_J1023.7+0038_daily_bin773.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845746/ft2_4FGL_J1023.7+0038_daily_bin773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845746/ft1_4FGL_J1023.7+0038_daily_bin773.fits outfile=/scratch/kocevski/845746/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin773.fits ra=155.945 dec=0.6499 rad=12.0 tmin=439689601.0 tmax=439948801.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.46
user 4.15
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845746/ft1_filtered_4FGL_J1023.7+0038_daily_bin773.fits" evtable="EVENTS" scfile=/scratch/kocevski/845746/ft2_4FGL_J1023.7+0038_daily_bin773.fits sctable="SC_DATA" outfile=/scratch/kocevski/845746/ltcube_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.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/845746/ft2_4FGL_J1023.7+0038_daily_bin773.fits
.....................!
real 14.92
user 14.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845746/ft1_filtered_4FGL_J1023.7+0038_daily_bin773.fits evtable="EVENTS" scfile=/scratch/kocevski/845746/ft2_4FGL_J1023.7+0038_daily_bin773.fits sctable="SC_DATA" expcube=/scratch/kocevski/845746/ltcube_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.fits outfile=/scratch/kocevski/845746/expmap_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.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/845746/ltcube_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.fits
.....................!
real 191.49
user 185.82
sys 5.21

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/845746/ft1_filtered_4FGL_J1023.7+0038_daily_bin773.fits scfile=/scratch/kocevski/845746/ft2_4FGL_J1023.7+0038_daily_bin773.fits outfile=/scratch/kocevski/845746/cmap_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845746/ft1_filtered_4FGL_J1023.7+0038_daily_bin773.fits scfile=/scratch/kocevski/845746/ft2_4FGL_J1023.7+0038_daily_bin773.fits outfile=/scratch/kocevski/845746/cmap_HighResolution_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.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/845746/ft1_filtered_4FGL_J1023.7+0038_daily_bin773.fits evtable="EVENTS" scfile=/scratch/kocevski/845746/ft2_4FGL_J1023.7+0038_daily_bin773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845746/Model_4FGL_J1023.7+0038_daily_bin773.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/845746/ft1_filtered_4FGL_J1023.7+0038_daily_bin773.fits.....................!
real 59.96
user 58.56
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71908       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.019       1.0000         .10000E-03   10000.    
     5 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5114       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0050       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49701       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12798E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0393       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.862       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .61908       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2923       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=   6306.176     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1629 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71913        .51172        .33722E-07   -.23008E-03
   2  Prefactor     .10000E-03    9.3054       -.19917E-05** at limit **
   3  Prefactor     7.9530        29.320       -.15409E-04   -.68696E-05
   4  Prefactor     14.008        30.973       -.23854E-04   -.15855E-04
   5  norm          .10000E-03    6.9937       -.29973E-06** at limit **
   6  Prefactor     .10000E-03    8.5806        .43074E-05** at limit **
   7  Prefactor     .10000E-03    16.535       -.42941E-05** at limit **
   8  Prefactor     29.208        41.162       -.23850E-04   -.63476E-04
   9  Prefactor     6.5116        12.547        .69766E-05   -.67929E-04
  10  norm          1.0047        1.4899       -.78419E-07   -.98907E-03
  11  Prefactor     .49810        3.5067        .69382E-06   -.18118E-03
  12  Prefactor     .10000E-03    1.6387       -.85302E-06** at limit **
  13  Prefactor     .10000E-03    14.431        .65143E-05** at limit **
  14  norm          1.0394        .67687       -.80059E-07   -.12487E-02
  15  Prefactor     18.861        10.739       -.84203E-07   -.19109E-03
  16  Normalizat    .61926        .18962        .55826E-05   -.61904E-04
  17  Prefactor     1.2921        .15134        .52874E-07    .94557E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.719127
  Prefactor  = 0.0001
  Prefactor  = 7.95298
  Prefactor  = 14.0082
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 29.2081
  Prefactor  = 6.51162
  norm       = 1.00472
  Prefactor  = 0.498097
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 1.0394
  Prefactor  = 18.8608
  Normalizat = 0.619261
  Prefactor  = 1.29213
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.176     FROM HESSE     STATUS=OK           229 CALLS     1858 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71913        .49601        .45946E-03   -1.5538    
   2  Prefactor     .10000E-03    9.4051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9530        29.215        .14213E-03   -1.5144    
   4  Prefactor     14.008        30.830        .10697E-03   -1.4959    
   5  norm          .10000E-03    7.0118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.208        41.217        .74112E-04   -1.4627    
   9  Prefactor     6.5116        12.522        .15727E-03   -1.5198    
  10  norm          1.0047        1.4424        .10871E-03   -1.5507    
  11  Prefactor     .49810        20.002        .26986E-02   -1.5567    
  12  Prefactor     .10000E-03    10.782        .19090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0394        .66891        .44077E-04   -1.5504    
  15  Prefactor     18.861        10.806        .92222E-04   -1.4839    
  16  Normalizat    .61926        .20556        .32527E-03   -1.0717    
  17  Prefactor     1.2921        .16899        .19638E-03   -.83541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30556e-09
Minuit parameter uncertainties:
  1  0.496012
  2  2.36773e-05
  3  29.2672
  4  30.8652
  5  2.77089e-05
  6  0.000413922
  7  1.95062e-05
  8  41.2574
  9  12.5266
  10  1.44244
  11  6.31449
  12  0.000350095
  13  0.000223287
  14  0.668917
  15  10.8069
  16  0.205815
  17  0.169057
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.005e+00  1.442e+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.292e+00  1.691e-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:  6.193e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/845746/likelihoodResults_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.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) = 6304.85153096
delta logL = 1.32417367741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6304.78006062
delta logL = 1.3956440177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14009       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .52435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3479       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=   6304.780     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      279 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14015        2.6322        .40651E-02   -.16092E-02
   2  alpha         5.0000        3.5065        .46367    ** at limit **
   3  Normalizat    .52417        .10360        .79334E-01    .14644E-03
   4  Prefactor     1.3481        .84597E-01    .31823E-01    .34610E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140154
  alpha      = 5
  Normalizat = 0.524172
  Prefactor  = 1.34806
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.780     FROM HESSE     STATUS=OK            37 CALLS      316 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14015        .11810        .18443E-03   -1.5633    
   2  alpha         5.0000        3.1560        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .52417        .20669        .35135E-03   -1.1131    
   4  Prefactor     1.3481        .17127        .19270E-03   -.81889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0274e-10
Minuit parameter uncertainties:
  1  0.118098
  2  4.67808e-06
  3  0.206995
  4  0.171337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845746': 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) = 6304.78005994
delta logL = 1.39564469532

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.402e-01  1.181e-01  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  5.000e+00  4.678e-06  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.348e+00  1.713e-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:  5.242e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 155.945 0.650
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.17e-08 +/- 7.69e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.06e-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/845746/cmap_HighResolution_439689601_439948801_4FGL_J1023.7+0038_daily_bin773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='1.40e+00', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-09-01 20:05:50.339674', photon_index_error2='0.00', photon_index2='5.00', ts='0.59', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.06e-05', EG='0.62', time_epoch_completed='1630551950.34', return_code='0', job_id='845746', GAL2='1.35', EG2='0.52', return_code2='0', photon_flux_error2='7.69e-08', ts2='3.62', photon_index='2.23' WHERE bin_id='773' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 845746: <4FGL_J1023.7+0038_daily_bin773> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin773 155.945 0.6499 439689601 439948801 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 :                                   539.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            906 sec.

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

