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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1717
RA = 161.468, Dec = -29.4795
tmin = 684374401, tmax = 684633601
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='96041', job_status='RUN', time_executed='2022-09-16 15:34:17.300730', time_epoch_executed='1663367657.3' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96041/ft1_4FGL_J1045.8-2928_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96041/ft1_4FGL_J1045.8-2928_daily_bin1717.fits outfile=/scratch/kocevski/96041/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1717.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.02
user 4.74
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.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/96041/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 603

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/96041/ltcube_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.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/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits
.....................!
real 15.22
user 14.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/96041/ltcube_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.fits outfile=/scratch/kocevski/96041/expmap_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.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/96041/ltcube_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.fits
.....................!
real 192.94
user 187.58
sys 4.69

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/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits scfile=/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits outfile=/scratch/kocevski/96041/cmap_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits scfile=/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits outfile=/scratch/kocevski/96041/cmap_HighResolution_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/96041/Model_4FGL_J1045.8-2928_daily_bin1717.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/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits.....................!
real 71.74
user 70.19
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits', '/scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits', expMap='/scratch/kocevski/96041/expmap_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.fits', expCube='/scratch/kocevski/96041/ltcube_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/96041/Model_4FGL_J1045.8-2928_daily_bin1717.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/96041/ft1_filtered_4FGL_J1045.8-2928_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/96041/ft2_4FGL_J1045.8-2928_daily_bin1717.fits
Exposure map: /scratch/kocevski/96041/expmap_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.fits
Exposure cube: /scratch/kocevski/96041/ltcube_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/96041/Model_4FGL_J1045.8-2928_daily_bin1717.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) = 6575.75000608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56188E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .16873E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .36203E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.262       1.0000          .0000       .10000E+07
     5 'norm      '    .41411E-07   1.0000          .0000       .10000E+07
     6 'norm      '    .67548E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    25.216       1.0000          .0000       .10000E+07
     8 'norm      '    .10558E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .78796E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.8854       1.0000          .0000       .10000E+07
    11 'Prefactor '    .54934E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.0478       1.0000          .0000       .10000E+07
    13 'Prefactor '    .19904E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .36802       1.0000          .0000       .10000E+07
    15 'Prefactor '    .41097E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .12449E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.4701       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97387       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=   6575.627     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1080 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .80584        .71632E-07** at limit **
   2  norm           .0000        3.2917       -.82544E-07** at limit **
   3  Prefactor     .38858E-09    5.8307       -.77254E-07** at limit **
   4  Prefactor     16.294        2.4324        .55322E-07   -.10923E-02
   5  norm           .0000        6.5245        .50762E-07** at limit **
   6  norm           .0000        8.8144        .68580E-06** at limit **
   7  Prefactor     25.102        4.3146       -.12090E-06    .22362E-01
   8  norm          .55511E-10    15.139       -.14789E-05** at limit **
   9  Prefactor      .0000        112.51       -.27616E-05** at limit **
  10  Prefactor     4.8433        7.1117       -.69488E-06    .35761E-04
  11  Prefactor      .0000        3.4123       -.17377E-06** at limit **
  12  Prefactor     7.0072        8.2949       -.22958E-06    .97824E-03
  13  Prefactor      .0000        4.0818        .11771E-07** at limit **
  14  Prefactor     .17597E-07    95.394       -.31054E-05** at limit **
  15  Prefactor      .0000        7.5805       -.11306E-06** at limit **
  16  Prefactor     .34972E-08    30.387       -.10612E-06** at limit **
  17  Normalizat    1.4714        .30837        .89664E-05    .10459E-03
  18  Prefactor     .97357        .14333        .14659E-05    .13487E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 16.294
  norm       = 0
  norm       = 0
  Prefactor  = 25.1025
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 4.84325
  Prefactor  = 0
  Prefactor  = 7.00722
  Prefactor  = 0
  Prefactor  = 1.7597e-08
  Prefactor  = 0
  Prefactor  = 3.4972e-09
  Normalizat = 1.47141
  Prefactor  = 0.973565
 **********
 **   18 **HESSE 
 **********

 FCN=   6575.627     FROM HESSE     STATUS=OK           272 CALLS     1352 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .80318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.2898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38858E-09    9.8780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.294        14.651        .24810E-03   -1.5627    
   5  norm           .0000        6.5383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        8.8935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.102        26.224        .19918E-03   -1.5608    
   8  norm          .55511E-10    14.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        110.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8433        8.3162        .45485E-03   -1.5664    
  11  Prefactor      .0000        3.4154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0072        8.2865        .37764E-03   -1.5655    
  13  Prefactor      .0000        10.052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17597E-07    96.744        .93289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        7.6172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .34972E-08    30.739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4714        .25768        .74579E-01   -.78585    
  18  Prefactor     .97357        .11983        .45940E-01   -.93616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28444e-08
Minuit parameter uncertainties:
  1  1.76028e-06
  2  1.46383e-05
  3  0.000125834
  4  14.6512
  5  5.07629e-06
  6  4.40326e-06
  7  26.2237
  8  4.76113e-05
  9  8.74722e-05
  10  8.31619
  11  6.06014e-06
  12  8.28648
  13  2.43642e-05
  14  0.0026089
  15  1.38469e-05
  16  0.000655438
  17  0.257905
  18  0.119866
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  4.843e+00  8.316e+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:  9.736e-01  1.199e-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.471e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/96041/likelihoodResults_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.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) = 6572.13339565
delta logL = 3.49319867745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6572.05536023
delta logL = 3.57123409706

Fit tolerance = 1e-08

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

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

 FCN=   6572.055     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      274 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23269        1.1934        .34392E-03** at limit **
   2  Index         5.3772        2.2401        .78272E-01    .14812E-03
   3  Normalizat    1.1921        .92014E-01    .81047E-01   -.81062E-04
   4  Prefactor     1.0631        .44431E-01    .39193E-01   -.17394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.232695
  Index      = 5.37724
  Normalizat = 1.19206
  Prefactor  = 1.06312
 **********
 **   18 **HESSE 
 **********

 FCN=   6572.055     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      305 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23269        1.8837        .15357E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.3772        2.9223        .32732E-02    .75520E-01
   3  Normalizat    1.1921        .28532        .35879E-03   -.86849    
   4  Prefactor     1.0631        .13475        .18330E-03   -.90654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06556e-07
Minuit parameter uncertainties:
  1  1.32413
  2  3.12249
  3  0.285689
  4  0.13479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96041': 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): 102
logL (Free Index) = 6572.05535697
delta logL = 3.57123736128

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  2.327e-01  1.324e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  5.377e+00  3.122e+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.063e+00  1.348e-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.192e+00  2.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.74
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 5.38 +/- 3.12
Photon Flux (Free Index): 2.87e-07 +/- 1.21e-07
Energy Flux (Free Index): 3.71e-05 +/- 1.86e-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/96041/cmap_HighResolution_684374401_684633601_4FGL_J1045.8-2928_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', energy_flux2='3.71e-05', dlogl='3.57e+00', photon_flux2='2.87e-07', job_status='DONE', time_completed='2022-09-16 15:43:32.297054', photon_index_error2='3.12', photon_index2='5.38', ts='0.52', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='1.86e-05', EG='1.47', time_epoch_completed='1663368212.3', return_code='0', job_id='96041', GAL2='1.06', EG2='1.19', return_code2='102', photon_flux_error2='1.21e-07', ts2='8.74', photon_index='2.54' WHERE bin_id='1717' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:43:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 96041: <4FGL_J1045.8-2928_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1717> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:30:14 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:30:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:30:26 2022
Terminated at Fri Sep 16 15:43:33 2022
Results reported at Fri Sep 16 15:43:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1717 161.468 -29.4795 684374401 684633601 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 :                                   556.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            799 sec.

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

