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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1753
RA = 164.518, Dec = 43.0938
tmin = 693705601, tmax = 693964801
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='452568', job_status='RUN', time_executed='2022-12-29 00:48:13.179893', time_epoch_executed='1672303693.18' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452568/ft1_4FGL_J1058.0+4305_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452568/ft1_4FGL_J1058.0+4305_daily_bin1753.fits outfile=/scratch/kocevski/452568/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1753.fits ra=164.518 dec=43.0938 rad=12.0 tmin=693705601.0 tmax=693964801.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.72
user 4.42
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.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/452568/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/452568/ft1_filtered_4FGL_J1058.0+4305_daily_bin1753.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.56
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 529

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452568/ft1_filtered_4FGL_J1058.0+4305_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/452568/ltcube_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.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/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits
.....................!
real 16.09
user 14.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452568/ft1_filtered_4FGL_J1058.0+4305_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/452568/ltcube_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.fits outfile=/scratch/kocevski/452568/expmap_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.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/452568/ltcube_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.fits
.....................!
real 193.18
user 186.86
sys 4.83

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/452568/ft1_filtered_4FGL_J1058.0+4305_daily_bin1753.fits scfile=/scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits outfile=/scratch/kocevski/452568/cmap_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452568/ft1_filtered_4FGL_J1058.0+4305_daily_bin1753.fits scfile=/scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits outfile=/scratch/kocevski/452568/cmap_HighResolution_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452568/ft1_filtered_4FGL_J1058.0+4305_daily_bin1753.fits', '/scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits', expMap='/scratch/kocevski/452568/expmap_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.fits', expCube='/scratch/kocevski/452568/ltcube_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452568/Model_4FGL_J1058.0+4305_daily_bin1753.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/452568/ft1_filtered_4FGL_J1058.0+4305_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/452568/ft2_4FGL_J1058.0+4305_daily_bin1753.fits
Exposure map: /scratch/kocevski/452568/expmap_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.fits
Exposure cube: /scratch/kocevski/452568/ltcube_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452568/Model_4FGL_J1058.0+4305_daily_bin1753.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) = 5675.1676716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.216       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.1909       1.0000          .0000       .10000E+07
     3 'norm      '    2.2208       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6272       1.0000          .0000       .10000E+07
     5 'norm      '    .72164E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    37.002       1.0000          .0000       .10000E+07
     7 'Prefactor '    .68767E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64525E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .15951       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15490E-02   1.0000          .0000       .10000E+07
    11 'norm      '    2.3273       1.0000          .0000       .10000E+07
    12 'Prefactor '    13.145       1.0000          .0000       .10000E+07
    13 'Prefactor '    .63547E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .15243E-03   1.0000          .0000       .10000E+07
    15 'norm      '    6.1445       1.0000          .0000       .10000E+07
    16 'norm      '    .49001E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .95163E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .26868E-04   1.0000          .0000       .10000E+07
    19 'norm      '    2.3609       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.4951       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.6263       1.0000          .0000       .10000E+07
    22 'norm      '    .41906       1.0000          .0000       .10000E+07
    23 'norm      '    6.1717       1.0000          .0000       .10000E+07
    24 'Prefactor '    .18180E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .36642E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    28.122       1.0000          .0000       .10000E+07
    27 'Normalizat'    .77989       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99997       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=   5675.137     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2499 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.134        1.3804        .56883E-08   -.36201E-01
   2  Prefactor     3.1872        5.0329        .36836E-07    .10264E-02
   3  norm          2.2196        1.7411        .73251E-07    .38070E-02
   4  Prefactor     3.6260        4.6238        .70574E-07    .15783E-02
   5  norm          .46463E-07    7.2397        .13103E-06** at limit **
   6  Prefactor     36.983        1.0295        .38660E-09   -.68332E-02
   7  Prefactor      .0000        2.0344       -.93253E-08** at limit **
   8  Prefactor     .89373E-08    5.9574        .49397E-07** at limit **
   9  Prefactor     .73057E-05    4.2480        .11724E-06** at limit **
  10  Prefactor     .21674E-05    18.854        .12628E-06** at limit **
  11  norm          2.3283        .40848        .10152E-07    .11180E-01
  12  Prefactor     13.033        1.0531        .14797E-08    .93245E-02
  13  Prefactor     .11102E-09    5.3859       -.26840E-07** at limit **
  14  Prefactor     .31870E-05    10.437        .17691E-06** at limit **
  15  norm          6.1852        1.0444        .17257E-09   -.24614E-02
  16  norm          .19725E-05    14.967        .17341E-06** at limit **
  17  Prefactor      .0000        .50298        .10379E-07** at limit **
  18  Prefactor     .10547E-08    12.329        .19810E-06** at limit **
  19  norm          2.3610        2.1887        .20559E-07    .16653E-02
  20  Prefactor     6.4720        5.3135        .42311E-07    .66213E-03
  21  Prefactor     7.6260        1.0239        .29988E-09    .43231E-02
  22  norm          .41810        .70505        .45827E-07    .27887E-02
  23  norm          6.1649        6.2586       -.65240E-08    .23431E-03
  24  Prefactor      .0000        3.6632        .60274E-07** at limit **
  25  Prefactor     .98954E-06    14.579        .13927E-06** at limit **
  26  Prefactor     28.105        2.2014       -.51426E-09   -.33209E-02
  27  Normalizat    .78051        .17652       -.70450E-06    .13550E-03
  28  Prefactor     .99966        .22474        .24236E-05    .12913E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.134
  Prefactor  = 3.18721
  norm       = 2.21964
  Prefactor  = 3.62601
  norm       = 4.64628e-08
  Prefactor  = 36.9828
  Prefactor  = 0
  Prefactor  = 8.9373e-09
  Prefactor  = 7.30571e-06
  Prefactor  = 2.16738e-06
  norm       = 2.32829
  Prefactor  = 13.0333
  Prefactor  = 1.11022e-10
  Prefactor  = 3.18701e-06
  norm       = 6.18518
  norm       = 1.97248e-06
  Prefactor  = 0
  Prefactor  = 1.05471e-09
  norm       = 2.36102
  Prefactor  = 6.47201
  Prefactor  = 7.62605
  norm       = 0.418102
  norm       = 6.16488
  Prefactor  = 0
  Prefactor  = 9.89542e-07
  Prefactor  = 28.1055
  Normalizat = 0.780505
  Prefactor  = 0.999662
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.137     FROM HESSE     STATUS=OK           577 CALLS     3076 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.134        13.663        .20326E-03   -1.5610    
   2  Prefactor     3.1872        5.0781        .56700E-03   -1.5672    
   3  norm          2.2196        1.7384        .68976E-03   -1.5678    
   4  Prefactor     3.6260        4.6897        .53023E-03   -1.5670    
   5  norm          .46463E-07    7.5021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.983        30.057        .16441E-03   -1.5586    
   7  Prefactor      .0000        2.0297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .89373E-08    6.0108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73057E-05    75.159        .12546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21674E-05    34.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3283        .42744        .43936E-03   -1.5677    
  12  Prefactor     13.033        18.189        .27602E-03   -1.5636    
  13  Prefactor     .11102E-09    5.3941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .31870E-05    26.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.1852        13.155        .40477E-03   -1.5658    
  16  norm          .19725E-05    24.341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .50482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10547E-08    12.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3610        2.2156        .66671E-03   -1.5677    
  20  Prefactor     6.4720        5.3159        .39356E-03   -1.5657    
  21  Prefactor     7.6260        19.740        .36290E-03   -1.5653    
  22  norm          .41810        .80782        .18481E-02   -1.5695    
  23  norm          6.1649        6.2576        .40387E-03   -1.5658    
  24  Prefactor      .0000        3.6461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .98954E-06    33.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.105        26.784        .18860E-03   -1.5602    
  27  Normalizat    .78051        .15578        .43347E-01   -1.0080    
  28  Prefactor     .99966        .19467        .46267E-01   -.92741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18704e-07
Minuit parameter uncertainties:
  1  13.6632
  2  5.07815
  3  1.73841
  4  4.68969
  5  0.00118078
  6  30.0571
  7  6.13482e-06
  8  0.000464086
  9  0.0468658
  10  0.0173447
  11  0.427442
  12  18.1889
  13  4.42825e-05
  14  0.0183022
  15  13.1554
  16  0.0138583
  17  1.30304e-08
  18  0.000231074
  19  2.21561
  20  5.31594
  21  19.74
  22  0.807822
  23  6.2576
  24  1.57304e-05
  25  0.011461
  26  26.7844
  27  0.155869
  28  0.194807
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.306e-06  4.687e-02  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:  9.997e-01  1.948e-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:  7.805e-01  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: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452568/likelihoodResults_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.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) = 5675.14350354
delta logL = -0.0063608471819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5675.13714338
delta logL = -6.90482011123e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25252E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.3401       1.0000          .0000       10.000    
     3 'Normalizat'    .78061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99964       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=   5675.137     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-08    1.5069        .42118E-03** at limit **
   2  Index         2.4408        5.4334        .50000        .22737E-10
   3  Normalizat    .78051        .53158E-03    .43357E-01    .22126E-03
   4  Prefactor     .99966        .68620E-03    .46263E-01    .16132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-09
  Index      = 2.44084
  Normalizat = 0.780506
  Prefactor  = 0.999661
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.137     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-08    7.9776        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4408        8.7306        .50000       -.53732    
   3  Normalizat    .78051        .12220E-02    .23133E-03   -1.0080    
   4  Prefactor     .99966        .15777E-02    .26534E-03   -.92741    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.06998e-12
Minuit parameter uncertainties:
  1  0.000377506
  2  11757.3
  3  0.00122199
  4  0.00157766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452568': 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) = 5675.13714265
delta logL = 4.84733391204e-08

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  4.441e-09  3.775e-04  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.441e+00  1.176e+04  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:  9.997e-01  1.578e-03  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:  7.805e-01  1.222e-03  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/452568/cmap_HighResolution_693705601_693964801_4FGL_J1058.0+4305_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2022-12-29 01:00:54.077752', job_id='452568', GAL2='1.00', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1672304454.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.85e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1753' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:00:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 452568: <4FGL_J1058.0+4305_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 00:45:15 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:46:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:46:31 2022
Terminated at Thu Dec 29 01:00:54 2022
Results reported at Thu Dec 29 01:00:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1753 164.518 43.0938 693705601 693964801 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 :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            939 sec.

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

