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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin415
RA = 155.945, Dec = 0.6499
tmin = 346896001, tmax = 347155201
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='844103', job_status='RUN', time_executed='2021-09-01 19:51:59.655163', time_epoch_executed='1630551119.66' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844103/ft1_4FGL_J1023.7+0038_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844103/ft2_4FGL_J1023.7+0038_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844103/ft1_4FGL_J1023.7+0038_daily_bin415.fits outfile=/scratch/kocevski/844103/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin415.fits ra=155.945 dec=0.6499 rad=12.0 tmin=346896001.0 tmax=347155201.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 2.86
user 2.67
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844103/ft1_filtered_4FGL_J1023.7+0038_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/844103/ft2_4FGL_J1023.7+0038_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/844103/ltcube_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.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/844103/ft2_4FGL_J1023.7+0038_daily_bin415.fits
.....................!
real 15.25
user 14.77
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844103/ft1_filtered_4FGL_J1023.7+0038_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/844103/ft2_4FGL_J1023.7+0038_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/844103/ltcube_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.fits outfile=/scratch/kocevski/844103/expmap_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.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/844103/ltcube_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.fits
.....................!
real 158.06
user 154.34
sys 3.43

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/844103/ft1_filtered_4FGL_J1023.7+0038_daily_bin415.fits scfile=/scratch/kocevski/844103/ft2_4FGL_J1023.7+0038_daily_bin415.fits outfile=/scratch/kocevski/844103/cmap_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844103/ft1_filtered_4FGL_J1023.7+0038_daily_bin415.fits scfile=/scratch/kocevski/844103/ft2_4FGL_J1023.7+0038_daily_bin415.fits outfile=/scratch/kocevski/844103/cmap_HighResolution_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.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.48
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844103/ft1_filtered_4FGL_J1023.7+0038_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/844103/ft2_4FGL_J1023.7+0038_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844103/Model_4FGL_J1023.7+0038_daily_bin415.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/844103/ft1_filtered_4FGL_J1023.7+0038_daily_bin415.fits.....................!
real 46.30
user 45.19
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.343       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8831       1.0000         .10000E-03   10000.    
    10 'norm      '    .35244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3891       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.176       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1032       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5469.503     FROM MIGRAD    STATUS=CONVERGED     82 CALLS     1878 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5582        .68273        .57083E-07   -.12269E-03
   2  Prefactor     .10000E-03    6.3313       -.36860E-05** at limit **
   3  Prefactor     .15078E-03    61.115       -.24047E-04** at limit **
   4  Prefactor     .10001E-03    29.145       -.59314E-05** at limit **
   5  norm          .10000E-03    6.2812        .92897E-06** at limit **
   6  Prefactor     12.338        8.2959       -.73535E-05    .20767E-04
   7  Prefactor     .10150E-03    64.202       -.73403E-05** at limit **
   8  Prefactor     .13329E-03    74.276        .18557E-04** at limit **
   9  Prefactor     4.8539        8.5573        .21073E-04   -.26259E-02
  10  norm          .35154        1.3239       -.14978E-05   -.13406E-03
  11  Prefactor     6.3906        5.3102        .12094E-04    .10407E-01
  12  Prefactor     .10000E-03    2.4064       -.29766E-06** at limit **
  13  Prefactor     .10000E-03    3.3441       -.12654E-05** at limit **
  14  norm          .10000E-03    .59537        .25926E-06** at limit **
  15  Prefactor     14.180        3.9570        .16228E-05    .11898E-02
  16  Normalizat    1.1031        .22493       -.65211E-05    .47363E-04
  17  Prefactor     .89366        .18074        .66431E-06    .62214E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55816
  Prefactor  = 0.0001
  Prefactor  = 0.000150779
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 12.3378
  Prefactor  = 0.000101505
  Prefactor  = 0.000133293
  Prefactor  = 4.85386
  norm       = 0.351539
  Prefactor  = 6.39058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.1803
  Normalizat = 1.1031
  Prefactor  = 0.893662
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.503     FROM HESSE     STATUS=OK           265 CALLS     2143 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5582        .68926        .85243E-02   -1.5458    
   2  Prefactor     .10000E-03    6.3026        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15078E-03    212.12        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    29.112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.2779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.338        9.9854        .28504E-02   -1.5005    
   7  Prefactor     .10150E-03    194.28        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13329E-03    173.80        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8539        13.153        .45507E-02   -1.5267    
  10  norm          .35154        1.0194        .34314E-01   -1.5589    
  11  Prefactor     6.3906        7.0833        .39698E-02   -1.5202    
  12  Prefactor     .10000E-03    2.3249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .37385        .15654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.180        9.8775        .26595E-02   -1.4955    
  16  Normalizat    1.1031        .19317        .56646E-01   -.89652    
  17  Prefactor     .89366        .15248        .44924E-01   -.96363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16817e-07
Minuit parameter uncertainties:
  1  0.689267
  2  8.64267e-05
  3  0.208311
  4  0.00113936
  5  7.36116e-05
  6  9.98679
  7  0.0343097
  8  0.152579
  9  13.1606
  10  1.01944
  11  7.08423
  12  5.96538e-08
  13  7.55017e-06
  14  6.12844e-07
  15  9.8786
  16  0.193295
  17  0.152548
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.515e-01  1.019e+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.937e-01  1.525e-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:  1.103e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/844103/likelihoodResults_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.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) = 5469.39482654
delta logL = 0.107885186873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5469.38804836
delta logL = 0.114663375874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45719       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0702       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89978       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=   5469.388     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      245 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45711        1.2266        .89589E-04   -.14992E-02
   2  alpha         3.0703        1.7579        .35209E-01   -.30790E-04
   3  Normalizat    1.0859        .22594        .25216E-03   -.73399E-04
   4  Prefactor     .89976        .18113        .22149E-03   -.10173E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.457112
  alpha      = 3.07029
  Normalizat = 1.08591
  Prefactor  = 0.899762
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.388     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45711        1.0731        .35836E-05   -1.5573    
   2  alpha         3.0703        1.5778        .14084E-02    .23014    
   3  Normalizat    1.0859        .22618        .10086E-04   -.90206    
   4  Prefactor     .89976        .18103        .88596E-05   -.96149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89568e-10
Minuit parameter uncertainties:
  1  1.0731
  2  1.71665
  3  0.226379
  4  0.181154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844103': 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) = 5469.38804835
delta logL = 0.11466338332

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  4.571e-01  1.073e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  3.070e+00  1.717e+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.998e-01  1.812e-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:  1.086e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/844103/cmap_HighResolution_346896001_347155201_4FGL_J1023.7+0038_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-01 19:59:21.520789', job_id='844103', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630551561.52', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.15e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='415' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:59:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 844103: <4FGL_J1023.7+0038_daily_bin415> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin415> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 19:45:29 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:49:39 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:49:39 2021
Terminated at Wed Sep  1 19:59:22 2021
Results reported at Wed Sep  1 19:59:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin415 155.945 0.6499 346896001 347155201 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 :                                   440.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            833 sec.

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

