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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin543
RA = 155.945, Dec = 0.6499
tmin = 380073601, tmax = 380332801
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='844309', job_status='RUN', time_executed='2021-09-01 19:52:01.303781', time_epoch_executed='1630551121.3' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844309/ft1_4FGL_J1023.7+0038_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844309/ft2_4FGL_J1023.7+0038_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844309/ft1_4FGL_J1023.7+0038_daily_bin543.fits outfile=/scratch/kocevski/844309/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin543.fits ra=155.945 dec=0.6499 rad=12.0 tmin=380073601.0 tmax=380332801.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.55
user 4.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844309/ft1_filtered_4FGL_J1023.7+0038_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/844309/ft2_4FGL_J1023.7+0038_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/844309/ltcube_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.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/844309/ft2_4FGL_J1023.7+0038_daily_bin543.fits
.....................!
real 17.82
user 17.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844309/ft1_filtered_4FGL_J1023.7+0038_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/844309/ft2_4FGL_J1023.7+0038_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/844309/ltcube_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.fits outfile=/scratch/kocevski/844309/expmap_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.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/844309/ltcube_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.fits
.....................!
real 192.99
user 188.27
sys 4.02

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/844309/ft1_filtered_4FGL_J1023.7+0038_daily_bin543.fits scfile=/scratch/kocevski/844309/ft2_4FGL_J1023.7+0038_daily_bin543.fits outfile=/scratch/kocevski/844309/cmap_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844309/ft1_filtered_4FGL_J1023.7+0038_daily_bin543.fits scfile=/scratch/kocevski/844309/ft2_4FGL_J1023.7+0038_daily_bin543.fits outfile=/scratch/kocevski/844309/cmap_HighResolution_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.369       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.777       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8871       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9349       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .92471       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91831       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=   5319.925     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1407 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1736        .71403        .16902E-07   -.20068E-03
   2  Prefactor     .10000E-03    8.9663        .92251E-07** at limit **
   3  Prefactor     .10000E-03    45.247       -.15917E-05** at limit **
   4  Prefactor     .10001E-03    22.428        .79060E-05** at limit **
   5  norm          .10000E-03    6.7223       -.18882E-07** at limit **
   6  Prefactor     11.655        11.324        .19815E-06   -.57203E-05
   7  Prefactor     20.358        48.044       -.77104E-05   -.19068E-03
   8  Prefactor     .10001E-03    21.492       -.66174E-05** at limit **
   9  Prefactor     13.778        14.094        .36022E-07    .73423E-05
  10  norm          1.2273        1.2027        .85846E-08   -.31352E-04
  11  Prefactor     7.1008        6.9857       -.41062E-07   -.12012E-03
  12  Prefactor     3.8870        3.4958        .68689E-06   -.20414E-02
  13  Prefactor     4.9332        6.8748        .22790E-05   -.15299E-02
  14  norm          .10000E-03    .25752       -.68145E-07** at limit **
  15  Prefactor     .10000E-03    2.6429       -.70164E-07** at limit **
  16  Normalizat    .92482        .19797        .50246E-07   -.21457E-04
  17  Prefactor     .91825        .15093       -.35582E-06    .29708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17358
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 11.655
  Prefactor  = 20.3575
  Prefactor  = 0.000100009
  Prefactor  = 13.7781
  norm       = 1.22733
  Prefactor  = 7.10079
  Prefactor  = 3.88696
  Prefactor  = 4.93325
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.924819
  Prefactor  = 0.918249
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.925     FROM HESSE     STATUS=OK           225 CALLS     1632 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1736        .70308        .45537E-04   -1.5491    
   2  Prefactor     .10000E-03    9.0098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    23.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.7251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.655        11.316        .11734E-03   -1.5025    
   7  Prefactor     20.358        49.214        .88747E-04   -1.4805    
   8  Prefactor     .10001E-03    22.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.778        14.090        .10791E-03   -1.4965    
  10  norm          1.2273        1.1989        .75519E-04   -1.5486    
  11  Prefactor     7.1008        6.9865        .15055E-03   -1.5175    
  12  Prefactor     3.8870        3.6169        .62363E-03   -1.5314    
  13  Prefactor     4.9332        7.7512        .90524E-03   -1.5264    
  14  norm          .10000E-03    .88094        .71567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6525        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .92482        .23202        .26652E-03   -.95593    
  17  Prefactor     .91825        .17542        .21180E-03   -.95506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03837e-09
Minuit parameter uncertainties:
  1  0.70309
  2  3.56346e-05
  3  0.000346589
  4  0.00112338
  5  1.33089e-05
  6  11.3178
  7  49.3122
  8  0.000909598
  9  14.0929
  10  1.19891
  11  6.98735
  12  3.61707
  13  7.75273
  14  7.5909e-07
  15  4.43805e-06
  16  0.232275
  17  0.175531
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.227e+00  1.199e+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:  9.182e-01  1.755e-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.248e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/844309/likelihoodResults_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.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) = 5319.33395278
delta logL = 0.590976790945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5319.20710954
delta logL = 0.71782002945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59813       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1144       1.0000          .0000       5.0000    
     3 'Normalizat'    .94442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91223       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=   5319.207     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59827        .63838        .11665E-01    .17818E-03
   2  alpha         1.1132        .57020        .42434       -.42178E-04
   3  Normalizat    .94435        .18885        .45467E-01    .69598E-05
   4  Prefactor     .91218        .15056        .45161E-01    .16105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.598274
  alpha      = 1.1132
  Normalizat = 0.944349
  Prefactor  = 0.912181
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.207     FROM HESSE     STATUS=OK            35 CALLS      238 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59827        .92175        .52885E-03   -1.5553    
   2  alpha         1.1132        .82328        .17837E-01   -.58803    
   3  Normalizat    .94435        .21965        .26410E-03   -.94919    
   4  Prefactor     .91218        .17529        .21242E-03   -.95717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34682e-11
Minuit parameter uncertainties:
  1  0.921772
  2  0.846453
  3  0.219862
  4  0.1754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844309': 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) = 5319.20710604
delta logL = 0.717823532728

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  5.983e-01  9.218e-01  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.113e+00  8.465e-01  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:  9.122e-01  1.754e-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.443e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.11 +/- 0.85
Photon Flux (Free Index): 1.04e-08 +/- 1.41e-08
Energy Flux (Free Index): 1.88e-05 +/- 2.38e-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/844309/cmap_HighResolution_380073601_380332801_4FGL_J1023.7+0038_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='1.88e-05', photon_flux_error='3.05e-08', dlogl='7.18e-01', energy_flux='1.07e-05', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-09-01 20:00:20.995421', photon_index_error2='0.85', photon_index2='1.11', ts='2.77', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='2.38e-05', EG='0.92', time_epoch_completed='1630551621.0', return_code='0', job_id='844309', GAL2='0.91', EG2='0.94', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.41e-08', ts2='4.21', photon_index='2.23' WHERE bin_id='543' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:00:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 844309: <4FGL_J1023.7+0038_daily_bin543> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin543> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 19:45:46 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:51:51 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:51:51 2021
Terminated at Wed Sep  1 20:00:21 2021
Results reported at Wed Sep  1 20:00:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin543 155.945 0.6499 380073601 380332801 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 :                                   496.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            875 sec.

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

