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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1776
RA = 164.518, Dec = 43.0938
tmin = 699667201, tmax = 699926401
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='830226', job_status='RUN', time_executed='2023-03-08 00:26:24.830898', time_epoch_executed='1678263984.83' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830226/ft1_4FGL_J1058.0+4305_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830226/ft1_4FGL_J1058.0+4305_daily_bin1776.fits outfile=/scratch/kocevski/830226/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1776.fits ra=164.518 dec=43.0938 rad=12.0 tmin=699667201.0 tmax=699926401.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.95
user 3.70
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.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/830226/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.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.35
sys 0.14

Number of photons that the gtmktime cut: 557

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/830226/ltcube_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.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/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits
.....................!
real 11.98
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/830226/ltcube_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.fits outfile=/scratch/kocevski/830226/expmap_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.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/830226/ltcube_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.fits
.....................!
real 190.07
user 185.07
sys 4.47

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

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits scfile=/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits outfile=/scratch/kocevski/830226/cmap_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.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=164.518 yref=43.0938 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.67
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits scfile=/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits outfile=/scratch/kocevski/830226/cmap_HighResolution_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.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=164.518 yref=43.0938 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/830226/Model_4FGL_J1058.0+4305_daily_bin1776.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/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits.....................!
real 50.48
user 49.14
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits', '/scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits', expMap='/scratch/kocevski/830226/expmap_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.fits', expCube='/scratch/kocevski/830226/ltcube_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830226/Model_4FGL_J1058.0+4305_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/830226/ft1_filtered_4FGL_J1058.0+4305_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/830226/ft2_4FGL_J1058.0+4305_daily_bin1776.fits
Exposure map: /scratch/kocevski/830226/expmap_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.fits
Exposure cube: /scratch/kocevski/830226/ltcube_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830226/Model_4FGL_J1058.0+4305_daily_bin1776.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) = 5987.91002491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3118       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11744E-03   1.0000          .0000       .10000E+07
     3 'norm      '    5.4745       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.8635       1.0000          .0000       .10000E+07
     5 'norm      '    8.7221       1.0000          .0000       .10000E+07
     6 'Prefactor '    14.642       1.0000          .0000       .10000E+07
     7 'Prefactor '    .87807       1.0000          .0000       .10000E+07
     8 'Prefactor '    .70636E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .36375E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    20.895       1.0000          .0000       .10000E+07
    11 'norm      '    1.6957       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.8876       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12615E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11151E-02   1.0000          .0000       .10000E+07
    15 'norm      '    19.422       1.0000          .0000       .10000E+07
    16 'norm      '    .48295E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.8356       1.0000          .0000       .10000E+07
    18 'Prefactor '    32.581       1.0000          .0000       .10000E+07
    19 'norm      '    1.6074       1.0000          .0000       .10000E+07
    20 'Prefactor '    .12033E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    29.095       1.0000          .0000       .10000E+07
    22 'norm      '    .16265E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .19128E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .26167E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    74.797       1.0000          .0000       .10000E+07
    26 'Prefactor '    11.292       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .67123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5987.879     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2582 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2693        15.953        .35751E-05    .17169E-02
   2  Prefactor      .0000        3.3364        .11064E-05** at limit **
   3  norm          5.4783        2.6312       -.11411E-05    .18525E-02
   4  Prefactor     5.8668        4.8974        .15838E-05    .15202E-02
   5  norm          8.7970        7.8522        .22873E-05    .35024E-02
   6  Prefactor     14.704        2.1093        .75863E-06   -.87359E-02
   7  Prefactor     .87830        1.9717        .16857E-06    .58885E-03
   8  Prefactor     .49249E-06    40.588        .24952E-05** at limit **
   9  Prefactor     .43854E-08    69.526        .69786E-05** at limit **
  10  Prefactor     22.149        48.630        .13019E-04   -.26956E-01
  11  norm          1.6952        .35789       -.90858E-07   -.11378E-01
  12  Prefactor     4.9588        10.714        .54301E-05    .29209E-01
  13  Prefactor     .63738E-06    10.496       -.13764E-05** at limit **
  14  Prefactor     .55744E-06    29.230       -.12395E-04** at limit **
  15  norm          19.565        8.6664        .20550E-05    .17276E-01
  16  norm          .13056E-05    10.936       -.32545E-06** at limit **
  17  Prefactor     2.8266        2.8116       -.42382E-06   -.23569E-03
  18  Prefactor     32.762        7.4390        .17029E-05   -.35119E-01
  19  norm          1.6035        2.5034       -.31034E-06    .24229E-02
  20  Prefactor     .29603E-04    11.689       -.68949E-05** at limit **
  21  Prefactor     29.149        2.7255        .59452E-06   -.11449E-01
  22  norm           .0000        .47873       -.27978E-06** at limit **
  23  norm           .0000        2.9463        .13952E-05** at limit **
  24  Prefactor     .99920E-09    4.6795        .72154E-06** at limit **
  25  Prefactor     74.810        3.7119        .52189E-06   -.11618E-01
  26  Prefactor     11.115        9.4834        .66228E-06    .13833    
  27  Normalizat    1.0325        .18046       -.44865E-04    .35259E-04
  28  Prefactor     .67216        .21306        .35062E-04    .18024E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26925
  Prefactor  = 0
  norm       = 5.47829
  Prefactor  = 5.86681
  norm       = 8.79703
  Prefactor  = 14.7043
  Prefactor  = 0.878299
  Prefactor  = 4.92495e-07
  Prefactor  = 4.38538e-09
  Prefactor  = 22.1495
  norm       = 1.69525
  Prefactor  = 4.95876
  Prefactor  = 6.37379e-07
  Prefactor  = 5.57443e-07
  norm       = 19.5655
  norm       = 1.30562e-06
  Prefactor  = 2.82657
  Prefactor  = 32.7621
  norm       = 1.60346
  Prefactor  = 2.96034e-05
  Prefactor  = 29.1487
  norm       = 0
  norm       = 0
  Prefactor  = 9.99201e-10
  Prefactor  = 74.8098
  Prefactor  = 11.115
  Normalizat = 1.03254
  Prefactor  = 0.672159
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.879     FROM HESSE     STATUS=OK           591 CALLS     3173 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2693        15.896        .96208E-03   -1.5685    
   2  Prefactor      .0000        3.3362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.4783        2.6323        .42920E-03   -1.5661    
   4  Prefactor     5.8668        4.9545        .41449E-03   -1.5660    
   5  norm          8.7970        7.9180        .33916E-03   -1.5649    
   6  Prefactor     14.704        31.239        .26149E-03   -1.5631    
   7  Prefactor     .87830        1.9877        .47288E-03   -1.5689    
   8  Prefactor     .49249E-06    43.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .43854E-08    68.880        .16131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.149        50.949        .21883E-03   -1.5614    
  11  norm          1.6952        .36179        .45209E-03   -1.5682    
  12  Prefactor     4.9588        17.277        .45474E-03   -1.5663    
  13  Prefactor     .63738E-06    11.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55744E-06    29.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.565        18.825        .22699E-03   -1.5619    
  16  norm          .13056E-05    12.145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8266        3.5328        .60362E-03   -1.5674    
  18  Prefactor     32.762        59.578        .17522E-03   -1.5593    
  19  norm          1.6035        2.8364        .83538E-03   -1.5683    
  20  Prefactor     .29603E-04    5.4451        .56874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.149        34.288        .18542E-03   -1.5600    
  22  norm           .0000        .47073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        2.9440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .99920E-09    4.4787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     74.810        46.358        .11563E-03   -1.5535    
  26  Prefactor     11.115        18.011        .29788E-03   -1.5641    
  27  Normalizat    1.0325        .15588        .41794E-01   -.91948    
  28  Prefactor     .67216        .18474        .70571E-01   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06531e-06
Minuit parameter uncertainties:
  1  8.98355
  2  1.0019e-05
  3  2.63228
  4  4.95452
  5  7.91803
  6  31.2393
  7  1.98771
  8  0.00930617
  9  0.00109679
  10  50.9505
  11  0.361791
  12  17.2774
  13  0.00543333
  14  0.00813528
  15  18.825
  16  0.00796405
  17  3.53283
  18  59.5792
  19  2.83637
  20  0.0253924
  21  34.2883
  22  3.34115e-07
  23  6.4982e-06
  24  0.000132125
  25  46.358
  26  18.0109
  27  0.155945
  28  0.184912
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  4.385e-09  1.097e-03  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  6.722e-01  1.849e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.033e+00  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830226/likelihoodResults_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.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) = 5987.88643811
delta logL = -0.00695588410053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5987.87948227
delta logL = -4.20168362325e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19695E-06   1.0000          .0000       .10000E+07
     2 'Index     '    4.2742       1.0000          .0000       10.000    
     3 'Normalizat'    1.0325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5987.879     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      274 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35527E-08    482.99        .42118E-03** at limit **
   2  Index         1.3756        5.4100        .50000       -.20464E-09
   3  Normalizat    1.0325        .13464E-01    .41923E-01    .44840E-03
   4  Prefactor     .67216        .16878E-01    .70570E-01    .37929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55271e-09
  Index      = 1.37562
  Normalizat = 1.03254
  Prefactor  = 0.672161
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.879     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      305 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35527E-08    1647.0        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3756        6.0368        .50000       -.81085    
   3  Normalizat    1.0325        .25776E-01    .20602E-03   -.91948    
   4  Prefactor     .67216        .32258E-01    .31233E-03   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59474e-09
Minuit parameter uncertainties:
  1  0.00484026
  2  428982
  3  0.0257767
  4  0.0322593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830226': 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): 102
logL (Free Index) = 5987.87948223
delta logL = -1.24600774143e-10

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  3.553e-09  4.840e-03  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  1.376e+00  4.290e+05  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  6.722e-01  3.226e-02  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.033e+00  2.578e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.518 43.094

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/830226/cmap_HighResolution_699667201_699926401_4FGL_J1058.0+4305_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2023-03-08 00:39:18.689157', job_id='830226', GAL2='0.67', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1678264758.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='-1.25e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1776' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:39:18 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 830226: <4FGL_J1058.0+4305_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 00:25:44 2023
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:25:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:25:52 2023
Terminated at Wed Mar  8 00:39:19 2023
Results reported at Wed Mar  8 00:39:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1776 164.518 43.0938 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            815 sec.

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

