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


Performing analysis on: 4FGL_J1058.6+5627_daily_bin1718
RA = 164.665, Dec = 56.4634
tmin = 684633601, tmax = 684892801
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='100318', job_status='RUN', time_executed='2022-09-16 15:46:57.743913', time_epoch_executed='1663368417.74' WHERE source_name='4FGL J1058.6+5627' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100318/ft1_4FGL_J1058.6+5627_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100318/ft1_4FGL_J1058.6+5627_daily_bin1718.fits outfile=/scratch/kocevski/100318/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1718.fits ra=164.665 dec=56.4634 rad=12.0 tmin=684633601.0 tmax=684892801.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.21
user 2.96
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.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/100318/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 383

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/100318/ltcube_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.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/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits
.....................!
real 14.32
user 13.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/100318/ltcube_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.fits outfile=/scratch/kocevski/100318/expmap_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.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/100318/ltcube_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.fits
.....................!
real 191.12
user 185.76
sys 4.96

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

Setting source of interest to:
4FGL J1058.6+5627 @ 164.665 56.4634

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits scfile=/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits outfile=/scratch/kocevski/100318/cmap_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.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.665 yref=56.4634 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits scfile=/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits outfile=/scratch/kocevski/100318/cmap_HighResolution_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.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.665 yref=56.4634 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100318/Model_4FGL_J1058.6+5627_daily_bin1718.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/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits.....................!
real 46.92
user 45.59
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits', '/scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits', expMap='/scratch/kocevski/100318/expmap_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.fits', expCube='/scratch/kocevski/100318/ltcube_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100318/Model_4FGL_J1058.6+5627_daily_bin1718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+5627'

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  2.525e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/100318/ft1_filtered_4FGL_J1058.6+5627_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/100318/ft2_4FGL_J1058.6+5627_daily_bin1718.fits
Exposure map: /scratch/kocevski/100318/expmap_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.fits
Exposure cube: /scratch/kocevski/100318/ltcube_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100318/Model_4FGL_J1058.6+5627_daily_bin1718.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) = 4098.18141072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56003E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.8062       1.0000          .0000       .10000E+07
     3 'norm      '    .88383E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .94542E-02   1.0000          .0000       .10000E+07
     5 'norm      '    2.1532       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14806E-04   1.0000          .0000       .10000E+07
     7 'norm      '    2.5627       1.0000          .0000       .10000E+07
     8 'norm      '    2.7813       1.0000          .0000       .10000E+07
     9 'Prefactor '    .73295E-02   1.0000          .0000       .10000E+07
    10 'norm      '    7.3559       1.0000          .0000       .10000E+07
    11 'Prefactor '    .26162E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .70188       1.0000          .0000       .10000E+07
    13 'norm      '    2.2626       1.0000          .0000       .10000E+07
    14 'Prefactor '    .53285       1.0000          .0000       .10000E+07
    15 'Prefactor '    65.204       1.0000          .0000       .10000E+07
    16 'norm      '    3.6392       1.0000          .0000       .10000E+07
    17 'Prefactor '    .63069E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .83833E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .15515       1.0000          .0000       .10000E+07
    20 'norm      '    .27022E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .18991E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    42.565       1.0000          .0000       .10000E+07
    23 'Prefactor '    .37865E-02   1.0000          .0000       .10000E+07
    24 'norm      '    5.9132       1.0000          .0000       .10000E+07
    25 'Prefactor '    11.706       1.0000          .0000       .10000E+07
    26 'norm      '    2.7949       1.0000          .0000       .10000E+07
    27 'Prefactor '    .65934E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    33.047       1.0000          .0000       .10000E+07
    29 'norm      '    1.2298       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.2837       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .51974       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4098.172     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     3815 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43410E-07    10.436        .39600E-05** at limit **
   2  Prefactor     5.8349        9.3661        .14217E-06   -.22682E-03
   3  norm          .55511E-10    6.3823       -.12442E-06** at limit **
   4  Prefactor     .35294E-06    31.653        .15435E-05** at limit **
   5  norm          2.1527        .65600       -.11631E-07    .16489E-01
   6  Prefactor      .0000        2.7615       -.62243E-07** at limit **
   7  norm          2.5625        .91563        .24889E-07   -.20384E-01
   8  norm          2.7810        2.2241       -.17021E-07    .45090E-02
   9  Prefactor     .19168E-06    10.722       -.45213E-05** at limit **
  10  norm          7.3827        9.2902       -.52006E-06   -.65519E-02
  11  Prefactor     .16653E-09    8.4250       -.88142E-06** at limit **
  12  norm          .70374        1.9223       -.16437E-06    .88432E-03
  13  norm          2.2625        1.6588       -.39881E-07   -.49651E-02
  14  Prefactor     .54179E-07    166.84        .40201E-05** at limit **
  15  Prefactor     65.132        4.1194       -.39884E-06    .83650E-01
  16  norm          3.6399        2.6600        .31375E-08    .44449E-02
  17  Prefactor      .0000        44.154        .14138E-05** at limit **
  18  Prefactor     .63005E-07    7.0698       -.14987E-06** at limit **
  19  Prefactor     .11657E-08    53.168        .76273E-05** at limit **
  20  norm          .33307E-09    36.766       -.76496E-06** at limit **
  21  Prefactor     .55511E-10    4.6755        .14011E-06** at limit **
  22  Prefactor     42.457        1.9830        .98951E-07   -.76859E-02
  23  Prefactor     .11768E-07    11.572        .15959E-05** at limit **
  24  norm          5.9023        3.2418       -.11102E-05   -.32900E-01
  25  Prefactor     11.711        1.5683       -.10167E-06   -.10716E-02
  26  norm          2.8397        6.5325        .42310E-06    .28664E-03
  27  Prefactor     .26201E-05    158.78       -.22619E-05** at limit **
  28  Prefactor     32.766        12.104       -.87851E-06    .96412E-01
  29  norm          1.2340        3.9127        .21008E-05    .14942E-02
  30  Normalizat    1.2836        .22185        .63937E-05    .95167E-04
  31  Prefactor     .52004        .26214       -.69613E-05    .94429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.34097e-08
  Prefactor  = 5.8349
  norm       = 5.55112e-11
  Prefactor  = 3.5294e-07
  norm       = 2.15274
  Prefactor  = 0
  norm       = 2.56254
  norm       = 2.78097
  Prefactor  = 1.9168e-07
  norm       = 7.38268
  Prefactor  = 1.66533e-10
  norm       = 0.70374
  norm       = 2.26251
  Prefactor  = 5.41789e-08
  Prefactor  = 65.1323
  norm       = 3.63987
  Prefactor  = 0
  Prefactor  = 6.30052e-08
  Prefactor  = 1.16573e-09
  norm       = 3.33067e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 42.4569
  Prefactor  = 1.17684e-08
  norm       = 5.90226
  Prefactor  = 11.7114
  norm       = 2.83967
  Prefactor  = 2.62013e-06
  Prefactor  = 32.7658
  norm       = 1.23405
  Normalizat = 1.28364
  Prefactor  = 0.520042
 **********
 **   18 **HESSE 
 **********

 FCN=   4098.172     FROM HESSE     STATUS=OK           680 CALLS     4495 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43410E-07    15.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8349        9.4116        .41657E-03   -1.5660    
   3  norm          .55511E-10    6.4034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .35294E-06    32.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1527        .65530        .62095E-03   -1.5679    
   6  Prefactor      .0000        2.7475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5625        .92224        .63744E-03   -1.5676    
   8  norm          2.7810        2.2248        .60990E-03   -1.5675    
   9  Prefactor     .19168E-06    13.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3827        9.3302        .36957E-03   -1.5654    
  11  Prefactor     .16653E-09    8.4369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .70374        1.9426        .60556E-03   -1.5691    
  13  norm          2.2625        1.6615        .68261E-03   -1.5678    
  14  Prefactor     .54179E-07    167.83        .75472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     65.132        195.37        .12385E-03   -1.5547    
  16  norm          3.6399        2.7877        .52932E-03   -1.5670    
  17  Prefactor      .0000        44.116        .15053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .63005E-07    14.171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11657E-08    60.361        .12636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .33307E-09    36.746        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    4.6848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.457        36.038        .15329E-03   -1.5578    
  23  Prefactor     .11768E-07    11.845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.9023        10.816        .41272E-03   -1.5659    
  25  Prefactor     11.711        16.521        .29255E-03   -1.5640    
  26  norm          2.8397        6.8155        .60832E-03   -1.5674    
  27  Prefactor     .26201E-05    167.53        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     32.766        33.465        .17398E-03   -1.5593    
  29  norm          1.2340        39.215        .10138E-02   -1.5686    
  30  Normalizat    1.2836        .20607        .33104E-01   -.84056    
  31  Prefactor     .52004        .24463        .83209E-01   -1.1107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5413e-06
Minuit parameter uncertainties:
  1  0.00165143
  2  9.4116
  3  3.35295e-05
  4  0.00677518
  5  0.655302
  6  6.00738e-06
  7  0.922238
  8  2.22481
  9  0.0032002
  10  9.33025
  11  7.00302e-05
  12  1.9426
  13  1.66149
  14  0.00603024
  15  195.391
  16  2.78772
  17  2.73601e-05
  18  0.00188974
  19  0.000533654
  20  0.000222785
  21  3.52906e-05
  22  36.0386
  23  0.000746466
  24  10.8163
  25  16.5214
  26  6.81553
  27  0.0419035
  28  33.4649
  29  13.9131
  30  0.206198
  31  0.245123
Done.

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

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  3.640e+00  2.788e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  5.200e-01  2.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  1.284e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.10
Ra Dec: 164.665 56.463
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 2.19e-05

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) = 4098.12779661
delta logL = 0.0439265571858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4098.1266808
delta logL = 0.0450423649145

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4098.127     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      195 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5475        3.5936        .53653E-03    .25903E-02
   2  alpha         1.6874        .63653        .32730       -.87482E-04
   3  Normalizat    1.2895        .20065        .33000E-01    .12808E-03
   4  Prefactor     .51734        .23958        .83434E-01    .25735E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54745
  alpha      = 1.6874
  Normalizat = 1.28954
  Prefactor  = 0.517338
 **********
 **   18 **HESSE 
 **********

 FCN=   4098.127     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5475        2.7754        .89167E-05   -1.5670    
   2  alpha         1.6874        .56098        .12633E-01   -.33105    
   3  Normalizat    1.2895        .21633        .20384E-03   -.83879    
   4  Prefactor     .51734        .25815        .36962E-03   -1.1119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76823e-10
Minuit parameter uncertainties:
  1  2.77536
  2  0.566383
  3  0.216485
  4  0.258737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100318': 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) = 4098.12667426
delta logL = 0.0450489104369

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  3.547e+00  2.775e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.687e+00  5.664e-01  0.000e+00  5.000e+00 ( 1.000e+00)
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  5.173e-01  2.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  1.290e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 164.665 56.463
Photon Index (Free Index): 1.69 +/- 0.57
Photon Flux (Free Index): 2.61e-08 +/- 2.77e-08
Energy Flux (Free Index): 3.60e-05 +/- 4.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/100318/cmap_HighResolution_684633601_684892801_4FGL_J1058.6+5627_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='3.60e-05', photon_flux_error='2.48e-08', dlogl='4.50e-02', energy_flux='2.86e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2022-09-16 15:58:58.349306', photon_index_error2='0.57', photon_index2='1.69', ts='9.10', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='4.04e-05', EG='1.28', time_epoch_completed='1663369138.35', return_code='0', job_id='100318', GAL2='0.52', EG2='1.29', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='2.77e-08', ts2='9.18', photon_index='1.86' WHERE bin_id='1718' AND source_name='4FGL J1058.6+5627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:58:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 100318: <4FGL_J1058.6+5627_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1058.6+5627_daily_bin1718> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 15:45:23 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:45:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:45:49 2022
Terminated at Fri Sep 16 15:58:59 2022
Results reported at Fri Sep 16 15:58:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+5627_daily_bin1718 164.665 56.4634 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.6+5627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   723.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             342.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            816 sec.

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

