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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1744
RA = 162.467, Dec = 14.4835
tmin = 691372801, tmax = 691632001
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='575008', job_status='RUN', time_executed='2022-12-02 00:43:56.376623', time_epoch_executed='1669970636.38' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575008/ft1_4FGL_J1049.8+1429_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575008/ft1_4FGL_J1049.8+1429_daily_bin1744.fits outfile=/scratch/kocevski/575008/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1744.fits ra=162.467 dec=14.4835 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.53
user 2.33
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.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/575008/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.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.33
sys 0.16

Number of photons that the gtmktime cut: 767

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/575008/ltcube_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.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/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits
.....................!
real 12.96
user 12.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/575008/ltcube_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.fits outfile=/scratch/kocevski/575008/expmap_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.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/575008/ltcube_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.fits
.....................!
real 190.73
user 185.60
sys 4.74

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

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits scfile=/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits outfile=/scratch/kocevski/575008/cmap_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.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=162.467 yref=14.4835 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits scfile=/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits outfile=/scratch/kocevski/575008/cmap_HighResolution_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.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=162.467 yref=14.4835 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575008/Model_4FGL_J1049.8+1429_daily_bin1744.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/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits.....................!
real 74.74
user 73.32
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits', '/scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits', expMap='/scratch/kocevski/575008/expmap_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.fits', expCube='/scratch/kocevski/575008/ltcube_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575008/Model_4FGL_J1049.8+1429_daily_bin1744.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/575008/ft1_filtered_4FGL_J1049.8+1429_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/575008/ft2_4FGL_J1049.8+1429_daily_bin1744.fits
Exposure map: /scratch/kocevski/575008/expmap_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.fits
Exposure cube: /scratch/kocevski/575008/ltcube_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575008/Model_4FGL_J1049.8+1429_daily_bin1744.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) = 8487.73334776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14062E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    34.958       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18682E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.3677       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82270E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4264       1.0000          .0000       .10000E+07
     7 'Prefactor '    .50515E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    17.592       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29143E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.745       1.0000          .0000       .10000E+07
    11 'Prefactor '    .32249E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33307E-09   1.0000          .0000       .10000E+07
    13 'norm      '    1.0174       1.0000          .0000       .10000E+07
    14 'Prefactor '    .87256E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6476       1.0000          .0000       .10000E+07
    16 'norm      '    .93509E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .43618       1.0000          .0000       .10000E+07
    18 'Normalizat'    .87154       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2056       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8487.729     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1456 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    18.336        .52744E-06** at limit **
   2  Prefactor     35.045        1.3239       -.20777E-08    .15905E-01
   3  Prefactor      .0000        11.547        .48344E-06** at limit **
   4  Prefactor     5.3812        7.2051        .19903E-06    .47598E-04
   5  Prefactor     .55511E-10    15.734        .48275E-06** at limit **
   6  Prefactor     1.4268        2.3694        .95127E-07    .15565E-04
   7  Prefactor      .0000        4.8450       -.14632E-06** at limit **
   8  Prefactor     17.609        7.0544        .37089E-07    .80828E-04
   9  Prefactor      .0000        1.5042        .19635E-06** at limit **
  10  Prefactor     10.788        7.4443        .48194E-07   -.57483E-04
  11  Prefactor      .0000        4.9653       -.13490E-06** at limit **
  12  Prefactor      .0000        54.695        .14072E-05** at limit **
  13  norm          1.0173        .71876        .15611E-07   -.15970E-04
  14  Prefactor      .0000        4.5309       -.13315E-06** at limit **
  15  Prefactor     3.6559        4.4870       -.22610E-06    .70094E-04
  16  norm           .0000        5.1945       -.18403E-06** at limit **
  17  Prefactor     .35925        1.1760        .37004E-07   -.78509E-03
  18  Normalizat    .87141        .17277        .35736E-05   -.13303E-05
  19  Prefactor     1.2056        .16730       -.16482E-06   -.37043E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 35.0455
  Prefactor  = 0
  Prefactor  = 5.3812
  Prefactor  = 5.55112e-11
  Prefactor  = 1.4268
  Prefactor  = 0
  Prefactor  = 17.6093
  Prefactor  = 0
  Prefactor  = 10.7883
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.01731
  Prefactor  = 0
  Prefactor  = 3.65587
  norm       = 0
  Prefactor  = 0.359247
  Normalizat = 0.87141
  Prefactor  = 1.20561
 **********
 **   18 **HESSE 
 **********

 FCN=   8487.729     FROM HESSE     STATUS=OK           310 CALLS     1766 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    18.498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.045        31.844        .16915E-03   -1.5590    
   3  Prefactor      .0000        11.587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3812        7.2135        .43353E-03   -1.5662    
   5  Prefactor     .55511E-10    15.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4268        2.3911        .90471E-03   -1.5684    
   7  Prefactor      .0000        1.0320        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.609        7.0640        .23852E-03   -1.5624    
   9  Prefactor      .0000        1.5067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.788        7.4701        .30541E-03   -1.5642    
  11  Prefactor      .0000        4.9656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        53.599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0173        .72325        .12885E-02   -1.5688    
  14  Prefactor      .0000        4.5520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6559        4.6104        .52869E-03   -1.5670    
  16  norm           .0000        5.1865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .35925        7.8467        .85410E-02   -1.5696    
  18  Normalizat    .87141        .15184        .44537E-01   -.97472    
  19  Prefactor     1.2056        .14357        .51543E-01   -.86159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26867e-08
Minuit parameter uncertainties:
  1  9.77911e-05
  2  31.8446
  3  1.36769e-05
  4  7.21349
  5  7.16256e-05
  6  2.39107
  7  7.71811e-08
  8  7.06402
  9  3.08958e-07
  10  7.47006
  11  5.54551e-06
  12  1.52824e-05
  13  0.723253
  14  1.06629e-07
  15  4.61037
  16  3.62371e-06
  17  3.35791
  18  0.151911
  19  0.143618
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.761e+01  7.064e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.206e+00  1.436e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  8.714e-01  1.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.64
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 4.20e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.11e-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) = 8487.72764679
delta logL = 0.0011673543213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8487.72687945
delta logL = 0.00193468998077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.301       1.0000          .0000       .10000E+07
     2 'Index     '    2.6198       1.0000          .0000       10.000    
     3 'Normalizat'    .86926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+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=   8487.727     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.300        8.8742        .96208E-05    .14732E-01
   2  Index         2.6199        .45883        .60204E-02    .30838E-03
   3  Normalizat    .86925        .17112        .26253E-03   -.19461E-03
   4  Prefactor     1.2072        .16869        .22775E-03   -.31490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3002
  Index      = 2.61994
  Normalizat = 0.86925
  Prefactor  = 1.20725
 **********
 **   18 **HESSE 
 **********

 FCN=   8487.727     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.300        8.5918        .19242E-05   -1.5625    
   2  Index         2.6199        .44379        .24082E-03   -.49612    
   3  Normalizat    .86925        .17112        .10501E-04   -.97549    
   4  Prefactor     1.2072        .16869        .45549E-04   -.86109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51797e-10
Minuit parameter uncertainties:
  1  8.59179
  2  0.444548
  3  0.171231
  4  0.168761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575008': 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) = 8487.72687943
delta logL = 0.0019347134803

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.730e+01  8.592e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.620e+00  4.445e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.207e+00  1.688e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  8.693e-01  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.64
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.62 +/- 0.44
Photon Flux (Free Index): 1.06e-07 +/- 4.79e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/575008/cmap_HighResolution_691372801_691632001_4FGL_J1049.8+1429_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.74e-05', photon_flux_error='4.20e-08', dlogl='1.93e-03', energy_flux='2.77e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2022-12-02 00:53:22.365001', photon_index_error2='0.44', photon_index2='2.62', ts='11.64', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.87', time_epoch_completed='1669971202.37', return_code='0', job_id='575008', GAL2='1.21', EG2='0.87', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.79e-08', ts2='11.64', photon_index='2.59' WHERE bin_id='1744' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:53:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 575008: <4FGL_J1049.8+1429_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1744> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec  2 00:40:17 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:40:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:40:28 2022
Terminated at Fri Dec  2 00:53:23 2022
Results reported at Fri Dec  2 00:53:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1744 162.467 14.4835 691372801 691632001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   568.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            786 sec.

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

