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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1721
RA = 24.5063, Dec = 22.7962
tmin = 685411201, tmax = 685670401
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='48790', job_status='RUN', time_executed='2022-09-24 00:08:42.966826', time_epoch_executed='1664003322.97' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48790/ft1_4FGL_J0138.0+2247_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48790/ft1_4FGL_J0138.0+2247_daily_bin1721.fits outfile=/scratch/kocevski/48790/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1721.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.38
user 4.95
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.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/48790/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.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.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 547

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/48790/ltcube_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.fits outfile=/scratch/kocevski/48790/expmap_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.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/48790/ltcube_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.fits
.....................!
real 194.98
user 187.23
sys 5.41

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/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.fits scfile=/scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.fits outfile=/scratch/kocevski/48790/cmap_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.fits scfile=/scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.fits outfile=/scratch/kocevski/48790/cmap_HighResolution_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.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.62
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/48790/Model_4FGL_J0138.0+2247_daily_bin1721.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/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.fits.....................!
real 73.55
user 70.57
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.fits', '/scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.fits', expMap='/scratch/kocevski/48790/expmap_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.fits', expCube='/scratch/kocevski/48790/ltcube_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48790/Model_4FGL_J0138.0+2247_daily_bin1721.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/48790/ft1_filtered_4FGL_J0138.0+2247_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/48790/ft2_4FGL_J0138.0+2247_daily_bin1721.fits
Exposure map: /scratch/kocevski/48790/expmap_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.fits
Exposure cube: /scratch/kocevski/48790/ltcube_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48790/Model_4FGL_J0138.0+2247_daily_bin1721.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) = 6218.61482834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98949E-05   1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'norm      '    2.5926       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.7883       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.2476       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14141E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    34.143       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12768E-08   1.0000          .0000       .10000E+07
     9 'norm      '    2.6337       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.6482       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5731       1.0000          .0000       .10000E+07
    12 'norm      '    .39413E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .33825       1.0000          .0000       .10000E+07
    14 'Prefactor '    .98110E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13156E-07   1.0000          .0000       .10000E+07
    16 'norm      '    .16653E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.1888       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14266E-07   1.0000          .0000       .10000E+07
    19 'Normalizat'    .82453       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0734       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=   6218.460     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1506 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88590E-05    25.660        .10627E-05** at limit **
   2  norm          .55511E-10    .16905       -.42940E-07** at limit **
   3  norm          2.5924        1.6128       -.65888E-07    .79538E-02
   4  Prefactor     6.7867        12.462       -.12235E-06    .32429E-03
   5  Prefactor     3.3640        81.347        .11797E-04   -.14216E-01
   6  Prefactor     .79936E-08    14.356       -.24852E-06** at limit **
   7  Prefactor     34.153        16.835       -.25104E-05   -.25781E-01
   8  Prefactor     .95701E-07    13.487        .77605E-06** at limit **
   9  norm          2.6335        1.0449        .32639E-07    .16194E-01
  10  Prefactor     3.6425        14.357       -.51227E-05   -.61812E-02
  11  Prefactor     2.5291        2.6944       -.23963E-06    .95833E-02
  12  norm          .49960E-09    1.0536       -.56501E-06** at limit **
  13  Prefactor     .33627        7.7178        .10064E-05   -.81794E-03
  14  Prefactor      .0000        2.2088       -.49723E-06** at limit **
  15  Prefactor      .0000        2.2497       -.14528E-06** at limit **
  16  norm          .26479E-07    12.559        .56858E-06** at limit **
  17  Prefactor     9.1640        2.3647       -.35738E-06   -.98313E-04
  18  Prefactor     .50784E-05    22.426        .28729E-05** at limit **
  19  Normalizat    .82444        .24942        .35788E-04    .22500E-04
  20  Prefactor     1.0735        .14650       -.10858E-04    .55739E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.85897e-06
  norm       = 5.55112e-11
  norm       = 2.59239
  Prefactor  = 6.78673
  Prefactor  = 3.36401
  Prefactor  = 7.99361e-09
  Prefactor  = 34.1531
  Prefactor  = 9.57012e-08
  norm       = 2.63347
  Prefactor  = 3.64248
  Prefactor  = 2.52909
  norm       = 4.996e-10
  Prefactor  = 0.336273
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.64788e-08
  Prefactor  = 9.16397
  Prefactor  = 5.07838e-06
  Normalizat = 0.824444
  Prefactor  = 1.07352
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.460     FROM HESSE     STATUS=OK           335 CALLS     1841 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88590E-05    43.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    .16897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5924        1.6167        .63343E-03   -1.5676    
   4  Prefactor     6.7867        12.485        .38486E-03   -1.5656    
   5  Prefactor     3.3640        101.54        .56177E-03   -1.5671    
   6  Prefactor     .79936E-08    14.186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.153        16.902        .17116E-03   -1.5591    
   8  Prefactor     .95701E-07    25.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6335        1.0483        .62806E-04   -1.5676    
  10  Prefactor     3.6425        14.468        .52864E-03   -1.5670    
  11  Prefactor     2.5291        43.690        .63604E-03   -1.5676    
  12  norm          .49960E-09    1.0574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33627        1.8047        .59616E-02   -1.5696    
  14  Prefactor      .0000        2.2108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.2496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .26479E-07    26.051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.1640        54.123        .33038E-03   -1.5647    
  18  Prefactor     .50784E-05    35.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .82444        .22059        .77942E-01   -.99168    
  20  Prefactor     1.0735        .12890        .38699E-01   -.90317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52765e-07
Minuit parameter uncertainties:
  1  0.039271
  2  5.95359e-06
  3  1.6167
  4  12.4851
  5  36.9637
  6  0.000673586
  7  16.902
  8  0.0031457
  9  1.04828
  10  14.4678
  11  21.0235
  12  4.70603e-05
  13  1.55803
  14  1.4561e-06
  15  6.71684e-06
  16  0.00166193
  17  44.5419
  18  0.0266733
  19  0.220831
  20  0.128942
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  9.570e-08  3.146e-03  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.074e+00  1.289e-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:  8.244e-01  2.208e-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: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48790/likelihoodResults_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.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) = 6218.47820619
delta logL = -0.018579773061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6218.45962863
delta logL = -2.21866685024e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6218.460     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      272 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35527E-08    3.1190        .42118E-03** at limit **
   2  Index         .59090        5.1935        .50000       -.11823E-08
   3  Normalizat    .82445        .36450E-02    .77942E-01    .26367E-03
   4  Prefactor     1.0735        .21983E-02    .38706E-01    .18053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55271e-09
  Index      = 0.5909
  Normalizat = 0.824447
  Prefactor  = 1.07352
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.460     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      303 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35527E-08    15.569        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .59090        5.0245        .50000       -1.0797    
   3  Normalizat    .82445        .81387E-02    .34502E-03   -.99168    
   4  Prefactor     1.0735        .49186E-02    .18375E-03   -.90317    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.80864e-09
Minuit parameter uncertainties:
  1  0.000468816
  2  71898.8
  3  0.0081387
  4  0.00491865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48790': 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) = 6218.45962641
delta logL = 1.49520928971e-09

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  3.553e-09  4.688e-04  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  5.909e-01  7.190e+04  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.074e+00  4.919e-03  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:  8.244e-01  8.139e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/48790/cmap_HighResolution_685411201_685670401_4FGL_J0138.0+2247_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2022-09-24 00:18:20.741158', job_id='48790', GAL2='1.07', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1664003900.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.50e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1721' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 00:18:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 48790: <4FGL_J0138.0+2247_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1721> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 24 00:05:05 2022
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:05:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:05:34 2022
Terminated at Sat Sep 24 00:18:21 2022
Results reported at Sat Sep 24 00:18:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1721 24.5063 22.7962 685411201 685670401 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 :                                   568.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            796 sec.

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

