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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1710
RA = 155.788, Dec = 39.8226
tmin = 682560001, tmax = 682819201
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='91782', job_status='RUN', time_executed='2022-09-16 15:19:28.112439', time_epoch_executed='1663366768.11' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91782/ft1_4FGL_J1023.1+3949_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91782/ft2_4FGL_J1023.1+3949_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91782/ft1_4FGL_J1023.1+3949_daily_bin1710.fits outfile=/scratch/kocevski/91782/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1710.fits ra=155.788 dec=39.8226 rad=12.0 tmin=682560001.0 tmax=682819201.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.68
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91782/ft2_4FGL_J1023.1+3949_daily_bin1710.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/91782/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/91782/ft1_filtered_4FGL_J1023.1+3949_daily_bin1710.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 537

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91782/ft1_filtered_4FGL_J1023.1+3949_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/91782/ft2_4FGL_J1023.1+3949_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/91782/ltcube_682560001_682819201_4FGL_J1023.1+3949_daily_bin1710.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/91782/ft2_4FGL_J1023.1+3949_daily_bin1710.fits
.....................!
real 14.76
user 14.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91782/ft1_filtered_4FGL_J1023.1+3949_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/91782/ft2_4FGL_J1023.1+3949_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/91782/ltcube_682560001_682819201_4FGL_J1023.1+3949_daily_bin1710.fits outfile=/scratch/kocevski/91782/expmap_682560001_682819201_4FGL_J1023.1+3949_daily_bin1710.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/91782/ltcube_682560001_682819201_4FGL_J1023.1+3949_daily_bin1710.fits
.....................!
real 193.76
user 187.76
sys 5.24

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/91782/ft1_filtered_4FGL_J1023.1+3949_daily_bin1710.fits scfile=/scratch/kocevski/91782/ft2_4FGL_J1023.1+3949_daily_bin1710.fits outfile=/scratch/kocevski/91782/cmap_682560001_682819201_4FGL_J1023.1+3949_daily_bin1710.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91782/ft1_filtered_4FGL_J1023.1+3949_daily_bin1710.fits scfile=/scratch/kocevski/91782/ft2_4FGL_J1023.1+3949_daily_bin1710.fits outfile=/scratch/kocevski/91782/cmap_HighResolution_682560001_682819201_4FGL_J1023.1+3949_daily_bin1710.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57779E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .43667       1.0000          .0000       .10000E+07
     3 'norm      '    2.8115       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.229       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.444       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.188       1.0000          .0000       .10000E+07
     7 'norm      '    .82495E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50848E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13045E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.6150       1.0000          .0000       .10000E+07
    11 'norm      '    7.4448       1.0000          .0000       .10000E+07
    12 'Prefactor '    .96103E-05   1.0000          .0000       .10000E+07
    13 'norm      '    19.408       1.0000          .0000       .10000E+07
    14 'Prefactor '    21.645       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13167E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20288E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    17.787       1.0000          .0000       .10000E+07
    18 'Prefactor '    69.594       1.0000          .0000       .10000E+07
    19 'norm      '    1.4180       1.0000          .0000       .10000E+07
    20 'Prefactor '    28.298       1.0000          .0000       .10000E+07
    21 'Prefactor '    .27446E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.1541       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1322       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90014       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=   6056.340     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     2021 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23037E-07    12.784       -.21079E-06** at limit **
   2  Prefactor     .40172        4.1436        .27517E-08    .13965E-02
   3  norm          2.6555        9.8283       -.13960E-06    .75657E-02
   4  Prefactor     10.671        24.700       -.20434E-06   -.61668E-01
   5  Prefactor     11.467        32.653       -.22743E-06   -.62014E-01
   6  Prefactor     12.200        10.694        .24789E-06    .20741E-01
   7  norm          .55511E-10    5.6831       -.14840E-05** at limit **
   8  Prefactor      .0000        1.7289        .28416E-06** at limit **
   9  Prefactor      .0000        .95961       -.63196E-07** at limit **
  10  Prefactor     2.5913        3.9375        .26907E-06    .66242E-03
  11  norm          7.4303        3.2264        .15461E-07    .48228E-03
  12  Prefactor      .0000        2.0652        .33894E-06** at limit **
  13  norm          19.415        10.452        .72647E-06    .15046    
  14  Prefactor     22.235        37.107       -.61996E-06    .10383    
  15  Prefactor     .83267E-09    34.105       -.20764E-05** at limit **
  16  Prefactor     .55511E-10    2.1270       -.53633E-06** at limit **
  17  Prefactor     18.013        1.8978        .82597E-08   -.23150E-02
  18  Prefactor     70.332        69.681        .56882E-07   -.66542E-01
  19  norm          1.4176        .35305       -.41424E-07   -.10379E-01
  20  Prefactor     28.330        7.5911       -.33611E-06    .18015    
  21  Prefactor     .47962E-07    16.185       -.23881E-05** at limit **
  22  norm          1.1540        19.440       -.19021E-05   -.19964E-02
  23  Normalizat    1.1318        .20517       -.29410E-05    .21967E-04
  24  Prefactor     .89998        .24003       -.13578E-05   -.47816E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30371e-08
  Prefactor  = 0.401719
  norm       = 2.65552
  Prefactor  = 10.6707
  Prefactor  = 11.4666
  Prefactor  = 12.1998
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.59126
  norm       = 7.43033
  Prefactor  = 0
  norm       = 19.4149
  Prefactor  = 22.2353
  Prefactor  = 8.32667e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 18.0133
  Prefactor  = 70.3316
  norm       = 1.41756
  Prefactor  = 28.3297
  Prefactor  = 4.79616e-08
  norm       = 1.15398
  Normalizat = 1.13184
  Prefactor  = 0.899981
 **********
 **   18 **HESSE 
 **********

 FCN=   6056.340     FROM HESSE     STATUS=OK           453 CALLS     2474 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23037E-07    12.835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .40172        2.2246        .35890E-02   -1.5695    
   3  norm          2.6555        79.706        .60639E-03   -1.5675    
   4  Prefactor     10.671        135.12        .31305E-03   -1.5643    
   5  Prefactor     11.467        97.087        .29588E-03   -1.5640    
   6  Prefactor     12.200        10.774        .28669E-03   -1.5638    
   7  norm          .55511E-10    5.6889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.7352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .95999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5913        3.9629        .63049E-03   -1.5676    
  11  norm          7.4303        3.2264        .36733E-03   -1.5653    
  12  Prefactor      .0000        2.0601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.415        11.413        .22707E-03   -1.5620    
  14  Prefactor     22.235        47.336        .21500E-03   -1.5614    
  15  Prefactor     .83267E-09    34.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    2.1235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.013        28.514        .23720E-03   -1.5623    
  18  Prefactor     70.332        83.364        .11988E-03   -1.5540    
  19  norm          1.4176        .36146        .50036E-03   -1.5684    
  20  Prefactor     28.330        18.434        .18802E-03   -1.5602    
  21  Prefactor     .47962E-07    16.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1540        19.739        .10751E-02   -1.5686    
  23  Normalizat    1.1318        .18255        .36817E-01   -.88736    
  24  Prefactor     .89998        .21124        .70584E-01   -.96142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21766e-06
Minuit parameter uncertainties:
  1  0.00108788
  2  1.89066
  3  29.0976
  4  75.9441
  5  66.7324
  6  10.7739
  7  4.17808e-05
  8  5.464e-06
  9  2.76988e-07
  10  3.96287
  11  3.22644
  12  8.69331e-07
  13  11.4133
  14  47.3365
  15  0.000338385
  16  1.94667e-05
  17  28.5142
  18  83.3651
  19  0.361459
  20  18.4339
  21  0.00176392
  22  9.54546
  23  0.182656
  24  0.211428
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.941e+01  1.141e+01  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.000e-01  2.114e-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.132e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.64
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.13e-05

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) = 6056.29669387
delta logL = 0.0434060692514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6056.29450186
delta logL = 0.0455980786455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.949       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0266       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88990       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=   6056.295     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.946        11.856        .91923E-05    .26343E-03
   2  alpha         2.0262        .70447        .16005E-01    .28368E-04
   3  Normalizat    1.1447        .19907        .23060E-03    .69395E-03
   4  Prefactor     .88989        .23910        .31381E-03    .49971E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.9464
  alpha      = 2.02623
  Normalizat = 1.14471
  Prefactor  = 0.889893
 **********
 **   18 **HESSE 
 **********

 FCN=   6056.295     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.946        11.992        .36769E-06   -1.5621    
   2  alpha         2.0262        .71218        .64020E-03   -.19066    
   3  Normalizat    1.1447        .19931        .46120E-04   -.88329    
   4  Prefactor     .88989        .23927        .62762E-04   -.96495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08882e-10
Minuit parameter uncertainties:
  1  11.992
  2  0.722575
  3  0.199437
  4  0.239555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91782': 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) = 6056.2945016
delta logL = 0.0455983353386

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.895e+01  1.199e+01  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  2.026e+00  7.226e-01  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.899e-01  2.396e-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.145e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.71
Ra Dec: 155.788 39.823
Photon Index (Free Index): 2.03 +/- 0.72
Photon Flux (Free Index): 4.55e-08 +/- 4.19e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.42e-05

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/91782/cmap_HighResolution_682560001_682819201_4FGL_J1023.1+3949_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='2.09e-05', photon_flux_error='3.25e-08', dlogl='4.56e-02', energy_flux='1.93e-05', photon_flux2='4.55e-08', job_status='DONE', time_completed='2022-09-16 15:29:32.530576', photon_index_error2='0.72', photon_index2='2.03', ts='5.64', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.13', time_epoch_completed='1663367372.53', return_code='0', job_id='91782', GAL2='0.89', EG2='1.14', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.19e-08', ts2='5.71', photon_index='2.25' WHERE bin_id='1710' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:29:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 91782: <4FGL_J1023.1+3949_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1710> 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) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:17:55 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:55 2022
Terminated at Fri Sep 16 15:29:33 2022
Results reported at Fri Sep 16 15:29:33 2022

Your job looked like:

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

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

