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


Performing analysis on: 4FGL_J0058.0-3233_daily_bin1777
RA = 14.5132, Dec = -32.5658
tmin = 699926401, tmax = 700185601
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='905664', job_status='RUN', time_executed='2023-03-11 00:06:22.581805', time_epoch_executed='1678521982.58' WHERE source_name='4FGL J0058.0-3233' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905664

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905664/ft1_4FGL_J0058.0-3233_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905664/ft1_4FGL_J0058.0-3233_daily_bin1777.fits outfile=/scratch/kocevski/905664/ft1_filteredMKT_4FGL_J0058.0-3233_daily_bin1777.fits ra=14.5132 dec=-32.5658 rad=12.0 tmin=699926401.0 tmax=700185601.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.73
user 3.41
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.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/905664/ft1_filteredMKT_4FGL_J0058.0-3233_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.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.32
sys 0.16

Number of photons that the gtmktime cut: 394

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/905664/ltcube_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.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/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits
.....................!
real 12.46
user 12.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/905664/ltcube_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.fits outfile=/scratch/kocevski/905664/expmap_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.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/905664/ltcube_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.fits
.....................!
real 190.14
user 185.54
sys 4.13

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

Setting source of interest to:
4FGL J0058.0-3233 @ 14.5132 -32.5658

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits scfile=/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits outfile=/scratch/kocevski/905664/cmap_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.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=14.5132 yref=-32.5658 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits scfile=/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits outfile=/scratch/kocevski/905664/cmap_HighResolution_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.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=14.5132 yref=-32.5658 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/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905664/Model_4FGL_J0058.0-3233_daily_bin1777.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/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits.....................!
real 39.91
user 37.88
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits', '/scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits', expMap='/scratch/kocevski/905664/expmap_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.fits', expCube='/scratch/kocevski/905664/ltcube_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905664/Model_4FGL_J0058.0-3233_daily_bin1777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.0-3233'

4FGL J0058.0-3233
   Spectrum: LogParabola
196         norm:  1.613e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
197        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
198         beta:  1.485e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
199           Eb:  9.938e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/905664/ft1_filtered_4FGL_J0058.0-3233_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/905664/ft2_4FGL_J0058.0-3233_daily_bin1777.fits
Exposure map: /scratch/kocevski/905664/expmap_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.fits
Exposure cube: /scratch/kocevski/905664/ltcube_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905664/Model_4FGL_J0058.0-3233_daily_bin1777.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) = 4514.21693636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10813E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .31253E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7167       1.0000          .0000       .10000E+07
     4 'Prefactor '    47.239       1.0000          .0000       .10000E+07
     5 'norm      '    .14181E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    15.632       1.0000          .0000       .10000E+07
     7 'norm      '    .11136E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .11307       1.0000          .0000       .10000E+07
     9 'norm      '    .26998E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .24351E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .40315E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20025E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .26658E-04   1.0000          .0000       .10000E+07
    14 'norm      '    6.4360       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40383E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .46007E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    34.940       1.0000          .0000       .10000E+07
    18 'norm      '    6.6176       1.0000          .0000       .10000E+07
    19 'Prefactor '    .52786E-03   1.0000          .0000       .10000E+07
    20 'norm      '    1.3160       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4514.104     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     1724 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4217        .98856E-07** at limit **
   2  Prefactor     .55511E-10    4.4760        .45363E-06** at limit **
   3  Prefactor     2.0533        12.209        .20562E-05   -.89368E-03
   4  Prefactor     52.098        46.893       -.44644E-06    .51174E-03
   5  norm           .0000        1.6721        .20692E-07** at limit **
   6  Prefactor     15.623        12.778        .13801E-05    .27098E-02
   7  norm          .72164E-09    30.746        .71690E-06** at limit **
   8  norm           .0000        96.852       -.41773E-05** at limit **
   9  norm          .16653E-09    3.0049        .17304E-06** at limit **
  10  Prefactor     .55511E-10    3.3604       -.64567E-07** at limit **
  11  Prefactor     .22204E-09    4.5468       -.25686E-06** at limit **
  12  Prefactor      .0000        1.3683       -.45614E-07** at limit **
  13  norm          .55511E-10    1.0400        .21913E-06** at limit **
  14  norm          6.4503        3.2893        .83184E-07   -.39559E-02
  15  Prefactor     .55511E-10    15.949        .19706E-06** at limit **
  16  Prefactor      .0000        2.9365        .27495E-06** at limit **
  17  Prefactor     36.561        31.064       -.11746E-05   -.84367E-03
  18  norm          6.5972        4.3512       -.10744E-06    .20679E-02
  19  Prefactor     .16653E-09    1.9728       -.47395E-06** at limit **
  20  norm          1.3316        5.0763       -.25118E-07    .12403E-03
  21  Normalizat    1.0540        .23991       -.65660E-05   -.18031E-03
  22  Prefactor     1.0862        .26785        .56110E-05   -.20698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.05331
  Prefactor  = 52.098
  norm       = 0
  Prefactor  = 15.6231
  norm       = 7.21645e-10
  norm       = 0
  norm       = 1.66533e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 6.45025
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 36.5613
  norm       = 6.5972
  Prefactor  = 1.66533e-10
  norm       = 1.33156
  Normalizat = 1.05399
  Prefactor  = 1.08621
 **********
 **   18 **HESSE 
 **********

 FCN=   4514.104     FROM HESSE     STATUS=OK           386 CALLS     2110 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    4.4819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0533        13.565        .61765E-03   -1.5679    
   4  Prefactor     52.098        49.277        .14551E-03   -1.5564    
   5  norm           .0000        1.6734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.623        12.735        .25306E-03   -1.5629    
   7  norm          .72164E-09    30.727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        11.696        .82288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16653E-09    2.9943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    3.3685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    4.5524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.3679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    1.0403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4503        3.2894        .39538E-03   -1.5657    
  15  Prefactor     .55511E-10    15.954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.9401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.561        31.065        .16920E-03   -1.5587    
  18  norm          6.5972        4.3737        .38985E-03   -1.5657    
  19  Prefactor     .16653E-09    1.9705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3316        5.1049        .95973E-03   -1.5685    
  21  Normalizat    1.0540        .20145        .40083E-01   -.91243    
  22  Prefactor     1.0862        .22521        .60610E-01   -.89909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37823e-07
Minuit parameter uncertainties:
  1  6.78837e-06
  2  3.85659e-05
  3  10.5554
  4  49.2769
  5  3.48855e-06
  6  12.7347
  7  0.000300884
  8  2.09229e-05
  9  4.75514e-05
  10  2.65356e-05
  11  6.20804e-05
  12  3.85436e-06
  13  1.27482e-05
  14  3.28937
  15  6.14294e-05
  16  4.33802e-06
  17  31.0654
  18  4.3737
  19  3.44833e-05
  20  5.10495
  21  0.201593
  22  0.225407
Done.

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

Extracting fit parameters...

4FGL J0058.0-3233
   Spectrum: LogParabola
196         norm:  1.665e-10  4.755e-05  0.000e+00  1.000e+06 ( 1.000e-12)
197        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
198         beta:  1.485e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
199           Eb:  9.938e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.086e+00  2.254e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.054e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.513 -32.566
Photon Flux Upper Limit: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905664/likelihoodResults_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.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) = 4514.27680232
delta logL = -0.173256749446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4513.58780843
delta logL = 0.515737144407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54371E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .96641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4513.588     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      273 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54320E-01    2.5367        .34671E-03** at limit **
   2  alpha         5.0000        3.7834        .46267    ** at limit **
   3  Normalizat    .96585        .13129        .45745E-01   -.41161E-04
   4  Prefactor     1.1479        .11994        .59173E-01   -.45085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0543204
  alpha      = 5
  Normalizat = 0.965852
  Prefactor  = 1.14786
 **********
 **   18 **HESSE 
 **********

 FCN=   4513.588     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54320E-01    .58758E-01    .15630E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.1218        .54478E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96585        .24525        .24571E-03   -.94183    
   4  Prefactor     1.1479        .27335        .26168E-03   -.87951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61655e-11
Minuit parameter uncertainties:
  1  0.0587577
  2  4.65044e-06
  3  0.245539
  4  0.273687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905664': 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) = 4513.58780218
delta logL = 0.515743389912

Extracting fit parameters...

4FGL J0058.0-3233
   Spectrum: LogParabola
196         norm:  5.432e-02  5.876e-02  0.000e+00  1.000e+06 ( 1.000e-12)
197        alpha:  5.000e+00  4.650e-06  0.000e+00  5.000e+00 ( 1.000e+00)
198         beta:  1.485e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
199           Eb:  9.938e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.148e+00  2.737e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  9.659e-01  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 14.513 -32.566
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.11e-08 +/- 7.65e-08
Energy Flux (Free Index): 9.91e-06 +/- 1.07e-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/905664/cmap_HighResolution_699926401_700185601_4FGL_J0058.0-3233_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', energy_flux2='9.91e-06', dlogl='5.16e-01', photon_flux2='7.11e-08', job_status='DONE', time_completed='2023-03-11 00:14:55.458628', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='1.07e-05', EG='1.05', time_epoch_completed='1678522495.46', return_code='0', job_id='905664', GAL2='1.15', EG2='0.97', return_code2='0', photon_flux_error2='7.65e-08', ts2='1.14', photon_index='1.92' WHERE bin_id='1777' AND source_name='4FGL J0058.0-3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:14:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 905664: <4FGL_J0058.0-3233_daily_bin1777> in cluster <slac> Done

Job <4FGL_J0058.0-3233_daily_bin1777> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 11 00:04:54 2023
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:04:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:04:56 2023
Terminated at Sat Mar 11 00:14:56 2023
Results reported at Sat Mar 11 00:14:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.0-3233_daily_bin1777 14.5132 -32.5658 699926401 700185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.0-3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   508.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            602 sec.

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

