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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1708
RA = 159.356, Dec = -29.5568
tmin = 682041601, tmax = 682300801
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='94671', job_status='RUN', time_executed='2022-09-16 15:29:47.419769', time_epoch_executed='1663367387.42' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94671/ft1_4FGL_J1037.4-2933_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94671/ft1_4FGL_J1037.4-2933_daily_bin1708.fits outfile=/scratch/kocevski/94671/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1708.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=682041601.0 tmax=682300801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.65
user 3.80
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.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/94671/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.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.54
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 827

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/94671/ltcube_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.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/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits
.....................!
real 13.61
user 13.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/94671/ltcube_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.fits outfile=/scratch/kocevski/94671/expmap_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.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/94671/ltcube_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.fits
.....................!
real 191.69
user 185.88
sys 5.42

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/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits scfile=/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits outfile=/scratch/kocevski/94671/cmap_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits scfile=/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits outfile=/scratch/kocevski/94671/cmap_HighResolution_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94671/Model_4FGL_J1037.4-2933_daily_bin1708.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/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits.....................!
real 83.31
user 81.87
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits', '/scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits', expMap='/scratch/kocevski/94671/expmap_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.fits', expCube='/scratch/kocevski/94671/ltcube_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94671/Model_4FGL_J1037.4-2933_daily_bin1708.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/94671/ft1_filtered_4FGL_J1037.4-2933_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/94671/ft2_4FGL_J1037.4-2933_daily_bin1708.fits
Exposure map: /scratch/kocevski/94671/expmap_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.fits
Exposure cube: /scratch/kocevski/94671/ltcube_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94671/Model_4FGL_J1037.4-2933_daily_bin1708.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) = 8766.89995414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32840E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .17000       1.0000          .0000       .10000E+07
     3 'norm      '    .10346E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .25949E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.2513       1.0000          .0000       .10000E+07
     6 'norm      '    .88188       1.0000          .0000       .10000E+07
     7 'norm      '    3.3567       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11505E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    28.582       1.0000          .0000       .10000E+07
    10 'norm      '    8.4138       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28613E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.8081       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.6679       1.0000          .0000       .10000E+07
    14 'Prefactor '    .76931       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.7073       1.0000          .0000       .10000E+07
    16 'Prefactor '    .87140E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.7344       1.0000          .0000       .10000E+07
    18 'Normalizat'    .80215       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0529       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=   8766.870     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1374 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    3.8743       -.23713E-06** at limit **
   2  norm          .16787        2.0843       -.72320E-06** at limit **
   3  norm          .91066E-06    27.973        .88395E-06** at limit **
   4  Prefactor     .18324E-06    5.7483        .13919E-07** at limit **
   5  Prefactor     3.2439        7.5325       -.89155E-06   -.48083E-01
   6  norm          .90421        1.3578       -.29293E-06    .22104E-01
   7  norm          3.4859        5.5464        .33683E-06   -.12396E-02
   8  Prefactor     .49516E-07    6.9831       -.24794E-06** at limit **
   9  Prefactor     27.816        6.3906        .25473E-06   -.15840    
  10  norm          8.5096        4.1466        .74788E-07    .11728E-01
  11  Prefactor     .35411E-06    3.7031       -.46094E-06** at limit **
  12  Prefactor     4.8231        4.1176        .28000E-06    .50482E-02
  13  Prefactor     9.7010        2.5254        .17398E-06    .84907E-02
  14  Prefactor     .75874        1.1064       -.22814E-06   -.27693E-01
  15  Prefactor     5.6994        6.4659       -.36404E-06   -.45786E-02
  16  Prefactor      .0000        2.5820        .55067E-06** at limit **
  17  Prefactor     4.7391        2.2794       -.19370E-06    .46379E-01
  18  Normalizat    .80254        .22119       -.50959E-05    .37917E-04
  19  Prefactor     1.0526        .11286        .23064E-05    .70399E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  norm       = 0.167865
  norm       = 9.1066e-07
  Prefactor  = 1.83242e-07
  Prefactor  = 3.24387
  norm       = 0.904206
  norm       = 3.48589
  Prefactor  = 4.95159e-08
  Prefactor  = 27.8164
  norm       = 8.50956
  Prefactor  = 3.54106e-07
  Prefactor  = 4.82312
  Prefactor  = 9.70102
  Prefactor  = 0.758741
  Prefactor  = 5.69935
  Prefactor  = 0
  Prefactor  = 4.73907
  Normalizat = 0.802536
  Prefactor  = 1.05263
 **********
 **   18 **HESSE 
 **********

 FCN=   8766.870     FROM HESSE     STATUS=OK           314 CALLS     1688 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    3.8808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .16787        .81220        .26521E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .91066E-06    28.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18324E-06    8.7865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2439        8.9833        .56144E-03   -1.5672    
   6  norm          .90421        14.639        .47021E-03   -1.5689    
   7  norm          3.4859        5.9321        .55212E-03   -1.5671    
   8  Prefactor     .49516E-07    7.2071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.816        22.529        .18708E-03   -1.5602    
  10  norm          8.5096        4.6779        .34536E-03   -1.5650    
  11  Prefactor     .35411E-06    8.5267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8231        4.3585        .45857E-03   -1.5664    
  13  Prefactor     9.7010        10.091        .32205E-03   -1.5646    
  14  Prefactor     .75874        4.3806        .55251E-03   -1.5691    
  15  Prefactor     5.6994        6.5136        .42022E-03   -1.5660    
  16  Prefactor      .0000        2.5820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7391        164.33        .46220E-03   -1.5664    
  18  Normalizat    .80254        .19577        .81830E-01   -.99975    
  19  Prefactor     1.0526        .97187E-01    .39743E-01   -.90995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2056e-06
Minuit parameter uncertainties:
  1  4.73515e-05
  2  0.738486
  3  0.0102498
  4  0.00253759
  5  8.9833
  6  7.2764
  7  5.9321
  8  0.00119472
  9  22.5288
  10  4.67791
  11  0.00347527
  12  4.35853
  13  10.0911
  14  3.64621
  15  6.51361
  16  8.06833e-06
  17  55.8145
  18  0.195937
  19  0.097203
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.782e+01  2.253e+01  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.053e+00  9.720e-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.025e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.95e-05

TS (Fixed Index): 2.95
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94671/likelihoodResults_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.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) = 8766.85573682
delta logL = 0.0139807812611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8766.83650648
delta logL = 0.0332111132466

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8766.837     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      269 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.666        32.972        .83984E-05    .13618E-02
   2  Index         2.5871        .88450        .64647E-02    .86878E-04
   3  Normalizat    .79135        .22442        .36454E-03    .11726E-04
   4  Prefactor     1.0565        .11363        .16443E-03   -.13828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6658
  Index      = 2.58708
  Normalizat = 0.791353
  Prefactor  = 1.05653
 **********
 **   18 **HESSE 
 **********

 FCN=   8766.837     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.666        26.495        .33594E-06   -1.5613    
   2  Index         2.5871        .71138        .25859E-03   -.50360    
   3  Normalizat    .79135        .22290        .14581E-04   -1.0039    
   4  Prefactor     1.0565        .11312        .65772E-05   -.90868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4528e-11
Minuit parameter uncertainties:
  1  26.4951
  2  0.714546
  3  0.223156
  4  0.113147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94671': 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) = 8766.8365055
delta logL = 0.0332120932126

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.267e+01  2.650e+01  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.587e+00  7.145e-01  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.057e+00  1.131e-01  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:  7.914e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.59 +/- 0.71
Photon Flux (Free Index): 8.30e-08 +/- 6.11e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.63e-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/94671/cmap_HighResolution_682041601_682300801_4FGL_J1037.4-2933_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='2.20e-05', photon_flux_error='6.04e-08', dlogl='3.32e-02', energy_flux='2.40e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2022-09-16 15:40:34.021855', photon_index_error2='0.71', photon_index2='2.59', ts='2.95', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.63e-05', EG='0.80', time_epoch_completed='1663368034.02', return_code='0', job_id='94671', GAL2='1.06', EG2='0.79', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='6.11e-08', ts2='3.14', photon_index='2.41' WHERE bin_id='1708' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:40:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 94671: <4FGL_J1037.4-2933_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:25:19 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:26:00 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:26:00 2022
Terminated at Fri Sep 16 15:40:34 2022
Results reported at Fri Sep 16 15:40:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1708 159.356 -29.5568 682041601 682300801 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 :                                   647.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            915 sec.

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

