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


Performing analysis on: 4FGL_J1023.1+3949_weekly_bin759
RA = 155.788, Dec = 39.8226
tmin = 698025601, tmax = 698630401
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='587282', job_status='RUN', time_executed='2023-02-21 03:22:01.276838', time_epoch_executed='1676978521.28' WHERE source_name='4FGL J1023.1+3949' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587282

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587282/ft1_4FGL_J1023.1+3949_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587282/ft2_4FGL_J1023.1+3949_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587282/ft1_4FGL_J1023.1+3949_weekly_bin759.fits outfile=/scratch/kocevski/587282/ft1_filteredMKT_4FGL_J1023.1+3949_weekly_bin759.fits ra=155.788 dec=39.8226 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.59
user 8.26
sys 0.30

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

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

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587282/ft1_filtered_4FGL_J1023.1+3949_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/587282/ft2_4FGL_J1023.1+3949_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/587282/ltcube_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.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/587282/ft2_4FGL_J1023.1+3949_weekly_bin759.fits
.....................!
real 27.33
user 26.84
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587282/ft1_filtered_4FGL_J1023.1+3949_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/587282/ft2_4FGL_J1023.1+3949_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/587282/ltcube_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.fits outfile=/scratch/kocevski/587282/expmap_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.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/587282/ltcube_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.fits
.....................!
real 190.75
user 184.83
sys 5.60

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/587282/ft1_filtered_4FGL_J1023.1+3949_weekly_bin759.fits scfile=/scratch/kocevski/587282/ft2_4FGL_J1023.1+3949_weekly_bin759.fits outfile=/scratch/kocevski/587282/cmap_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.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.76
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587282/ft1_filtered_4FGL_J1023.1+3949_weekly_bin759.fits scfile=/scratch/kocevski/587282/ft2_4FGL_J1023.1+3949_weekly_bin759.fits outfile=/scratch/kocevski/587282/cmap_HighResolution_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.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.73
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0282       1.0000          .0000       .10000E+07
     2 'Prefactor '    .43460E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .14033E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23290E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    12.528       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.6848       1.0000          .0000       .10000E+07
     7 'norm      '    21.022       1.0000          .0000       .10000E+07
     8 'Prefactor '    .30748E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2420       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26280E-04   1.0000          .0000       .10000E+07
    11 'norm      '    4.9690       1.0000          .0000       .10000E+07
    12 'Prefactor '    .68357E-01   1.0000          .0000       .10000E+07
    13 'norm      '    1.2546       1.0000          .0000       .10000E+07
    14 'Prefactor '    .47886E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    31.985       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.7849       1.0000          .0000       .10000E+07
    17 'Prefactor '    .86646E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .38094E-03   1.0000          .0000       .10000E+07
    19 'norm      '    2.1588       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11715E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .71726E-06   1.0000          .0000       .10000E+07
    22 'norm      '    .40902E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .71209       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2942       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=   5948.758     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1559 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0123        6.1453        .97435E-06    .25463E-03
   2  Prefactor      .0000        1.2850       -.17103E-06** at limit **
   3  norm          .11102E-09    5.5193       -.10494E-05** at limit **
   4  Prefactor     .11102E-09    6.3028        .95030E-06** at limit **
   5  Prefactor     11.856        4.1173       -.12672E-05   -.13011E-01
   6  Prefactor     5.6838        5.9077        .73996E-07    .73827E-03
   7  norm          21.255        1.4099       -.13660E-06   -.10205E-01
   8  Prefactor      .0000        1.2865       -.41949E-07** at limit **
   9  Prefactor     2.2402        2.3481        .18465E-07    .12195E-02
  10  Prefactor     .55511E-10    1.3978       -.98949E-07** at limit **
  11  norm          4.9738        2.5230        .78567E-07    .27036E-03
  12  Prefactor     .12546        26.577       -.26986E-05** at limit **
  13  norm          1.1993        23.347        .43525E-05    .40276E-03
  14  Prefactor     .33307E-08    21.312       -.70467E-05** at limit **
  15  Prefactor     30.197        10.599        .68439E-06   -.42486E-01
  16  Prefactor     1.7896        2.1992        .60251E-07    .16433E-02
  17  Prefactor     .82656E-07    26.052        .91454E-05** at limit **
  18  Prefactor     .28444E-06    42.243       -.76381E-05** at limit **
  19  norm          2.1589        .40065        .24230E-07    .82500E-02
  20  Prefactor     .27756E-09    9.0084       -.13871E-06** at limit **
  21  Prefactor      .0000        5.0040        .79362E-06** at limit **
  22  norm          .55511E-10    11.582        .25103E-05** at limit **
  23  Normalizat    .71236        .18183       -.13571E-04    .28708E-03
  24  Prefactor     1.2949        .23755        .71407E-05    .23861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01231
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 11.856
  Prefactor  = 5.68381
  norm       = 21.2554
  Prefactor  = 0
  Prefactor  = 2.24018
  Prefactor  = 5.55112e-11
  norm       = 4.97376
  Prefactor  = 0.125463
  norm       = 1.19934
  Prefactor  = 3.33067e-09
  Prefactor  = 30.1967
  Prefactor  = 1.78961
  Prefactor  = 8.26561e-08
  Prefactor  = 2.84439e-07
  norm       = 2.15886
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Normalizat = 0.712364
  Prefactor  = 1.29489
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.758     FROM HESSE     STATUS=OK           451 CALLS     2010 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0123        6.1780        .72617E-03   -1.5680    
   2  Prefactor      .0000        1.2804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .11102E-09    5.5279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    6.3089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.856        20.325        .28275E-03   -1.5639    
   6  Prefactor     5.6838        5.9178        .42106E-03   -1.5660    
   7  norm          21.255        11.709        .21817E-03   -1.5616    
   8  Prefactor      .0000        1.2880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2402        2.3615        .68610E-03   -1.5678    
  10  Prefactor     .55511E-10    1.3912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9738        2.5262        .45092E-03   -1.5663    
  12  Prefactor     .12546        1.8484        .72650E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1993        23.867        .99693E-03   -1.5686    
  14  Prefactor     .33307E-08    22.292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.197        29.508        .17684E-03   -1.5598    
  16  Prefactor     1.7896        2.2162        .78286E-03   -1.5681    
  17  Prefactor     .82656E-07    27.363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .28444E-06    45.800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1589        .40078        .45972E-03   -1.5679    
  20  Prefactor     .27756E-09    9.0126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        5.0076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .55511E-10    11.541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .71236        .15565        .42452E-01   -1.0341    
  24  Prefactor     1.2949        .20290        .58054E-01   -.83459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39159e-08
Minuit parameter uncertainties:
  1  6.17802
  2  4.13305e-06
  3  5.12985e-05
  4  5.49323e-05
  5  20.3256
  6  5.91777
  7  11.7089
  8  3.40535e-06
  9  2.36154
  10  1.29852e-05
  11  2.52618
  12  0.963121
  13  10.7004
  14  0.000545176
  15  29.5081
  16  2.21617
  17  0.00300749
  18  0.00721892
  19  0.400781
  20  0.000102569
  21  1.30507e-05
  22  5.3105e-05
  23  0.155747
  24  0.203023
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.199e+00  1.070e+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:  1.295e+00  2.030e-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.124e-01  1.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/587282/likelihoodResults_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.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) = 5948.71958592
delta logL = 0.0383041857276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5948.70273804
delta logL = 0.0551520650515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6655       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5832       1.0000          .0000       5.0000    
     3 'Normalizat'    .71745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2851       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5948.703     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      231 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6692        8.3985         .0000        .77468E-01
   2  alpha         1.5836        .97221         .0000       -.38480E-04
   3  Normalizat    .71756        .15161         .0000        .68572E-04
   4  Prefactor     1.2850        .20348         .0000        .98530E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66916
  alpha      = 1.58363
  Normalizat = 0.71756
  Prefactor  = 1.28495
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.703     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6692        8.4034        .12480E-03   -1.5675    
   2  alpha         1.5836        1.2460        .31130E-01   -.37530    
   3  Normalizat    .71756        .17800        .25213E-03   -1.0320    
   4  Prefactor     1.2850        .23874        .25753E-03   -.83756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88373e-09
Minuit parameter uncertainties:
  1  8.40344
  2  1.31494
  3  0.178139
  4  0.238939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587282': 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) = 5948.70273773
delta logL = 0.0551523752583

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.669e+00  8.403e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        alpha:  1.584e+00  1.315e+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.285e+00  2.389e-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.176e-01  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/587282/cmap_HighResolution_698025601_698630401_4FGL_J1023.1+3949_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2023-02-21 03:33:00.285747', job_id='587282', GAL2='1.28', fit_tolerance='1e-08', EG2='0.72', EG='0.71', time_epoch_completed='1676979180.29', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='5.52e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='759' AND source_name='4FGL J1023.1+3949' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:33:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 587282: <4FGL_J1023.1+3949_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1023.1+3949_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 03:20:32 2023
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:20:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:20:33 2023
Terminated at Tue Feb 21 03:33:01 2023
Results reported at Tue Feb 21 03:33:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_weekly_bin759 155.788 39.8226 698025601 698630401 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 :                                   657.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

