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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin1746
RA = 164.878, Dec = 20.9524
tmin = 691891201, tmax = 692150401
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='721352', job_status='RUN', time_executed='2022-12-08 00:42:34.162913', time_epoch_executed='1670488954.16' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721352/ft1_4FGL_J1059.5+2057_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721352/ft2_4FGL_J1059.5+2057_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721352/ft1_4FGL_J1059.5+2057_daily_bin1746.fits outfile=/scratch/kocevski/721352/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1746.fits ra=164.878 dec=20.9524 rad=12.0 tmin=691891201.0 tmax=692150401.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.70
user 4.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721352/ft2_4FGL_J1059.5+2057_daily_bin1746.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/721352/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/721352/ft1_filtered_4FGL_J1059.5+2057_daily_bin1746.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.32
sys 0.16

Number of photons that the gtmktime cut: 591

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721352/ft1_filtered_4FGL_J1059.5+2057_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/721352/ft2_4FGL_J1059.5+2057_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/721352/ltcube_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.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/721352/ft2_4FGL_J1059.5+2057_daily_bin1746.fits
.....................!
real 11.79
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721352/ft1_filtered_4FGL_J1059.5+2057_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/721352/ft2_4FGL_J1059.5+2057_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/721352/ltcube_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.fits outfile=/scratch/kocevski/721352/expmap_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.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/721352/ltcube_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.fits
.....................!
real 192.73
user 187.67
sys 4.75

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/721352/ft1_filtered_4FGL_J1059.5+2057_daily_bin1746.fits scfile=/scratch/kocevski/721352/ft2_4FGL_J1059.5+2057_daily_bin1746.fits outfile=/scratch/kocevski/721352/cmap_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721352/ft1_filtered_4FGL_J1059.5+2057_daily_bin1746.fits scfile=/scratch/kocevski/721352/ft2_4FGL_J1059.5+2057_daily_bin1746.fits outfile=/scratch/kocevski/721352/cmap_HighResolution_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27757E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .26919E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .94924E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .58942E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.232       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.2810       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.479       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29643E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12629E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .25923       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.4676       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13609E-02   1.0000          .0000       .10000E+07
    13 'norm      '    5.6949       1.0000          .0000       .10000E+07
    14 'Prefactor '    .78938E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .79382E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.5623       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3270       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .81487       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=   6601.464     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1071 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43565E-06    3.2063       -.32326E-06** at limit **
   2  Prefactor     .22982E-07    27.097       -.12265E-04** at limit **
   3  Prefactor     .24092E-06    3.5600       -.19055E-06** at limit **
   4  Prefactor     .11102E-09    .67777       -.14018E-05** at limit **
   5  Prefactor     13.221        7.1695       -.11544E-05   -.15018E-02
   6  Prefactor     6.1254        6.5027       -.20801E-05    .91082E-04
   7  Prefactor     10.426        3.7382       -.86263E-06   -.58251E-02
   8  Prefactor     .77161E-08    8.3815       -.97463E-06** at limit **
   9  Prefactor     .33334E-06    10.619       -.13180E-05** at limit **
  10  norm          .25783        .81983        .84623E-06   -.37268E-02
  11  Prefactor     5.4667        3.2826        .12130E-05    .24198E-02
  12  Prefactor     .36204E-06    7.9674       -.24296E-06** at limit **
  13  norm          5.7696        2.0934       -.28095E-06    .68176E-01
  14  Prefactor      .0000        2.4190        .27104E-05** at limit **
  15  Prefactor     .53291E-08    4.6149        .20782E-05** at limit **
  16  Prefactor     5.5423        5.8717       -.13522E-05    .22690E-03
  17  Normalizat    1.3277        .19966        .32152E-04    .18971E-03
  18  Prefactor     .81457        .19990       -.55392E-04    .15094E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.35652e-07
  Prefactor  = 2.29816e-08
  Prefactor  = 2.40918e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 13.2211
  Prefactor  = 6.12544
  Prefactor  = 10.4264
  Prefactor  = 7.71605e-09
  Prefactor  = 3.33344e-07
  norm       = 0.257827
  Prefactor  = 5.46667
  Prefactor  = 3.62044e-07
  norm       = 5.76956
  Prefactor  = 0
  Prefactor  = 5.32907e-09
  Prefactor  = 5.54232
  Normalizat = 1.32765
  Prefactor  = 0.814571
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.464     FROM HESSE     STATUS=OK           280 CALLS     1351 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43565E-06    6.7775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22982E-07    27.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .24092E-06    6.6585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    .67602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.221        7.1691        .27511E-03   -1.5635    
   6  Prefactor     6.1254        8.9751        .40029E-03   -1.5658    
   7  Prefactor     10.426        11.808        .30928E-03   -1.5643    
   8  Prefactor     .77161E-08    8.4670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33334E-06    18.094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .25783        .84007        .10804E-02   -1.5698    
  11  Prefactor     5.4667        3.2837        .42948E-03   -1.5661    
  12  Prefactor     .36204E-06    18.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7696        10.739        .42068E-03   -1.5660    
  14  Prefactor      .0000        2.4140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .53291E-08    4.6970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5423        5.8719        .42574E-03   -1.5661    
  17  Normalizat    1.3277        .16995        .51134E-01   -.82745    
  18  Prefactor     .81457        .17039        .65366E-01   -.99193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3787e-07
Minuit parameter uncertainties:
  1  0.00343659
  2  0.00158264
  3  0.00253306
  4  1.70199e-05
  5  7.1691
  6  8.97516
  7  11.8083
  8  0.000510841
  9  0.00491203
  10  0.840068
  11  3.28374
  12  0.00518717
  13  10.7389
  14  1.00684e-05
  15  0.000316651
  16  5.87191
  17  0.170018
  18  0.170505
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  3.333e-07  4.912e-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:  8.146e-01  1.705e-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.328e+00  1.700e-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.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721352/likelihoodResults_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.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) = 6601.49266005
delta logL = -0.0282199207886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6601.46444094
delta logL = -8.11397512734e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85376E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.2580       1.0000          .0000       10.000    
     3 'Normalizat'    1.3276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81459       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=   6601.464     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      211 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        18.200       -.12089E-06** at limit **
   2  Index         2.4378        3.4432        .10259E-04     .0000    
   3  Normalizat    1.3277        .19260       -.62427E-05   -.21880E-05
   4  Prefactor     .81457        .19975        .45210E-05   -.20604E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.43778
  Normalizat = 1.32765
  Prefactor  = 0.81457
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6601.464     FROM HESSE     STATUS=FAILED        11 CALLS      222 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66779        1.9115        .10259E-04   -.53803    
   3  Normalizat    1.3277        1.0739       -.62427E-05   -.82745    
   4  Prefactor     .81457        1.1628        .45210E-05   -.99193    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.74895e-12
Minuit parameter uncertainties:
  1  4.02823e-05
  2  1.43346
  3  1.09282
  4  1.20101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721352': 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): 101
logL (Free Index) = 6601.46444012
delta logL = 9.19771991903e-09

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  4.028e-05  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.438e+00  1.433e+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:  8.146e-01  1.201e+00  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.328e+00  1.093e+00  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/721352/cmap_HighResolution_691891201_692150401_4FGL_J1059.5+2057_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2022-12-08 00:51:22.730925', job_id='721352', GAL2='0.81', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1670489482.73', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.20e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1746' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:51:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 721352: <4FGL_J1059.5+2057_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1746> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Dec  8 00:40:17 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:40:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:40:18 2022
Terminated at Thu Dec  8 00:51:23 2022
Results reported at Thu Dec  8 00:51:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1746 164.878 20.9524 691891201 692150401 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            666 sec.

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

