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


Performing analysis on: 4FGL_J0038.2-2459_daily_bin1701
RA = 9.5652, Dec = -24.9899
tmin = 680227201, tmax = 680486401
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='157810', job_status='RUN', time_executed='2022-07-26 00:08:57.256458', time_epoch_executed='1658819337.26' WHERE source_name='4FGL J0038.2-2459' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157810/ft1_4FGL_J0038.2-2459_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157810/ft1_4FGL_J0038.2-2459_daily_bin1701.fits outfile=/scratch/kocevski/157810/ft1_filteredMKT_4FGL_J0038.2-2459_daily_bin1701.fits ra=9.5652 dec=-24.9899 rad=12.0 tmin=680227201.0 tmax=680486401.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 2.98
user 2.69
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.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/157810/ft1_filteredMKT_4FGL_J0038.2-2459_daily_bin1701.fits evtable="EVENTS" outfile="/scratch/kocevski/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.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: 359

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/157810/ltcube_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.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/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits
.....................!
real 17.45
user 17.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/157810/ltcube_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.fits outfile=/scratch/kocevski/157810/expmap_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.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/157810/ltcube_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.fits
.....................!
real 194.02
user 187.50
sys 4.91

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/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits scfile=/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits outfile=/scratch/kocevski/157810/cmap_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits scfile=/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits outfile=/scratch/kocevski/157810/cmap_HighResolution_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/157810/Model_4FGL_J0038.2-2459_daily_bin1701.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/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits......................!
real 38.82
user 36.35
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits', '/scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits', expMap='/scratch/kocevski/157810/expmap_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.fits', expCube='/scratch/kocevski/157810/ltcube_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/157810/Model_4FGL_J0038.2-2459_daily_bin1701.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/157810/ft1_filtered_4FGL_J0038.2-2459_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/157810/ft2_4FGL_J0038.2-2459_daily_bin1701.fits
Exposure map: /scratch/kocevski/157810/expmap_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.fits
Exposure cube: /scratch/kocevski/157810/ltcube_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/157810/Model_4FGL_J0038.2-2459_daily_bin1701.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) = 4074.273997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.397       1.0000         .10000E-03   10000.    
     7 'norm      '    .28181E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.062       1.0000         .10000E-03   10000.    
     9 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .69573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3998       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8601       1.0000         .10000E-03   10000.    
    15 'norm      '    4.2295       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26673E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.708       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0798       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .43567       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4074.246     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1860 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.269        .13681E-06** at limit **
   2  Prefactor     .10000E-03    2.3123       -.30255E-05** at limit **
   3  Prefactor     .10000E-03    9.9781       -.10149E-05** at limit **
   4  Prefactor     .10000E-03    4.6767       -.29878E-07** at limit **
   5  Prefactor     .10000E-03    10.546        .16413E-06** at limit **
   6  norm          24.397        14.551        .31427E-07   -.29166E-04
   7  norm          .10096E-03    3.9634        .14721E-05** at limit **
   8  Prefactor     53.057        55.266       -.40448E-06   -.11217E-04
   9  norm          .10000E-03    5.0508        .84181E-07** at limit **
  10  norm          .69538        2.4542        .13856E-05    .22635E-03
  11  Prefactor     5.3999        6.2962        .13453E-06   -.18253E-04
  12  Prefactor     .10000E-03    4.4381        .13314E-06** at limit **
  13  Prefactor     .10000E-03    4.0867        .14515E-06** at limit **
  14  norm          2.8597        1.6338       -.50812E-07   -.11667E-03
  15  norm          4.2293        2.1099       -.11694E-07    .26238E-05
  16  Prefactor     .10000E-03    3.7876        .10177E-06** at limit **
  17  Prefactor     .10000E-03    .89736        .76105E-07** at limit **
  18  Prefactor     .10001E-03    132.51       -.14056E-04** at limit **
  19  Prefactor     10.576        105.55       -.60065E-05   -.31447E-04
  20  Normalizat    1.0798        .17815        .43994E-05   -.49858E-03
  21  Prefactor     .43571        .19558       -.87807E-05   -.12982E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.3974
  norm       = 0.000100956
  Prefactor  = 53.0568
  norm       = 0.0001
  norm       = 0.695382
  Prefactor  = 5.3999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8597
  norm       = 4.22932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 10.5755
  Normalizat = 1.07983
  Prefactor  = 0.435713
 **********
 **   18 **HESSE 
 **********

 FCN=   4074.246     FROM HESSE     STATUS=OK           311 CALLS     2171 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3874        .95770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6796        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.397        14.550        .81099E-04   -1.4720    
   7  norm          .10096E-03    57.250        .22982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     53.057        55.283        .55061E-04   -1.4250    
   9  norm          .10000E-03    5.0630        .14011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69538        2.4500        .18047E-03   -1.5541    
  11  Prefactor     5.3999        6.2927        .16262E-03   -1.5243    
  12  Prefactor     .10000E-03    4.4462        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1083        .12576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8597        1.6286        .59543E-04   -1.5370    
  15  norm          4.2293        2.1088        .63433E-04   -1.5297    
  16  Prefactor     .10000E-03    3.7913        .12131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .89954        .59042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    134.31        .21439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.576        106.56        .12243E-03   -1.5057    
  20  Normalizat    1.0798        .19230        .17647E-03   -.90402    
  21  Prefactor     .43571        .20950        .29719E-03   -1.1502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65751e-08
Minuit parameter uncertainties:
  1  1.69227e-05
  2  5.8513e-05
  3  2.63809e-05
  4  3.78358e-07
  5  3.19082e-07
  6  14.5517
  7  0.0148111
  8  55.3363
  9  6.16346e-06
  10  2.45033
  11  6.29347
  12  3.38561e-06
  13  1.64629e-06
  14  1.62858
  15  2.10883
  16  2.40788e-06
  17  6.82442e-07
  18  0.00243358
  19  67.2934
  20  0.192427
  21  0.209873
Done.

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

Extracting fit parameters...

4FGL J0038.2-2459
   Spectrum: LogParabola
137         norm:  1.010e-04  1.481e-02  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:  4.357e-01  2.099e-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:  1.080e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.565 -24.990
Photon Flux Upper Limit: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157810/likelihoodResults_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.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): 102
logL (Free Index) = 4074.24582005
delta logL = -8.26190962471e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4073.94654321
delta logL = 0.299194221818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3248       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4166       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45889       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4073.947     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      297 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3246        4.2657        .96221E-04   -.41377E-03
   2  alpha         3.4166        1.7231        .18155E-01   -.50200E-05
   3  Normalizat    1.0389        .19449        .17939E-03   -.19409E-03
   4  Prefactor     .45889        .21061        .28978E-03   -.10349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32465
  alpha      = 3.41662
  Normalizat = 1.03893
  Prefactor  = 0.458887
 **********
 **   18 **HESSE 
 **********

 FCN=   4073.947     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3246        3.2180        .38488E-05   -1.5478    
   2  alpha         3.4166        1.3673        .72618E-03    .37540    
   3  Normalizat    1.0389        .19481        .35878E-04   -.91737    
   4  Prefactor     .45889        .21065        .11591E-04   -1.1390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5455e-11
Minuit parameter uncertainties:
  1  3.21844
  2  1.46157
  3  0.194945
  4  0.211009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157810': 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) = 4073.9465432
delta logL = 0.299194228076

Extracting fit parameters...

4FGL J0038.2-2459
   Spectrum: LogParabola
137         norm:  1.325e+00  3.218e+00  1.000e-04  1.000e+04 ( 1.000e-12)
138        alpha:  3.417e+00  1.462e+00  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:  4.589e-01  2.110e-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:  1.039e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.565 -24.990

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/157810/cmap_HighResolution_680227201_680486401_4FGL_J0038.2-2459_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2022-07-26 00:17:21.771258', job_id='157810', GAL2='0.46', fit_tolerance='1e-08', EG2='1.04', EG='1.08', time_epoch_completed='1658819841.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='2.99e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1701' AND source_name='4FGL J0038.2-2459' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 00:17:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 157810: <4FGL_J0038.2-2459_daily_bin1701> in cluster <slac> Done

Job <4FGL_J0038.2-2459_daily_bin1701> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jul 26 00:04:32 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 00:08:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 00:08:03 2022
Terminated at Tue Jul 26 00:17:22 2022
Results reported at Tue Jul 26 00:17:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0038.2-2459_daily_bin1701 9.5652 -24.9899 680227201 680486401 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 :                                   502.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            770 sec.

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

