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


Performing analysis on: 4FGL_J1051.6+2109_weekly_bin755
RA = 162.913, Dec = 21.1651
tmin = 695606401, tmax = 696211201
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='719393', job_status='RUN', time_executed='2023-01-24 01:17:24.864807', time_epoch_executed='1674551844.86' WHERE source_name='4FGL J1051.6+2109' and cadence='weekly' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719393

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719393/ft1_4FGL_J1051.6+2109_weekly_bin755.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719393/ft1_4FGL_J1051.6+2109_weekly_bin755.fits outfile=/scratch/kocevski/719393/ft1_filteredMKT_4FGL_J1051.6+2109_weekly_bin755.fits ra=162.913 dec=21.1651 rad=12.0 tmin=695606401.0 tmax=696211201.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.58
user 8.12
sys 0.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.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/719393/ft1_filteredMKT_4FGL_J1051.6+2109_weekly_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.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.37
sys 0.18

Number of photons that the gtmktime cut: 994

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/719393/ltcube_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.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/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits
.....................!
real 34.35
user 33.55
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/719393/ltcube_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.fits outfile=/scratch/kocevski/719393/expmap_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.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/719393/ltcube_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.fits
.....................!
real 191.95
user 186.50
sys 4.53

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits scfile=/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits outfile=/scratch/kocevski/719393/cmap_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.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=162.913 yref=21.1651 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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits scfile=/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits outfile=/scratch/kocevski/719393/cmap_HighResolution_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.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=162.913 yref=21.1651 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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/719393/Model_4FGL_J1051.6+2109_weekly_bin755.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/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits.....................!
real 94.11
user 92.15
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits', '/scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits', expMap='/scratch/kocevski/719393/expmap_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.fits', expCube='/scratch/kocevski/719393/ltcube_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/719393/Model_4FGL_J1051.6+2109_weekly_bin755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+2109'

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/719393/ft1_filtered_4FGL_J1051.6+2109_weekly_bin755.fits
Spacecraft file(s): /scratch/kocevski/719393/ft2_4FGL_J1051.6+2109_weekly_bin755.fits
Exposure map: /scratch/kocevski/719393/expmap_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.fits
Exposure cube: /scratch/kocevski/719393/ltcube_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/719393/Model_4FGL_J1051.6+2109_weekly_bin755.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) = 11558.6987035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5912       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.238       1.0000          .0000       .10000E+07
     3 'Prefactor '    .98349E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .26619E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14189E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.4990       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20579E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .59224E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    8.7507       1.0000          .0000       .10000E+07
    10 'Prefactor '    .59434E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .83070E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .18580E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6176       1.0000          .0000       .10000E+07
    14 'Prefactor '    .83244       1.0000          .0000       .10000E+07
    15 'norm      '    .40327E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .57621E-07   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2699       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11558.66     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1044 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5946        2.5867        .37033E-06   -.15409E-02
   2  Prefactor     12.014        1.3034        .57599E-08   -.50925E-02
   3  Prefactor     .23524E-05    5.9670        .38392E-06** at limit **
   4  Prefactor     .27200E-08    4.5523       -.26711E-06** at limit **
   5  Prefactor      .0000        .79232       -.18640E-06** at limit **
   6  Prefactor     9.4973        5.1416        .20110E-06   -.28605E-02
   7  Prefactor     .63977E-06    2.6283       -.91098E-06** at limit **
   8  Prefactor     .47484E-06    9.7769       -.63702E-06** at limit **
   9  Prefactor     8.8562        6.7929       -.19806E-06   -.28842E-01
  10  Prefactor     .72164E-09    3.1823        .63955E-07** at limit **
  11  Prefactor     .91444E-06    12.318       -.12971E-05** at limit **
  12  norm           .0000        .71550       -.58961E-07** at limit **
  13  Prefactor     1.6179        2.0966       -.19664E-06    .23535E-02
  14  Prefactor     .83483        2.5509        .23016E-06    .10918E-01
  15  norm          .95146E-07    2.1896       -.77968E-06** at limit **
  16  Prefactor     .86708E-07    2.1626        .49310E-06** at limit **
  17  Normalizat    1.2696        .15611       -.67519E-06    .77699E-05
  18  Prefactor     .92276        .15856        .44559E-06    .14891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59459
  Prefactor  = 12.0144
  Prefactor  = 2.3524e-06
  Prefactor  = 2.72005e-09
  Prefactor  = 0
  Prefactor  = 9.4973
  Prefactor  = 6.39766e-07
  Prefactor  = 4.74842e-07
  Prefactor  = 8.85622
  Prefactor  = 7.21645e-10
  Prefactor  = 9.14435e-07
  norm       = 0
  Prefactor  = 1.61787
  Prefactor  = 0.83483
  norm       = 9.51461e-08
  Prefactor  = 8.67084e-08
  Normalizat = 1.26955
  Prefactor  = 0.922759
 **********
 **   18 **HESSE 
 **********

 FCN=   11558.66     FROM HESSE     STATUS=OK           286 CALLS     1330 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5946        2.6180        .84083E-03   -1.5683    
   2  Prefactor     12.014        16.827        .28609E-03   -1.5639    
   3  Prefactor     .23524E-05    12.559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27200E-08    4.5366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .78878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4973        5.1484        .32491E-03   -1.5646    
   7  Prefactor     .63977E-06    2.3590        .12055E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47484E-06    11.106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.8562        7.1337        .33860E-03   -1.5648    
  10  Prefactor     .72164E-09    3.1855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .91444E-06    14.673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .69439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6179        2.1123        .83203E-03   -1.5683    
  14  Prefactor     .83483        2.5724        .50547E-03   -1.5690    
  15  norm          .95146E-07    2.4309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .86708E-07    2.3763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2696        .13268        .52273E-01   -.84480    
  18  Prefactor     .92276        .13353        .45293E-01   -.95350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84954e-07
Minuit parameter uncertainties:
  1  2.61803
  2  16.8266
  3  0.0108706
  4  0.00022252
  5  4.21292e-06
  6  5.1484
  7  0.00245703
  8  0.00459288
  9  7.13372
  10  9.73242e-05
  11  0.00732615
  12  3.38456e-06
  13  2.11232
  14  2.57242
  15  0.000961807
  16  0.000907728
  17  0.132714
  18  0.133577
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  6.398e-07  2.457e-03  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.228e-01  1.336e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.270e+00  1.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/719393/likelihoodResults_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.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) = 11558.6702533
delta logL = -0.0128170280295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11558.6567057
delta logL = 0.000730534902686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20174       1.0000          .0000       .10000E+07
     2 'Index     '    3.1267       1.0000          .0000       10.000    
     3 'Normalizat'    1.2681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11558.66     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20230        4.5221        .92744E-02** at limit **
   2  Index         3.1369        3.7301        .50000        .25875E-04
   3  Normalizat    1.2680        .52572E-02    .52299E-01    .67757E-04
   4  Prefactor     .92347        .54110E-02    .45303E-01    .50633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.202297
  Index      = 3.13689
  Normalizat = 1.26804
  Prefactor  = 0.923469
 **********
 **   18 **HESSE 
 **********

 FCN=   11558.66     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      266 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20230        6044.4        .27780E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1369        8.3625        .60998E-01   -.38183    
   3  Normalizat    1.2680        .19257        .23124E-03   -.84525    
   4  Prefactor     .92347        .92395E-01    .27246E-03   -.95326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.68654e-07
Minuit parameter uncertainties:
  1  70.0064
  2  77.3076
  3  0.192674
  4  0.0924108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719393': 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) = 11558.6567041
delta logL = 0.00073214778422

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.023e-01  7.001e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  3.137e+00  7.731e+01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.235e-01  9.241e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.268e+00  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.913 21.165

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/719393/cmap_HighResolution_695606401_696211201_4FGL_J1051.6+2109_weekly_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2023-01-24 01:29:48.379795', job_id='719393', GAL2='0.92', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1674552588.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.32e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='755' AND source_name='4FGL J1051.6+2109' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 24 01:29:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 719393: <4FGL_J1051.6+2109_weekly_bin755> in cluster <slac> Done

Job <4FGL_J1051.6+2109_weekly_bin755> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jan 24 01:15:33 2023
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 24 01:17:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 24 01:17:10 2023
Terminated at Tue Jan 24 01:29:48 2023
Results reported at Tue Jan 24 01:29:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_weekly_bin755 162.913 21.1651 695606401 696211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   740.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            855 sec.

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

