aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 9 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1054.5+2211_weekly_bin668
RA = 163.628, Dec = 22.1913
tmin = 642988801, tmax = 643593601
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='593543', job_status='RUN', time_executed='2021-07-17 11:30:56.857247', time_epoch_executed='1626546656.86' WHERE source_name='4FGL J1054.5+2211' and cadence='weekly' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593543

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593543/ft1_4FGL_J1054.5+2211_weekly_bin668.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593543/ft1_4FGL_J1054.5+2211_weekly_bin668.fits outfile=/scratch/kocevski/593543/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin668.fits ra=163.628 dec=22.1913 rad=12.0 tmin=642988801.0 tmax=643593601.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 7.43
user 7.12
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.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/593543/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin668.fits evtable="EVENTS" outfile="/scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits" evtable="EVENTS" scfile=/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits sctable="SC_DATA" outfile=/scratch/kocevski/593543/ltcube_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.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/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits
.....................!
real 27.45
user 27.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/593543/ltcube_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.fits outfile=/scratch/kocevski/593543/expmap_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.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/593543/ltcube_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.fits
.....................!
real 190.79
user 185.54
sys 4.84

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

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits scfile=/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits outfile=/scratch/kocevski/593543/cmap_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.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=163.628 yref=22.1913 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits scfile=/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits outfile=/scratch/kocevski/593543/cmap_HighResolution_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.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=163.628 yref=22.1913 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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593543/Model_4FGL_J1054.5+2211_weekly_bin668.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/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits.....................!
real 110.32
user 108.78
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits', '/scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits', expMap='/scratch/kocevski/593543/expmap_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.fits', expCube='/scratch/kocevski/593543/ltcube_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/593543/Model_4FGL_J1054.5+2211_weekly_bin668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/593543/ft1_filtered_4FGL_J1054.5+2211_weekly_bin668.fits
Spacecraft file(s): /scratch/kocevski/593543/ft2_4FGL_J1054.5+2211_weekly_bin668.fits
Exposure map: /scratch/kocevski/593543/expmap_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.fits
Exposure cube: /scratch/kocevski/593543/ltcube_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/593543/Model_4FGL_J1054.5+2211_weekly_bin668.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) = 13970.7658821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.786       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0946       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.239       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2447       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2677       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7000       1.0000         .10000E-03   10000.    
    15 'norm      '    16.541       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2169       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0169       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13970.73     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1860 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8243        2.3060        .28403E-06   -.27765E-02
   2  Prefactor     14.772        19.467       -.18147E-04   -.54272E-04
   3  Prefactor     .10000E-03    9.5872       -.14185E-05** at limit **
   4  Prefactor     3.0950        3.5948        .18522E-06   -.19323E-02
   5  Prefactor     .10000E-03    .34084       -.41916E-07** at limit **
   6  Prefactor     18.239        6.1693       -.81632E-07   -.16184E-03
   7  Prefactor     6.2449        5.8530       -.90616E-07   -.66127E-03
   8  Prefactor     .10000E-03    2.7584       -.95977E-07** at limit **
   9  Prefactor     16.446        8.1906       -.98129E-07   -.76824E-04
  10  Prefactor     13.687        7.3594       -.11535E-06    .24926E-04
  11  Prefactor     .10000E-03    6.2475        .65594E-06** at limit **
  12  norm          1.8352        1.0692       -.38303E-07    .15332E-04
  13  Prefactor     1.2676        1.7193       -.12884E-06   -.22205E-03
  14  Prefactor     2.7000        2.5482       -.53289E-07   -.14804E-04
  15  norm          16.542        8.4244       -.11522E-06   -.36279E-05
  16  norm          .10000E-03    3.8617       -.26177E-06** at limit **
  17  Prefactor     .10000E-03    2.2869       -.23296E-07** at limit **
  18  Prefactor     .10000E-03    3.1766        .23793E-06** at limit **
  19  Prefactor     .10000E-03    14.419        .16579E-05** at limit **
  20  Normalizat    1.2169        .11945        .52152E-06    .23089E-04
  21  Prefactor     1.0169        .12680        .71272E-06    .32415E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82426
  Prefactor  = 14.7721
  Prefactor  = 0.0001
  Prefactor  = 3.09503
  Prefactor  = 0.0001
  Prefactor  = 18.239
  Prefactor  = 6.24487
  Prefactor  = 0.0001
  Prefactor  = 16.4456
  Prefactor  = 13.6866
  Prefactor  = 0.0001
  norm       = 1.83518
  Prefactor  = 1.26762
  Prefactor  = 2.69999
  norm       = 16.5416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21686
  Prefactor  = 1.01695
 **********
 **   18 **HESSE 
 **********

 FCN=   13970.73     FROM HESSE     STATUS=OK           321 CALLS     2181 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8243        4.5376        .15453E-02   -1.5438    
   2  Prefactor     14.772        19.478        .10416E-03   -1.4939    
   3  Prefactor     .10000E-03    9.6069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0950        3.8935        .11527E-02   -1.5356    
   5  Prefactor     .10000E-03    .34415        .67337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.239        6.1873        .46891E-03   -1.4854    
   7  Prefactor     6.2449        5.8793        .80319E-03   -1.5208    
   8  Prefactor     .10000E-03    2.7596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.446        8.1741        .49382E-03   -1.4897    
  10  Prefactor     13.687        7.2962        .10827E-03   -1.4968    
  11  Prefactor     .10000E-03    6.2761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8352        1.0696        .30801E-04   -1.5437    
  13  Prefactor     1.2676        1.6874        .16508E-03   -1.5483    
  14  Prefactor     2.7000        2.5447        .17850E-03   -1.5379    
  15  norm          16.542        8.4276        .98477E-04   -1.4894    
  16  norm          .10000E-03    3.9181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2999        .17454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2169        .14318        .23811E-03   -.86084    
  21  Prefactor     1.0169        .15094        .28026E-03   -.92167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04487e-08
Minuit parameter uncertainties:
  1  4.53847
  2  19.4862
  3  7.92147e-06
  4  3.89377
  5  5.45944e-07
  6  6.1875
  7  5.87988
  8  1.2279e-06
  9  8.17467
  10  7.29668
  11  5.88608e-06
  12  1.06964
  13  1.68741
  14  2.54477
  15  8.42821
  16  9.29016e-06
  17  3.51715e-06
  18  2.44867e-06
  19  5.27364e-06
  20  0.143224
  21  0.151005
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.645e+01  8.175e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.017e+00  1.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.217e+00  1.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.26
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.14e-05

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) = 13970.5446615
delta logL = 0.187365076006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13970.5385174
delta logL = 0.19350911688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.978       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8656       1.0000          .0000       10.000    
     3 'Normalizat'    1.2327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13970.54     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      232 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.974        214.66        .24301E-02   -.12678E-04
   2  Index         1.8657        5.8445        .17812        .41000E-04
   3  Normalizat    1.2327        .13107        .53580E-01   -.21522E-03
   4  Prefactor     1.0096        .72793E-01    .63601E-01   -.10418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9738
  Index      = 1.86565
  Normalizat = 1.23271
  Prefactor  = 1.00955
 **********
 **   18 **HESSE 
 **********

 FCN=   13970.54     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.974        9.2182        .97203E-04   -1.4884    
   2  Index         1.8657        .46734        .96708E-02   -.67753    
   3  Normalizat    1.2327        .14009        .23691E-03   -.85598    
   4  Prefactor     1.0096        .15053        .28129E-03   -.92412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46066e-10
Minuit parameter uncertainties:
  1  9.21902
  2  0.468468
  3  0.14013
  4  0.150598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593543': 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) = 13970.538517
delta logL = 0.193509544028

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.697e+01  9.219e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.866e+00  4.685e-01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.010e+00  1.506e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.233e+00  1.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.64
Ra Dec: 163.628 22.191
Photon Index (Free Index): 1.87 +/- 0.47
Photon Flux (Free Index): 2.95e-08 +/- 2.94e-08
Energy Flux (Free Index): 2.91e-05 +/- 2.10e-05

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/593543/cmap_HighResolution_642988801_643593601_4FGL_J1054.5+2211_weekly_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='2.91e-05', photon_flux_error='2.24e-08', dlogl='1.94e-01', energy_flux='2.30e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-07-17 11:46:01.950327', photon_index_error2='0.47', photon_index2='1.87', ts='22.26', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.22', time_epoch_completed='1626547561.95', return_code='0', job_id='593543', GAL2='1.01', EG2='1.23', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.94e-08', ts2='22.64', photon_index='2.13' WHERE bin_id='668' AND source_name='4FGL J1054.5+2211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 11:46:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 593543: <4FGL_J1054.5+2211_weekly_bin668> in cluster <slac> Done

Job <4FGL_J1054.5+2211_weekly_bin668> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul 17 11:30:34 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 11:30:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 11:30:37 2021
Terminated at Sat Jul 17 11:46:02 2021
Results reported at Sat Jul 17 11:46:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_weekly_bin668 163.628 22.1913 642988801 643593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1054.5+2211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   898.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             340.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

