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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1717
RA = 162.913, Dec = 21.1651
tmin = 684374401, tmax = 684633601
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='97470', job_status='RUN', time_executed='2022-09-16 15:38:04.273913', time_epoch_executed='1663367884.27' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97470/ft1_4FGL_J1051.6+2109_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97470/ft1_4FGL_J1051.6+2109_daily_bin1717.fits outfile=/scratch/kocevski/97470/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1717.fits ra=162.913 dec=21.1651 rad=12.0 tmin=684374401.0 tmax=684633601.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.99
user 4.73
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97470/ft1_filtered_4FGL_J1051.6+2109_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/97470/ltcube_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.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/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits
.....................!
real 12.90
user 12.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97470/ft1_filtered_4FGL_J1051.6+2109_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/97470/ltcube_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.fits outfile=/scratch/kocevski/97470/expmap_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.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/97470/ltcube_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.fits
.....................!
real 193.94
user 187.70
sys 5.66

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/97470/ft1_filtered_4FGL_J1051.6+2109_daily_bin1717.fits scfile=/scratch/kocevski/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits outfile=/scratch/kocevski/97470/cmap_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97470/ft1_filtered_4FGL_J1051.6+2109_daily_bin1717.fits scfile=/scratch/kocevski/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits outfile=/scratch/kocevski/97470/cmap_HighResolution_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/97470/ft1_filtered_4FGL_J1051.6+2109_daily_bin1717.fits', '/scratch/kocevski/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits', expMap='/scratch/kocevski/97470/expmap_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.fits', expCube='/scratch/kocevski/97470/ltcube_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/97470/Model_4FGL_J1051.6+2109_daily_bin1717.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/97470/ft1_filtered_4FGL_J1051.6+2109_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/97470/ft2_4FGL_J1051.6+2109_daily_bin1717.fits
Exposure map: /scratch/kocevski/97470/expmap_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.fits
Exposure cube: /scratch/kocevski/97470/ltcube_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/97470/Model_4FGL_J1051.6+2109_daily_bin1717.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) = 5760.87718792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.539       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.621       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24380       1.0000          .0000       .10000E+07
     4 'Prefactor '    18.352       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14676E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.6492       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.103       1.0000          .0000       .10000E+07
     8 'Prefactor '    .67014E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .28281E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .26218E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .36350E-02   1.0000          .0000       .10000E+07
    12 'norm      '    5.4326       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57994       1.0000          .0000       .10000E+07
    14 'Prefactor '    .81806E-04   1.0000          .0000       .10000E+07
    15 'norm      '    18.928       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.5694       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2952       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0320       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=   5760.873     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1282 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.552        1.2072       -.14549E-06   -.17887E-01
   2  Prefactor     25.623        3.7030       -.95719E-06    .17204    
   3  Prefactor     .56810E-06    2.4532       -.24202E-05** at limit **
   4  Prefactor     18.370        2.8712        .19795E-06    .69127E-01
   5  Prefactor     .49960E-09    8.0597        .30300E-06** at limit **
   6  Prefactor     6.6050        8.1973        .18449E-05    .15492E-01
   7  Prefactor     12.054        2.2605        .63446E-07    .29828E-01
   8  Prefactor     .59952E-08    11.970       -.50495E-06** at limit **
   9  Prefactor     .55511E-10    6.2466       -.37837E-05** at limit **
  10  Prefactor     .10991E-07    4.3941        .50661E-06** at limit **
  11  Prefactor     .31308E-07    8.0979        .58748E-05** at limit **
  12  norm          5.4339        2.1809        .80695E-07   -.85891E-02
  13  Prefactor     .57841        1.3205        .38370E-06   -.29290E-02
  14  Prefactor     .44964E-08    3.3032       -.24240E-05** at limit **
  15  norm          18.925        1.0689        .77466E-07   -.52192E-02
  16  Prefactor     7.5657        1.0694       -.12302E-06   -.36941E-02
  17  Normalizat    1.2958        .23495       -.13205E-04    .36832E-04
  18  Prefactor     1.0317        .25047        .16679E-04    .18255E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.552
  Prefactor  = 25.623
  Prefactor  = 5.68101e-07
  Prefactor  = 18.3697
  Prefactor  = 4.996e-10
  Prefactor  = 6.605
  Prefactor  = 12.0545
  Prefactor  = 5.9952e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.09912e-08
  Prefactor  = 3.13083e-08
  norm       = 5.43392
  Prefactor  = 0.578407
  Prefactor  = 4.4964e-09
  norm       = 18.925
  Prefactor  = 7.56571
  Normalizat = 1.29576
  Prefactor  = 1.03171
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.873     FROM HESSE     STATUS=OK           288 CALLS     1570 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.552        10.693        .19415E-03   -1.5605    
   2  Prefactor     25.623        44.908        .19760E-03   -1.5607    
   3  Prefactor     .56810E-06    35.016        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.370        10.276        .23352E-03   -1.5622    
   5  Prefactor     .49960E-09    1.2370        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6050        8.3319        .38892E-03   -1.5657    
   7  Prefactor     12.054        10.931        .28769E-03   -1.5639    
   8  Prefactor     .59952E-08    12.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    6.8365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10991E-07    4.5029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .31308E-07    8.3291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4339        2.1947        .43088E-03   -1.5661    
  13  Prefactor     .57841        1.3552        .71044E-03   -1.5693    
  14  Prefactor     .44964E-08    3.3769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.925        14.506        .22993E-03   -1.5621    
  16  Prefactor     7.5657        13.940        .36427E-03   -1.5653    
  17  Normalizat    1.2958        .20529        .56412E-01   -.83693    
  18  Prefactor     1.0317        .21127        .66713E-01   -.91680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38637e-06
Minuit parameter uncertainties:
  1  10.6928
  2  44.9085
  3  0.00892032
  4  10.276
  5  4.98781e-05
  6  8.33188
  7  10.931
  8  0.000536169
  9  4.3471e-05
  10  0.000444831
  11  0.00102091
  12  2.19472
  13  1.35521
  14  0.000246579
  15  14.5057
  16  13.9399
  17  0.205415
  18  0.211445
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.205e+01  1.093e+01  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:  1.032e+00  2.114e-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.296e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 6.11e-08 +/- 5.53e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.26e-05

TS (Fixed Index): 1.93
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97470/likelihoodResults_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.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) = 5760.8000002
delta logL = 0.0730759470753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5760.79557017
delta logL = 0.0775059761554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.286       1.0000          .0000       .10000E+07
     2 'Index     '    3.1039       1.0000          .0000       10.000    
     3 'Normalizat'    1.2764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0460       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5760.796     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      287 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.289        11.406        .12487E-04   -.12340E-01
   2  Index         3.1049        .92463        .80244E-02   -.29275E-03
   3  Normalizat    1.2766        .24464        .25099E-03    .12194E-02
   4  Prefactor     1.0457        .25511        .29339E-03    .95637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2889
  Index      = 3.10488
  Normalizat = 1.27663
  Prefactor  = 1.04566
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.796     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.289        10.801        .49948E-06   -1.5644    
   2  Index         3.1049        .87468        .32098E-03   -.38874    
   3  Normalizat    1.2766        .24485        .50198E-04   -.84267    
   4  Prefactor     1.0457        .25520        .58679E-04   -.91223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1833e-09
Minuit parameter uncertainties:
  1  10.8007
  2  0.879976
  3  0.245072
  4  0.255495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97470': 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) = 5760.7955676
delta logL = 0.0775085526702

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.029e+01  1.080e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  3.105e+00  8.800e-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:  1.046e+00  2.555e-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.277e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.10 +/- 0.88
Photon Flux (Free Index): 7.54e-08 +/- 6.90e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/97470/cmap_HighResolution_684374401_684633601_4FGL_J1051.6+2109_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='6.11e-08', energy_flux2='1.43e-05', photon_flux_error='5.53e-08', dlogl='7.75e-02', energy_flux='1.39e-05', photon_flux2='7.54e-08', job_status='DONE', time_completed='2022-09-16 15:47:03.626572', photon_index_error2='0.88', photon_index2='3.10', ts='1.93', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='1.20e-05', EG='1.30', time_epoch_completed='1663368423.63', return_code='0', job_id='97470', GAL2='1.05', EG2='1.28', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.90e-08', ts2='2.11', photon_index='2.77' WHERE bin_id='1717' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:47:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 97470: <4FGL_J1051.6+2109_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1717> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 15:35:15 2022
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:35:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:35:57 2022
Terminated at Fri Sep 16 15:47:04 2022
Results reported at Fri Sep 16 15:47:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1717 162.913 21.1651 684374401 684633601 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 :                                   541.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            709 sec.

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

