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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin718
RA = 155.945, Dec = 0.6499
tmin = 425433601, tmax = 425692801
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='845657', job_status='RUN', time_executed='2021-09-01 19:56:43.941851', time_epoch_executed='1630551403.94' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845657

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845657/ft1_4FGL_J1023.7+0038_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845657/ft2_4FGL_J1023.7+0038_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845657/ft1_4FGL_J1023.7+0038_daily_bin718.fits outfile=/scratch/kocevski/845657/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin718.fits ra=155.945 dec=0.6499 rad=12.0 tmin=425433601.0 tmax=425692801.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.16
user 2.96
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/845657/ft2_4FGL_J1023.7+0038_daily_bin718.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/845657/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin718.fits evtable="EVENTS" outfile="/scratch/kocevski/845657/ft1_filtered_4FGL_J1023.7+0038_daily_bin718.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845657/ft1_filtered_4FGL_J1023.7+0038_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/845657/ft2_4FGL_J1023.7+0038_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/845657/ltcube_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.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/845657/ft2_4FGL_J1023.7+0038_daily_bin718.fits
.....................!
real 11.05
user 10.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845657/ft1_filtered_4FGL_J1023.7+0038_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/845657/ft2_4FGL_J1023.7+0038_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/845657/ltcube_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.fits outfile=/scratch/kocevski/845657/expmap_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.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/845657/ltcube_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.fits
.....................!
real 192.48
user 187.78
sys 3.74

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/845657/ft1_filtered_4FGL_J1023.7+0038_daily_bin718.fits scfile=/scratch/kocevski/845657/ft2_4FGL_J1023.7+0038_daily_bin718.fits outfile=/scratch/kocevski/845657/cmap_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845657/ft1_filtered_4FGL_J1023.7+0038_daily_bin718.fits scfile=/scratch/kocevski/845657/ft2_4FGL_J1023.7+0038_daily_bin718.fits outfile=/scratch/kocevski/845657/cmap_HighResolution_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.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/845657/ft1_filtered_4FGL_J1023.7+0038_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/845657/ft2_4FGL_J1023.7+0038_daily_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845657/Model_4FGL_J1023.7+0038_daily_bin718.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/845657/ft1_filtered_4FGL_J1023.7+0038_daily_bin718.fits.....................!
real 48.67
user 47.27
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3699       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4250       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    36.493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4458       1.0000         .10000E-03   10000.    
     7 'Prefactor '    60.428       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5586       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6066       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11290E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7828       1.0000         .10000E-03   10000.    
    14 'norm      '    .14667E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.899       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .83873       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1898       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=   4555.591     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1696 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3694        1.1965        .73596E-08   -.81890E-04
   2  Prefactor     .10000E-03    16.375       -.30149E-06** at limit **
   3  Prefactor     8.4100        83.247        .36525E-05    .42774E-05
   4  Prefactor     .10000E-03    15.590        .12137E-05** at limit **
   5  norm          36.503        31.275       -.19829E-05   -.69330E-05
   6  Prefactor     2.4425        15.796        .30776E-05   -.84584E-05
   7  Prefactor     60.339        65.674        .88179E-05    .80649E-04
   8  Prefactor     .10000E-03    81.918        .23410E-05** at limit **
   9  Prefactor     3.5569        16.363       -.11110E-05   -.16441E-04
  10  norm          1.2601        1.2979        .30564E-07   -.45470E-04
  11  Prefactor     3.6025        10.619       -.90676E-06   -.46648E-04
  12  Prefactor     .10007E-03    2.4505        .82026E-06** at limit **
  13  Prefactor     2.7757        10.448        .17218E-05   -.50766E-04
  14  norm          .10000E-03    .53792       -.57631E-07** at limit **
  15  Prefactor     35.871        18.483        .42302E-08   -.62743E-04
  16  Normalizat    .83951        .26062        .66302E-06   -.10190E-03
  17  Prefactor     1.1892        .19101       -.13471E-05   -.11808E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.36945
  Prefactor  = 0.0001
  Prefactor  = 8.40999
  Prefactor  = 0.0001
  norm       = 36.5031
  Prefactor  = 2.44255
  Prefactor  = 60.3395
  Prefactor  = 0.0001
  Prefactor  = 3.55687
  norm       = 1.26008
  Prefactor  = 3.60248
  Prefactor  = 0.000100074
  Prefactor  = 2.77569
  norm       = 0.000100001
  Prefactor  = 35.8714
  Normalizat = 0.839509
  Prefactor  = 1.18918
 **********
 **   18 **HESSE 
 **********

 FCN=   4555.591     FROM HESSE     STATUS=OK           231 CALLS     1927 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3694        1.1984        .36487E-04   -1.5290    
   2  Prefactor     .10000E-03    16.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4100        83.161        .13811E-03   -1.5128    
   4  Prefactor     .10000E-03    15.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          36.503        31.390        .66343E-04   -1.4499    
   6  Prefactor     2.4425        16.281        .13079E-02   -1.5395    
   7  Prefactor     60.339        66.079        .25807E-03   -1.4153    
   8  Prefactor     .10000E-03    82.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5569        16.365        .21425E-03   -1.5331    
  10  norm          1.2601        1.2876        .74840E-04   -1.5483    
  11  Prefactor     3.6025        10.583        .21276E-03   -1.5328    
  12  Prefactor     .10007E-03    14.094        .18760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7757        10.303        .24393E-03   -1.5375    
  14  norm          .10000E-03    9.5695        .80164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.871        15.982        .66887E-04   -1.4509    
  16  Normalizat    .83951        .29833        .32667E-03   -.98619    
  17  Prefactor     1.1892        .22055        .22431E-03   -.86665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50888e-09
Minuit parameter uncertainties:
  1  1.1984
  2  2.90182e-05
  3  52.9874
  4  3.5129e-05
  5  31.4041
  6  12.6168
  7  66.1593
  8  0.000115434
  9  15.2658
  10  1.28762
  11  10.5885
  12  0.00203676
  13  10.3096
  14  0.000157445
  15  15.9834
  16  0.298912
  17  0.220718
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.260e+00  1.288e+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.189e+00  2.207e-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:  8.395e-01  2.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.13e-05

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

Saving results to:
/scratch/kocevski/845657/likelihoodResults_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.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) = 4555.49996531
delta logL = 0.0907963500395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4555.45463675
delta logL = 0.136124907464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78224       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4901       1.0000          .0000       5.0000    
     3 'Normalizat'    .85695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1848       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=   4555.455     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78211        .90608        .12374E-01    .24290E-03
   2  alpha         1.4870        .79973        .46498       -.35400E-04
   3  Normalizat    .85663        .23297        .73152E-01    .40392E-04
   4  Prefactor     1.1849        .18763        .50825E-01    .46671E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.782109
  alpha      = 1.48701
  Normalizat = 0.856635
  Prefactor  = 1.18491
 **********
 **   18 **HESSE 
 **********

 FCN=   4555.455     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78211        1.3057        .63713E-04   -1.5531    
   2  alpha         1.4870        1.2411        .22245E-01   -.41719    
   3  Normalizat    .85663        .27049        .32372E-03   -.98001    
   4  Prefactor     1.1849        .21825        .22469E-03   -.86797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61018e-11
Minuit parameter uncertainties:
  1  1.30579
  2  1.31199
  3  0.270914
  4  0.21842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845657': 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) = 4555.45462976
delta logL = 0.136131901242

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  7.821e-01  1.306e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.487e+00  1.312e+00  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.185e+00  2.184e-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:  8.566e-01  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.49 +/- 1.31
Photon Flux (Free Index): 1.34e-08 +/- 2.51e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.56e-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/845657/cmap_HighResolution_425433601_425692801_4FGL_J1023.7+0038_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-05', comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='1.20e-05', photon_flux_error='3.28e-08', dlogl='1.36e-01', energy_flux='1.10e-05', photon_flux2='1.34e-08', job_status='DONE', time_completed='2021-09-01 20:04:31.691471', photon_index_error2='1.31', photon_index2='1.49', ts='2.41', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.56e-05', EG='0.84', time_epoch_completed='1630551871.69', return_code='0', job_id='845657', GAL2='1.18', EG2='0.86', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='2.51e-08', ts2='2.68', photon_index='2.23' WHERE bin_id='718' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:04:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 845657: <4FGL_J1023.7+0038_daily_bin718> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin718 155.945 0.6499 425433601 425692801 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 :                                   466.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            834 sec.

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

