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


Performing analysis on: 4FGL_J0038.2-2459_daily_bin1684
RA = 9.5652, Dec = -24.9899
tmin = 675820801, tmax = 676080001
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='180880', job_status='RUN', time_executed='2022-06-05 00:07:38.778030', time_epoch_executed='1654412858.78' WHERE source_name='4FGL J0038.2-2459' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180880/ft1_4FGL_J0038.2-2459_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180880/ft1_4FGL_J0038.2-2459_daily_bin1684.fits outfile=/scratch/kocevski/180880/ft1_filteredMKT_4FGL_J0038.2-2459_daily_bin1684.fits ra=9.5652 dec=-24.9899 rad=12.0 tmin=675820801.0 tmax=676080001.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 4.56
user 4.22
sys 0.23

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

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

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/180880/ltcube_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.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/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits
.....................!
real 15.35
user 14.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/180880/ltcube_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.fits outfile=/scratch/kocevski/180880/expmap_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.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/180880/ltcube_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.fits
.....................!
real 194.11
user 188.93
sys 4.62

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits scfile=/scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits outfile=/scratch/kocevski/180880/cmap_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits scfile=/scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits outfile=/scratch/kocevski/180880/cmap_HighResolution_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180880/Model_4FGL_J0038.2-2459_daily_bin1684.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/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits.....................!
real 49.45
user 47.34
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits', '/scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits', expMap='/scratch/kocevski/180880/expmap_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.fits', expCube='/scratch/kocevski/180880/ltcube_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180880/Model_4FGL_J0038.2-2459_daily_bin1684.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/180880/ft1_filtered_4FGL_J0038.2-2459_daily_bin1684.fits
Spacecraft file(s): /scratch/kocevski/180880/ft2_4FGL_J0038.2-2459_daily_bin1684.fits
Exposure map: /scratch/kocevski/180880/expmap_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.fits
Exposure cube: /scratch/kocevski/180880/ltcube_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180880/Model_4FGL_J0038.2-2459_daily_bin1684.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6035.09905562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.424       1.0000         .10000E-03   10000.    
     7 'norm      '    23.579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11077E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .90253       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6153       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7483       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .71584       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84028       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=   6034.952     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     1877 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.291        .12194E-05** at limit **
   2  Prefactor     .10000E-03    1.4944       -.17506E-07** at limit **
   3  Prefactor     .10000E-03    10.170        .10628E-05** at limit **
   4  Prefactor     27.505        11.561        .26381E-05   -.30474E-05
   5  Prefactor     .10000E-03    10.605       -.17290E-05** at limit **
   6  norm          11.424        8.7615        .32032E-07    .66983E-05
   7  norm          23.579        6.5056       -.20494E-06   -.29693E-04
   8  Prefactor     .10000E-03    263.11       -.10239E-04** at limit **
   9  norm          .10000E-03    4.0863       -.80951E-07** at limit **
  10  norm          .10000E-03    .89261        .11332E-07** at limit **
  11  Prefactor     7.2385        4.9053        .21102E-06   -.18143E-03
  12  Prefactor     4.9384        5.8379        .20016E-05   -.79503E-04
  13  Prefactor     .10000E-03    14.414        .72633E-05** at limit **
  14  norm          .90273        1.6513       -.55721E-06   -.23720E-02
  15  norm          1.6153        1.4040       -.34420E-07   -.59602E-04
  16  Prefactor     8.7491        7.1841        .11282E-06    .68358E-05
  17  Prefactor     .10000E-03    2.0546        .56943E-07** at limit **
  18  Prefactor     .10000E-03    16.258       -.51075E-05** at limit **
  19  Prefactor     .10000E-03    15.929       -.29694E-05** at limit **
  20  Normalizat    .71582        .12966       -.55078E-06   -.69831E-04
  21  Prefactor     .84035        .15029       -.32722E-07   -.97338E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5053
  Prefactor  = 0.0001
  norm       = 11.424
  norm       = 23.5785
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.23852
  Prefactor  = 4.93843
  Prefactor  = 0.0001
  norm       = 0.902732
  norm       = 1.61529
  Prefactor  = 8.74906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.715822
  Prefactor  = 0.840351
 **********
 **   18 **HESSE 
 **********

 FCN=   6034.952     FROM HESSE     STATUS=OK           319 CALLS     2196 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5645        .18531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.505        11.380        .76374E-04   -1.4659    
   5  Prefactor     .10000E-03    10.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.424        8.7624        .11853E-03   -1.5032    
   7  norm          23.579        6.5134        .82492E-04   -1.4736    
   8  Prefactor     .10000E-03    268.50        .20694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0956        .15336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .90269        .71661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2385        4.8985        .13452E-03   -1.5170    
  12  Prefactor     4.9384        5.7893        .18097E-03   -1.5263    
  13  Prefactor     .10000E-03    14.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .90273        1.4879        .13058E-02   -1.5518    
  15  norm          1.6153        1.4068        .83276E-04   -1.5454    
  16  Prefactor     8.7491        7.1792        .13552E-03   -1.5116    
  17  Prefactor     .10000E-03    3.5356        .21035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .71582        .15360        .20838E-03   -1.0327    
  21  Prefactor     .84035        .17881        .22754E-03   -.98258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21099e-09
Minuit parameter uncertainties:
  1  2.13237e-06
  2  2.59346e-07
  3  7.34584e-07
  4  11.3807
  5  8.78181e-06
  6  8.76337
  7  6.51356
  8  0.000577701
  9  1.1216e-06
  10  4.98044e-07
  11  4.89873
  12  5.78993
  13  2.71945e-05
  14  1.48798
  15  1.40683
  16  7.17989
  17  1.45593e-05
  18  2.87837e-06
  19  4.56654e-06
  20  0.153688
  21  0.178938
Done.

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

Extracting fit parameters...

4FGL J0038.2-2459
   Spectrum: LogParabola
137         norm:  2.358e+01  6.514e+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:  8.404e-01  1.789e-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.158e-01  1.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.21
Ra Dec: 9.565 -24.990
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 3.23e-08
Energy Flux (Fixed Index): 4.94e-05 +/- 1.36e-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) = 6033.5147464
delta logL = 1.43706639595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6033.51409084
delta logL = 1.43772195347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.391       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6745       1.0000          .0000       5.0000    
     3 'Normalizat'    .66194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88325       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=   6033.514     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.391        6.7680        .77986E-04   -.40803E-03
   2  alpha         2.6746        .32594        .60332E-02   -.74754E-04
   3  Normalizat    .66190        .15573        .21534E-03    .10506E-04
   4  Prefactor     .88328        .18140        .22232E-03    .35590E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.3911
  alpha      = 2.67456
  Normalizat = 0.661902
  Prefactor  = 0.883282
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.514     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.391        6.5611        .31195E-05   -1.4874    
   2  alpha         2.6746        .31589        .24133E-03    .69881E-01
   3  Normalizat    .66190        .15578        .86135E-05   -1.0542    
   4  Prefactor     .88328        .18149        .88930E-05   -.96728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33881e-11
Minuit parameter uncertainties:
  1  6.56134
  2  0.316742
  3  0.155884
  4  0.181611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180880': 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) = 6033.51409081
delta logL = 1.43772198156

Extracting fit parameters...

4FGL J0038.2-2459
   Spectrum: LogParabola
137         norm:  1.739e+01  6.561e+00  1.000e-04  1.000e+04 ( 1.000e-12)
138        alpha:  2.675e+00  3.167e-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:  8.833e-01  1.816e-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:  6.619e-01  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.27
Ra Dec: 9.565 -24.990
Photon Index (Free Index): 2.67 +/- 0.32
Photon Flux (Free Index): 1.58e-07 +/- 4.53e-08
Energy Flux (Free Index): 4.01e-05 +/- 1.08e-05

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/180880/cmap_HighResolution_675820801_676080001_4FGL_J0038.2-2459_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='4.01e-05', photon_flux_error='3.23e-08', dlogl='1.44e+00', energy_flux='4.94e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2022-06-05 00:16:49.124185', photon_index_error2='0.32', photon_index2='2.67', ts='34.21', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.72', time_epoch_completed='1654413409.12', return_code='0', job_id='180880', GAL2='0.88', EG2='0.66', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.53e-08', ts2='37.27', photon_index='2.16' WHERE bin_id='1684' AND source_name='4FGL J0038.2-2459' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:16:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 180880: <4FGL_J0038.2-2459_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0038.2-2459_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:39 2022
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:05:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:05:21 2022
Terminated at Sun Jun  5 00:16:49 2022
Results reported at Sun Jun  5 00:16:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0038.2-2459_daily_bin1684 9.5652 -24.9899 675820801 676080001 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 :                                   547.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            730 sec.

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

