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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin863
RA = 155.945, Dec = 0.6499
tmin = 463017601, tmax = 463276801
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='846953', job_status='RUN', time_executed='2021-09-01 19:58:33.176448', time_epoch_executed='1630551513.18' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='863'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846953/ft1_4FGL_J1023.7+0038_daily_bin863.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846953/ft2_4FGL_J1023.7+0038_daily_bin863.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846953/ft1_4FGL_J1023.7+0038_daily_bin863.fits outfile=/scratch/kocevski/846953/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin863.fits ra=155.945 dec=0.6499 rad=12.0 tmin=463017601.0 tmax=463276801.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.64
user 3.43
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846953/ft2_4FGL_J1023.7+0038_daily_bin863.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/846953/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin863.fits evtable="EVENTS" outfile="/scratch/kocevski/846953/ft1_filtered_4FGL_J1023.7+0038_daily_bin863.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846953/ft1_filtered_4FGL_J1023.7+0038_daily_bin863.fits" evtable="EVENTS" scfile=/scratch/kocevski/846953/ft2_4FGL_J1023.7+0038_daily_bin863.fits sctable="SC_DATA" outfile=/scratch/kocevski/846953/ltcube_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.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/846953/ft2_4FGL_J1023.7+0038_daily_bin863.fits
.....................!
real 12.36
user 11.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846953/ft1_filtered_4FGL_J1023.7+0038_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/846953/ft2_4FGL_J1023.7+0038_daily_bin863.fits sctable="SC_DATA" expcube=/scratch/kocevski/846953/ltcube_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.fits outfile=/scratch/kocevski/846953/expmap_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.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/846953/ltcube_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.fits
.....................!
real 190.54
user 185.24
sys 4.91

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/846953/ft1_filtered_4FGL_J1023.7+0038_daily_bin863.fits scfile=/scratch/kocevski/846953/ft2_4FGL_J1023.7+0038_daily_bin863.fits outfile=/scratch/kocevski/846953/cmap_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846953/ft1_filtered_4FGL_J1023.7+0038_daily_bin863.fits scfile=/scratch/kocevski/846953/ft2_4FGL_J1023.7+0038_daily_bin863.fits outfile=/scratch/kocevski/846953/cmap_HighResolution_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.945 yref=0.6499 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61216       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.792       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0626       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6599       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7134       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94078       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.4476       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=   7662.250     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1472 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61217        .60310        .26445E-07   -.23956E-03
   2  Prefactor     .10000E-03    12.526       -.16005E-07** at limit **
   3  Prefactor     .10000E-03    14.639       -.62676E-07** at limit **
   4  Prefactor     .10000E-03    24.920        .30178E-06** at limit **
   5  norm          .10000E-03    6.7634       -.28114E-07** at limit **
   6  Prefactor     .10000E-03    9.3637       -.28911E-06** at limit **
   7  Prefactor     .10000E-03    33.445       -.69748E-06** at limit **
   8  Prefactor     .10005E-03    256.06       -.35755E-05** at limit **
   9  Prefactor     13.783        16.645        .46421E-05    .20537E-03
  10  norm          1.0648        1.2541       -.33004E-08   -.34229E-03
  11  Prefactor     .10000E-03    2.6000        .75645E-08** at limit **
  12  Prefactor     3.7820        3.7435        .10510E-07   -.10695E-03
  13  Prefactor     5.0643        9.4644       -.17500E-06   -.52823E-04
  14  norm          1.6597        .62856       -.17931E-07   -.18162E-04
  15  Prefactor     4.7123        4.2982        .63297E-06   -.12422E-02
  16  Normalizat    .94081        .19971       -.57929E-06    .97388E-05
  17  Prefactor     1.4476        .15988       -.80287E-07   -.39387E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.612169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 13.7835
  norm       = 1.06479
  Prefactor  = 0.0001
  Prefactor  = 3.78196
  Prefactor  = 5.06434
  norm       = 1.65965
  Prefactor  = 4.71229
  Normalizat = 0.940808
  Prefactor  = 1.44757
 **********
 **   18 **HESSE 
 **********

 FCN=   7662.250     FROM HESSE     STATUS=OK           227 CALLS     1699 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61217        .57542        .63902E-03   -1.5551    
   2  Prefactor     .10000E-03    12.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.7784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    267.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.783        16.790        .10785E-03   -1.4965    
  10  norm          1.0648        1.1450        .10191E-02   -1.5502    
  11  Prefactor     .10000E-03    2.6224        .13779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7820        3.7312        .15448E-03   -1.5319    
  13  Prefactor     5.0643        9.4081        .17870E-03   -1.5258    
  14  norm          1.6597        .67388        .39819E-04   -1.5450    
  15  Prefactor     4.7123        8.5228        .92673E-03   -1.5274    
  16  Normalizat    .94081        .23437        .32543E-03   -.95041    
  17  Prefactor     1.4476        .19011        .22316E-03   -.79019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7679e-09
Minuit parameter uncertainties:
  1  0.575429
  2  2.83756e-05
  3  2.01354e-07
  4  2.0929e-05
  5  1.18826e-05
  6  0.000141578
  7  8.89454e-05
  8  0.00754404
  9  16.7956
  10  1.14499
  11  1.54648e-06
  12  3.73147
  13  9.41085
  14  0.673884
  15  8.52502
  16  0.234629
  17  0.190198
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.065e+00  1.145e+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.448e+00  1.902e-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.408e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 9.31e-06 +/- 1.00e-05

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

Saving results to:
/scratch/kocevski/846953/likelihoodResults_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.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) = 7662.24907903
delta logL = 0.000646562287329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7662.24906585
delta logL = 0.00065974410154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0649       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2683       1.0000          .0000       5.0000    
     3 'Normalizat'    .93979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4481       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=   7662.249     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      260 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0660        1.1447        .10139E-02    .16589E-03
   2  alpha         2.2692        .98426        .29786E-01   -.24157E-04
   3  Normalizat    .93977        .22941        .32559E-03   -.24442E-06
   4  Prefactor     1.4481        .18998        .22312E-03   -.71333E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06602
  alpha      = 2.2692
  Normalizat = 0.939766
  Prefactor  = 1.44806
 **********
 **   18 **HESSE 
 **********

 FCN=   7662.249     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0660        1.1413        .40557E-04   -1.5501    
   2  alpha         2.2692        .98198        .59571E-02   -.92452E-01
   3  Normalizat    .93977        .22954        .13024E-04   -.95077    
   4  Prefactor     1.4481        .19010        .89250E-05   -.79005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35389e-13
Minuit parameter uncertainties:
  1  1.14133
  2  1.00942
  3  0.229784
  4  0.190189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846953': 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) = 7662.24906498
delta logL = 0.000660613090076

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.066e+00  1.141e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.269e+00  1.009e+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.448e+00  1.902e-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.398e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 155.945 0.650
Photon Index (Free Index): 2.27 +/- 1.01
Photon Flux (Free Index): 2.80e-08 +/- 3.74e-08
Energy Flux (Free Index): 9.29e-06 +/- 9.97e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/846953/cmap_HighResolution_463017601_463276801_4FGL_J1023.7+0038_daily_bin863.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='9.29e-06', photon_flux_error='2.92e-08', dlogl='6.61e-04', energy_flux='9.31e-06', photon_flux2='2.80e-08', job_status='DONE', time_completed='2021-09-01 20:08:02.748264', photon_index_error2='1.01', photon_index2='2.27', ts='1.24', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='9.53e-08', energy_flux_error2='9.97e-06', EG='0.94', time_epoch_completed='1630552082.75', return_code='0', job_id='846953', GAL2='1.45', EG2='0.94', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.74e-08', ts2='1.24', photon_index='2.23' WHERE bin_id='863' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:08:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 846953: <4FGL_J1023.7+0038_daily_bin863> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin863> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:55:23 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:55:34 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:55:34 2021
Terminated at Wed Sep  1 20:08:03 2021
Results reported at Wed Sep  1 20:08:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin863 155.945 0.6499 463017601 463276801 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 :                                   568.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            760 sec.

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

