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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1736
RA = 161.468, Dec = -29.4795
tmin = 689299201, tmax = 689558401
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='953313', job_status='RUN', time_executed='2022-11-08 00:12:27.431091', time_epoch_executed='1667895147.43' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953313/ft1_4FGL_J1045.8-2928_daily_bin1736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953313/ft1_4FGL_J1045.8-2928_daily_bin1736.fits outfile=/scratch/kocevski/953313/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1736.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=689299201.0 tmax=689558401.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.58
user 3.35
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.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/953313/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1736.fits evtable="EVENTS" outfile="/scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.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: 648

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits" evtable="EVENTS" scfile=/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits sctable="SC_DATA" outfile=/scratch/kocevski/953313/ltcube_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.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/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits
.....................!
real 12.60
user 12.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits sctable="SC_DATA" expcube=/scratch/kocevski/953313/ltcube_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.fits outfile=/scratch/kocevski/953313/expmap_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.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/953313/ltcube_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.fits
.....................!
real 190.89
user 184.97
sys 5.12

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

Setting source of interest to:
4FGL J1045.8-2928 @ 161.468 -29.4795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits scfile=/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits outfile=/scratch/kocevski/953313/cmap_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.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=161.468 yref=-29.4795 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits scfile=/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits outfile=/scratch/kocevski/953313/cmap_HighResolution_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.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=161.468 yref=-29.4795 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953313/Model_4FGL_J1045.8-2928_daily_bin1736.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/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits.....................!
real 73.53
user 71.29
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits', '/scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits', expMap='/scratch/kocevski/953313/expmap_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.fits', expCube='/scratch/kocevski/953313/ltcube_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953313/Model_4FGL_J1045.8-2928_daily_bin1736.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1045.8-2928'

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.056e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953313/ft1_filtered_4FGL_J1045.8-2928_daily_bin1736.fits
Spacecraft file(s): /scratch/kocevski/953313/ft2_4FGL_J1045.8-2928_daily_bin1736.fits
Exposure map: /scratch/kocevski/953313/expmap_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.fits
Exposure cube: /scratch/kocevski/953313/ltcube_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953313/Model_4FGL_J1045.8-2928_daily_bin1736.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) = 7112.34296299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32872       1.0000          .0000       .10000E+07
     2 'norm      '    .81671       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36021       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.6622       1.0000          .0000       .10000E+07
     5 'norm      '    .30248E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .12584E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2058       1.0000          .0000       .10000E+07
     8 'norm      '    .10166E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.7834       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4394       1.0000          .0000       .10000E+07
    11 'Prefactor '    .73713E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.980       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49730E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    11.285       1.0000          .0000       .10000E+07
    15 'Prefactor '    .89266E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17711E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0933       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7112.267     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1312 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32908        1.0625        .41177E-07    .19113E-03
   2  norm          .84875        10.575       -.10525E-06   -.33349E-01
   3  Prefactor     .28232E-05    113.18       -.93025E-06** at limit **
   4  Prefactor     6.6893        10.377       -.10743E-06    .16256E-02
   5  norm          .14988E-08    7.4541       -.17272E-06** at limit **
   6  norm          .55511E-10    3.6039       -.17597E-06** at limit **
   7  Prefactor     2.0054        30.328        .10726E-06    .18781E-01
   8  norm          .11102E-09    3.6914       -.15503E-06** at limit **
   9  Prefactor     9.7381        1.1840       -.14888E-07   -.41311E-02
  10  Prefactor     2.4666        5.2495       -.12116E-06   -.30288E-02
  11  Prefactor     .19984E-08    7.1921       -.90100E-07** at limit **
  12  Prefactor     14.925        8.1844       -.78875E-07    .10718E-03
  13  Prefactor      .0000        3.8001        .29331E-07** at limit **
  14  Prefactor     20.289        102.24       -.32421E-05   -.36766E-03
  15  Prefactor     .22204E-09    9.0534       -.92315E-07** at limit **
  16  Prefactor     .10270E-07    31.608        .59417E-06** at limit **
  17  Normalizat    1.0931        .29206        .63991E-05    .93063E-05
  18  Prefactor     1.0778        .14155       -.22763E-05    .18473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.329085
  norm       = 0.848751
  Prefactor  = 2.82319e-06
  Prefactor  = 6.68931
  norm       = 1.4988e-09
  norm       = 5.55112e-11
  Prefactor  = 2.00538
  norm       = 1.11022e-10
  Prefactor  = 9.73814
  Prefactor  = 2.46657
  Prefactor  = 1.9984e-09
  Prefactor  = 14.9248
  Prefactor  = 0
  Prefactor  = 20.2893
  Prefactor  = 2.22045e-10
  Prefactor  = 1.02696e-08
  Normalizat = 1.09305
  Prefactor  = 1.07779
 **********
 **   18 **HESSE 
 **********

 FCN=   7112.267     FROM HESSE     STATUS=OK           282 CALLS     1594 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32908        .98019        .35428E-02   -1.5696    
   2  norm          .84875        21.394        .51698E-03   -1.5690    
   3  Prefactor     .28232E-05    125.52        .94249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6893        10.407        .38853E-03   -1.5656    
   5  norm          .14988E-08    7.4469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    3.5734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0054        54.712        .69238E-03   -1.5680    
   8  norm          .11102E-09    3.6661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7381        13.813        .32013E-03   -1.5646    
  10  Prefactor     2.4666        5.8904        .65482E-03   -1.5677    
  11  Prefactor     .19984E-08    7.1874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.925        8.1710        .25852E-03   -1.5631    
  13  Prefactor      .0000        3.7949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.289        101.96        .29798E-03   -1.5618    
  15  Prefactor     .22204E-09    9.0294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10270E-07    31.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0931        .24901        .80452E-01   -.89975    
  18  Prefactor     1.0778        .11940        .38493E-01   -.90180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68687e-07
Minuit parameter uncertainties:
  1  0.98019
  2  8.52257
  3  0.0376499
  4  10.4074
  5  0.000212391
  6  2.08176e-05
  7  20.9495
  8  4.33719e-05
  9  13.8129
  10  5.89042
  11  0.000238758
  12  8.17103
  13  1.79115e-05
  14  90.9679
  15  8.68616e-05
  16  0.00113793
  17  0.249277
  18  0.119431
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  2.467e+00  5.890e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.078e+00  1.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.093e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 161.468 -29.480
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953313/likelihoodResults_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.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) = 7112.26243386
delta logL = 0.00437222578421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7112.261218
delta logL = 0.00558809410632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2319       1.0000          .0000       .10000E+07
     2 'Index     '    2.6735       1.0000          .0000       10.000    
     3 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7112.261     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      228 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2317        5.3387        .23005E-04    .32460E-01
   2  Index         2.6725        1.2744        .45938E-02   -.12166E-04
   3  Normalizat    1.0896        .28520        .35664E-03    .61204E-05
   4  Prefactor     1.0790        .14091        .17814E-03    .27442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2317
  Index      = 2.67248
  Normalizat = 1.08965
  Prefactor  = 1.07901
 **********
 **   18 **HESSE 
 **********

 FCN=   7112.261     FROM HESSE     STATUS=OK            25 CALLS      253 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2317        5.1486        .92021E-06   -1.5678    
   2  Index         2.6725        1.2299        .18375E-03   -.48421    
   3  Normalizat    1.0896        .28552        .14266E-04   -.90085    
   4  Prefactor     1.0790        .14102        .71258E-05   -.90140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29698e-08
Minuit parameter uncertainties:
  1  5.1486
  2  1.24628
  3  0.285929
  4  0.141069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953313': 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) = 7112.26121745
delta logL = 0.00558864305367

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  2.232e+00  5.149e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.672e+00  1.246e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.079e+00  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.090e+00  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
Ra Dec: 161.468 -29.480

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/953313/cmap_HighResolution_689299201_689558401_4FGL_J1045.8-2928_daily_bin1736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2022-11-08 00:22:07.173997', job_id='953313', GAL2='1.08', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1667895727.17', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.59e-03', ts2='0.30', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1736' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:22:07 PST 2022

UCCESS', return_code='0', GAL='1.08', dlogl='5.59e-03', ts2='0.30', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1736' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:20:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 953300: <4FGL_J1045.8-2928_daily_bin1736> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1736> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Nov  8 00:06:36 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:08:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:08:49 2022
Terminated at Tue Nov  8 00:20:39 2022
Results reported at Tue Nov  8 00:20:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1736 161.468 -29.4795 689299201 689558401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1045.8-2928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   472.30 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             231.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            843 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 953313: <4FGL_J1045.8-2928_daily_bin1736> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1736> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Nov  8 00:06:37 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:08:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:08:50 2022
Terminated at Tue Nov  8 00:22:07 2022
Results reported at Tue Nov  8 00:22:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1736 161.468 -29.4795 689299201 689558401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1045.8-2928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            930 sec.

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

