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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin1778
RA = 164.878, Dec = 20.9524
tmin = 700185601, tmax = 700444801
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='958515', job_status='RUN', time_executed='2023-03-14 00:43:50.218877', time_epoch_executed='1678779830.22' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958515/ft1_4FGL_J1059.5+2057_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958515/ft1_4FGL_J1059.5+2057_daily_bin1778.fits outfile=/scratch/kocevski/958515/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1778.fits ra=164.878 dec=20.9524 rad=12.0 tmin=700185601.0 tmax=700444801.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.94
user 3.69
sys 0.22

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

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

Number of photons that the gtmktime cut: 511

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958515/ft1_filtered_4FGL_J1059.5+2057_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/958515/ltcube_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.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/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits
.....................!
real 11.71
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958515/ft1_filtered_4FGL_J1059.5+2057_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/958515/ltcube_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.fits outfile=/scratch/kocevski/958515/expmap_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.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/958515/ltcube_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.fits
.....................!
real 192.02
user 186.55
sys 5.16

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/958515/ft1_filtered_4FGL_J1059.5+2057_daily_bin1778.fits scfile=/scratch/kocevski/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits outfile=/scratch/kocevski/958515/cmap_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.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/958515/ft1_filtered_4FGL_J1059.5+2057_daily_bin1778.fits scfile=/scratch/kocevski/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits outfile=/scratch/kocevski/958515/cmap_HighResolution_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958515/ft1_filtered_4FGL_J1059.5+2057_daily_bin1778.fits', '/scratch/kocevski/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits', expMap='/scratch/kocevski/958515/expmap_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.fits', expCube='/scratch/kocevski/958515/ltcube_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958515/Model_4FGL_J1059.5+2057_daily_bin1778.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/958515/ft1_filtered_4FGL_J1059.5+2057_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/958515/ft2_4FGL_J1059.5+2057_daily_bin1778.fits
Exposure map: /scratch/kocevski/958515/expmap_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.fits
Exposure cube: /scratch/kocevski/958515/ltcube_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958515/Model_4FGL_J1059.5+2057_daily_bin1778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5793.40607763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29704E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .24502       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64566E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .80049       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.8646       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12511E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .87326E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10763E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    23.755       1.0000          .0000       .10000E+07
    10 'norm      '    .42218E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .57978       1.0000          .0000       .10000E+07
    12 'Prefactor '    .43479E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .16901E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12120E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .77070E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    14.608       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3690       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94943       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=   5793.308     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1121 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.9491        .41706E-06** at limit **
   2  Prefactor     .65725E-07    233.30       -.44365E-05** at limit **
   3  Prefactor     .17208E-08    1.8046        .84093E-06** at limit **
   4  Prefactor     .80027        2.1525       -.33667E-06    .15879E-02
   5  Prefactor     7.8571        7.9133        .20066E-06    .22764E-02
   6  Prefactor     .27756E-08    1.9833        .93670E-06** at limit **
   7  Prefactor     .53929E-06    4.1552       -.45604E-06** at limit **
   8  Prefactor     .51625E-08    3.8359       -.81146E-06** at limit **
   9  Prefactor     23.616        2.8984        .29821E-07   -.23310E-02
  10  norm          .37154E-01    6.2084       -.99406E-08** at limit **
  11  Prefactor     .58012        3.5915       -.42441E-06   -.25612E-03
  12  Prefactor     .21649E-08    3.4145       -.50569E-06** at limit **
  13  norm          .11102E-09    5.9338        .53546E-06** at limit **
  14  Prefactor     .18480E-06    9.6022        .16054E-06** at limit **
  15  Prefactor     .46019E-07    9.0263        .30409E-06** at limit **
  16  Prefactor     14.588        1.0986        .15948E-09   -.30697E-03
  17  Normalizat    1.3694        .22721       -.50207E-05    .18913E-03
  18  Prefactor     .94955        .23215        .58752E-05    .19053E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 6.57252e-08
  Prefactor  = 1.72085e-09
  Prefactor  = 0.800265
  Prefactor  = 7.85708
  Prefactor  = 2.77556e-09
  Prefactor  = 5.39291e-07
  Prefactor  = 5.16254e-09
  Prefactor  = 23.6162
  norm       = 0.0371538
  Prefactor  = 0.580123
  Prefactor  = 2.16493e-09
  norm       = 1.11022e-10
  Prefactor  = 1.84797e-07
  Prefactor  = 4.60187e-08
  Prefactor  = 14.5883
  Normalizat = 1.36936
  Prefactor  = 0.949547
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.308     FROM HESSE     STATUS=OK           286 CALLS     1407 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.9469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .65725E-07    18.851        .18526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17208E-08    3.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80027        2.1640        .52898E-03   -1.5690    
   5  Prefactor     7.8571        7.9234        .35731E-03   -1.5652    
   6  Prefactor     .27756E-08    3.7961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .53929E-06    11.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .51625E-08    3.9204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.616        15.803        .20522E-03   -1.5611    
  10  norm          .37154E-01    .95336        .23895E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .58012        3.5773        .71059E-03   -1.5693    
  12  Prefactor     .21649E-08    3.4501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11102E-09    5.9273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18480E-06    12.607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .46019E-07    9.9659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.588        14.019        .26180E-03   -1.5632    
  17  Normalizat    1.3694        .19507        .52992E-01   -.81519    
  18  Prefactor     .94955        .19703        .45632E-01   -.94431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25528e-08
Minuit parameter uncertainties:
  1  2.88199e-06
  2  0.00222576
  3  0.000162045
  4  2.164
  5  7.92344
  6  0.000204622
  7  0.0050512
  8  0.000284309
  9  15.803
  10  0.376408
  11  2.88118
  12  0.00017237
  13  4.53429e-05
  14  0.00305259
  15  0.00135409
  16  14.0195
  17  0.195172
  18  0.197176
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.362e+01  1.580e+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:  9.495e-01  1.972e-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.369e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.23e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5793.29076808
delta logL = 0.0174352839776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5793.28476375
delta logL = 0.0234396127198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.517       1.0000          .0000       .10000E+07
     2 'Index     '    2.2881       1.0000          .0000       10.000    
     3 'Normalizat'    1.3772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94492       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5793.285     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      259 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.515        19.424        .79202E-05    .35742E-03
   2  Index         2.2889        .59687        .76720E-02    .14150E-04
   3  Normalizat    1.3772        .22794        .23376E-03    .39558E-04
   4  Prefactor     .94497        .23232        .28439E-03    .82150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5152
  Index      = 2.28889
  Normalizat = 1.37717
  Prefactor  = 0.944973
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.285     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.515        19.023        .31681E-06   -1.5607    
   2  Index         2.2889        .58402        .30688E-03   -.57308    
   3  Normalizat    1.3772        .22802        .46753E-04   -.81291    
   4  Prefactor     .94497        .23248        .11376E-04   -.94587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1073e-11
Minuit parameter uncertainties:
  1  19.0232
  2  0.585913
  3  0.228189
  4  0.232722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958515': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5793.28476228
delta logL = 0.0234410812363

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.552e+01  1.902e+01  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.289e+00  5.859e-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:  9.450e-01  2.327e-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.377e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.29 +/- 0.59
Photon Flux (Free Index): 5.01e-08 +/- 4.86e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.42e-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/958515/cmap_HighResolution_700185601_700444801_4FGL_J1059.5+2057_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='1.93e-05', photon_flux_error='3.83e-08', dlogl='2.34e-02', energy_flux='1.84e-05', photon_flux2='5.01e-08', job_status='DONE', time_completed='2023-03-14 00:51:46.429589', photon_index_error2='0.59', photon_index2='2.29', ts='4.79', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.37', time_epoch_completed='1678780306.43', return_code='0', job_id='958515', GAL2='0.94', EG2='1.38', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.86e-08', ts2='4.83', photon_index='2.41' WHERE bin_id='1778' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:51:46 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 958515: <4FGL_J1059.5+2057_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:40:16 2023
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:40:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:40:17 2023
Terminated at Tue Mar 14 00:51:47 2023
Results reported at Tue Mar 14 00:51:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1778 164.878 20.9524 700185601 700444801 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 :                                   477.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

