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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1749
RA = 155.788, Dec = 39.8226
tmin = 692668801, tmax = 692928001
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='947865', job_status='RUN', time_executed='2022-12-17 00:30:35.113780', time_epoch_executed='1671265835.11' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947865/ft1_4FGL_J1023.1+3949_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947865/ft2_4FGL_J1023.1+3949_daily_bin1749.fits


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

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

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

Number of photons that the gtmktime cut: 560

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947865/ft1_filtered_4FGL_J1023.1+3949_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/947865/ft2_4FGL_J1023.1+3949_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/947865/ltcube_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.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/947865/ft2_4FGL_J1023.1+3949_daily_bin1749.fits
.....................!
real 11.89
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947865/ft1_filtered_4FGL_J1023.1+3949_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947865/ft2_4FGL_J1023.1+3949_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947865/ltcube_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.fits outfile=/scratch/kocevski/947865/expmap_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.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/947865/ltcube_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.fits
.....................!
real 190.49
user 185.31
sys 4.86

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/947865/ft1_filtered_4FGL_J1023.1+3949_daily_bin1749.fits scfile=/scratch/kocevski/947865/ft2_4FGL_J1023.1+3949_daily_bin1749.fits outfile=/scratch/kocevski/947865/cmap_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947865/ft1_filtered_4FGL_J1023.1+3949_daily_bin1749.fits scfile=/scratch/kocevski/947865/ft2_4FGL_J1023.1+3949_daily_bin1749.fits outfile=/scratch/kocevski/947865/cmap_HighResolution_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20633E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.2132       1.0000          .0000       .10000E+07
     3 'norm      '    .27484E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .66656E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48900E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .54553       1.0000          .0000       .10000E+07
     7 'norm      '    20.201       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22075E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.1395       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.957       1.0000          .0000       .10000E+07
    11 'norm      '    4.4254       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12495E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .57750E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .99935E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11974E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.2838       1.0000          .0000       .10000E+07
    17 'Prefactor '    .31518E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    74.285       1.0000          .0000       .10000E+07
    19 'norm      '    1.4276       1.0000          .0000       .10000E+07
    20 'Prefactor '    9.7262       1.0000          .0000       .10000E+07
    21 'Prefactor '    .21562E-02   1.0000          .0000       .10000E+07
    22 'norm      '    5.9500       1.0000          .0000       .10000E+07
    23 'Normalizat'    .93992       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90757       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=   6192.796     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1951 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88818E-09    4.0857        .21818E-07** at limit **
   2  Prefactor     1.2122        3.1292       -.57253E-07   -.35356E-03
   3  norm          .18857E-06    8.6582        .73754E-08** at limit **
   4  Prefactor     .27756E-09    29.020       -.53958E-06** at limit **
   5  Prefactor     .44631E-07    10.433       -.21928E-06** at limit **
   6  Prefactor     .54916        .70449        .55380E-08    .19012E-02
   7  norm          20.179        1.1891        .16492E-08    .10212E-02
   8  Prefactor     .16653E-08    5.2987        .31330E-08** at limit **
   9  Prefactor     3.1389        2.0340        .19533E-07    .93540E-03
  10  Prefactor     14.952        5.0240        .66236E-07    .31757E-02
  11  norm          4.4249        2.8285        .87767E-08    .52582E-03
  12  Prefactor      .0000        3.3526       -.10303E-06** at limit **
  13  norm          .27756E-09    1.3347       -.50933E-07** at limit **
  14  Prefactor     .31031E-07    15.567       -.36075E-07** at limit **
  15  Prefactor     .18036E-06    10.624       -.85587E-07** at limit **
  16  Prefactor     4.2737        4.0644        .44272E-08    .33812E-03
  17  Prefactor     .68723E-07    4.1103       -.13043E-06** at limit **
  18  Prefactor     74.273        6.4511       -.12145E-07    .14085    
  19  norm          1.4276        .32737        .15699E-08    .20722E-02
  20  Prefactor     9.7181        2.1046        .64269E-08    .82781E-02
  21  Prefactor     .76328E-07    4.4833       -.10430E-06** at limit **
  22  norm          5.9502        8.2216        .25115E-07    .16566E-01
  23  Normalizat    .94013        .18679       -.60026E-06    .25799E-04
  24  Prefactor     .90752        .22345        .89798E-06    .29255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.88178e-10
  Prefactor  = 1.2122
  norm       = 1.88571e-07
  Prefactor  = 2.77556e-10
  Prefactor  = 4.4631e-08
  Prefactor  = 0.549163
  norm       = 20.1786
  Prefactor  = 1.66533e-09
  Prefactor  = 3.13892
  Prefactor  = 14.9521
  norm       = 4.42487
  Prefactor  = 0
  norm       = 2.77556e-10
  Prefactor  = 3.10307e-08
  Prefactor  = 1.80356e-07
  Prefactor  = 4.27371
  Prefactor  = 6.87228e-08
  Prefactor  = 74.2727
  norm       = 1.42757
  Prefactor  = 9.7181
  Prefactor  = 7.63278e-08
  norm       = 5.9502
  Normalizat = 0.940131
  Prefactor  = 0.907523
 **********
 **   18 **HESSE 
 **********

 FCN=   6192.796     FROM HESSE     STATUS=OK           443 CALLS     2394 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88818E-09    4.4183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2122        3.1476        .10259E-02   -1.5686    
   3  norm          .18857E-06    18.565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27756E-09    28.622        .14930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44631E-07    11.720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54916        19.522        .74256E-03   -1.5693    
   7  norm          20.179        15.657        .22256E-03   -1.5618    
   8  Prefactor     .16653E-08    5.3400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1389        2.0357        .57188E-03   -1.5673    
  10  Prefactor     14.952        5.0963        .25872E-03   -1.5631    
  11  norm          4.4249        2.8447        .47847E-03   -1.5666    
  12  Prefactor      .0000        4.3602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    4.0869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .31031E-07    19.797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .18036E-06    13.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2737        4.0798        .48652E-03   -1.5667    
  17  Prefactor     .68723E-07    7.8886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     74.273        70.168        .11603E-03   -1.5536    
  19  norm          1.4276        .33320        .46956E-03   -1.5684    
  20  Prefactor     9.7181        13.502        .32108E-03   -1.5646    
  21  Prefactor     .76328E-07    7.5788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.9502        8.9043        .41143E-03   -1.5659    
  23  Normalizat    .94013        .16154        .45410E-01   -.95064    
  24  Prefactor     .90752        .19044        .65484E-01   -.95879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37944e-06
Minuit parameter uncertainties:
  1  0.000126304
  2  3.14765
  3  0.00374222
  4  0.000173176
  5  0.00144661
  6  6.54852
  7  15.6568
  8  0.000188474
  9  2.03567
  10  5.09632
  11  2.84473
  12  1.06755e-05
  13  7.06464e-05
  14  0.00156713
  15  0.00316031
  16  4.07977
  17  0.00147241
  18  70.1689
  19  0.333202
  20  13.5016
  21  0.00152141
  22  8.90428
  23  0.161623
  24  0.190576
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.776e-10  7.065e-05  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.075e-01  1.906e-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:  9.401e-01  1.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/947865/likelihoodResults_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.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) = 6192.91592856
delta logL = -0.119469586094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6192.79645913
delta logL = -1.50732375914e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28699E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    3.5724       1.0000          .0000       5.0000    
     3 'Normalizat'    .94019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90743       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=   6192.796     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      215 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31086E-08    1.7655        .42118E-03** at limit **
   2  alpha         1.3690        2.5526        .47413       -.21820E-08
   3  Normalizat    .94013        .35572E-02    .45413E-01    .33164E-03
   4  Prefactor     .90753        .44142E-02    .65484E-01    .58881E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10862e-09
  alpha      = 1.36903
  Normalizat = 0.940127
  Prefactor  = 0.907529
 **********
 **   18 **HESSE 
 **********

 FCN=   6192.796     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      244 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31086E-08    9.4814        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3690        2.5186        .50000       -.46944    
   3  Normalizat    .94013        .82662E-02    .23097E-03   -.95064    
   4  Prefactor     .90753        .10249E-01    .28964E-03   -.95878    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88013e-09
Minuit parameter uncertainties:
  1  0.000342518
  2  38164.6
  3  0.00826622
  4  0.0102495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947865': 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) = 6192.79645898
delta logL = -1.11413100967e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.075e-01  1.025e-02  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:  9.401e-01  8.266e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/947865/cmap_HighResolution_692668801_692928001_4FGL_J1023.1+3949_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='4.66e-08', time_completed='2022-12-17 00:41:13.613315', job_id='947865', GAL2='0.91', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1671266473.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1749' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:41:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 947865: <4FGL_J1023.1+3949_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:22 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:24 2022
Terminated at Sat Dec 17 00:41:14 2022
Results reported at Sat Dec 17 00:41:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1749 155.788 39.8226 692668801 692928001 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 :                                   640.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            652 sec.

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

