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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin627
RA = 155.945, Dec = 0.6499
tmin = 401846401, tmax = 402105601
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='845510', job_status='RUN', time_executed='2021-09-01 19:55:13.649040', time_epoch_executed='1630551313.65' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845510

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845510/ft1_4FGL_J1023.7+0038_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845510/ft2_4FGL_J1023.7+0038_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845510/ft1_4FGL_J1023.7+0038_daily_bin627.fits outfile=/scratch/kocevski/845510/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin627.fits ra=155.945 dec=0.6499 rad=12.0 tmin=401846401.0 tmax=402105601.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.46
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845510/ft1_filtered_4FGL_J1023.7+0038_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/845510/ft2_4FGL_J1023.7+0038_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/845510/ltcube_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.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/845510/ft2_4FGL_J1023.7+0038_daily_bin627.fits
.....................!
real 12.48
user 12.15
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845510/ft1_filtered_4FGL_J1023.7+0038_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/845510/ft2_4FGL_J1023.7+0038_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/845510/ltcube_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.fits outfile=/scratch/kocevski/845510/expmap_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.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/845510/ltcube_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.fits
.....................!
real 189.78
user 185.42
sys 3.95

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/845510/ft1_filtered_4FGL_J1023.7+0038_daily_bin627.fits scfile=/scratch/kocevski/845510/ft2_4FGL_J1023.7+0038_daily_bin627.fits outfile=/scratch/kocevski/845510/cmap_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845510/ft1_filtered_4FGL_J1023.7+0038_daily_bin627.fits scfile=/scratch/kocevski/845510/ft2_4FGL_J1023.7+0038_daily_bin627.fits outfile=/scratch/kocevski/845510/cmap_HighResolution_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845510/ft1_filtered_4FGL_J1023.7+0038_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/845510/ft2_4FGL_J1023.7+0038_daily_bin627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845510/Model_4FGL_J1023.7+0038_daily_bin627.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/845510/ft1_filtered_4FGL_J1023.7+0038_daily_bin627.fits.....................!
real 50.01
user 48.70
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8417       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9136       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.495       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.221       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5859       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4362       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .70689       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2538       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=   4903.075     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     1590 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1508        .75675       -.37797E-07   -.17040E-03
   2  Prefactor     6.8418        9.5019        .18950E-06   -.18896E-03
   3  Prefactor     27.295        52.494        .19082E-06    .69850E-05
   4  Prefactor     .10000E-03    20.741       -.48431E-07** at limit **
   5  norm          3.9136        8.6026        .10979E-05   -.65036E-03
   6  Prefactor     .10000E-03    3.6848        .79704E-07** at limit **
   7  Prefactor     27.487        57.683       -.95774E-05   -.69238E-04
   8  Prefactor     .10000E-03    32.527        .20486E-07** at limit **
   9  Prefactor     16.218        16.670        .13152E-06   -.16402E-04
  10  norm          1.0918        1.8386       -.23693E-07   -.24957E-03
  11  Prefactor     .10000E-03    2.7923        .38105E-07** at limit **
  12  Prefactor     3.7406        4.2258        .80860E-07   -.75478E-04
  13  Prefactor     7.5875        7.8860       -.13376E-06   -.76958E-03
  14  norm          1.4367        .67737        .19845E-07    .65184E-04
  15  Prefactor     .10000E-03    22.959        .96003E-07** at limit **
  16  Normalizat    .70681        .23519        .18602E-05   -.26840E-04
  17  Prefactor     1.2539        .18155       -.47741E-06    .60755E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15082
  Prefactor  = 6.84178
  Prefactor  = 27.2945
  Prefactor  = 0.0001
  norm       = 3.91357
  Prefactor  = 0.0001
  Prefactor  = 27.4868
  Prefactor  = 0.0001
  Prefactor  = 16.2182
  norm       = 1.09179
  Prefactor  = 0.0001
  Prefactor  = 3.74058
  Prefactor  = 7.58754
  norm       = 1.4367
  Prefactor  = 0.0001
  Normalizat = 0.706811
  Prefactor  = 1.25388
 **********
 **   18 **HESSE 
 **********

 FCN=   4903.075     FROM HESSE     STATUS=OK           225 CALLS     1815 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1508        .74182        .46388E-04   -1.5493    
   2  Prefactor     6.8418        9.5059        .76695E-03   -1.5185    
   3  Prefactor     27.295        52.456        .76681E-04   -1.4663    
   4  Prefactor     .10000E-03    20.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9136        12.457        .10197E-02   -1.5312    
   6  Prefactor     .10000E-03    3.6901        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.487        57.755        .76402E-04   -1.4659    
   8  Prefactor     .10000E-03    32.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.218        16.659        .99444E-04   -1.4902    
  10  norm          1.0918        1.8129        .11509E-03   -1.5499    
  11  Prefactor     .10000E-03    2.8104        .11423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7406        4.2228        .13950E-03   -1.5321    
  13  Prefactor     7.5875        8.8789        .72802E-03   -1.5157    
  14  norm          1.4367        .67043        .37560E-04   -1.5468    
  15  Prefactor     .10000E-03    23.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .70681        .26342        .32019E-03   -1.0362    
  17  Prefactor     1.2539        .20561        .20593E-03   -.84689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19877e-09
Minuit parameter uncertainties:
  1  0.741823
  2  9.50803
  3  52.5445
  4  1.16934e-05
  5  12.4654
  6  1.09077e-05
  7  57.8726
  8  7.15028e-05
  9  16.664
  10  1.81301
  11  2.01316e-06
  12  4.22313
  13  8.88041
  14  0.670438
  15  5.54541e-05
  16  0.263896
  17  0.205744
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.092e+00  1.813e+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.254e+00  2.057e-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:  7.068e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/845510/likelihoodResults_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.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) = 4902.57773352
delta logL = 0.496781304433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4902.57411375
delta logL = 0.500401072732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17078       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8056       1.0000          .0000       5.0000    
     3 'Normalizat'    .61462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3104       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4902.574     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      359 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16940        6.4437        .25035E-03    .31180E-03
   2  alpha         4.8107        4.7622        .58119E-01   -.82908E-05
   3  Normalizat    .61500        .21305        .34156E-03    .34916E-04
   4  Prefactor     1.3101        .17822        .20208E-03    .18678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.169403
  alpha      = 4.81068
  Normalizat = 0.614999
  Prefactor  = 1.31014
 **********
 **   18 **HESSE 
 **********

 FCN=   4902.574     FROM HESSE     STATUS=OK            27 CALLS      386 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16940        .94986        .10014E-04   -1.5626    
   2  alpha         4.8107        4.4142        .23247E-02    1.1791    
   3  Normalizat    .61500        .25654        .13662E-04   -1.0735    
   4  Prefactor     1.3101        .20918        .80830E-05   -.83006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01757e-11
Minuit parameter uncertainties:
  1  0.80205
  2  3.50083
  3  0.257042
  4  0.209311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845510': 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) = 4902.57411043
delta logL = 0.500404392275

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.694e-01  8.021e-01  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  4.811e+00  3.501e+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.310e+00  2.093e-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.150e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 155.945 0.650
Photon Index (Free Index): 4.81 +/- 3.50
Photon Flux (Free Index): 8.56e-08 +/- 7.98e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.17e-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/845510/cmap_HighResolution_401846401_402105601_4FGL_J1023.7+0038_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='5.00e-01', photon_flux2='8.56e-08', job_status='DONE', time_completed='2021-09-01 20:03:16.038905', photon_index_error2='3.50', photon_index2='4.81', ts='0.43', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.17e-05', EG='0.71', time_epoch_completed='1630551796.04', return_code='0', job_id='845510', GAL2='1.31', EG2='0.61', return_code2='0', photon_flux_error2='7.98e-08', ts2='1.57', photon_index='2.23' WHERE bin_id='627' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:03:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 845510: <4FGL_J1023.7+0038_daily_bin627> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin627> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:50:25 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:52:46 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:52:46 2021
Terminated at Wed Sep  1 20:03:16 2021
Results reported at Wed Sep  1 20:03:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin627 155.945 0.6499 401846401 402105601 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 :                                   481.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            771 sec.

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

