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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin1709
RA = 164.878, Dec = 20.9524
tmin = 682300801, tmax = 682560001
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='98926', job_status='RUN', time_executed='2022-09-16 15:41:56.587338', time_epoch_executed='1663368116.59' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98926

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98926/ft1_4FGL_J1059.5+2057_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98926/ft1_4FGL_J1059.5+2057_daily_bin1709.fits outfile=/scratch/kocevski/98926/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1709.fits ra=164.878 dec=20.9524 rad=12.0 tmin=682300801.0 tmax=682560001.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.81
user 3.55
sys 0.22

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

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

Number of photons that the gtmktime cut: 529

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/98926/ltcube_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.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/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits
.....................!
real 15.26
user 14.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/98926/ltcube_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.fits outfile=/scratch/kocevski/98926/expmap_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.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/98926/ltcube_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.fits
.....................!
real 192.58
user 186.54
sys 5.62

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/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits scfile=/scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits outfile=/scratch/kocevski/98926/cmap_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits scfile=/scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits outfile=/scratch/kocevski/98926/cmap_HighResolution_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98926/Model_4FGL_J1059.5+2057_daily_bin1709.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/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits.....................!
real 56.50
user 55.10
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits', '/scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits', expMap='/scratch/kocevski/98926/expmap_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.fits', expCube='/scratch/kocevski/98926/ltcube_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98926/Model_4FGL_J1059.5+2057_daily_bin1709.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/98926/ft1_filtered_4FGL_J1059.5+2057_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/98926/ft2_4FGL_J1059.5+2057_daily_bin1709.fits
Exposure map: /scratch/kocevski/98926/expmap_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.fits
Exposure cube: /scratch/kocevski/98926/ltcube_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98926/Model_4FGL_J1059.5+2057_daily_bin1709.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) = 6082.03281291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.450       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10511E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    19.246       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54234E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    18.281       1.0000          .0000       .10000E+07
     6 'Prefactor '    24.235       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12528E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    16.932       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11482E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .94330       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13323E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.3197       1.0000          .0000       .10000E+07
    13 'norm      '    6.7932       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13438E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    16.461       1.0000          .0000       .10000E+07
    16 'Prefactor '    .74873E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0888       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92266       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=   6082.024     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     1272 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.463        1.6807        .60125E-08    .91816E-02
   2  Prefactor     .88818E-09    11.220        .70143E-06** at limit **
   3  Prefactor     19.186        5.7124       -.53150E-07   -.17771E-01
   4  Prefactor      .0000        1.3726       -.19039E-06** at limit **
   5  Prefactor     18.330        6.8856        .92863E-08   -.71153E-01
   6  Prefactor     24.187        4.4443       -.85731E-07   -.39756E-01
   7  Prefactor     .32196E-08    6.1925        .36901E-06** at limit **
   8  Prefactor     16.924        1.7226       -.15749E-07   -.10746E-01
   9  Prefactor     .13450E-06    2.6714        .17647E-06** at limit **
  10  norm          .94401        1.2280        .21225E-07    .35378E-03
  11  Prefactor      .0000        .90651        .16579E-07** at limit **
  12  Prefactor     6.2756        6.9447        .35492E-06   -.16612E-02
  13  norm          6.8260        4.4479        .15534E-07    .32141E-01
  14  Prefactor     .16098E-08    4.4570       -.44848E-06** at limit **
  15  Prefactor     16.966        28.633        .82520E-07   -.80035E-03
  16  Prefactor     .68612E-07    3.0292        .89798E-07** at limit **
  17  Normalizat    1.0881        .21579        .38588E-05    .49004E-05
  18  Prefactor     .92309        .21568       -.52509E-05    .99109E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 31.4634
  Prefactor  = 8.88178e-10
  Prefactor  = 19.1861
  Prefactor  = 0
  Prefactor  = 18.3304
  Prefactor  = 24.1871
  Prefactor  = 3.21965e-09
  Prefactor  = 16.9241
  Prefactor  = 1.34504e-07
  norm       = 0.944014
  Prefactor  = 0
  Prefactor  = 6.27565
  norm       = 6.82596
  Prefactor  = 1.60982e-09
  Prefactor  = 16.9655
  Prefactor  = 6.86118e-08
  Normalizat = 1.08807
  Prefactor  = 0.923092
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.024     FROM HESSE     STATUS=OK           282 CALLS     1554 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.463        14.052        .17834E-03   -1.5596    
   2  Prefactor     .88818E-09    11.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.186        10.926        .22802E-03   -1.5620    
   4  Prefactor      .0000        1.3705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.330        9.7208        .23398E-03   -1.5622    
   6  Prefactor     24.187        11.788        .20318E-03   -1.5610    
   7  Prefactor     .32196E-08    6.8979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.924        12.965        .24313E-03   -1.5626    
   9  Prefactor     .13450E-06    5.8922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .94401        1.2379        .42811E-03   -1.5689    
  11  Prefactor      .0000        .90484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2756        6.9768        .39905E-03   -1.5658    
  13  norm          6.8260        10.305        .38473E-03   -1.5656    
  14  Prefactor     .16098E-08    4.6356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.966        28.426        .24659E-03   -1.5626    
  16  Prefactor     .68612E-07    5.6633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0881        .19311        .57383E-01   -.90136    
  18  Prefactor     .92309        .18514        .45293E-01   -.95339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76395e-08
Minuit parameter uncertainties:
  1  14.0522
  2  0.000201627
  3  10.9259
  4  5.14306e-06
  5  9.72083
  6  11.7878
  7  0.000298802
  8  12.9654
  9  0.00178029
  10  1.23789
  11  1.00976e-06
  12  6.97682
  13  10.3047
  14  0.000171885
  15  28.4262
  16  0.00124676
  17  0.193235
  18  0.185264
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.345e-07  1.780e-03  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:  9.231e-01  1.853e-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.088e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98926/likelihoodResults_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.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): 102
logL (Free Index) = 6082.02545318
delta logL = -0.0013691714139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6082.02408512
delta logL = -1.10669043352e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26601E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.1332       1.0000          .0000       10.000    
     3 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92284       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=   6082.024     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      299 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .15120        .42118E-03** at limit **
   2  Index         2.1895        5.6821        .36442        .93590E-10
   3  Normalizat    1.0881        .64681E-03    .57383E-01    .94462E-03
   4  Prefactor     .92309        .66350E-03    .45295E-01    .59119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 2.18947
  Normalizat = 1.08808
  Prefactor  = 0.923089
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.024     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .40422        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1895        8.7628        .50000       -.59693    
   3  Normalizat    1.0881        .10561E-02    .25376E-03   -.90136    
   4  Prefactor     .92309        .10837E-02    .27874E-03   -.95339    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42012e-12
Minuit parameter uncertainties:
  1  2.24087e-05
  2  14880.7
  3  0.00105608
  4  0.00108375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98926': 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) = 6082.024084
delta logL = 1.08311724034e-08

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  3.331e-10  2.241e-05  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.189e+00  1.488e+04  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:  9.231e-01  1.084e-03  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.088e+00  1.056e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.878 20.952

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/98926/cmap_HighResolution_682300801_682560001_4FGL_J1059.5+2057_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2022-09-16 15:50:50.511509', job_id='98926', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1663368650.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1709' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:50:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 98926: <4FGL_J1059.5+2057_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:40:16 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:41:30 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:41:30 2022
Terminated at Fri Sep 16 15:50:51 2022
Results reported at Fri Sep 16 15:50:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1709 164.878 20.9524 682300801 682560001 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 :                                   535.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            635 sec.

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

