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 145 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_J1059.5+2057_daily_bin1753
RA = 164.878, Dec = 20.9524
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='452579', job_status='RUN', time_executed='2022-12-29 00:49:38.501324', time_epoch_executed='1672303778.5' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452579

Creating custom pfile directory:
/scratch/kocevski/452579/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/452579/ft1_4FGL_J1059.5+2057_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/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452579/ft1_4FGL_J1059.5+2057_daily_bin1753.fits outfile=/scratch/kocevski/452579/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1753.fits ra=164.878 dec=20.9524 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.62
user 4.37
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_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/452579/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_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.53
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 538

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/452579/ltcube_693705601_693964801_4FGL_J1059.5+2057_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/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits
.....................!
real 14.35
user 13.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/452579/ltcube_693705601_693964801_4FGL_J1059.5+2057_daily_bin1753.fits outfile=/scratch/kocevski/452579/expmap_693705601_693964801_4FGL_J1059.5+2057_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/452579/ltcube_693705601_693964801_4FGL_J1059.5+2057_daily_bin1753.fits
.....................!
real 191.44
user 186.09
sys 4.77

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits scfile=/scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits outfile=/scratch/kocevski/452579/cmap_693705601_693964801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits scfile=/scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits outfile=/scratch/kocevski/452579/cmap_HighResolution_693705601_693964801_4FGL_J1059.5+2057_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.878 yref=20.9524 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452579/Model_4FGL_J1059.5+2057_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/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits.....................!
real 53.32
user 51.97
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits', '/scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits', expMap='/scratch/kocevski/452579/expmap_693705601_693964801_4FGL_J1059.5+2057_daily_bin1753.fits', expCube='/scratch/kocevski/452579/ltcube_693705601_693964801_4FGL_J1059.5+2057_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452579/Model_4FGL_J1059.5+2057_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/452579/ft1_filtered_4FGL_J1059.5+2057_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/452579/ft2_4FGL_J1059.5+2057_daily_bin1753.fits
Exposure map: /scratch/kocevski/452579/expmap_693705601_693964801_4FGL_J1059.5+2057_daily_bin1753.fits
Exposure cube: /scratch/kocevski/452579/ltcube_693705601_693964801_4FGL_J1059.5+2057_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452579/Model_4FGL_J1059.5+2057_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) = 5842.33584914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5862       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21150E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.8882       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26446E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .42077E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.3145       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.3725       1.0000          .0000       .10000E+07
     8 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     9 'Prefactor '    29.022       1.0000          .0000       .10000E+07
    10 'norm      '    1.4277       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9309       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20712E-03   1.0000          .0000       .10000E+07
    13 'norm      '    13.270       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28699E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .95257E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.6508       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1808       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5842.238     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1557 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5860        6.4185       -.16705E-06   -.39894E-02
   2  Prefactor     .90833E-06    11.595       -.26027E-05** at limit **
   3  Prefactor     1.8932        5.9373       -.40393E-06   -.31832E-02
   4  Prefactor     .33307E-09    3.6921       -.43668E-06** at limit **
   5  Prefactor     .66669E-07    3.4107       -.53077E-06** at limit **
   6  Prefactor     5.2899        5.1428        .78217E-06    .26052E-01
   7  Prefactor     3.3791        7.1202       -.38292E-06   -.15808E-01
   8  Prefactor     .88818E-09    4.1942       -.28842E-06** at limit **
   9  Prefactor     29.057        2.6366        .31111E-06    .40016E-02
  10  norm          1.4279        1.1274        .86993E-08   -.41523E-02
  11  Prefactor     3.9315        2.5914        .25395E-07   -.54844E-02
  12  Prefactor     .21995E-05    11.197        .42095E-05** at limit **
  13  norm          13.268        8.8355       -.16850E-05   -.74025E-01
  14  Prefactor     .12507E-06    3.5446        .48222E-06** at limit **
  15  Prefactor     .27256E-07    25.081       -.63937E-06** at limit **
  16  Prefactor     8.6501        8.5243       -.24933E-05   -.34880E-01
  17  Normalizat    1.1806        .20547        .11675E-05   -.95411E-04
  18  Prefactor     .89465        .21482        .35953E-05   -.85152E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.58604
  Prefactor  = 9.08329e-07
  Prefactor  = 1.89325
  Prefactor  = 3.33067e-10
  Prefactor  = 6.66689e-08
  Prefactor  = 5.28986
  Prefactor  = 3.37913
  Prefactor  = 8.88178e-10
  Prefactor  = 29.0569
  norm       = 1.42788
  Prefactor  = 3.93152
  Prefactor  = 2.19952e-06
  norm       = 13.268
  Prefactor  = 1.25067e-07
  Prefactor  = 2.7256e-08
  Prefactor  = 8.6501
  Normalizat = 1.18056
  Prefactor  = 0.894649
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.238     FROM HESSE     STATUS=OK           288 CALLS     1845 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5860        6.4300        .42482E-03   -1.5661    
   2  Prefactor     .90833E-06    14.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8932        6.0622        .75703E-03   -1.5680    
   4  Prefactor     .33307E-09    1.0386        .29191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .66669E-07    6.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2899        14.006        .43573E-03   -1.5662    
   7  Prefactor     3.3791        10.419        .55076E-03   -1.5671    
   8  Prefactor     .88818E-09    4.2026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.057        25.250        .18565E-03   -1.5600    
  10  norm          1.4279        1.1346        .90413E-03   -1.5684    
  11  Prefactor     3.9315        2.5949        .50858E-03   -1.5668    
  12  Prefactor     .21995E-05    17.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.268        13.612        .27471E-03   -1.5635    
  14  Prefactor     .12507E-06    6.3112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27256E-07    25.141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6501        8.6503        .34057E-03   -1.5649    
  17  Normalizat    1.1806        .18019        .51092E-01   -.87206    
  18  Prefactor     .89465        .18488        .44935E-01   -.96328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0085e-06
Minuit parameter uncertainties:
  1  6.42997
  2  0.00729657
  3  6.06226
  4  3.66297e-05
  5  0.00131526
  6  14.0061
  7  10.4191
  8  0.00012056
  9  25.2503
  10  1.13461
  11  2.59489
  12  0.012278
  13  13.6119
  14  0.00177685
  15  0.00165592
  16  8.65032
  17  0.180281
  18  0.185009
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.906e+01  2.525e+01  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.946e-01  1.850e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.181e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.06e-08 +/- 6.13e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.97e-05

TS (Fixed Index): 2.73
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452579/likelihoodResults_693705601_693964801_4FGL_J1059.5+2057_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) = 5839.29008193
delta logL = 2.94758722255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5839.27808634
delta logL = 2.95958280944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6853       1.0000          .0000       .10000E+07
     2 'Index     '    4.1401       1.0000          .0000       10.000    
     3 'Normalizat'    1.0104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5839.278     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      261 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6912        14.810        .62152E-04   -.16285E-02
   2  Index         4.1391        2.0599        .60232E-01    .14542E-03
   3  Normalizat    1.0104        .83187E-01    .45796E-01   -.43665E-05
   4  Prefactor     1.0220        .86363E-01    .41947E-01    .44712E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69117
  Index      = 4.13906
  Normalizat = 1.01039
  Prefactor  = 1.02197
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.278     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6912        18.455        .24861E-05   -1.5675    
   2  Index         4.1391        2.3966        .25359E-02   -.17305    
   3  Normalizat    1.0104        .20706        .24078E-03   -.92683    
   4  Prefactor     1.0220        .21840        .25884E-03   -.92001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53304e-07
Minuit parameter uncertainties:
  1  14.0949
  2  2.50289
  3  0.207224
  4  0.218595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452579': 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) = 5839.27808568
delta logL = 2.95958346768

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.691e+00  1.409e+01  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  4.139e+00  2.503e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.022e+00  2.186e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.010e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.69
Ra Dec: 164.878 20.952
Photon Index (Free Index): 4.14 +/- 2.50
Photon Flux (Free Index): 1.91e-07 +/- 7.66e-08
Energy Flux (Free Index): 2.80e-05 +/- 1.47e-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/452579/cmap_HighResolution_693705601_693964801_4FGL_J1059.5+2057_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='7.06e-08', energy_flux2='2.80e-05', photon_flux_error='6.13e-08', dlogl='2.96e+00', energy_flux='2.27e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2022-12-29 00:58:52.204053', photon_index_error2='2.50', photon_index2='4.14', ts='2.73', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.47e-05', EG='1.18', time_epoch_completed='1672304332.2', return_code='0', job_id='452579', GAL2='1.02', EG2='1.01', return_code2='102', energy_flux_error='1.97e-05', photon_flux_error2='7.66e-08', ts2='9.69', photon_index='2.41' WHERE bin_id='1753' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 00:58:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 452579: <4FGL_J1059.5+2057_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 00:45:16 2022
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:47:05 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:47:05 2022
Terminated at Thu Dec 29 00:58:52 2022
Results reported at Thu Dec 29 00:58:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1753 164.878 20.9524 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1059.5+2057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   556.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            816 sec.

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

