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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin730
RA = 155.945, Dec = 0.6499
tmin = 428544001, tmax = 428803201
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='845676', job_status='RUN', time_executed='2021-09-01 19:57:57.103898', time_epoch_executed='1630551477.1' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845676

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845676/ft1_4FGL_J1023.7+0038_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845676/ft2_4FGL_J1023.7+0038_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845676/ft1_4FGL_J1023.7+0038_daily_bin730.fits outfile=/scratch/kocevski/845676/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin730.fits ra=155.945 dec=0.6499 rad=12.0 tmin=428544001.0 tmax=428803201.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 6.25
user 5.96
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/845676/ft2_4FGL_J1023.7+0038_daily_bin730.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/845676/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/845676/ft1_filtered_4FGL_J1023.7+0038_daily_bin730.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845676/ft1_filtered_4FGL_J1023.7+0038_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/845676/ft2_4FGL_J1023.7+0038_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/845676/ltcube_428544001_428803201_4FGL_J1023.7+0038_daily_bin730.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/845676/ft2_4FGL_J1023.7+0038_daily_bin730.fits
.....................!
real 15.25
user 14.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845676/ft1_filtered_4FGL_J1023.7+0038_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/845676/ft2_4FGL_J1023.7+0038_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/845676/ltcube_428544001_428803201_4FGL_J1023.7+0038_daily_bin730.fits outfile=/scratch/kocevski/845676/expmap_428544001_428803201_4FGL_J1023.7+0038_daily_bin730.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/845676/ltcube_428544001_428803201_4FGL_J1023.7+0038_daily_bin730.fits
.....................!
real 191.43
user 186.52
sys 4.38

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/845676/ft1_filtered_4FGL_J1023.7+0038_daily_bin730.fits scfile=/scratch/kocevski/845676/ft2_4FGL_J1023.7+0038_daily_bin730.fits outfile=/scratch/kocevski/845676/cmap_428544001_428803201_4FGL_J1023.7+0038_daily_bin730.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/845676/ft1_filtered_4FGL_J1023.7+0038_daily_bin730.fits scfile=/scratch/kocevski/845676/ft2_4FGL_J1023.7+0038_daily_bin730.fits outfile=/scratch/kocevski/845676/cmap_HighResolution_428544001_428803201_4FGL_J1023.7+0038_daily_bin730.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845676/ft1_filtered_4FGL_J1023.7+0038_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/845676/ft2_4FGL_J1023.7+0038_daily_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845676/Model_4FGL_J1023.7+0038_daily_bin730.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/845676/ft1_filtered_4FGL_J1023.7+0038_daily_bin730.fits.....................!
real 49.50
user 48.05
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0233       1.0000         .10000E-03   10000.    
     5 'norm      '    19.038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14268E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    151.17       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.559       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .23604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .84916       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0820       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=   4506.720     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     1864 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0002        1.2525        .32526E-04   -.12164E-03
   2  Prefactor     .10000E-03    22.762        .18142E-02** at limit **
   3  Prefactor     .10000E-03    23.674        .18142E-02** at limit **
   4  Prefactor     .97988        471.58        .83246E-02    .18491E-04
   5  norm          19.027        21.745        .91795E-04   -.98584E-04
   6  Prefactor     .10000E-03    12.376        .18142E-02** at limit **
   7  Prefactor     .10000E-03    104.02        .18142E-02** at limit **
   8  Prefactor     151.15        78.679        .16391E-03   -.81247E-04
   9  Prefactor     .10000E-03    33.409        .18142E-02** at limit **
  10  norm          3.3846        1.8119        .63537E-04   -.11362E-03
  11  Prefactor     14.560        8.4290        .10497E-03   -.18845E-04
  12  Prefactor     .10000E-03    1.0602        .67385E-03** at limit **
  13  Prefactor     .10000E-03    6.2026        .16255E-02** at limit **
  14  norm          .23619        .49973        .40564E-04   -.97253E-04
  15  Prefactor     .10000E-03    9.1122        .18142E-02** at limit **
  16  Normalizat    .84912        .27400        .31108E-03   -.16738E-04
  17  Prefactor     1.0820        .21692        .22577E-03   -.24430E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00023
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.979878
  norm       = 19.0268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 151.147
  Prefactor  = 0.0001
  norm       = 3.38465
  Prefactor  = 14.5602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.236186
  Prefactor  = 0.0001
  Normalizat = 0.849121
  Prefactor  = 1.08203
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.720     FROM HESSE     STATUS=OK           207 CALLS     2071 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0002        1.2525        .13010E-05   -1.5218    
   2  Prefactor     .10000E-03    22.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97988        477.43        .33299E-03   -1.5510    
   5  norm          19.027        21.739        .36718E-05   -1.4835    
   6  Prefactor     .10000E-03    12.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    104.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     151.15        78.644        .32782E-04   -1.3243    
   9  Prefactor     .10000E-03    33.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3846        1.8118        .25415E-05   -1.5340    
  11  Prefactor     14.560        8.4230        .41988E-05   -1.4945    
  12  Prefactor     .10000E-03    1.0602        .13477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2042        .32510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23619        .49942        .16225E-05   -1.5611    
  15  Prefactor     .10000E-03    9.1150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .84912        .27384        .12443E-04   -.98272    
  17  Prefactor     1.0820        .21699        .45155E-04   -.90043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04986e-10
Minuit parameter uncertainties:
  1  1.25247
  2  7.9727e-05
  3  0.000418222
  4  43.6101
  5  21.7479
  6  3.11373e-05
  7  9.21249e-06
  8  78.6984
  9  0.000130014
  10  1.81184
  11  8.4237
  12  9.37034e-07
  13  9.36285e-06
  14  0.499432
  15  8.75607e-05
  16  0.274285
  17  0.217163
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.385e+00  1.812e+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.082e+00  2.172e-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.491e-01  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.34
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.62e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.58e-05

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) = 4506.37996824
delta logL = 0.340467561914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4506.36037443
delta logL = 0.360061369208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0287       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6870       1.0000          .0000       5.0000    
     3 'Normalizat'    .88244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0672       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=   4506.360     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0287        1.6875        .58294E-02    .51086E-02
   2  alpha         1.6866        .49045        .33503       -.12479E-04
   3  Normalizat    .88219        .23143        .69170E-01    .14513E-04
   4  Prefactor     1.0673        .18754        .38995E-01   -.96084E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.02873
  alpha      = 1.68655
  Normalizat = 0.882192
  Prefactor  = 1.06733
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.360     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0287        1.9530        .63162E-04   -1.5360    
   2  alpha         1.6866        .61437        .13607E-01   -.33141    
   3  Normalizat    .88219        .26726        .30603E-03   -.97089    
   4  Prefactor     1.0673        .21675        .22718E-03   -.90518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40272e-09
Minuit parameter uncertainties:
  1  1.95304
  2  0.621508
  3  0.267665
  4  0.216933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845676': 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) = 4506.36037364
delta logL = 0.360062159557

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.029e+00  1.953e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.687e+00  6.215e-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:  1.067e+00  2.169e-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.822e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.07
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.69 +/- 0.62
Photon Flux (Free Index): 5.51e-08 +/- 4.42e-08
Energy Flux (Free Index): 3.60e-05 +/- 2.36e-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/845676/cmap_HighResolution_428544001_428803201_4FGL_J1023.7+0038_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.62e-08', energy_flux2='3.60e-05', photon_flux_error='4.61e-08', dlogl='3.60e-01', energy_flux='2.96e-05', photon_flux2='5.51e-08', job_status='DONE', time_completed='2021-09-01 20:05:51.981913', photon_index_error2='0.62', photon_index2='1.69', ts='10.34', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.36e-05', EG='0.85', time_epoch_completed='1630551951.98', return_code='0', job_id='845676', GAL2='1.07', EG2='0.88', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.42e-08', ts2='11.07', photon_index='2.23' WHERE bin_id='730' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:05:52 PDT 2021


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

Job <4FGL_J1023.7+0038_daily_bin730> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:50:39 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:54:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:54:02 2021
Terminated at Wed Sep  1 20:05:52 2021
Results reported at Wed Sep  1 20:05:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin730 155.945 0.6499 428544001 428803201 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 :                                   473.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            913 sec.

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

