aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 42 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7600
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1759
RA = 155.788, Dec = 39.8226
tmin = 695260801, tmax = 695520001
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='554416', job_status='RUN', time_executed='2023-01-16 01:01:01.797488', time_epoch_executed='1673859661.8' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554416/ft1_4FGL_J1023.1+3949_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554416/ft1_4FGL_J1023.1+3949_daily_bin1759.fits outfile=/scratch/kocevski/554416/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1759.fits ra=155.788 dec=39.8226 rad=12.0 tmin=695260801.0 tmax=695520001.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.84
user 2.55
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.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/554416/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.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.54
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 264

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/554416/ltcube_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.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/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits
.....................!
real 17.39
user 16.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/554416/ltcube_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.fits outfile=/scratch/kocevski/554416/expmap_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.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/554416/ltcube_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.fits
.....................!
real 193.26
user 187.11
sys 4.89

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1023.1+3949 @ 155.788 39.8226

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits scfile=/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits outfile=/scratch/kocevski/554416/cmap_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.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.788 yref=39.8226 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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits scfile=/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits outfile=/scratch/kocevski/554416/cmap_HighResolution_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.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.788 yref=39.8226 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.59
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/554416/Model_4FGL_J1023.1+3949_daily_bin1759.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/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits.....................!
real 34.64
user 32.00
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits', '/scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits', expMap='/scratch/kocevski/554416/expmap_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.fits', expCube='/scratch/kocevski/554416/ltcube_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/554416/Model_4FGL_J1023.1+3949_daily_bin1759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.1+3949'

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.888e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/554416/ft1_filtered_4FGL_J1023.1+3949_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/554416/ft2_4FGL_J1023.1+3949_daily_bin1759.fits
Exposure map: /scratch/kocevski/554416/expmap_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.fits
Exposure cube: /scratch/kocevski/554416/ltcube_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/554416/Model_4FGL_J1023.1+3949_daily_bin1759.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) = 2954.66293177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59820E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .18939E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .22857E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    19.187       1.0000          .0000       .10000E+07
     5 'Prefactor '    .65069E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    24.428       1.0000          .0000       .10000E+07
     7 'norm      '    34.011       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47887E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17240E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48239E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .12741E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .75438E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .69931E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    81.513       1.0000          .0000       .10000E+07
    15 'Prefactor '    53.670       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33924E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .58950       1.0000          .0000       .10000E+07
    18 'Prefactor '    101.60       1.0000          .0000       .10000E+07
    19 'norm      '    3.4525       1.0000          .0000       .10000E+07
    20 'Prefactor '    .77269E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .63732E-04   1.0000          .0000       .10000E+07
    22 'norm      '    7.3308       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.4091       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2954.650     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     2028 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77716E-09    11.896       -.14492E-05** at limit **
   2  Prefactor     .19429E-08    3.6635        .49576E-06** at limit **
   3  norm          .11158E-07    31.765        .35741E-06** at limit **
   4  Prefactor     16.670        36.486        .17577E-07    .69067E-03
   5  Prefactor     .21012E-04    55.674        .86368E-06** at limit **
   6  Prefactor     24.369        3.1187        .44273E-07    .28302E-01
   7  norm          34.478        13.066        .16351E-06   -.20936    
   8  Prefactor      .0000        19.562       -.13555E-05** at limit **
   9  Prefactor     .24980E-08    4.0517       -.18491E-07** at limit **
  10  Prefactor     .32196E-08    5.8982        .26874E-06** at limit **
  11  norm          .77629E-05    6.1188       -.76990E-06** at limit **
  12  Prefactor     .26645E-08    4.8039        .95633E-06** at limit **
  13  norm          .94362E-05    92.262        .66472E-06** at limit **
  14  Prefactor     84.248        65.347       -.45533E-07    .16815    
  15  Prefactor     56.233        52.079        .49086E-07   -.14355    
  16  Prefactor     .32752E-08    5.6138        .53164E-06** at limit **
  17  Prefactor     .21431E-05    128.07        .56248E-05** at limit **
  18  Prefactor     100.52        108.69        .30309E-06    .16715    
  19  norm          3.4523        .66992        .68568E-08   -.65413E-03
  20  Prefactor     .16809E-05    58.304        .88653E-06** at limit **
  21  Prefactor     .13817E-06    38.898        .18696E-05** at limit **
  22  norm          7.3332        25.509       -.74716E-06   -.21034E-01
  23  Normalizat    1.4093        .34362       -.23041E-04   -.26158E-04
  24  Prefactor     .78515        .40088        .37361E-04    .16396E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77156e-10
  Prefactor  = 1.94289e-09
  norm       = 1.11577e-08
  Prefactor  = 16.6703
  Prefactor  = 2.10121e-05
  Prefactor  = 24.3687
  norm       = 34.4779
  Prefactor  = 0
  Prefactor  = 2.498e-09
  Prefactor  = 3.21965e-09
  norm       = 7.7629e-06
  Prefactor  = 2.66454e-09
  norm       = 9.43617e-06
  Prefactor  = 84.2479
  Prefactor  = 56.233
  Prefactor  = 3.27516e-09
  Prefactor  = 2.14312e-06
  Prefactor  = 100.516
  norm       = 3.45231
  Prefactor  = 1.68093e-06
  Prefactor  = 1.38167e-07
  norm       = 7.33321
  Normalizat = 1.40934
  Prefactor  = 0.785154
 **********
 **   18 **HESSE 
 **********

 FCN=   2954.650     FROM HESSE     STATUS=OK           439 CALLS     2467 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77716E-09    11.955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19429E-08    3.6881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .11158E-07    31.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.670        72.812        .22837E-03   -1.5626    
   5  Prefactor     .21012E-04    113.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.369        31.258        .20237E-03   -1.5609    
   7  norm          34.478        27.755        .17149E-03   -1.5591    
   8  Prefactor      .0000        19.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .24980E-08    4.0754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32196E-08    5.9123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .77629E-05    2.4386        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .26645E-08    4.8141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .94362E-05    98.835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     84.248        81.811        .11077E-03   -1.5524    
  15  Prefactor     56.233        65.724        .13651E-03   -1.5558    
  16  Prefactor     .32752E-08    5.6319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21431E-05    132.25        .70174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     100.52        168.94        .99215E-04   -1.5507    
  19  norm          3.4523        .67000        .42357E-03   -1.5671    
  20  Prefactor     .16809E-05    120.18        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .13817E-06    41.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.3332        26.639        .37020E-03   -1.5654    
  23  Normalizat    1.4093        .29717        .56435E-01   -.80359    
  24  Prefactor     .78515        .34524        .86259E-01   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28262e-05
Minuit parameter uncertainties:
  1  0.000190149
  2  0.00016905
  3  0.00119317
  4  69.6804
  5  0.0975142
  6  31.2582
  7  27.7552
  8  3.01447e-05
  9  0.000202886
  10  0.000275975
  11  0.00870183
  12  0.000227411
  13  0.0610786
  14  81.8117
  15  65.7245
  16  0.000270677
  17  0.0336718
  18  168.946
  19  0.670003
  20  0.0284276
  21  0.00478195
  22  26.6397
  23  0.297532
  24  0.346192
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.436e-06  6.108e-02  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.852e-01  3.462e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.409e+00  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554416/likelihoodResults_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.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) = 2954.65644046
delta logL = -0.00623788723124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2954.62541415
delta logL = 0.0247884162532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27800       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80511       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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=   2954.625     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      335 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27817        1.5292        .99119E-04    .28774E-01
   2  alpha         5.0000        4.9956        .17497E-01** at limit **
   3  Normalizat    1.3834        .35863        .25154E-03   -.20143E-03
   4  Prefactor     .80511        .41078        .37781E-03   -.42654E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.278172
  alpha      = 5
  Normalizat = 1.38344
  Prefactor  = 0.805109
 **********
 **   18 **HESSE 
 **********

 FCN=   2954.625     FROM HESSE     STATUS=OK            25 CALLS      360 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27817        1.5181        .19824E-04   -1.5697    
   2  alpha         5.0000        4.9956        .34994E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3834        .35782        .50307E-04   -.81109    
   4  Prefactor     .80511        .41057        .15113E-04   -.99540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93635e-10
Minuit parameter uncertainties:
  1  1.2997
  2  0.000335428
  3  0.358469
  4  0.412145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554416': 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) = 2954.62541412
delta logL = 0.0247884472706

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.782e-01  1.300e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  5.000e+00  3.354e-04  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.077e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  8.051e-01  4.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.383e+00  3.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.788 39.823

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/554416/cmap_HighResolution_695260801_695520001_4FGL_J1023.1+3949_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-05', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2023-01-16 01:09:32.899870', job_id='554416', GAL2='0.81', fit_tolerance='1e-08', EG2='1.38', EG='1.41', time_epoch_completed='1673860172.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.48e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1759' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:09:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 554416: <4FGL_J1023.1+3949_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 00:55:42 2023
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:00:07 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:00:07 2023
Terminated at Mon Jan 16 01:09:33 2023
Results reported at Mon Jan 16 01:09:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1759 155.788 39.8226 695260801 695520001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.1+3949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            831 sec.

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

