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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1718
RA = 159.356, Dec = -29.5568
tmin = 684633601, tmax = 684892801
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='94685', job_status='RUN', time_executed='2022-09-16 15:29:46.825340', time_epoch_executed='1663367386.83' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94685/ft1_4FGL_J1037.4-2933_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94685/ft1_4FGL_J1037.4-2933_daily_bin1718.fits outfile=/scratch/kocevski/94685/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1718.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=684633601.0 tmax=684892801.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.26
user 2.99
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.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/94685/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/94685/ft1_filtered_4FGL_J1037.4-2933_daily_bin1718.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.35
sys 0.15

Number of photons that the gtmktime cut: 929

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94685/ft1_filtered_4FGL_J1037.4-2933_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/94685/ltcube_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.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/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.fits
.....................!
real 15.34
user 14.85
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94685/ft1_filtered_4FGL_J1037.4-2933_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/94685/ltcube_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.fits outfile=/scratch/kocevski/94685/expmap_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.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/94685/ltcube_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.fits
.....................!
real 191.67
user 185.60
sys 5.45

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/94685/ft1_filtered_4FGL_J1037.4-2933_daily_bin1718.fits scfile=/scratch/kocevski/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.fits outfile=/scratch/kocevski/94685/cmap_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94685/ft1_filtered_4FGL_J1037.4-2933_daily_bin1718.fits scfile=/scratch/kocevski/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.fits outfile=/scratch/kocevski/94685/cmap_HighResolution_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94685/ft1_filtered_4FGL_J1037.4-2933_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/94685/ft2_4FGL_J1037.4-2933_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94685/Model_4FGL_J1037.4-2933_daily_bin1718.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/94685/ft1_filtered_4FGL_J1037.4-2933_daily_bin1718.fits.....................!
real 100.41
user 98.60
sys 1.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9587       1.0000          .0000       .10000E+07
     2 'norm      '    .13878E-08   1.0000          .0000       .10000E+07
     3 'norm      '    1.5710       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.406       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6183       1.0000          .0000       .10000E+07
     6 'norm      '    2.1489       1.0000          .0000       .10000E+07
     7 'norm      '    .62778E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.0031       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19453E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .32353E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.994       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.9562       1.0000          .0000       .10000E+07
    13 'Prefactor '    .43350E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .35655       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33803E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.9458       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18273E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0484       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=   10084.99     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1150 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0365        6.2355       -.65067E-06    .82492E-03
   2  norm           .0000        .57157       -.41875E-06** at limit **
   3  norm          1.5823        5.3050       -.15451E-08    .44806E-03
   4  Prefactor     13.513        1.1062       -.23703E-07   -.32974E-02
   5  Prefactor     4.6779        7.8115       -.15155E-05   -.10645E-01
   6  norm          2.1910        7.8062       -.13597E-05   -.11124E-03
   7  norm           .0000        7.8476       -.15743E-05** at limit **
   8  Prefactor     9.0000        1.1741        .25740E-07   -.10250E-02
   9  Prefactor     .16653E-09    14.339       -.19489E-05** at limit **
  10  norm          .55511E-10    4.1496       -.11156E-05** at limit **
  11  Prefactor     13.842        1.1865       -.87324E-07    .27101E-01
  12  Prefactor     3.9588        3.5935       -.41776E-06   -.15151E-02
  13  Prefactor     .22204E-09    5.6521       -.72634E-06** at limit **
  14  Prefactor     .35961        1.2739       -.85388E-06    .19306E-01
  15  Prefactor     .11102E-09    2.0825       -.27477E-06** at limit **
  16  Prefactor     7.0815        1.2326        .49938E-07   -.54724E-02
  17  Prefactor      .0000        27.608       -.24489E-05** at limit **
  18  Normalizat    1.1280        .22912        .16929E-04    .70620E-04
  19  Prefactor     1.0483        .11089       -.21141E-06    .17787E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.03647
  norm       = 0
  norm       = 1.58235
  Prefactor  = 13.5127
  Prefactor  = 4.67787
  norm       = 2.19099
  norm       = 0
  Prefactor  = 8.99999
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  Prefactor  = 13.8418
  Prefactor  = 3.95884
  Prefactor  = 2.22045e-10
  Prefactor  = 0.359614
  Prefactor  = 1.11022e-10
  Prefactor  = 7.08148
  Prefactor  = 0
  Normalizat = 1.12805
  Prefactor  = 1.04834
 **********
 **   18 **HESSE 
 **********

 FCN=   10084.99     FROM HESSE     STATUS=OK           312 CALLS     1462 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0365        6.2318        .41112E-03   -1.5659    
   2  norm           .0000        .56867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5823        5.3576        .84779E-03   -1.5683    
   4  Prefactor     13.513        19.916        .27331E-03   -1.5634    
   5  Prefactor     4.6779        8.0308        .46811E-03   -1.5665    
   6  norm          2.1910        7.9775        .70265E-03   -1.5678    
   7  norm           .0000        7.8370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0000        8.3717        .33379E-03   -1.5648    
   9  Prefactor     .16653E-09    14.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    4.0871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.842        13.983        .26749E-03   -1.5634    
  12  Prefactor     3.9588        3.6042        .50689E-03   -1.5668    
  13  Prefactor     .22204E-09    5.6715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .35961        3.5964        .62099E-02   -1.5696    
  15  Prefactor     .11102E-09    2.0786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.0815        11.973        .38043E-03   -1.5655    
  17  Prefactor      .0000        27.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1280        .20156        .78805E-01   -.88856    
  19  Prefactor     1.0483        .94190E-01    .40002E-01   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64721e-07
Minuit parameter uncertainties:
  1  6.23178
  2  2.28791e-06
  3  5.35766
  4  19.916
  5  8.0308
  6  7.97755
  7  8.525e-06
  8  8.37168
  9  9.6374e-05
  10  2.26398e-05
  11  13.9831
  12  3.60422
  13  7.354e-05
  14  2.27448
  15  2.81362e-05
  16  11.9734
  17  2.14031e-05
  18  0.2017
  19  0.0942053
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.665e-10  9.637e-05  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.048e+00  9.421e-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:  1.128e+00  2.017e-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: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94685/likelihoodResults_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.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) = 10084.9925977
delta logL = -0.0010432785748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10084.9915578
delta logL = -3.37636265613e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12731E-03   1.0000          .0000       .10000E+07
     2 'Index     '    2.8777       1.0000          .0000       10.000    
     3 'Normalizat'    1.1282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0483       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=   10084.99     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      273 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37192E-08    .39344        .48151E-02** at limit **
   2  Index         3.3748        2.0518        .50000       -.27285E-09
   3  Normalizat    1.1281        .22460E-02    .78804E-01    .60288E-03
   4  Prefactor     1.0483        .10963E-02    .40009E-01    .57478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71925e-09
  Index      = 3.37481
  Normalizat = 1.12805
  Prefactor  = 1.04834
 **********
 **   18 **HESSE 
 **********

 FCN=   10084.99     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      312 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37192E-08    .60435        .38970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3748        2.1498        .50000       -.33105    
   3  Normalizat    1.1281        .23569E-02    .34883E-03   -.88856    
   4  Prefactor     1.0483        .11524E-02    .17497E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02634e-12
Minuit parameter uncertainties:
  1  9.46319e-05
  2  2.23169
  3  0.00235687
  4  0.00115237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94685': 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) = 10084.9915544
delta logL = -3.51064954884e-10

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.719e-09  9.463e-05  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  3.375e+00  2.232e+00  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.048e+00  1.152e-03  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:  1.128e+00  2.357e-03  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/94685/cmap_HighResolution_684633601_684892801_4FGL_J1037.4-2933_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2022-09-16 15:40:54.002222', job_id='94685', GAL2='1.05', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1663368054.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-3.51e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1718' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:40:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 94685: <4FGL_J1037.4-2933_daily_bin1718> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1718 159.356 -29.5568 684633601 684892801 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 :                                   668.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            934 sec.

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

