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 54 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_bin1709
RA = 155.788, Dec = 39.8226
tmin = 682300801, tmax = 682560001
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='91781', job_status='RUN', time_executed='2022-09-16 15:18:55.623207', time_epoch_executed='1663366735.62' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91781

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91781/ft1_4FGL_J1023.1+3949_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91781/ft1_4FGL_J1023.1+3949_daily_bin1709.fits outfile=/scratch/kocevski/91781/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1709.fits ra=155.788 dec=39.8226 rad=12.0 tmin=682300801.0 tmax=682560001.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.84
user 3.59
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.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/91781/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/91781/ft1_filtered_4FGL_J1023.1+3949_daily_bin1709.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.35
sys 0.17

Number of photons that the gtmktime cut: 562

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91781/ft1_filtered_4FGL_J1023.1+3949_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/91781/ltcube_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.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/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits
.....................!
real 14.32
user 13.90
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91781/ft1_filtered_4FGL_J1023.1+3949_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/91781/ltcube_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.fits outfile=/scratch/kocevski/91781/expmap_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.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/91781/ltcube_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.fits
.....................!
real 192.54
user 186.06
sys 5.82

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/91781/ft1_filtered_4FGL_J1023.1+3949_daily_bin1709.fits scfile=/scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits outfile=/scratch/kocevski/91781/cmap_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91781/ft1_filtered_4FGL_J1023.1+3949_daily_bin1709.fits scfile=/scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits outfile=/scratch/kocevski/91781/cmap_HighResolution_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91781/ft1_filtered_4FGL_J1023.1+3949_daily_bin1709.fits', '/scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits', expMap='/scratch/kocevski/91781/expmap_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.fits', expCube='/scratch/kocevski/91781/ltcube_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91781/Model_4FGL_J1023.1+3949_daily_bin1709.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/91781/ft1_filtered_4FGL_J1023.1+3949_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/91781/ft2_4FGL_J1023.1+3949_daily_bin1709.fits
Exposure map: /scratch/kocevski/91781/expmap_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.fits
Exposure cube: /scratch/kocevski/91781/ltcube_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91781/Model_4FGL_J1023.1+3949_daily_bin1709.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) = 6235.23795099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9544       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1862       1.0000          .0000       .10000E+07
     3 'norm      '    .65447       1.0000          .0000       .10000E+07
     4 'Prefactor '    31.108       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.116       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.8646       1.0000          .0000       .10000E+07
     7 'norm      '    .17404E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16649E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19817E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.9244       1.0000          .0000       .10000E+07
    11 'norm      '    7.6776       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.4746       1.0000          .0000       .10000E+07
    13 'norm      '    1.7673       1.0000          .0000       .10000E+07
    14 'Prefactor '    53.721       1.0000          .0000       .10000E+07
    15 'Prefactor '    .52185E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19669       1.0000          .0000       .10000E+07
    17 'Prefactor '    .90697       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.5995       1.0000          .0000       .10000E+07
    19 'norm      '    1.5518       1.0000          .0000       .10000E+07
    20 'Prefactor '    .41165       1.0000          .0000       .10000E+07
    21 'Prefactor '    38.859       1.0000          .0000       .10000E+07
    22 'norm      '    4.1857       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1385       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94783       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=   6235.202     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2030 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9420        10.019        .99175E-07   -.19020E-03
   2  Prefactor     1.1945        3.0331       -.49215E-07   -.28538E-03
   3  norm          .48067E-06    128.45        .34398E-06** at limit **
   4  Prefactor     31.515        20.031        .61916E-06    .60442E-02
   5  Prefactor     11.206        14.492       -.14312E-06   -.30334E-01
   6  Prefactor     5.7914        7.8243       -.57136E-07    .72784E-03
   7  norm           .0000        10.891       -.98465E-08** at limit **
   8  Prefactor      .0000        1.8764       -.20843E-07** at limit **
   9  Prefactor      .0000        .71434        .53532E-07** at limit **
  10  Prefactor     5.9502        3.5915       -.90332E-07    .13952E-02
  11  norm          7.6544        3.0818       -.15830E-07   -.12149E-02
  12  Prefactor     1.4689        2.7097       -.74261E-07    .60590E-03
  13  norm          1.7223        10.555       -.37865E-06    .63765E-03
  14  Prefactor     54.321        20.698       -.20833E-06    .21982    
  15  Prefactor     .51237E-07    10.323       -.11621E-05** at limit **
  16  Prefactor     .22041        20.521       -.14933E-05** at limit **
  17  Prefactor     .18910E-02    78.274       -.66440E-05** at limit **
  18  Prefactor     .14860E-03    406.41       -.13703E-04** at limit **
  19  norm          1.5536        .41255       -.91340E-08    .14487E-01
  20  Prefactor     .14878E-05    4.7713       -.88711E-06** at limit **
  21  Prefactor     38.953        20.418        .54444E-06    .20567    
  22  norm          4.4017        15.759       -.83472E-06   -.11506E-01
  23  Normalizat    1.1406        .20550        .12695E-04    .26387E-03
  24  Prefactor     .94755        .24527       -.21722E-05    .21944E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.94198
  Prefactor  = 1.19445
  norm       = 4.80671e-07
  Prefactor  = 31.5152
  Prefactor  = 11.206
  Prefactor  = 5.79136
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.95019
  norm       = 7.65437
  Prefactor  = 1.46887
  norm       = 1.72231
  Prefactor  = 54.321
  Prefactor  = 5.12368e-08
  Prefactor  = 0.220411
  Prefactor  = 0.00189101
  Prefactor  = 0.000148597
  norm       = 1.55364
  Prefactor  = 1.48775e-06
  Prefactor  = 38.953
  norm       = 4.40166
  Normalizat = 1.14063
  Prefactor  = 0.947549
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.202     FROM HESSE     STATUS=OK           459 CALLS     2489 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9420        10.144        .35527E-03   -1.5652    
   2  Prefactor     1.1945        3.0760        .10471E-02   -1.5686    
   3  norm          .48067E-06    125.31        .64484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.515        23.233        .17932E-03   -1.5596    
   5  Prefactor     11.206        26.845        .30025E-03   -1.5641    
   6  Prefactor     5.7914        7.8273        .41445E-03   -1.5660    
   7  norm           .0000        10.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.8748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .71580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9502        3.5957        .41233E-03   -1.5659    
  11  norm          7.6544        3.0831        .36167E-03   -1.5653    
  12  Prefactor     1.4689        2.7630        .88416E-03   -1.5684    
  13  norm          1.7223        10.864        .78757E-03   -1.5682    
  14  Prefactor     54.321        69.885        .13645E-03   -1.5561    
  15  Prefactor     .51237E-07    11.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22041        2.3106        .73952E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18910E-02    533.28        .45280E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14860E-03    468.88        .46909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5536        .41485        .54056E-03   -1.5683    
  20  Prefactor     .14878E-05    48.374        .88149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.953        24.016        .16043E-03   -1.5583    
  22  norm          4.4017        15.769        .49236E-03   -1.5666    
  23  Normalizat    1.1406        .17307        .52979E-01   -.88458    
  24  Prefactor     .94755        .20840        .70918E-01   -.94499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82541e-06
Minuit parameter uncertainties:
  1  10.1437
  2  3.076
  3  0.0155226
  4  23.2329
  5  26.8454
  6  7.82734
  7  2.63484e-05
  8  1.3549e-05
  9  1.49018e-06
  10  3.59569
  11  3.08309
  12  2.76304
  13  8.65128
  14  69.8859
  15  0.00151278
  16  1.4273
  17  2.0086
  18  0.52796
  19  0.414845
  20  0.0169669
  21  24.016
  22  15.7692
  23  0.173159
  24  0.20858
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.722e+00  8.651e+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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.475e-01  2.086e-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.141e+00  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91781/likelihoodResults_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.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) = 6235.16016222
delta logL = 0.0417808850225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6235.1563954
delta logL = 0.0455477064397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2920       1.0000          .0000       .10000E+07
     2 'alpha     '    2.8842       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95231       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=   6235.156     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      252 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2930        8.0667        .27109E-04   -.76619E-03
   2  alpha         2.8804        1.9696        .51176E-01    .85328E-04
   3  Normalizat    1.1325        .20043        .23498E-03   -.13509E-03
   4  Prefactor     .95239        .24512        .31303E-03   -.22379E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29301
  alpha      = 2.88039
  Normalizat = 1.13254
  Prefactor  = 0.952388
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.156     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2930        7.3824        .10844E-05   -1.5678    
   2  alpha         2.8804        1.8474        .10235E-01    .15275    
   3  Normalizat    1.1325        .20072        .46997E-04   -.88714    
   4  Prefactor     .95239        .24524        .12521E-04   -.94334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52348e-10
Minuit parameter uncertainties:
  1  7.38241
  2  2.08683
  3  0.200855
  4  0.24553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91781': 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) = 6235.15639305
delta logL = 0.0455500528069

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.293e+00  7.382e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  2.880e+00  2.087e+00  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:  9.524e-01  2.455e-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.133e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/91781/cmap_HighResolution_682300801_682560001_4FGL_J1023.1+3949_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2022-09-16 15:30:09.742375', job_id='91781', GAL2='0.95', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1663367409.74', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.56e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1709' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:30:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 91781: <4FGL_J1023.1+3949_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1709> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 15:15:20 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:17:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:17:53 2022
Terminated at Fri Sep 16 15:30:10 2022
Results reported at Fri Sep 16 15:30:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1709 155.788 39.8226 682300801 682560001 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 :                                   675.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            890 sec.

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

