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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin211
RA = 155.945, Dec = 0.6499
tmin = 294019201, tmax = 294278401
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='842665', job_status='RUN', time_executed='2021-09-01 19:47:33.213764', time_epoch_executed='1630550853.21' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842665

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842665/ft1_4FGL_J1023.7+0038_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842665/ft2_4FGL_J1023.7+0038_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842665/ft1_4FGL_J1023.7+0038_daily_bin211.fits outfile=/scratch/kocevski/842665/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin211.fits ra=155.945 dec=0.6499 rad=12.0 tmin=294019201.0 tmax=294278401.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.18
user 2.94
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842665/ft1_filtered_4FGL_J1023.7+0038_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/842665/ft2_4FGL_J1023.7+0038_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/842665/ltcube_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.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/842665/ft2_4FGL_J1023.7+0038_daily_bin211.fits
.....................!
real 12.84
user 12.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842665/ft1_filtered_4FGL_J1023.7+0038_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/842665/ft2_4FGL_J1023.7+0038_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/842665/ltcube_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.fits outfile=/scratch/kocevski/842665/expmap_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.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/842665/ltcube_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.fits
.....................!
real 193.28
user 186.98
sys 5.07

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/842665/ft1_filtered_4FGL_J1023.7+0038_daily_bin211.fits scfile=/scratch/kocevski/842665/ft2_4FGL_J1023.7+0038_daily_bin211.fits outfile=/scratch/kocevski/842665/cmap_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842665/ft1_filtered_4FGL_J1023.7+0038_daily_bin211.fits scfile=/scratch/kocevski/842665/ft2_4FGL_J1023.7+0038_daily_bin211.fits outfile=/scratch/kocevski/842665/cmap_HighResolution_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94537E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.641       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.490       1.0000         .10000E-03   10000.    
    10 'norm      '    .29162       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.330       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .73414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4155       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .96678       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87401       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=   6879.961     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1668 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94590E-01    .35195        .20937E-06   -.83582E-03
   2  Prefactor     10.607        10.334        .11426E-06   -.23977E-04
   3  Prefactor     .10000E-03    16.130       -.63954E-07** at limit **
   4  Prefactor     28.640        30.258        .24930E-06   -.10815E-04
   5  norm          5.0069        8.2620        .17855E-06    .15104E-04
   6  Prefactor     .10000E-03    3.6480        .31162E-07** at limit **
   7  Prefactor     .10000E-03    30.147        .11438E-05** at limit **
   8  Prefactor     .10000E-03    38.795       -.87780E-06** at limit **
   9  Prefactor     13.504        15.462        .60115E-06    .11656E-03
  10  norm          .29235        .99561        .54455E-06   -.69170E-03
  11  Prefactor     13.330        5.7421        .81613E-06    .10561E-02
  12  Prefactor     5.5146        3.0540        .67585E-06   -.12158E-02
  13  Prefactor     .10000E-03    1.9790       -.24500E-07** at limit **
  14  norm          .73302        .62736       -.71236E-07   -.43981E-04
  15  Prefactor     8.4324        9.9170        .78212E-06    .11083E-03
  16  Normalizat    .96666        .17615       -.13800E-05   -.11223E-03
  17  Prefactor     .87412        .13543       -.16717E-06   -.19621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0945897
  Prefactor  = 10.6074
  Prefactor  = 0.0001
  Prefactor  = 28.6405
  norm       = 5.0069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.5045
  norm       = 0.292349
  Prefactor  = 13.3298
  Prefactor  = 5.51456
  Prefactor  = 0.0001
  norm       = 0.733019
  Prefactor  = 8.43239
  Normalizat = 0.966658
  Prefactor  = 0.874116
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.961     FROM HESSE     STATUS=OK           231 CALLS     1899 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94590E-01    .60356        .86951E-03   -1.5646    
   2  Prefactor     10.607        10.339        .12303E-03   -1.5056    
   3  Prefactor     .10000E-03    16.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.640        30.291        .74861E-04   -1.4637    
   5  norm          5.0069        8.2474        .17970E-03   -1.5260    
   6  Prefactor     .10000E-03    3.6531        .15460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.504        15.551        .10905E-03   -1.4973    
  10  norm          .29235        1.0376        .14787E-03   -1.5600    
  11  Prefactor     13.330        6.1408        .10971E-03   -1.4978    
  12  Prefactor     5.5146        3.2147        .53808E-03   -1.5238    
  13  Prefactor     .10000E-03    1.9840        .11393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .73302        .63517        .46446E-04   -1.5537    
  15  Prefactor     8.4324        10.317        .13819E-03   -1.5127    
  16  Normalizat    .96666        .20477        .25596E-03   -.94156    
  17  Prefactor     .87412        .15956        .21572E-03   -.97051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21554e-10
Minuit parameter uncertainties:
  1  0.477628
  2  10.3403
  3  1.19973e-05
  4  30.3073
  5  8.24925
  6  3.02825e-06
  7  0.000236448
  8  0.000311995
  9  15.5552
  10  1.03765
  11  6.14104
  12  3.21485
  13  2.04265e-06
  14  0.635178
  15  10.3194
  16  0.204938
  17  0.159648
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.923e-01  1.038e+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:  8.741e-01  1.596e-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.667e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 155.945 0.650
Photon Flux Upper Limit: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842665/likelihoodResults_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.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) = 6879.87104035
delta logL = 0.0895704479808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6879.84645437
delta logL = 0.11415642896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50214       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6532       1.0000          .0000       5.0000    
     3 'Normalizat'    .97430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86571       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6879.846     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      244 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50246        .99511        .11324E-02    .64161E-02
   2  alpha         1.6531        .97783        .29387E-01   -.96351E-04
   3  Normalizat    .97431        .19574        .25505E-03   -.24293E-04
   4  Prefactor     .86570        .15970        .21662E-03   -.49597E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.502464
  alpha      = 1.65312
  Normalizat = 0.974313
  Prefactor  = 0.865699
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.846     FROM HESSE     STATUS=OK            27 CALLS      271 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50246        1.0015        .22648E-03   -1.5566    
   2  alpha         1.6531        .98500        .58775E-02   -.34559    
   3  Normalizat    .97431        .19595        .10202E-04   -.93896    
   4  Prefactor     .86570        .15985        .86646E-05   -.97350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14622e-11
Minuit parameter uncertainties:
  1  1.00152
  2  1.01633
  3  0.196091
  4  0.159931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842665': 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) = 6879.84645431
delta logL = 0.114156494344

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  5.025e-01  1.002e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.653e+00  1.016e+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:  8.657e-01  1.599e-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.743e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 155.945 0.650

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/842665/cmap_HighResolution_294019201_294278401_4FGL_J1023.7+0038_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-01 19:56:49.651840', job_id='842665', GAL2='0.87', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630551409.65', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.14e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='211' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:56:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 842665: <4FGL_J1023.7+0038_daily_bin211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin211 155.945 0.6499 294019201 294278401 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 :                                   552.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            977 sec.

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

