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 74 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_bin1719
RA = 24.5063, Dec = 22.7962
tmin = 684892801, tmax = 685152001
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='644108', job_status='RUN', time_executed='2022-09-18 00:07:29.620416', time_epoch_executed='1663484849.62' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644108/ft1_4FGL_J0138.0+2247_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644108/ft2_4FGL_J0138.0+2247_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644108/ft1_4FGL_J0138.0+2247_daily_bin1719.fits outfile=/scratch/kocevski/644108/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1719.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=684892801.0 tmax=685152001.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.11
user 2.90
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644108/ft2_4FGL_J0138.0+2247_daily_bin1719.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/644108/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1719.fits evtable="EVENTS" outfile="/scratch/kocevski/644108/ft1_filtered_4FGL_J0138.0+2247_daily_bin1719.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.32
sys 0.18

Number of photons that the gtmktime cut: 750

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644108/ft1_filtered_4FGL_J0138.0+2247_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/644108/ft2_4FGL_J0138.0+2247_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/644108/ltcube_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.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/644108/ft2_4FGL_J0138.0+2247_daily_bin1719.fits
.....................!
real 12.78
user 12.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644108/ft1_filtered_4FGL_J0138.0+2247_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/644108/ft2_4FGL_J0138.0+2247_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/644108/ltcube_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.fits outfile=/scratch/kocevski/644108/expmap_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.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/644108/ltcube_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.fits
.....................!
real 192.25
user 186.22
sys 5.51

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/644108/ft1_filtered_4FGL_J0138.0+2247_daily_bin1719.fits scfile=/scratch/kocevski/644108/ft2_4FGL_J0138.0+2247_daily_bin1719.fits outfile=/scratch/kocevski/644108/cmap_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644108/ft1_filtered_4FGL_J0138.0+2247_daily_bin1719.fits scfile=/scratch/kocevski/644108/ft2_4FGL_J0138.0+2247_daily_bin1719.fits outfile=/scratch/kocevski/644108/cmap_HighResolution_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5633       1.0000          .0000       .10000E+07
     2 'norm      '    1.6481       1.0000          .0000       .10000E+07
     3 'norm      '    .41531       1.0000          .0000       .10000E+07
     4 'Prefactor '    .88222E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    64.431       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81545E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12340E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .46251E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .23981E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.1758       1.0000          .0000       .10000E+07
    11 'Prefactor '    .64866E-04   1.0000          .0000       .10000E+07
    12 'norm      '    1.4815       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11343E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.4459       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13647E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .42193E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12859E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    28.481       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4566       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83178       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=   8434.688     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1534 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5689        15.778       -.27958E-06    .38054E-02
   2  norm          1.6468        .76326        .30405E-07   -.12869E-02
   3  norm          .41611        .84854       -.76483E-09    .13070E-03
   4  Prefactor     .99920E-08    14.105        .22420E-06** at limit **
   5  Prefactor     65.615        44.965        .56456E-07    .39416E-01
   6  Prefactor     .13151E-05    26.502       -.19582E-06** at limit **
   7  Prefactor     .55511E-09    4.5897        .28846E-07** at limit **
   8  Prefactor     .24980E-08    11.409        .20664E-06** at limit **
   9  norm           .0000        .28418       -.14095E-07** at limit **
  10  Prefactor     7.2033        9.0295       -.71751E-08    .23039E-03
  11  Prefactor     .61062E-09    5.7442        .18909E-06** at limit **
  12  norm          1.4772        2.2419       -.46967E-07    .12066E-03
  13  Prefactor      .0000        1.1423        .55104E-07** at limit **
  14  Prefactor     5.5123        5.5811       -.91247E-08    .69865E-04
  15  Prefactor     .18874E-08    6.0982        .28038E-07** at limit **
  16  norm           .0000        25.487       -.18119E-06** at limit **
  17  Prefactor     .93980E-07    27.911        .36727E-06** at limit **
  18  Prefactor     28.851        18.567        .10735E-06   -.88049E-01
  19  Normalizat    1.4556        .22778        .38895E-06    .10562E-04
  20  Prefactor     .83184        .12587       -.10189E-05    .26093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56889
  norm       = 1.64677
  norm       = 0.416111
  Prefactor  = 9.99201e-09
  Prefactor  = 65.6155
  Prefactor  = 1.31511e-06
  Prefactor  = 5.55112e-10
  Prefactor  = 2.498e-09
  norm       = 0
  Prefactor  = 7.20326
  Prefactor  = 6.10623e-10
  norm       = 1.47715
  Prefactor  = 0
  Prefactor  = 5.5123
  Prefactor  = 1.88738e-09
  norm       = 0
  Prefactor  = 9.39804e-08
  Prefactor  = 28.8514
  Normalizat = 1.45559
  Prefactor  = 0.831842
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.688     FROM HESSE     STATUS=OK           339 CALLS     1873 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5689        15.798        .63736E-03   -1.5676    
   2  norm          1.6468        .76682        .82225E-03   -1.5682    
   3  norm          .41611        .86991        .87734E-03   -1.5695    
   4  Prefactor     .99920E-08    14.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.615        48.758        .12459E-03   -1.5546    
   6  Prefactor     .13151E-05    3.2251        .57823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-09    4.5824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24980E-08    11.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .27207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2033        9.0354        .37422E-03   -1.5654    
  11  Prefactor     .61062E-09    5.7426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4772        2.2816        .88136E-03   -1.5684    
  13  Prefactor      .0000        1.1393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5123        5.6060        .43035E-03   -1.5661    
  15  Prefactor     .18874E-08    6.0434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        25.494        .15866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .93980E-07    28.006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.851        51.964        .18741E-03   -1.5601    
  19  Normalizat    1.4556        .19437        .65187E-01   -.79034    
  20  Prefactor     .83184        .10805        .44129E-01   -.98565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91177e-07
Minuit parameter uncertainties:
  1  12.7409
  2  0.766825
  3  0.86991
  4  0.000749792
  5  48.7582
  6  0.00411889
  7  0.000101418
  8  0.000336017
  9  2.24373e-08
  10  9.03544
  11  0.00011869
  12  2.28164
  13  1.9614e-06
  14  5.60596
  15  0.000213292
  16  2.40198e-05
  17  0.0032451
  18  51.9647
  19  0.194474
  20  0.108078
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  2.498e-09  3.360e-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:  8.318e-01  1.081e-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:  1.456e+00  1.945e-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: 4.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644108/likelihoodResults_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.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) = 8434.73005647
delta logL = -0.0419105749825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8434.68814891
delta logL = -3.01421459881e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46982E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.2775       1.0000          .0000       10.000    
     3 'Normalizat'    1.4561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83156       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=   8434.688     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      273 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10270E-07    .12251        .42118E-03** at limit **
   2  Index         2.2847        8.8489        .50000        .32742E-08
   3  Normalizat    1.4556        .61020E-03    .65187E-01    .49456E-03
   4  Prefactor     .83184        .34781E-03    .44127E-01   -.12058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02696e-08
  Index      = 2.28472
  Normalizat = 1.4556
  Prefactor  = 0.831838
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.688     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10270E-07    .91715        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2847        5.8973        .50000       -.57407    
   3  Normalizat    1.4556        .16676E-02    .28834E-03   -.79034    
   4  Prefactor     .83184        .95087E-03    .20916E-03   -.98565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0275e-10
Minuit parameter uncertainties:
  1  0.000194288
  2  1852.65
  3  0.00166758
  4  0.00095087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644108': 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) = 8434.6881459
delta logL = -9.98625182547e-10

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.027e-08  1.943e-04  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.285e+00  1.853e+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:  8.318e-01  9.509e-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:  1.456e+00  1.668e-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/644108/cmap_HighResolution_684892801_685152001_4FGL_J0138.0+2247_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2022-09-18 00:18:01.649507', job_id='644108', GAL2='0.83', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1663485481.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-9.99e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1719' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 00:18:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 644108: <4FGL_J0138.0+2247_daily_bin1719> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1719> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 18 00:04:46 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 00:06:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 00:06:06 2022
Terminated at Sun Sep 18 00:18:02 2022
Results reported at Sun Sep 18 00:18:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1719 24.5063 22.7962 684892801 685152001 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 :                                   633.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            796 sec.

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

