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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1749
RA = 159.356, Dec = -29.5568
tmin = 692668801, tmax = 692928001
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='947891', job_status='RUN', time_executed='2022-12-17 00:31:31.418349', time_epoch_executed='1671265891.42' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947891/ft1_4FGL_J1037.4-2933_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947891/ft1_4FGL_J1037.4-2933_daily_bin1749.fits outfile=/scratch/kocevski/947891/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1749.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=692668801.0 tmax=692928001.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.67
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.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/947891/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 1028

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/947891/ltcube_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.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/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits
.....................!
real 11.94
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947891/ltcube_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.fits outfile=/scratch/kocevski/947891/expmap_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.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/947891/ltcube_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.fits
.....................!
real 191.38
user 186.18
sys 4.88

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

Setting source of interest to:
4FGL J1037.4-2933 @ 159.356 -29.5568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits scfile=/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits outfile=/scratch/kocevski/947891/cmap_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.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=159.356 yref=-29.5568 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/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits scfile=/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits outfile=/scratch/kocevski/947891/cmap_HighResolution_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.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=159.356 yref=-29.5568 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/947891/Model_4FGL_J1037.4-2933_daily_bin1749.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/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits.....................!
real 101.91
user 100.52
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits', '/scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits', expMap='/scratch/kocevski/947891/expmap_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.fits', expCube='/scratch/kocevski/947891/ltcube_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/947891/Model_4FGL_J1037.4-2933_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.4-2933'

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  4.842e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/947891/ft1_filtered_4FGL_J1037.4-2933_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/947891/ft2_4FGL_J1037.4-2933_daily_bin1749.fits
Exposure map: /scratch/kocevski/947891/expmap_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.fits
Exposure cube: /scratch/kocevski/947891/ltcube_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/947891/Model_4FGL_J1037.4-2933_daily_bin1749.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) = 10867.4657747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72951E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .89599       1.0000          .0000       .10000E+07
     3 'norm      '    4.5648       1.0000          .0000       .10000E+07
     4 'Prefactor '    .56574       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.2063       1.0000          .0000       .10000E+07
     6 'norm      '    12.711       1.0000          .0000       .10000E+07
     7 'norm      '    .20976E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .53846E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .53220E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .15637E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14527E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29587E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    10.165       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.1623       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4405       1.0000          .0000       .10000E+07
    16 'Prefactor '    .25188E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .69982E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    .89241       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1815       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10867.40     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1107 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11935E-07    3.1274        .21792E-06** at limit **
   2  norm          .89634        .86192        .30906E-07    .29746E-02
   3  norm          4.6035        3.6819        .65691E-07    .19850E-01
   4  Prefactor     .57416        .57035       -.13891E-07   -.11564E-02
   5  Prefactor     5.2235        3.2933        .78261E-07   -.80164E-01
   6  norm          12.713        3.9929        .66640E-07   -.65687E-01
   7  norm          .37748E-08    2.9325        .38347E-06** at limit **
   8  Prefactor     .68834E-08    6.6990        .12618E-05** at limit **
   9  Prefactor     .98255E-08    13.690        .62123E-06** at limit **
  10  norm           .0000        1.4201        .23401E-06** at limit **
  11  Prefactor     .18319E-08    4.1211        .48791E-07** at limit **
  12  Prefactor     .16653E-09    .67049        .56460E-06** at limit **
  13  Prefactor     10.149        4.8543       -.16434E-06   -.90728E-01
  14  Prefactor     5.2126        5.0012        .24128E-06   -.59344E-02
  15  Prefactor     2.4337        6.0398        .15664E-05   -.49855E-02
  16  Prefactor     .46074E-08    9.0996        .76596E-06** at limit **
  17  Prefactor     .34417E-08    28.731       -.19744E-05** at limit **
  18  Normalizat    .89216        .22133       -.17513E-04    .70909E-04
  19  Prefactor     1.1815        .11335        .78492E-05   -.54253E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19349e-08
  norm       = 0.896344
  norm       = 4.60351
  Prefactor  = 0.574164
  Prefactor  = 5.2235
  norm       = 12.7127
  norm       = 3.77476e-09
  Prefactor  = 6.88338e-09
  Prefactor  = 9.82547e-09
  norm       = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 10.1487
  Prefactor  = 5.21265
  Prefactor  = 2.43367
  Prefactor  = 4.60743e-09
  Prefactor  = 3.44169e-09
  Normalizat = 0.892159
  Prefactor  = 1.18145
 **********
 **   18 **HESSE 
 **********

 FCN=   10867.40     FROM HESSE     STATUS=OK           304 CALLS     1411 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11935E-07    3.3007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .89634        .86853        .46038E-03   -1.5689    
   3  norm          4.6035        7.9380        .47092E-03   -1.5665    
   4  Prefactor     .57416        34.979        .72355E-03   -1.5693    
   5  Prefactor     5.2235        8.2394        .44032E-03   -1.5662    
   6  norm          12.713        8.1704        .28070E-03   -1.5637    
   7  norm          .37748E-08    3.0808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .68834E-08    6.7019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .98255E-08    13.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.4113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .18319E-08    4.1329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    .67447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.149        7.2626        .31403E-03   -1.5644    
  14  Prefactor     5.2126        5.0180        .44223E-03   -1.5662    
  15  Prefactor     2.4337        6.0646        .65466E-03   -1.5677    
  16  Prefactor     .46074E-08    9.1321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34417E-08    28.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .89216        .19390        .84539E-01   -.96736    
  19  Prefactor     1.1815        .98130E-01    .35084E-01   -.86904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06613e-07
Minuit parameter uncertainties:
  1  0.000396799
  2  0.868528
  3  7.93797
  4  8.96307
  5  8.23939
  6  8.17039
  7  0.000216324
  8  0.000428767
  9  0.000734184
  10  5.04136e-06
  11  0.000173868
  12  1.99933e-05
  13  7.26258
  14  5.01799
  15  6.06457
  16  0.000409033
  17  0.000630402
  18  0.194054
  19  0.0981456
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.825e-09  7.342e-04  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.181e+00  9.815e-02  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  8.922e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947891/likelihoodResults_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.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): 102
logL (Free Index) = 10867.4338135
delta logL = -0.0377158480114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10867.3960978
delta logL = -5.41294866707e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10867.40     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      235 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21649E-08    .14480        .42118E-03** at limit **
   2  Index         2.3016        8.7567        .50000        .40927E-09
   3  Normalizat    .89216        .43333E-03    .84539E-01   -.13908E-03
   4  Prefactor     1.1815        .22443E-03    .35084E-01   -.19141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16493e-09
  Index      = 2.3016
  Normalizat = 0.892156
  Prefactor  = 1.18146
 **********
 **   18 **HESSE 
 **********

 FCN=   10867.40     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21649E-08    .75683        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3016        7.6491        .50000       -.57006    
   3  Normalizat    .89216        .98626E-03    .37431E-03   -.96736    
   4  Prefactor     1.1815        .51202E-03    .17024E-03   -.86904    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.44504e-12
Minuit parameter uncertainties:
  1  8.07357e-05
  2  3054.66
  3  0.000986265
  4  0.000512024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947891': 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) = 10867.3960977
delta logL = 2.80124368146e-10

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.165e-09  8.074e-05  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.302e+00  3.055e+03  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.181e+00  5.120e-04  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  8.922e-01  9.863e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.356 -29.557

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/947891/cmap_HighResolution_692668801_692928001_4FGL_J1037.4-2933_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2022-12-17 00:42:41.568225', job_id='947891', GAL2='1.18', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1671266561.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.80e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1749' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:42:41 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 947891: <4FGL_J1037.4-2933_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:25 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:26 2022
Terminated at Sat Dec 17 00:42:42 2022
Results reported at Sat Dec 17 00:42:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1749 159.356 -29.5568 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.4-2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

