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


Performing analysis on: 4FGL_J0038.2-2459_daily_bin1680
RA = 9.5652, Dec = -24.9899
tmin = 674784001, tmax = 675043201
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='580263', job_status='RUN', time_executed='2022-05-24 00:09:47.207871', time_epoch_executed='1653376187.21' WHERE source_name='4FGL J0038.2-2459' and cadence='daily' and bin_id='1680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580263/ft1_4FGL_J0038.2-2459_daily_bin1680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580263/ft1_4FGL_J0038.2-2459_daily_bin1680.fits outfile=/scratch/kocevski/580263/ft1_filteredMKT_4FGL_J0038.2-2459_daily_bin1680.fits ra=9.5652 dec=-24.9899 rad=12.0 tmin=674784001.0 tmax=675043201.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.60
user 3.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.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/580263/ft1_filteredMKT_4FGL_J0038.2-2459_daily_bin1680.fits evtable="EVENTS" outfile="/scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.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.53
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 518

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits" evtable="EVENTS" scfile=/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits sctable="SC_DATA" outfile=/scratch/kocevski/580263/ltcube_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.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/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits
.....................!
real 14.36
user 13.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits sctable="SC_DATA" expcube=/scratch/kocevski/580263/ltcube_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.fits outfile=/scratch/kocevski/580263/expmap_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.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/580263/ltcube_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.fits
.....................!
real 192.11
user 185.55
sys 6.06

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

Setting source of interest to:
4FGL J0038.2-2459 @ 9.5652 -24.9899

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits scfile=/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits outfile=/scratch/kocevski/580263/cmap_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.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=9.5652 yref=-24.9899 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits scfile=/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits outfile=/scratch/kocevski/580263/cmap_HighResolution_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.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=9.5652 yref=-24.9899 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580263/Model_4FGL_J0038.2-2459_daily_bin1680.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/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits.....................!
real 47.48
user 45.02
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits', '/scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits', expMap='/scratch/kocevski/580263/expmap_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.fits', expCube='/scratch/kocevski/580263/ltcube_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580263/Model_4FGL_J0038.2-2459_daily_bin1680.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0038.2-2459'

4FGL J0038.2-2459
   Spectrum: LogParabola
137         norm:  4.239e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
138        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
139         beta:  8.909e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
140           Eb:  7.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/580263/ft1_filtered_4FGL_J0038.2-2459_daily_bin1680.fits
Spacecraft file(s): /scratch/kocevski/580263/ft2_4FGL_J0038.2-2459_daily_bin1680.fits
Exposure map: /scratch/kocevski/580263/expmap_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.fits
Exposure cube: /scratch/kocevski/580263/ltcube_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580263/Model_4FGL_J0038.2-2459_daily_bin1680.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) = 5751.65793074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.940       1.0000         .10000E-03   10000.    
     7 'norm      '    8.3384       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.4193       1.0000         .10000E-03   10000.    
    10 'norm      '    .23160E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4670       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6204       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2137       1.0000         .10000E-03   10000.    
    14 'norm      '    .64069       1.0000         .10000E-03   10000.    
    15 'norm      '    .93281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    102.78       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82820       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5751.561     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     1935 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    29.350        .90712E-02** at limit **
   2  Prefactor     .10000E-03    .80456        .90712E-02** at limit **
   3  Prefactor     .10001E-03    9.2214        .90712E-02** at limit **
   4  Prefactor     1.7764        5.5163        .78546E-02    .15037E-02
   5  Prefactor     .10000E-03    9.0483        .90712E-02** at limit **
   6  norm          21.940        12.849        .21378E-02   -.48621E-04
   7  norm          8.3381        5.3812        .34708E-02    .89405E-03
   8  Prefactor     .10003E-03    28.589        .90712E-02** at limit **
   9  norm          8.4194        7.0600        .34540E-02   -.11703E-02
  10  norm          .10001E-03    1.1782        .43526E-01** at limit **
  11  Prefactor     4.4621        6.9225        .47629E-02    .17803E-02
  12  Prefactor     7.6224        14.892        .36318E-02    .83539E-04
  13  Prefactor     5.2151        5.4389        .44012E-02   -.57471E-03
  14  norm          .63962        1.0126        .11832E-02    .24272E-02
  15  norm          .93050        1.6635        .25963E-01    .92191E-03
  16  Prefactor     6.6072        8.6262        .39031E-02    .87071E-04
  17  Prefactor     .10000E-03    1.8482        .90712E-02** at limit **
  18  Prefactor     102.78        61.220        .99150E-03    .41932E-03
  19  Prefactor     .10000E-03    18.102        .90712E-02** at limit **
  20  Normalizat    .82826        .15277        .43977E-01    .44371E-04
  21  Prefactor     1.0137        .17798        .42821E-01    .53144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 1.77636
  Prefactor  = 0.000100004
  norm       = 21.9399
  norm       = 8.3381
  Prefactor  = 0.000100026
  norm       = 8.41938
  norm       = 0.000100007
  Prefactor  = 4.46212
  Prefactor  = 7.62243
  Prefactor  = 5.21508
  norm       = 0.639616
  norm       = 0.930502
  Prefactor  = 6.60716
  Prefactor  = 0.0001
  Prefactor  = 102.78
  Prefactor  = 0.0001
  Normalizat = 0.828261
  Prefactor  = 1.01373
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.561     FROM HESSE     STATUS=OK           325 CALLS     2260 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    29.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .80934        .66421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    9.2540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7764        5.4742        .30496E-03   -1.5441    
   5  Prefactor     .10000E-03    9.0581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.940        12.850        .85514E-04   -1.4771    
   7  norm          8.3381        5.3864        .13542E-03   -1.5130    
   8  Prefactor     .10003E-03    28.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.4194        7.0611        .69079E-03   -1.5128    
  10  norm          .10001E-03    13.090        .15999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4621        6.8039        .19051E-03   -1.5285    
  12  Prefactor     7.6224        14.612        .14527E-03   -1.5156    
  13  Prefactor     5.2151        5.4490        .16549E-03   -1.5251    
  14  norm          .63962        1.0145        .23665E-03   -1.5548    
  15  norm          .93050        1.4473        .12511E-02   -1.5515    
  16  Prefactor     6.6072        8.6069        .15612E-03   -1.5194    
  17  Prefactor     .10000E-03    1.8816        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     102.78        61.219        .39660E-04   -1.3677    
  19  Prefactor     .10000E-03    18.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82826        .18260        .22063E-03   -.99029    
  21  Prefactor     1.0137        .21258        .23764E-03   -.92273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17445e-08
Minuit parameter uncertainties:
  1  0.00198924
  2  2.07165e-06
  3  0.000565403
  4  5.47574
  5  0.000370706
  6  12.8517
  7  5.38675
  8  0.00173974
  9  7.06183
  10  0.000624668
  11  6.80508
  12  14.6184
  13  5.44951
  14  1.01452
  15  1.44732
  16  8.60855
  17  6.65356e-06
  18  61.2563
  19  0.00014196
  20  0.182739
  21  0.212756
Done.

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

Extracting fit parameters...

4FGL J0038.2-2459
   Spectrum: LogParabola
137         norm:  8.338e+00  5.387e+00  1.000e-04  1.000e+04 ( 1.000e-12)
138        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
139         beta:  8.909e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
140           Eb:  7.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  1.014e+00  2.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  8.283e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.38
Ra Dec: 9.565 -24.990
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.13e-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) = 5750.57097131
delta logL = 0.990392623634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5750.56261806
delta logL = 0.998745872954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7666       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9692       1.0000          .0000       5.0000    
     3 'Normalizat'    .77950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5750.563     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7686        53.422        .41814E-02    .17073E-03
   2  alpha         2.9691        3.9839        .24664        .53094E-04
   3  Normalizat    .77940        .69860E-01    .43342E-01    .10621E-04
   4  Prefactor     1.0488        .75844E-01    .39986E-01    .68626E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.76862
  alpha      = 2.96907
  Normalizat = 0.779405
  Prefactor  = 1.04883
 **********
 **   18 **HESSE 
 **********

 FCN=   5750.563     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7686        4.8688        .86177E-04   -1.5228    
   2  alpha         2.9691        .63025        .10141E-01    .18875    
   3  Normalizat    .77940        .18339        .22646E-03   -1.0084    
   4  Prefactor     1.0488        .21404        .23391E-03   -.91119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11394e-09
Minuit parameter uncertainties:
  1  4.86911
  2  0.637383
  3  0.183535
  4  0.214217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580263': 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) = 5750.56261778
delta logL = 0.998746149882

Extracting fit parameters...

4FGL J0038.2-2459
   Spectrum: LogParabola
137         norm:  5.769e+00  4.869e+00  1.000e-04  1.000e+04 ( 1.000e-12)
138        alpha:  2.969e+00  6.374e-01  0.000e+00  5.000e+00 ( 1.000e+00)
139         beta:  8.909e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
140           Eb:  7.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  1.049e+00  2.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  7.794e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.46
Ra Dec: 9.565 -24.990
Photon Index (Free Index): 2.97 +/- 0.64
Photon Flux (Free Index): 7.83e-08 +/- 4.25e-08
Energy Flux (Free Index): 1.66e-05 +/- 8.51e-06

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/580263/cmap_HighResolution_674784001_675043201_4FGL_J0038.2-2459_daily_bin1680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.66e-05', photon_flux_error='2.67e-08', dlogl='9.99e-01', energy_flux='1.75e-05', photon_flux2='7.83e-08', job_status='DONE', time_completed='2022-05-24 00:18:37.802231', photon_index_error2='0.64', photon_index2='2.97', ts='5.38', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='8.51e-06', EG='0.83', time_epoch_completed='1653376717.8', return_code='0', job_id='580263', GAL2='1.05', EG2='0.78', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.25e-08', ts2='7.46', photon_index='2.16' WHERE bin_id='1680' AND source_name='4FGL J0038.2-2459' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 24 00:18:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 580263: <4FGL_J0038.2-2459_daily_bin1680> in cluster <slac> Done

Job <4FGL_J0038.2-2459_daily_bin1680> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 00:04:57 2022
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 00:07:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 00:07:59 2022
Terminated at Tue May 24 00:18:38 2022
Results reported at Tue May 24 00:18:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0038.2-2459_daily_bin1680 9.5652 -24.9899 674784001 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0038.2-2459 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   526.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            821 sec.

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

