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 14 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_J1057.2+5510_daily_bin1746
RA = 164.318, Dec = 55.1804
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='721338', job_status='RUN', time_executed='2022-12-08 00:40:40.134655', time_epoch_executed='1670488840.13' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721338

Creating custom pfile directory:
/scratch/kocevski/721338/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/721338/ft1_4FGL_J1057.2+5510_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/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721338/ft1_4FGL_J1057.2+5510_daily_bin1746.fits outfile=/scratch/kocevski/721338/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin1746.fits ra=164.318 dec=55.1804 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.71
user 4.47
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_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/721338/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/721338/ft1_filtered_4FGL_J1057.2+5510_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.31
sys 0.16

Number of photons that the gtmktime cut: 607

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/721338/ltcube_691891201_692150401_4FGL_J1057.2+5510_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/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits
.....................!
real 11.71
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/721338/ltcube_691891201_692150401_4FGL_J1057.2+5510_daily_bin1746.fits outfile=/scratch/kocevski/721338/expmap_691891201_692150401_4FGL_J1057.2+5510_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/721338/ltcube_691891201_692150401_4FGL_J1057.2+5510_daily_bin1746.fits
.....................!
real 189.83
user 185.06
sys 4.44

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

Setting source of interest to:
4FGL J1057.2+5510 @ 164.318 55.1804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits scfile=/scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits outfile=/scratch/kocevski/721338/cmap_691891201_692150401_4FGL_J1057.2+5510_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.318 yref=55.1804 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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits scfile=/scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits outfile=/scratch/kocevski/721338/cmap_HighResolution_691891201_692150401_4FGL_J1057.2+5510_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.318 yref=55.1804 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/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721338/Model_4FGL_J1057.2+5510_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/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits.....................!
real 60.57
user 59.20
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits', '/scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits', expMap='/scratch/kocevski/721338/expmap_691891201_692150401_4FGL_J1057.2+5510_daily_bin1746.fits', expCube='/scratch/kocevski/721338/ltcube_691891201_692150401_4FGL_J1057.2+5510_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/721338/Model_4FGL_J1057.2+5510_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1057.2+5510'

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  5.757e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/721338/ft1_filtered_4FGL_J1057.2+5510_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/721338/ft2_4FGL_J1057.2+5510_daily_bin1746.fits
Exposure map: /scratch/kocevski/721338/expmap_691891201_692150401_4FGL_J1057.2+5510_daily_bin1746.fits
Exposure cube: /scratch/kocevski/721338/ltcube_691891201_692150401_4FGL_J1057.2+5510_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/721338/Model_4FGL_J1057.2+5510_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) = 6683.0678186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66139E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .77504E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .30953E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30465E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.4603       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10500E-03   1.0000          .0000       .10000E+07
     7 'norm      '    7.3037       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13553E-02   1.0000          .0000       .10000E+07
     9 'norm      '    2.6423       1.0000          .0000       .10000E+07
    10 'Prefactor '    28.510       1.0000          .0000       .10000E+07
    11 'norm      '    .11191E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .70438E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    73.538       1.0000          .0000       .10000E+07
    14 'norm      '    3.9124       1.0000          .0000       .10000E+07
    15 'Prefactor '    43.458       1.0000          .0000       .10000E+07
    16 'Prefactor '    .25584E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11610       1.0000          .0000       .10000E+07
    18 'norm      '    .10394E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.9165       1.0000          .0000       .10000E+07
    20 'Prefactor '    36.538       1.0000          .0000       .10000E+07
    21 'norm      '    .16777E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .48839E-06   1.0000          .0000       .10000E+07
    23 'norm      '    .16056E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    26.905       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.5730       1.0000          .0000       .10000E+07
    26 'Prefactor '    .67537E-03   1.0000          .0000       .10000E+07
    27 'norm      '    2.3936       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.1097       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6683.064     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2807 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.1949       -.18071E-06** at limit **
   2  Prefactor     .20322E-05    109.76        .85636E-06** at limit **
   3  norm          .11819E-05    9.4640        .87022E-07** at limit **
   4  Prefactor     .82573E-06    8.4297       -.94925E-07** at limit **
   5  norm          1.4605        .48431       -.75302E-08   -.55578E-02
   6  Prefactor     .97700E-08    6.9576        .13763E-06** at limit **
   7  norm          7.3045        2.8159        .24727E-07    .34415E-02
   8  Prefactor     .62728E-08    5.5806        .31843E-06** at limit **
   9  norm          2.6542        10.519        .57065E-07    .30465E-01
  10  Prefactor     28.490        3.1039        .11374E-07   -.21906E-01
  11  norm           .0000        1.5279        .71550E-07** at limit **
  12  norm           .0000        1.6110        .75072E-07** at limit **
  13  Prefactor     73.728        23.364        .12871E-07   -.27561    
  14  norm          3.9153        2.3546        .59497E-07    .76040E-02
  15  Prefactor     43.010        11.345        .76804E-07   -.24922E-01
  16  Prefactor     .48572E-07    7.9512        .11770E-06** at limit **
  17  Prefactor     .11657E-08    32.637       -.66610E-07** at limit **
  18  norm          .30415E-06    8.1569       -.25071E-06** at limit **
  19  Prefactor     7.9446        6.4708        .76991E-07    .26915E-02
  20  Prefactor     36.508        1.8456        .93613E-08    .98006E-02
  21  norm          .46119E-06    4.8206        .17569E-07** at limit **
  22  Prefactor     .94924E-07    3.5659        .11959E-06** at limit **
  23  norm          .55511E-10    3.8612       -.11438E-06** at limit **
  24  Prefactor     26.790        24.360       -.22958E-07   -.11579    
  25  Prefactor     1.6281        4.9078       -.98384E-07   -.91594E-03
  26  Prefactor     .20467E-06    6.6718       -.22984E-06** at limit **
  27  norm          2.3929        1.8157        .23591E-07    .31782E-02
  28  Normalizat    1.1101        .17380        .49376E-06    .22749E-03
  29  Prefactor     .77068        .21285        .31352E-06    .13935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 2.03215e-06
  norm       = 1.18189e-06
  Prefactor  = 8.25728e-07
  norm       = 1.46049
  Prefactor  = 9.76996e-09
  norm       = 7.30447
  Prefactor  = 6.27276e-09
  norm       = 2.65418
  Prefactor  = 28.4904
  norm       = 0
  norm       = 0
  Prefactor  = 73.7281
  norm       = 3.91526
  Prefactor  = 43.0097
  Prefactor  = 4.85723e-08
  Prefactor  = 1.16573e-09
  norm       = 3.04146e-07
  Prefactor  = 7.94464
  Prefactor  = 36.5077
  norm       = 4.61187e-07
  Prefactor  = 9.49241e-08
  norm       = 5.55112e-11
  Prefactor  = 26.7901
  Prefactor  = 1.62806
  Prefactor  = 2.0467e-07
  norm       = 2.39289
  Normalizat = 1.11013
  Prefactor  = 0.770676
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.064     FROM HESSE     STATUS=OK           619 CALLS     3426 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.2102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20322E-05    7.3899        .58079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .11819E-05    11.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82573E-06    13.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4605        .48501        .71998E-03   -1.5684    
   6  Prefactor     .97700E-08    6.9677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.3045        2.8192        .37090E-03   -1.5654    
   8  Prefactor     .62728E-08    5.5970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6542        10.589        .62695E-03   -1.5675    
  10  Prefactor     28.490        15.588        .18732E-03   -1.5601    
  11  norm           .0000        1.5271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.5439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     73.728        142.80        .11662E-03   -1.5536    
  14  norm          3.9153        2.6332        .50982E-03   -1.5668    
  15  Prefactor     43.010        39.344        .15171E-03   -1.5577    
  16  Prefactor     .48572E-07    7.9927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    32.625        .13515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .30415E-06    15.994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9446        6.6226        .35613E-03   -1.5652    
  20  Prefactor     36.508        26.731        .16545E-03   -1.5587    
  21  norm          .46119E-06    13.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .94924E-07    2.8406        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-10    3.8625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.790        28.077        .19282E-03   -1.5604    
  25  Prefactor     1.6281        4.9682        .84709E-03   -1.5682    
  26  Prefactor     .20467E-06    15.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.3929        1.8253        .66167E-03   -1.5677    
  28  Normalizat    1.1101        .15542        .37617E-01   -.89427    
  29  Prefactor     .77068        .18575        .70833E-01   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17465e-05
Minuit parameter uncertainties:
  1  2.20282e-05
  2  0.00775044
  3  0.00737186
  4  0.00676588
  5  0.485009
  6  0.000521273
  7  2.81917
  8  0.000374836
  9  10.5888
  10  15.5879
  11  1.23143e-05
  12  1.24429e-05
  13  142.808
  14  2.63325
  15  39.3441
  16  0.00124624
  17  0.000388133
  18  0.0044112
  19  6.62262
  20  26.7314
  21  0.00491214
  22  0.00103844
  23  2.60389e-05
  24  28.0774
  25  4.96817
  26  0.00361691
  27  1.82525
  28  0.155483
  29  0.185898
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  7.373e+01  1.428e+02  0.000e+00  1.000e+06 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  7.707e-01  1.859e-01  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.110e+00  1.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 164.318 55.180
Photon Flux Upper Limit: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721338/likelihoodResults_691891201_692150401_4FGL_J1057.2+5510_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) = 6682.96882997
delta logL = 0.0953047408975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.96298782
delta logL = 0.101146890525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.250       1.0000          .0000       .10000E+07
     2 'Index     '    2.1828       1.0000          .0000       10.000    
     3 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+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=   6682.963     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      314 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.123        152.64        .61544E-05    .27450E-03
   2  Index         2.1840        1.2293        .67839E-02    .53355E-04
   3  Normalizat    1.1033        .17054        .21396E-03    .25219E-03
   4  Prefactor     .77486        .21210        .31261E-03   -.19576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.1234
  Index      = 2.18396
  Normalizat = 1.1033
  Prefactor  = 0.77486
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.963     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.123        105.93        .12309E-05   -1.5578    
   2  Index         2.1840        .86003        .27135E-03   -.59826    
   3  Normalizat    1.1033        .17004        .42791E-04   -.89646    
   4  Prefactor     .77486        .21155        .12505E-04   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95465e-10
Minuit parameter uncertainties:
  1  105.936
  2  0.866362
  3  0.170121
  4  0.211771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721338': 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) = 6682.9629859
delta logL = 0.101148815939

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  4.212e+01  1.059e+02  0.000e+00  1.000e+06 ( 1.000e-15)
390        Index:  2.184e+00  8.664e-01  0.000e+00  1.000e+01 (-1.000e+00)
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  7.749e-01  2.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.103e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 164.318 55.180

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/721338/cmap_HighResolution_691891201_692150401_4FGL_J1057.2+5510_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2022-12-08 00:55:18.089919', job_id='721338', GAL2='0.77', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1670489718.09', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.01e-01', ts2='0.63', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1746' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:55:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 721338: <4FGL_J1057.2+5510_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1057.2+5510_daily_bin1746> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Dec  8 00:40:15 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:40:16 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:16 2022
Terminated at Thu Dec  8 00:55:18 2022
Results reported at Thu Dec  8 00:55:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin1746 164.318 55.1804 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1057.2+5510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   880.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

