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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin198
RA = 155.945, Dec = 0.6499
tmin = 290649601, tmax = 290908801
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='842644', job_status='RUN', time_executed='2021-09-01 19:48:12.521726', time_epoch_executed='1630550892.52' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842644

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842644/ft1_4FGL_J1023.7+0038_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842644/ft2_4FGL_J1023.7+0038_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842644/ft1_4FGL_J1023.7+0038_daily_bin198.fits outfile=/scratch/kocevski/842644/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin198.fits ra=155.945 dec=0.6499 rad=12.0 tmin=290649601.0 tmax=290908801.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.36
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842644/ft1_filtered_4FGL_J1023.7+0038_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/842644/ft2_4FGL_J1023.7+0038_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/842644/ltcube_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.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/842644/ft2_4FGL_J1023.7+0038_daily_bin198.fits
.....................!
real 13.73
user 13.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842644/ft1_filtered_4FGL_J1023.7+0038_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/842644/ft2_4FGL_J1023.7+0038_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/842644/ltcube_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.fits outfile=/scratch/kocevski/842644/expmap_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.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/842644/ltcube_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.fits
.....................!
real 190.70
user 185.07
sys 4.06

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/842644/ft1_filtered_4FGL_J1023.7+0038_daily_bin198.fits scfile=/scratch/kocevski/842644/ft2_4FGL_J1023.7+0038_daily_bin198.fits outfile=/scratch/kocevski/842644/cmap_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842644/ft1_filtered_4FGL_J1023.7+0038_daily_bin198.fits scfile=/scratch/kocevski/842644/ft2_4FGL_J1023.7+0038_daily_bin198.fits outfile=/scratch/kocevski/842644/cmap_HighResolution_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.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/842644/ft1_filtered_4FGL_J1023.7+0038_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/842644/ft2_4FGL_J1023.7+0038_daily_bin198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842644/Model_4FGL_J1023.7+0038_daily_bin198.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/842644/ft1_filtered_4FGL_J1023.7+0038_daily_bin198.fits.....................!
real 50.30
user 48.61
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.129       1.0000         .10000E-03   10000.    
     5 'norm      '    13.813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.691       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .20525E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3776       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9301       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .70763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0841       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=   4860.843     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1641 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .23882        .17096E-06** at limit **
   2  Prefactor     24.072        19.079       -.13515E-07    .22315E-04
   3  Prefactor     .10000E-03    34.576       -.35867E-06** at limit **
   4  Prefactor     50.107        43.917       -.39581E-06   -.80367E-04
   5  norm          13.811        20.760        .18036E-06    .30816E-04
   6  Prefactor     .10000E-03    16.729       -.32991E-05** at limit **
   7  Prefactor     70.821        70.067       -.66471E-06   -.34713E-04
   8  Prefactor     48.663        55.065        .22235E-07   -.25828E-04
   9  Prefactor     .10000E-03    9.1508       -.90590E-06** at limit **
  10  norm          .10000E-03    .76458       -.17816E-07** at limit **
  11  Prefactor     .30661        4.1694        .30251E-06   -.15314E-03
  12  Prefactor     .10000E-03    1.0409       -.75134E-07** at limit **
  13  Prefactor     9.3765        7.6785        .12887E-05    .15270E-03
  14  norm          2.9300        .78690       -.35287E-07   -.11591E-03
  15  Prefactor     .10000E-03    5.5368        .44045E-07** at limit **
  16  Normalizat    .70794        .22967        .27456E-05   -.99143E-04
  17  Prefactor     1.0839        .17928       -.21653E-05    .60646E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 24.0723
  Prefactor  = 0.0001
  Prefactor  = 50.1073
  norm       = 13.8115
  Prefactor  = 0.0001
  Prefactor  = 70.8211
  Prefactor  = 48.6632
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.30661
  Prefactor  = 0.0001
  Prefactor  = 9.37654
  norm       = 2.93
  Prefactor  = 0.0001
  Normalizat = 0.707944
  Prefactor  = 1.08393
 **********
 **   18 **HESSE 
 **********

 FCN=   4860.843     FROM HESSE     STATUS=OK           227 CALLS     1868 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .31298        .65242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.072        19.073        .81629E-04   -1.4726    
   3  Prefactor     .10000E-03    34.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.107        43.937        .56641E-04   -1.4291    
   5  norm          13.811        20.739        .10777E-03   -1.4965    
   6  Prefactor     .10000E-03    17.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.821        70.147        .47691E-04   -1.4023    
   8  Prefactor     48.663        55.020        .28733E-03   -1.4312    
   9  Prefactor     .10000E-03    9.1746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.2873        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .30661        25.110        .26511E-02   -1.5597    
  12  Prefactor     .10000E-03    1.0472        .69482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3765        7.8532        .65435E-03   -1.5095    
  14  norm          2.9300        .78652        .30728E-04   -1.5366    
  15  Prefactor     .10000E-03    5.6084        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .70794        .25172        .30491E-03   -1.0358    
  17  Prefactor     1.0839        .19732        .20515E-03   -.89982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58447e-10
Minuit parameter uncertainties:
  1  2.38675e-06
  2  19.0783
  3  8.10925e-06
  4  43.9649
  5  20.7498
  6  9.49106e-05
  7  70.2288
  8  55.078
  9  2.00028e-05
  10  2.08643e-05
  11  5.55095
  12  2.76679e-06
  13  7.85405
  14  0.786528
  15  5.5256e-06
  16  0.252133
  17  0.197451
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  2.086e-05  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.084e+00  1.975e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  7.079e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842644/likelihoodResults_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.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): 102
logL (Free Index) = 4860.84458993
delta logL = -0.00112863645973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4860.8434604
delta logL = 8.92254320206e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10608E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2957       1.0000          .0000       5.0000    
     3 'Normalizat'    .70801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0840       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=   4860.843     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      266 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10825E-03    2.7652        .18247E-01** at limit **
   2  alpha         2.7561        3.5985        .50000       -.25922E-05
   3  Normalizat    .70795        .76922E-02    .30490E-03    .10212E-02
   4  Prefactor     1.0839        .63291E-02    .20515E-03    .11442E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000108251
  alpha      = 2.75614
  Normalizat = 0.707952
  Prefactor  = 1.08393
 **********
 **   18 **HESSE 
 **********

 FCN=   4860.843     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      303 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10825E-03    4.0543        .20524E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7561        3.6072        .20000        .10264    
   3  Normalizat    .70795        .10181E-01    .60980E-04   -1.0358    
   4  Prefactor     1.0839        .83762E-02    .41031E-04   -.89982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.8223e-09
Minuit parameter uncertainties:
  1  0.0115681
  2  224.584
  3  0.010181
  4  0.00837618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842644': 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): 102
logL (Free Index) = 4860.84345267
delta logL = 8.62565411808e-06

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.083e-04  1.157e-02  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.756e+00  2.246e+02  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.084e+00  8.376e-03  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  7.080e-01  1.018e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/842644/cmap_HighResolution_290649601_290908801_4FGL_J1023.7+0038_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-01 19:56:15.482588', job_id='842644', GAL2='1.08', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630551375.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='8.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='198' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 842644: <4FGL_J1023.7+0038_daily_bin198> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin198> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:40:31 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:44:44 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:44:44 2021
Terminated at Wed Sep  1 19:56:16 2021
Results reported at Wed Sep  1 19:56:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin198 155.945 0.6499 290649601 290908801 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 :                                   480.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            945 sec.

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

