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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1713
RA = 24.5063, Dec = 22.7962
tmin = 683337601, tmax = 683596801
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='2313', job_status='RUN', time_executed='2022-09-16 10:22:36.788941', time_epoch_executed='1663348956.79' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2313/ft1_4FGL_J0138.0+2247_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2313/ft1_4FGL_J0138.0+2247_daily_bin1713.fits outfile=/scratch/kocevski/2313/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1713.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=683337601.0 tmax=683596801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.52
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.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/2313/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.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.57
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 808

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/2313/ltcube_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.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/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits
.....................!
real 14.25
user 13.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/2313/ltcube_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.fits outfile=/scratch/kocevski/2313/expmap_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.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/2313/ltcube_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.fits
.....................!
real 191.70
user 185.75
sys 5.62

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

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits scfile=/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits outfile=/scratch/kocevski/2313/cmap_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.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=24.5063 yref=22.7962 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits scfile=/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits outfile=/scratch/kocevski/2313/cmap_HighResolution_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.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=24.5063 yref=22.7962 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/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2313/Model_4FGL_J0138.0+2247_daily_bin1713.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/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits.....................!
real 91.80
user 90.35
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits', '/scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits', expMap='/scratch/kocevski/2313/expmap_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.fits', expCube='/scratch/kocevski/2313/ltcube_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2313/Model_4FGL_J0138.0+2247_daily_bin1713.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2313/ft1_filtered_4FGL_J0138.0+2247_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/2313/ft2_4FGL_J0138.0+2247_daily_bin1713.fits
Exposure map: /scratch/kocevski/2313/expmap_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.fits
Exposure cube: /scratch/kocevski/2313/ltcube_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2313/Model_4FGL_J0138.0+2247_daily_bin1713.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) = 8749.37824125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8589       1.0000          .0000       .10000E+07
     2 'norm      '    2.3089       1.0000          .0000       .10000E+07
     3 'norm      '    9.7009       1.0000          .0000       .10000E+07
     4 'Prefactor '    .53213E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .94630E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .30698E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .47921E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .33764E-03   1.0000          .0000       .10000E+07
     9 'norm      '    2.1804       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.276       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17510E-02   1.0000          .0000       .10000E+07
    12 'norm      '    2.5556       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.021       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.5308       1.0000          .0000       .10000E+07
    15 'Prefactor '    .25289E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .55076E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    15.193       1.0000          .0000       .10000E+07
    18 'Prefactor '    .92441E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .63280       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8748.632     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1194 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8697        7.1492        .20528E-06   -.13876E-03
   2  norm          2.3092        .71428        .18143E-07   -.79103E-03
   3  norm          9.7027        2.0512       -.96670E-08    .66513E-03
   4  Prefactor     .33307E-09    3.4172        .57497E-07** at limit **
   5  Prefactor     .68001E-07    7.7973        .21726E-06** at limit **
   6  Prefactor     .55511E-09    4.5515        .15427E-06** at limit **
   7  Prefactor     .41050E-06    3.2083       -.13135E-06** at limit **
   8  Prefactor     .22260E-07    6.5288       -.33537E-06** at limit **
   9  norm          2.1802        .78541       -.20837E-07    .14313E-02
  10  Prefactor     19.295        2.8656        .64386E-10    .21470E-01
  11  Prefactor     .12434E-07    7.3413       -.65419E-07** at limit **
  12  norm          2.5627        4.2761        .17008E-06   -.13078E-03
  13  Prefactor     12.020        3.6853        .34375E-08    .23198E-03
  14  Prefactor     1.4823        7.6804       -.60956E-06    .41182E-03
  15  Prefactor     .16542E-07    2.3496        .40615E-07** at limit **
  16  norm          .29893E-06    49.582       -.12033E-06** at limit **
  17  Prefactor     15.671        39.315       -.31980E-06   -.19716E-02
  18  Prefactor     .31609E-05    12.408        .18030E-06** at limit **
  19  Normalizat    .63281        .21396       -.31178E-05    .30433E-04
  20  Prefactor     1.2476        .13402       -.18331E-06    .62255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86972
  norm       = 2.30919
  norm       = 9.70265
  Prefactor  = 3.33067e-10
  Prefactor  = 6.80012e-08
  Prefactor  = 5.55112e-10
  Prefactor  = 4.10505e-07
  Prefactor  = 2.226e-08
  norm       = 2.18017
  Prefactor  = 19.2948
  Prefactor  = 1.24345e-08
  norm       = 2.56272
  Prefactor  = 12.0201
  Prefactor  = 1.48228
  Prefactor  = 1.65423e-08
  norm       = 2.98928e-07
  Prefactor  = 15.6709
  Prefactor  = 3.16086e-06
  Normalizat = 0.632815
  Prefactor  = 1.2476
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.632     FROM HESSE     STATUS=OK           331 CALLS     1525 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8697        7.1753        .60100E-03   -1.5674    
   2  norm          2.3092        .71478        .67497E-03   -1.5678    
   3  norm          9.7027        2.0542        .32150E-03   -1.5646    
   4  Prefactor     .33307E-09    3.4245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .68001E-07    10.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-09    4.4888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .41050E-06    10.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22260E-07    8.8973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1802        .78898        .69690E-03   -1.5678    
  10  Prefactor     19.295        10.417        .22784E-03   -1.5620    
  11  Prefactor     .12434E-07    7.9299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5627        4.3879        .63840E-03   -1.5676    
  13  Prefactor     12.020        3.6866        .28867E-03   -1.5639    
  14  Prefactor     1.4823        8.0652        .86229E-03   -1.5684    
  15  Prefactor     .16542E-07    11.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .29893E-06    54.923        .15344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.671        39.275        .25669E-03   -1.5629    
  18  Prefactor     .31609E-05    76.820        .14137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .63281        .20085        .91982E-01   -1.0661    
  20  Prefactor     1.2476        .12292        .33591E-01   -.84879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73233e-07
Minuit parameter uncertainties:
  1  7.17529
  2  0.714779
  3  2.05424
  4  6.84643e-05
  5  0.00169746
  6  9.90818e-05
  7  0.00413335
  8  0.000890053
  9  0.788979
  10  10.4174
  11  0.00062736
  12  4.38786
  13  3.68658
  14  6.91517
  15  0.000875991
  16  0.00810407
  17  39.2757
  18  0.0311654
  19  0.201079
  20  0.122947
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  2.226e-08  8.901e-04  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.248e+00  1.229e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  6.328e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 24.506 22.796
Photon Flux Upper Limit: 3.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2313/likelihoodResults_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.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) = 8748.68524287
delta logL = -0.0536264737093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8748.63161722
delta logL = -8.28709744383e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8748.632     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      201 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54401E-08    11.891       -.89435E-06** at limit **
   2  Index         1.7777        5.8453        .47484E-04    .68154E-09
   3  Normalizat    .63281        .21259       -.19590E-04    .68149E-05
   4  Prefactor     1.2476        .13454        .86667E-05    .27194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44009e-09
  Index      = 1.77767
  Normalizat = 0.632814
  Prefactor  = 1.2476
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.632     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      236 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54401E-08    .80124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7777        8.9594        .38514       -.70032    
   3  Normalizat    .63281        .13048E-02    .91982E-01   -1.0661    
   4  Prefactor     1.2476        .82359E-03    .33590E-01   -.84879    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.37317e-11
Minuit parameter uncertainties:
  1  0.000131708
  2  7006.98
  3  0.00130485
  4  0.000823593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2313': 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) = 8748.63161639
delta logL = 1.00226316135e-09

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.440e-09  1.317e-04  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  1.778e+00  7.007e+03  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.248e+00  8.236e-04  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  6.328e-01  1.305e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.506 22.796

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/2313/cmap_HighResolution_683337601_683596801_4FGL_J0138.0+2247_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2022-09-16 10:33:23.558756', job_id='2313', GAL2='1.25', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1663349603.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.00e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1713' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:33:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 2313: <4FGL_J0138.0+2247_daily_bin1713> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1713> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:20:38 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:21:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:21:00 2022
Terminated at Fri Sep 16 10:33:23 2022
Results reported at Fri Sep 16 10:33:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1713 24.5063 22.7962 683337601 683596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0138.0+2247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            765 sec.

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

