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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1713
RA = 155.788, Dec = 39.8226
tmin = 683337601, tmax = 683596801
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='91787', job_status='RUN', time_executed='2022-09-16 15:20:10.620880', time_epoch_executed='1663366810.62' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91787/ft1_4FGL_J1023.1+3949_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91787/ft2_4FGL_J1023.1+3949_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91787/ft1_4FGL_J1023.1+3949_daily_bin1713.fits outfile=/scratch/kocevski/91787/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1713.fits ra=155.788 dec=39.8226 rad=12.0 tmin=683337601.0 tmax=683596801.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.65
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91787/ft2_4FGL_J1023.1+3949_daily_bin1713.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/91787/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/91787/ft1_filtered_4FGL_J1023.1+3949_daily_bin1713.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 500

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91787/ft1_filtered_4FGL_J1023.1+3949_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/91787/ft2_4FGL_J1023.1+3949_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/91787/ltcube_683337601_683596801_4FGL_J1023.1+3949_daily_bin1713.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/91787/ft2_4FGL_J1023.1+3949_daily_bin1713.fits
.....................!
real 15.69
user 15.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91787/ft1_filtered_4FGL_J1023.1+3949_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/91787/ft2_4FGL_J1023.1+3949_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/91787/ltcube_683337601_683596801_4FGL_J1023.1+3949_daily_bin1713.fits outfile=/scratch/kocevski/91787/expmap_683337601_683596801_4FGL_J1023.1+3949_daily_bin1713.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/91787/ltcube_683337601_683596801_4FGL_J1023.1+3949_daily_bin1713.fits
.....................!
real 193.47
user 186.74
sys 5.59

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/91787/ft1_filtered_4FGL_J1023.1+3949_daily_bin1713.fits scfile=/scratch/kocevski/91787/ft2_4FGL_J1023.1+3949_daily_bin1713.fits outfile=/scratch/kocevski/91787/cmap_683337601_683596801_4FGL_J1023.1+3949_daily_bin1713.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/91787/ft1_filtered_4FGL_J1023.1+3949_daily_bin1713.fits scfile=/scratch/kocevski/91787/ft2_4FGL_J1023.1+3949_daily_bin1713.fits outfile=/scratch/kocevski/91787/cmap_HighResolution_683337601_683596801_4FGL_J1023.1+3949_daily_bin1713.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1187       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21605E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .29815       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14658E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .61371E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.330       1.0000          .0000       .10000E+07
     7 'norm      '    8.1109       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14640E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5251       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15047E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.3243       1.0000          .0000       .10000E+07
    12 'Prefactor '    .25408E-04   1.0000          .0000       .10000E+07
    13 'norm      '    12.900       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.575       1.0000          .0000       .10000E+07
    15 'Prefactor '    67.530       1.0000          .0000       .10000E+07
    16 'Prefactor '    .39361       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.6083       1.0000          .0000       .10000E+07
    18 'Prefactor '    .57636       1.0000          .0000       .10000E+07
    19 'norm      '    1.6001       1.0000          .0000       .10000E+07
    20 'Prefactor '    .19003E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56048E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .10654E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .82384       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1818       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=   5643.827     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1992 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0770        13.777       -.32769E-06   -.27670E-03
   2  Prefactor      .0000        .84400       -.40507E-07** at limit **
   3  norm          .22449E-04    3.9970       -.24733E-06** at limit **
   4  Prefactor     .22038E-07    26.563       -.48410E-06** at limit **
   5  Prefactor     .73996E-07    13.281       -.46733E-06** at limit **
   6  Prefactor     12.289        2.0533       -.10407E-07    .14370    
   7  norm          8.1060        1.0769        .83968E-09    .21222E-01
   8  Prefactor     .55511E-10    2.9594        .39657E-07** at limit **
   9  Prefactor     1.5241        2.2964        .84546E-07    .23282E-02
  10  Prefactor     .72164E-08    3.6526       -.10460E-06** at limit **
  11  norm          1.3226        2.4104        .80072E-07    .23306E-02
  12  Prefactor     .16653E-09    2.4078       -.32925E-07** at limit **
  13  norm          12.894        1.0798       -.63995E-08    .66981E-02
  14  Prefactor     11.521        2.7878       -.85990E-08    .42445E-01
  15  Prefactor     67.724        5.8203        .10055E-07   -.18153    
  16  Prefactor     .39692        3.7312       -.30965E-06   -.28824E-02
  17  Prefactor     2.5840        1.5045       -.39185E-08   -.74803E-02
  18  Prefactor     .31697E-06    111.80       -.39618E-06** at limit **
  19  norm          1.6000        .35816       -.23864E-08   -.10050E-01
  20  Prefactor     .72164E-09    6.0115       -.62940E-07** at limit **
  21  Prefactor     .19429E-08    4.4085       -.13537E-06** at limit **
  22  norm          .56066E-08    3.2008       -.11771E-06** at limit **
  23  Normalizat    .82400        .19734       -.26731E-05   -.26166E-03
  24  Prefactor     1.1823        .24957        .57600E-06   -.21419E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07702
  Prefactor  = 0
  norm       = 2.24493e-05
  Prefactor  = 2.20379e-08
  Prefactor  = 7.39964e-08
  Prefactor  = 12.2892
  norm       = 8.10601
  Prefactor  = 5.55112e-11
  Prefactor  = 1.52412
  Prefactor  = 7.21645e-09
  norm       = 1.32262
  Prefactor  = 1.66533e-10
  norm       = 12.8943
  Prefactor  = 11.5212
  Prefactor  = 67.7242
  Prefactor  = 0.396922
  Prefactor  = 2.58403
  Prefactor  = 3.16969e-07
  norm       = 1.59996
  Prefactor  = 7.21645e-10
  Prefactor  = 1.94289e-09
  norm       = 5.60663e-09
  Normalizat = 0.823998
  Prefactor  = 1.18234
 **********
 **   18 **HESSE 
 **********

 FCN=   5643.827     FROM HESSE     STATUS=OK           447 CALLS     2439 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0770        13.655        .11110E-02   -1.5687    
   2  Prefactor      .0000        .84519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .22449E-04    9.9333        .10239E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22038E-07    26.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .73996E-07    13.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.289        13.466        .28502E-03   -1.5638    
   7  norm          8.1060        10.659        .35180E-03   -1.5651    
   8  Prefactor     .55511E-10    2.9580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5241        2.3429        .86442E-03   -1.5683    
  10  Prefactor     .72164E-08    3.6436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3226        2.4476        .95507E-03   -1.5685    
  12  Prefactor     .16653E-09    2.4066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.894        9.1284        .27864E-03   -1.5636    
  14  Prefactor     11.521        48.919        .29421E-03   -1.5640    
  15  Prefactor     67.724        40.996        .12170E-03   -1.5543    
  16  Prefactor     .39692        3.8008        .90231E-03   -1.5695    
  17  Prefactor     2.5840        68.303        .63137E-03   -1.5676    
  18  Prefactor     .31697E-06    116.33        .71373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6000        .35860        .46665E-03   -1.5683    
  20  Prefactor     .72164E-09    6.0183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19429E-08    4.4179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .56066E-08    3.2130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82400        .17018        .43921E-01   -.99185    
  24  Prefactor     1.1823        .21112        .59939E-01   -.86876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57383e-06
Minuit parameter uncertainties:
  1  7.66988
  2  8.37354e-06
  3  0.0298661
  4  0.00153802
  5  0.00201172
  6  13.466
  7  10.6589
  8  2.64857e-05
  9  2.34291
  10  0.000323853
  11  2.44765
  12  4.31469e-05
  13  9.12837
  14  47.4814
  15  40.9965
  16  2.45652
  17  26.5707
  18  0.0121448
  19  0.358599
  20  0.000132966
  21  0.000184937
  22  0.000268438
  23  0.170287
  24  0.211272
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.289e+01  9.128e+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:  1.182e+00  2.113e-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:  8.240e-01  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.28
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 9.08e-06

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) = 5643.19588073
delta logL = 0.631600387859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5643.06212866
delta logL = 0.765352455312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6666       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3815       1.0000          .0000       5.0000    
     3 'Normalizat'    .84882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1667       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.

 FCN=   5643.062     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6666        6.3465        .36193E-03   -.15442E-01
   2  alpha         1.3815        .43546        .33659       -.36048E-04
   3  Normalizat    .84879        .16452        .44244E-01    .13570E-04
   4  Prefactor     1.1667        .20847        .60302E-01    .62222E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.6666
  alpha      = 1.38148
  Normalizat = 0.848793
  Prefactor  = 1.16672
 **********
 **   18 **HESSE 
 **********

 FCN=   5643.062     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6666        8.6762        .14477E-04   -1.5653    
   2  alpha         1.3815        .64492        .13642E-01   -.46387    
   3  Normalizat    .84879        .19699        .24380E-03   -.98284    
   4  Prefactor     1.1667        .24953        .26669E-03   -.87362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37765e-09
Minuit parameter uncertainties:
  1  8.67625
  2  0.654217
  3  0.197152
  4  0.249779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91787': 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) = 5643.06212865
delta logL = 0.765352468848

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  7.667e+00  8.676e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  1.381e+00  6.542e-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:  1.167e+00  2.498e-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:  8.488e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.82
Ra Dec: 155.788 39.823
Photon Index (Free Index): 1.38 +/- 0.65
Photon Flux (Free Index): 1.44e-08 +/- 1.62e-08
Energy Flux (Free Index): 2.31e-05 +/- 2.56e-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/91787/cmap_HighResolution_683337601_683596801_4FGL_J1023.1+3949_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='2.31e-05', photon_flux_error='2.60e-08', dlogl='7.65e-01', energy_flux='1.28e-05', photon_flux2='1.44e-08', job_status='DONE', time_completed='2022-09-16 15:30:00.329373', photon_index_error2='0.65', photon_index2='1.38', ts='6.28', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.82', time_epoch_completed='1663367400.33', return_code='0', job_id='91787', GAL2='1.17', EG2='0.85', return_code2='0', energy_flux_error='9.08e-06', photon_flux_error2='1.62e-08', ts2='7.82', photon_index='2.25' WHERE bin_id='1713' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:30:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 91787: <4FGL_J1023.1+3949_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1713> 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) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:17:58 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:58 2022
Terminated at Fri Sep 16 15:30:01 2022
Results reported at Fri Sep 16 15:30:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1713 155.788 39.8226 683337601 683596801 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 :                                   591.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            881 sec.

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

