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 33 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_J0058.4+3315_daily_bin1684
RA = 14.6101, Dec = 33.2505
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='180915', job_status='RUN', time_executed='2022-06-05 00:07:02.026945', time_epoch_executed='1654412822.03' WHERE source_name='4FGL J0058.4+3315' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180915

Creating custom pfile directory:
/scratch/kocevski/180915/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/180915/ft1_4FGL_J0058.4+3315_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/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180915/ft1_4FGL_J0058.4+3315_daily_bin1684.fits outfile=/scratch/kocevski/180915/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1684.fits ra=14.6101 dec=33.2505 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.50
user 4.20
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_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/180915/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1684.fits evtable="EVENTS" outfile="/scratch/kocevski/180915/ft1_filtered_4FGL_J0058.4+3315_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.34
sys 0.16

Number of photons that the gtmktime cut: 739

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/180915/ltcube_675820801_676080001_4FGL_J0058.4+3315_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/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits
.....................!
real 15.49
user 15.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/180915/ltcube_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.fits outfile=/scratch/kocevski/180915/expmap_675820801_676080001_4FGL_J0058.4+3315_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/180915/ltcube_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.fits
.....................!
real 192.68
user 186.85
sys 5.35

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/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits scfile=/scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits outfile=/scratch/kocevski/180915/cmap_675820801_676080001_4FGL_J0058.4+3315_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=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 0.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits scfile=/scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits outfile=/scratch/kocevski/180915/cmap_HighResolution_675820801_676080001_4FGL_J0058.4+3315_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=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 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180915/Model_4FGL_J0058.4+3315_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/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits.....................!
real 80.68
user 78.52
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits', '/scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits', expMap='/scratch/kocevski/180915/expmap_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.fits', expCube='/scratch/kocevski/180915/ltcube_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180915/Model_4FGL_J0058.4+3315_daily_bin1684.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/180915/ft1_filtered_4FGL_J0058.4+3315_daily_bin1684.fits
Spacecraft file(s): /scratch/kocevski/180915/ft2_4FGL_J0058.4+3315_daily_bin1684.fits
Exposure map: /scratch/kocevski/180915/expmap_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.fits
Exposure cube: /scratch/kocevski/180915/ltcube_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180915/Model_4FGL_J0058.4+3315_daily_bin1684.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) = 8219.81129112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .75368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.761       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7808       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .40421       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1417       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3131       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.522       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6507       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0728       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .34766E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85340       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=   8219.792     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2528 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.562        .27214E-05** at limit **
   2  Prefactor     .10000E-03    4.1638        .46612E-07** at limit **
   3  Prefactor     .10000E-03    15.091       -.17300E-05** at limit **
   4  Prefactor     14.543        20.604        .48537E-06   -.18168E-04
   5  Prefactor     .10000E-03    19.315       -.18664E-05** at limit **
   6  norm          .75361        1.6064       -.40995E-06   -.18081E-02
   7  Prefactor     11.100        12.946       -.14517E-05   -.10453E-02
   8  Prefactor     .10000E-03    1.5985        .60852E-08** at limit **
   9  Prefactor     15.761        13.277        .31628E-06   -.26308E-06
  10  Prefactor     8.7803        9.1029       -.24203E-06   -.23467E-03
  11  Prefactor     22.094        18.173        .52040E-06   -.38685E-04
  12  Prefactor     .10000E-03    48.287       -.42572E-04** at limit **
  13  Prefactor     .10000E-03    57.746        .38686E-04** at limit **
  14  norm          .40417        .66501       -.82628E-07   -.11068E-02
  15  norm          2.1961        1.6665       -.33084E-06   -.91386E-03
  16  Prefactor     7.1878        80.755        .60588E-04    .52448E-04
  17  Prefactor     12.338        7.7772       -.36619E-05    .77504E-04
  18  Prefactor     4.3130        7.8138        .18225E-05   -.32240E-03
  19  Prefactor     18.522        14.335       -.56212E-06    .51236E-05
  20  norm          2.6506        1.2399        .31419E-07    .14593E-03
  21  Prefactor     .10000E-03    34.509        .10618E-04** at limit **
  22  norm          1.0729        .72430       -.46988E-07   -.64576E-03
  23  Prefactor     .10014E-03    9.5523       -.75093E-07** at limit **
  24  Normalizat    1.2096        .19704       -.17854E-05    .77190E-04
  25  Prefactor     .85349        .11311        .12244E-06   -.12398E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5425
  Prefactor  = 0.0001
  norm       = 0.753611
  Prefactor  = 11.1005
  Prefactor  = 0.0001
  Prefactor  = 15.7612
  Prefactor  = 8.78032
  Prefactor  = 22.0936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.404168
  norm       = 2.19614
  Prefactor  = 7.18777
  Prefactor  = 12.338
  Prefactor  = 4.31295
  Prefactor  = 18.5222
  norm       = 2.65064
  Prefactor  = 0.0001
  norm       = 1.07285
  Prefactor  = 0.000100141
  Normalizat = 1.20957
  Prefactor  = 0.853491
 **********
 **   18 **HESSE 
 **********

 FCN=   8219.792     FROM HESSE     STATUS=OK           445 CALLS     2973 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2125        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.543        20.616        .10503E-03   -1.4945    
   5  Prefactor     .10000E-03    19.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .75361        1.4180        .16186E-02   -1.5534    
   7  Prefactor     11.100        13.069        .60123E-03   -1.5041    
   8  Prefactor     .10000E-03    1.6052        .11193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.761        13.235        .10089E-03   -1.4914    
  10  Prefactor     8.7803        9.1002        .13527E-03   -1.5115    
  11  Prefactor     22.094        18.170        .85215E-04   -1.4768    
  12  Prefactor     .10000E-03    47.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .40417        .64183        .88758E-04   -1.5581    
  15  norm          2.1961        1.6410        .90559E-04   -1.5412    
  16  Prefactor     7.1878        79.583        .15010E-03   -1.5172    
  17  Prefactor     12.338        7.6784        .11403E-03   -1.5005    
  18  Prefactor     4.3130        7.7706        .19397E-03   -1.5293    
  19  Prefactor     18.522        14.298        .93063E-04   -1.4847    
  20  norm          2.6506        1.2426        .67177E-04   -1.5382    
  21  Prefactor     .10000E-03    34.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0729        .71614        .61417E-04   -1.5501    
  23  Prefactor     .10014E-03    9.6619        .91082E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2096        .23436        .29295E-03   -.86308    
  25  Prefactor     .85349        .13462        .20597E-03   -.97786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16033e-09
Minuit parameter uncertainties:
  1  1.61216e-05
  2  1.14043e-05
  3  4.27131e-06
  4  20.6264
  5  1.21927e-05
  6  1.41809
  7  13.0721
  8  1.32859e-06
  9  13.2372
  10  9.10164
  11  18.1746
  12  2.82402e-05
  13  1.56517e-05
  14  0.641845
  15  1.64101
  16  47.9146
  17  7.67903
  18  7.77244
  19  14.3005
  20  1.24263
  21  1.40269e-05
  22  0.716144
  23  0.00233228
  24  0.234565
  25  0.134668
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.576e+01  1.324e+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:  8.535e-01  1.347e-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:  1.210e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.52
Ra Dec: 14.610 33.251
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/180915/likelihoodResults_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.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) = 8219.67786707
delta logL = 0.114588376093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8219.67351245
delta logL = 0.11894299274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6497       1.0000          .0000       10.000    
     3 'Normalizat'    1.1897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86016       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.

 FCN=   8219.674     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      312 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.058        15.092        .57671E-03   -.96120E-04
   2  Index         2.6492        .72847        .68147E-02    .71215E-03
   3  Normalizat    1.1898        .22560        .29498E-03   -.13381E-03
   4  Prefactor     .86024        .13384        .20522E-03   -.20809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0575
  Index      = 2.64924
  Normalizat = 1.18981
  Prefactor  = 0.860241
 **********
 **   18 **HESSE 
 **********

 FCN=   8219.674     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.058        13.354        .23069E-04   -1.5013    
   2  Index         2.6492        .64443        .13629E-02   -.48946    
   3  Normalizat    1.1898        .22528        .11799E-04   -.86918    
   4  Prefactor     .86024        .13372        .41045E-04   -.97545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06114e-11
Minuit parameter uncertainties:
  1  13.3574
  2  0.646746
  3  0.225465
  4  0.133775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180915': 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) = 8219.67351044
delta logL = 0.11894500131

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.206e+01  1.336e+01  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.649e+00  6.467e-01  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:  8.602e-01  1.338e-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:  1.190e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 14.610 33.251
Photon Index (Free Index): 2.65 +/- 0.65
Photon Flux (Free Index): 6.51e-08 +/- 5.70e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.24e-05

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/180915/cmap_HighResolution_675820801_676080001_4FGL_J0058.4+3315_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.63e-05', photon_flux_error='4.00e-08', dlogl='1.19e-01', energy_flux='1.69e-05', photon_flux2='6.51e-08', job_status='DONE', time_completed='2022-06-05 00:20:30.494375', photon_index_error2='0.65', photon_index2='2.65', ts='2.52', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.24e-05', EG='1.21', time_epoch_completed='1654413630.49', return_code='0', job_id='180915', GAL2='0.86', EG2='1.19', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.70e-08', ts2='2.77', photon_index='2.34' WHERE bin_id='1684' AND source_name='4FGL J0058.4+3315' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:20:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 180915: <4FGL_J0058.4+3315_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0058.4+3315_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:41 2022
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:05:43 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:43 2022
Terminated at Sun Jun  5 00:20:31 2022
Results reported at Sun Jun  5 00:20:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_daily_bin1684 14.6101 33.2505 675820801 676080001 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 :                                   802.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            950 sec.

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

