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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1780
RA = 155.788, Dec = 39.8226
tmin = 700704001, tmax = 700963201
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='58498', job_status='RUN', time_executed='2023-03-20 00:37:00.894640', time_epoch_executed='1679297820.89' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58498/ft1_4FGL_J1023.1+3949_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58498/ft2_4FGL_J1023.1+3949_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58498/ft1_4FGL_J1023.1+3949_daily_bin1780.fits outfile=/scratch/kocevski/58498/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1780.fits ra=155.788 dec=39.8226 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.12
user 3.90
sys 0.20

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

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

Number of photons that the gtmktime cut: 678

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58498/ft1_filtered_4FGL_J1023.1+3949_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/58498/ft2_4FGL_J1023.1+3949_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/58498/ltcube_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.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/58498/ft2_4FGL_J1023.1+3949_daily_bin1780.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58498/ft1_filtered_4FGL_J1023.1+3949_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/58498/ft2_4FGL_J1023.1+3949_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/58498/ltcube_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.fits outfile=/scratch/kocevski/58498/expmap_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.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/58498/ltcube_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.fits
.....................!
real 190.82
user 185.81
sys 4.69

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/58498/ft1_filtered_4FGL_J1023.1+3949_daily_bin1780.fits scfile=/scratch/kocevski/58498/ft2_4FGL_J1023.1+3949_daily_bin1780.fits outfile=/scratch/kocevski/58498/cmap_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58498/ft1_filtered_4FGL_J1023.1+3949_daily_bin1780.fits scfile=/scratch/kocevski/58498/ft2_4FGL_J1023.1+3949_daily_bin1780.fits outfile=/scratch/kocevski/58498/cmap_HighResolution_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30889E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.0900       1.0000          .0000       .10000E+07
     3 'norm      '    .61496E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .98930E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    22.200       1.0000          .0000       .10000E+07
     6 'Prefactor '    .44847E-06   1.0000          .0000       .10000E+07
     7 'norm      '    7.5455       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.7153       1.0000          .0000       .10000E+07
     9 'Prefactor '    .75214       1.0000          .0000       .10000E+07
    10 'Prefactor '    .40485E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .12583E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.9412       1.0000          .0000       .10000E+07
    13 'norm      '    2.8431       1.0000          .0000       .10000E+07
    14 'Prefactor '    66.647       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28346E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.8233       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21441E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    54.448       1.0000          .0000       .10000E+07
    19 'norm      '    1.9431       1.0000          .0000       .10000E+07
    20 'Prefactor '    .31052E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.3474       1.0000          .0000       .10000E+07
    22 'norm      '    .49012E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    .84400       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99003       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=   7647.443     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2025 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10364E-06    13.922       -.24233E-07** at limit **
   2  Prefactor     2.0901        2.0868        .11576E-06    .50678E-02
   3  norm          .92698E-06    2.2636       -.33547E-06** at limit **
   4  Prefactor     .20151E-07    6.3347        .18345E-06** at limit **
   5  Prefactor     22.303        27.397       -.14603E-06    .13617E-01
   6  Prefactor     .54845E-07    3.9980       -.12093E-06** at limit **
   7  norm          7.5318        8.5759       -.20738E-07   -.36967E-02
   8  Prefactor     5.7235        5.6035       -.10832E-06   -.13324E-02
   9  Prefactor     .73388        3.1817       -.19785E-06   -.13611E-02
  10  Prefactor     .18874E-08    1.3739       -.99791E-07** at limit **
  11  norm          .13389E-06    9.2982        .12957E-06** at limit **
  12  Prefactor     9.9428        4.5658        .38973E-07    .31171E-02
  13  norm          2.7973        7.1461        .14250E-06    .72894E-03
  14  Prefactor     66.969        35.872        .19892E-06    .69096E-01
  15  Prefactor     .88263E-08    11.710       -.70830E-07** at limit **
  16  Prefactor     6.8295        4.4646       -.90412E-07   -.61836E-03
  17  Prefactor     .11430E-06    11.665        .29094E-06** at limit **
  18  Prefactor     54.758        39.657        .27596E-06   -.80675E-01
  19  norm          1.9431        .33585        .14665E-07    .24192E-01
  20  Prefactor     .83267E-09    5.7420       -.27319E-06** at limit **
  21  Prefactor     1.3451        1.4371       -.49390E-08   -.74696E-02
  22  norm          .41911E-06    3.2509       -.29091E-06** at limit **
  23  Normalizat    .84399        .16890        .10696E-05    .22128E-03
  24  Prefactor     .98999        .19927        .15652E-05    .19895E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03639e-07
  Prefactor  = 2.09011
  norm       = 9.26981e-07
  Prefactor  = 2.01505e-08
  Prefactor  = 22.3029
  Prefactor  = 5.4845e-08
  norm       = 7.53183
  Prefactor  = 5.72349
  Prefactor  = 0.733876
  Prefactor  = 1.88738e-09
  norm       = 1.33893e-07
  Prefactor  = 9.94275
  norm       = 2.79732
  Prefactor  = 66.9691
  Prefactor  = 8.82627e-09
  Prefactor  = 6.82953
  Prefactor  = 1.14297e-07
  Prefactor  = 54.7581
  norm       = 1.94312
  Prefactor  = 8.32667e-10
  Prefactor  = 1.34507
  norm       = 4.19109e-07
  Normalizat = 0.843993
  Prefactor  = 0.989988
 **********
 **   18 **HESSE 
 **********

 FCN=   7647.443     FROM HESSE     STATUS=OK           445 CALLS     2470 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10364E-06    15.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0901        2.1008        .71381E-03   -1.5679    
   3  norm          .92698E-06    4.6613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20151E-07    16.078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.303        28.440        .21229E-03   -1.5614    
   6  Prefactor     .54845E-07    4.1369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5318        8.5893        .36485E-03   -1.5653    
   8  Prefactor     5.7235        5.6294        .41992E-03   -1.5660    
   9  Prefactor     .73388        3.1861        .56573E-03   -1.5691    
  10  Prefactor     .18874E-08    1.3788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13389E-06    .76738        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9428        4.5745        .31757E-03   -1.5645    
  13  norm          2.7973        7.1867        .60278E-03   -1.5675    
  14  Prefactor     66.969        47.544        .12250E-03   -1.5544    
  15  Prefactor     .88263E-08    11.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8295        4.4708        .38386E-03   -1.5656    
  17  Prefactor     .11430E-06    16.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.758        61.317        .13553E-03   -1.5560    
  19  norm          1.9431        .35681        .46045E-03   -1.5680    
  20  Prefactor     .83267E-09    5.7495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3451        25.335        .94271E-03   -1.5685    
  22  norm          .41911E-06    4.3208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84399        .14623        .44182E-01   -.98457    
  24  Prefactor     .98999        .17300        .46142E-01   -.93064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87771e-06
Minuit parameter uncertainties:
  1  0.00256567
  2  2.10081
  3  0.00415736
  4  0.00113854
  5  28.4399
  6  0.000952791
  7  8.58935
  8  5.6294
  9  3.05825
  10  0.000102609
  11  0.000641031
  12  4.57448
  13  7.18676
  14  47.5447
  15  0.00064351
  16  4.47077
  17  0.00275989
  18  61.3174
  19  0.356808
  20  0.000137881
  21  11.6752
  22  0.00269133
  23  0.146301
  24  0.173095
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.797e+00  7.187e+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.900e-01  1.731e-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.440e-01  1.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/58498/likelihoodResults_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.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) = 7646.33846927
delta logL = 1.10497913435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7646.29011489
delta logL = 1.15333351571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4007       1.0000          .0000       .10000E+07
     2 'alpha     '    4.5708       1.0000          .0000       5.0000    
     3 'Normalizat'    .78178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0398       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=   7646.290     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      225 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3996        27.530        .91642E-03    .82575E-02
   2  alpha         4.5718        2.6914        .50000        .12892E-05
   3  Normalizat    .78177        .58876E-01    .43372E-01    .81419E-06
   4  Prefactor     1.0398        .71898E-01    .61237E-01    .97443E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39956
  alpha      = 4.57177
  Normalizat = 0.781767
  Prefactor  = 1.03982
 **********
 **   18 **HESSE 
 **********

 FCN=   7646.290     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3996        37.616        .72647E-05   -1.5684    
   2  alpha         4.5718        2.6935        .40827E-01    .97680    
   3  Normalizat    .78177        .14903        .24519E-03   -1.0075    
   4  Prefactor     1.0398        .18768        .27081E-03   -.91414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46567e-12
Minuit parameter uncertainties:
  1  14.5116
  2  7.70607
  3  0.149111
  4  0.187802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58498': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7646.29011451
delta logL = 1.15333388994

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.400e+00  1.451e+01  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  4.572e+00  7.706e+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:  1.040e+00  1.878e-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:  7.818e-01  1.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 155.788 39.823
Photon Index (Free Index): 4.57 +/- 7.71
Photon Flux (Free Index): 6.02e-08 +/- 4.39e-08
Energy Flux (Free Index): 8.54e-06 +/- 9.59e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/58498/cmap_HighResolution_700704001_700963201_4FGL_J1023.1+3949_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', comment='SUCCESS', energy_flux2='8.54e-06', dlogl='1.15e+00', photon_flux2='6.02e-08', job_status='DONE', time_completed='2023-03-20 00:49:15.970996', photon_index_error2='7.71', photon_index2='4.57', ts='0.20', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.03e-08', energy_flux_error2='9.59e-06', EG='0.84', time_epoch_completed='1679298555.97', return_code='0', job_id='58498', GAL2='1.04', EG2='0.78', return_code2='102', photon_flux_error2='4.39e-08', ts2='2.64', photon_index='2.25' WHERE bin_id='1780' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:49:15 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 58498: <4FGL_J1023.1+3949_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:35:15 2023
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:35:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:35:16 2023
Terminated at Mon Mar 20 00:49:16 2023
Results reported at Mon Mar 20 00:49:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1780 155.788 39.8226 700704001 700963201 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            841 sec.

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

