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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin1766
RA = 164.878, Dec = 20.9524
tmin = 697075201, tmax = 697334401
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='846504', job_status='RUN', time_executed='2023-02-06 00:46:13.562182', time_epoch_executed='1675673173.56' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846504/ft1_4FGL_J1059.5+2057_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846504/ft2_4FGL_J1059.5+2057_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846504/ft1_4FGL_J1059.5+2057_daily_bin1766.fits outfile=/scratch/kocevski/846504/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1766.fits ra=164.878 dec=20.9524 rad=12.0 tmin=697075201.0 tmax=697334401.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.75
user 3.50
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846504/ft2_4FGL_J1059.5+2057_daily_bin1766.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/846504/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/846504/ft1_filtered_4FGL_J1059.5+2057_daily_bin1766.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.54
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 522

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846504/ft1_filtered_4FGL_J1059.5+2057_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/846504/ft2_4FGL_J1059.5+2057_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/846504/ltcube_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.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/846504/ft2_4FGL_J1059.5+2057_daily_bin1766.fits
.....................!
real 16.40
user 15.94
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846504/ft1_filtered_4FGL_J1059.5+2057_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/846504/ft2_4FGL_J1059.5+2057_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/846504/ltcube_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.fits outfile=/scratch/kocevski/846504/expmap_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.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/846504/ltcube_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.fits
.....................!
real 195.78
user 189.09
sys 6.17

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/846504/ft1_filtered_4FGL_J1059.5+2057_daily_bin1766.fits scfile=/scratch/kocevski/846504/ft2_4FGL_J1059.5+2057_daily_bin1766.fits outfile=/scratch/kocevski/846504/cmap_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.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.60
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846504/ft1_filtered_4FGL_J1059.5+2057_daily_bin1766.fits scfile=/scratch/kocevski/846504/ft2_4FGL_J1059.5+2057_daily_bin1766.fits outfile=/scratch/kocevski/846504/cmap_HighResolution_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.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.59
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.861       1.0000          .0000       .10000E+07
     2 'Prefactor '    .31568E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7499       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.0607       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.6824       1.0000          .0000       .10000E+07
     6 'Prefactor '    28.490       1.0000          .0000       .10000E+07
     7 'Prefactor '    .94137E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .54722E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .65605E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .14164       1.0000          .0000       .10000E+07
    11 'Prefactor '    .77012       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.4475       1.0000          .0000       .10000E+07
    13 'norm      '    7.1345       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10038E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    18.837       1.0000          .0000       .10000E+07
    16 'Prefactor '    12.017       1.0000          .0000       .10000E+07
    17 'Normalizat'    .82657       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1175       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=   5966.585     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1279 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.891        1.4375        .50479E-08    .64681E-02
   2  Prefactor     .55511E-10    11.220        .60915E-07** at limit **
   3  Prefactor     2.7157        7.5354        .22281E-07   -.42713E-02
   4  Prefactor     2.0633        1.8829       -.58961E-07    .24619E-03
   5  Prefactor     9.5976        6.1459        .32639E-08   -.70610E-03
   6  Prefactor     28.511        2.9107       -.59586E-08    .15225E-01
   7  Prefactor     .16653E-09    4.0038        .51130E-07** at limit **
   8  Prefactor      .0000        3.5458        .22053E-06** at limit **
   9  Prefactor     .88818E-09    8.5274        .30800E-06** at limit **
  10  norm          .14347        1.0934       -.66557E-07** at limit **
  11  Prefactor     .77021        1.7616       -.54579E-07   -.81591E-04
  12  Prefactor     9.5689        7.7599        .51102E-07    .11651E-02
  13  norm          7.1901        1.7644        .17648E-07   -.27722E-01
  14  Prefactor      .0000        5.0078        .27748E-07** at limit **
  15  Prefactor     19.563        27.767        .19253E-06    .44074E-03
  16  Prefactor     12.033        1.2519        .70484E-08   -.17873E-01
  17  Normalizat    .82525        .21905       -.12461E-05   -.10616E-04
  18  Prefactor     1.1182        .22363        .27944E-05   -.15485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 50.8911
  Prefactor  = 5.55112e-11
  Prefactor  = 2.7157
  Prefactor  = 2.0633
  Prefactor  = 9.59757
  Prefactor  = 28.5106
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 8.88178e-10
  norm       = 0.143465
  Prefactor  = 0.770209
  Prefactor  = 9.5689
  norm       = 7.19006
  Prefactor  = 0
  Prefactor  = 19.5626
  Prefactor  = 12.033
  Normalizat = 0.82525
  Prefactor  = 1.11818
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.585     FROM HESSE     STATUS=OK           290 CALLS     1569 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.891        15.373        .14023E-03   -1.5565    
   2  Prefactor     .55511E-10    11.238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7157        8.0116        .61363E-03   -1.5675    
   4  Prefactor     2.0633        1.8834        .71958E-03   -1.5679    
   5  Prefactor     9.5976        6.1599        .32180E-03   -1.5646    
   6  Prefactor     28.511        12.740        .18738E-03   -1.5601    
   7  Prefactor     .16653E-09    4.0160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.5464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .88818E-09    8.7017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .14347        .69141        .24122E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .77021        1.7855        .55189E-03   -1.5690    
  12  Prefactor     9.5689        7.7626        .32580E-03   -1.5646    
  13  norm          7.1901        12.180        .37531E-03   -1.5654    
  14  Prefactor      .0000        5.0315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.563        27.582        .23049E-03   -1.5620    
  16  Prefactor     12.033        11.985        .28873E-03   -1.5639    
  17  Normalizat    .82525        .18979        .43956E-01   -.99139    
  18  Prefactor     1.1182        .18895        .56386E-01   -.88888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90488e-07
Minuit parameter uncertainties:
  1  15.3729
  2  4.16274e-05
  3  8.01166
  4  1.88338
  5  6.15994
  6  12.7395
  7  5.05269e-05
  8  4.69826e-06
  9  0.000174751
  10  0.629901
  11  1.78549
  12  7.76264
  13  12.18
  14  8.9578e-06
  15  27.5822
  16  11.9845
  17  0.189945
  18  0.189065
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  8.882e-10  1.748e-04  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:  1.118e+00  1.891e-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:  8.252e-01  1.899e-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: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846504/likelihoodResults_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.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) = 5966.5854937
delta logL = -0.000573316691771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5966.45119087
delta logL = 0.133729518448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26910       1.0000          .0000       .10000E+07
     2 'Index     '    4.4090       1.0000          .0000       10.000    
     3 'Normalizat'    .78855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1428       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=   5966.451     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26854        8.4964        .10656E-02    .22765E-01
   2  Index         4.4099        3.1241        .14668        .12472E-03
   3  Normalizat    .78834        .27771E-01    .62650E-01    .25597E-03
   4  Prefactor     1.1430        .29392E-01    .55836E-01    .14152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.268537
  Index      = 4.40985
  Normalizat = 0.788335
  Prefactor  = 1.143
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.451     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26854        49.678        .72617E-05   -1.5698    
   2  Index         4.4099        6.0655        .84778E-02   -.11831    
   3  Normalizat    .78834        .17195        .27713E-03   -1.0050    
   4  Prefactor     1.1430        .17681        .24689E-03   -.88104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54098e-09
Minuit parameter uncertainties:
  1  7.30492
  2  12.1536
  3  0.172069
  4  0.176904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846504': 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) = 5966.45119011
delta logL = 0.133730278782

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.685e-01  7.305e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  4.410e+00  1.215e+01  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.143e+00  1.769e-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:  7.883e-01  1.721e-01  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/846504/cmap_HighResolution_697075201_697334401_4FGL_J1059.5+2057_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2023-02-06 00:55:08.094909', job_id='846504', GAL2='1.14', fit_tolerance='1e-08', EG2='0.79', EG='0.83', time_epoch_completed='1675673708.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.34e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1766' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 00:55:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 846504: <4FGL_J1059.5+2057_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 00:40:24 2023
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:42:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:42:50 2023
Terminated at Mon Feb  6 00:55:08 2023
Results reported at Mon Feb  6 00:55:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1766 164.878 20.9524 697075201 697334401 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 :                                   536.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            884 sec.

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

