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


Performing analysis on: 4FGL_J0058.4+3315_daily_bin1698
RA = 14.6101, Dec = 33.2505
tmin = 679449601, tmax = 679708801
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='916303', job_status='RUN', time_executed='2022-07-17 00:06:05.360467', time_epoch_executed='1658041565.36' WHERE source_name='4FGL J0058.4+3315' and cadence='daily' and bin_id='1698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916303/ft1_4FGL_J0058.4+3315_daily_bin1698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916303/ft1_4FGL_J0058.4+3315_daily_bin1698.fits outfile=/scratch/kocevski/916303/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1698.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=679449601.0 tmax=679708801.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.73
user 3.22
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.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/916303/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1698.fits evtable="EVENTS" outfile="/scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.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 1.00
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 755

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits" evtable="EVENTS" scfile=/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits sctable="SC_DATA" outfile=/scratch/kocevski/916303/ltcube_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.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/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits
.....................!
real 12.28
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits sctable="SC_DATA" expcube=/scratch/kocevski/916303/ltcube_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.fits outfile=/scratch/kocevski/916303/expmap_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.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/916303/ltcube_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.fits
.....................!
real 193.06
user 185.66
sys 4.32

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

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits scfile=/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits outfile=/scratch/kocevski/916303/cmap_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.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.6101 yref=33.2505 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 2.17
user 0.39
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits scfile=/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits outfile=/scratch/kocevski/916303/cmap_HighResolution_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.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.6101 yref=33.2505 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 2.16
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916303/Model_4FGL_J0058.4+3315_daily_bin1698.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/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits.....................!
real 92.28
user 74.82
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits', '/scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits', expMap='/scratch/kocevski/916303/expmap_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.fits', expCube='/scratch/kocevski/916303/ltcube_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916303/Model_4FGL_J0058.4+3315_daily_bin1698.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/916303/ft1_filtered_4FGL_J0058.4+3315_daily_bin1698.fits
Spacecraft file(s): /scratch/kocevski/916303/ft2_4FGL_J0058.4+3315_daily_bin1698.fits
Exposure map: /scratch/kocevski/916303/expmap_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.fits
Exposure cube: /scratch/kocevski/916303/ltcube_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916303/Model_4FGL_J0058.4+3315_daily_bin1698.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) = 8326.35467839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.656       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6054       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4145       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9273       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2552       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1573       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1723       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .77166       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9787       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.530       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94213       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8326.299     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2493 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.655        20.637       -.16541E-06   -.25828E-04
   2  Prefactor     6.6053        6.5057        .26305E-05   -.11658E-02
   3  Prefactor     10.712        67.605       -.18707E-04   -.22395E-03
   4  Prefactor     .10000E-03    6.4824       -.18179E-06** at limit **
   5  Prefactor     .10000E-03    13.998       -.18812E-05** at limit **
   6  norm          2.4142        1.8186        .34954E-08   -.37033E-04
   7  Prefactor     .10000E-03    5.5634        .45733E-07** at limit **
   8  Prefactor     .10000E-03    8.3394       -.12909E-05** at limit **
   9  Prefactor     9.9281        10.440        .14078E-07   -.13692E-04
  10  Prefactor     5.2539        5.8872        .21264E-05   -.92403E-03
  11  Prefactor     .10000E-03    12.406        .69885E-06** at limit **
  12  Prefactor     .10000E-03    7.4872        .84785E-06** at limit **
  13  Prefactor     .10000E-03    29.237        .17033E-05** at limit **
  14  norm          1.1573        .50076        .53743E-08   -.33564E-04
  15  norm          1.1719        1.1168        .58996E-07   -.71464E-04
  16  Prefactor     .10000E-03    11.124        .15777E-05** at limit **
  17  Prefactor     .10000E-03    1.3491        .39538E-07** at limit **
  18  Prefactor     16.242        8.1004        .16339E-07   -.33736E-04
  19  Prefactor     .10000E-03    9.6471        .10025E-06** at limit **
  20  norm          .77175        .65631        .20215E-09    .26022E-04
  21  Prefactor     .10000E-03    38.596       -.13546E-05** at limit **
  22  norm          1.9788        .76137        .62649E-08    .16452E-04
  23  Prefactor     15.526        15.000       -.10070E-07   -.30662E-04
  24  Normalizat    .94201        .17327        .25602E-06   -.43731E-04
  25  Prefactor     .90254        .10362       -.65189E-06    .10795E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.6553
  Prefactor  = 6.60532
  Prefactor  = 10.7115
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.41423
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.92812
  Prefactor  = 5.25388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.15729
  norm       = 1.17188
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.2419
  Prefactor  = 0.0001
  norm       = 0.771748
  Prefactor  = 0.000100001
  norm       = 1.97878
  Prefactor  = 15.5259
  Normalizat = 0.94201
  Prefactor  = 0.90254
 **********
 **   18 **HESSE 
 **********

 FCN=   8326.299     FROM HESSE     STATUS=OK           427 CALLS     2920 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.655        20.648        .76179E-04   -1.4656    
   2  Prefactor     6.6053        6.8485        .78070E-03   -1.5194    
   3  Prefactor     10.712        79.507        .12223E-03   -1.5053    
   4  Prefactor     .10000E-03    6.4898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4142        1.8166        .10327E-03   -1.5397    
   7  Prefactor     .10000E-03    5.5855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9281        10.428        .12718E-03   -1.5078    
  10  Prefactor     5.2539        6.0780        .87669E-03   -1.5250    
  11  Prefactor     .10000E-03    12.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1573        .50229        .41304E-04   -1.5493    
  15  norm          1.1719        1.1041        .87628E-04   -1.5491    
  16  Prefactor     .10000E-03    11.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3545        .10349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.242        8.0977        .99388E-04   -1.4902    
  19  Prefactor     .10000E-03    9.7444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .77175        .66371        .66474E-04   -1.5532    
  21  Prefactor     .10000E-03    38.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9788        .76326        .47966E-04   -1.5427    
  23  Prefactor     15.526        15.015        .10163E-03   -1.4920    
  24  Normalizat    .94201        .20499        .29648E-03   -.94999    
  25  Prefactor     .90254        .12205        .18816E-03   -.96052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62956e-09
Minuit parameter uncertainties:
  1  20.6538
  2  6.84935
  3  58.4746
  4  2.12639e-05
  5  0.000267354
  6  1.81667
  7  7.79083e-06
  8  0.000144191
  9  10.4302
  10  6.07869
  11  6.56577e-05
  12  8.33244e-05
  13  0.000323571
  14  0.502294
  15  1.10408
  16  0.000188008
  17  1.91239e-07
  18  8.0982
  19  7.66765e-06
  20  0.663711
  21  0.00032392
  22  0.763263
  23  15.0182
  24  0.205161
  25  0.122085
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  9.928e+00  1.043e+01  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.025e-01  1.221e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  9.420e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 14.610 33.251
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.12e-05

TS (Fixed Index): 1.45
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916303/likelihoodResults_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.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) = 8326.11581274
delta logL = 0.182872787555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8326.10478735
delta logL = 0.193898179488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4591       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9372       1.0000          .0000       10.000    
     3 'Normalizat'    .91303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8326.105     FROM MIGRAD    STATUS=FAILED       106 CALLS      306 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4513        19.545        .85987E-03    .44225E-03
   2  Index         2.9393        2.0052        .59038E-02    .51957E-03
   3  Normalizat    .91306        .21145        .30059E-03   -.34039E-05
   4  Prefactor     .91343        .12708        .18713E-03   -.59538E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8326.105     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      383 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4513        19.545        .14549E-03   -1.5241    
   2  Index         2.9393        2.0052        .10180E-02   -.42480    
   3  Normalizat    .91306        .21145        .21994E-03   -.96003    
   4  Prefactor     .91343        .12708        .17754E-03   -.95673    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8326.105     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      414 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4513        10.201        .17197E-03   -.16923E-04
   2  Index         2.9393        1.0711        .11808E-02   -.32736E-05
   3  Normalizat    .91306        .20258        .12024E-04   -.34039E-05
   4  Prefactor     .91343        .12343        .74852E-05   -.60753E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.45126
  Index      = 2.93932
  Normalizat = 0.91306
  Prefactor  = 0.913432
 **********
 **   18 **HESSE 
 **********

 FCN=   8326.105     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4513        9.4758        .68790E-05   -1.5241    
   2  Index         2.9393        .99573        .47230E-04   -.42480    
   3  Normalizat    .91306        .20207        .24047E-05   -.96003    
   4  Prefactor     .91343        .12319        .14970E-05   -.95673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86465e-13
Minuit parameter uncertainties:
  1  9.47845
  2  1.00383
  3  0.20224
  4  0.123232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916303': 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) = 8326.10478173
delta logL = 0.193903800742

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  5.451e+00  9.478e+00  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.939e+00  1.004e+00  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.134e-01  1.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  9.131e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 14.610 33.251
Photon Index (Free Index): 2.94 +/- 1.00
Photon Flux (Free Index): 5.27e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.40e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/916303/cmap_HighResolution_679449601_679708801_4FGL_J0058.4+3315_daily_bin1698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='1.08e-05', photon_flux_error='3.15e-08', dlogl='1.94e-01', energy_flux='1.06e-05', photon_flux2='5.27e-08', job_status='DONE', time_completed='2022-07-17 00:19:51.791598', photon_index_error2='1.00', photon_index2='2.94', ts='1.45', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='9.40e-06', EG='0.94', time_epoch_completed='1658042391.79', return_code='0', job_id='916303', GAL2='0.91', EG2='0.91', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='5.39e-08', ts2='1.87', photon_index='2.34' WHERE bin_id='1698' AND source_name='4FGL J0058.4+3315' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 17 00:19:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 916303: <4FGL_J0058.4+3315_daily_bin1698> in cluster <slac> Done

Job <4FGL_J0058.4+3315_daily_bin1698> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul 17 00:04:36 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 17 00:04:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 17 00:04:37 2022
Terminated at Sun Jul 17 00:19:52 2022
Results reported at Sun Jul 17 00:19:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_daily_bin1698 14.6101 33.2505 679449601 679708801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.4+3315 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

