/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 123 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1531
RA = 159.356, Dec = -29.5568
tmin = 636163201, tmax = 636422401
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='14952', job_status='RUN', time_executed='2021-09-02 05:34:04.734944', time_epoch_executed='1630586044.73' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14952

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14952/ft1_4FGL_J1037.4-2933_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14952/ft1_4FGL_J1037.4-2933_daily_bin1531.fits outfile=/scratch/kocevski/14952/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1531.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=636163201.0 tmax=636422401.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.77
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits" evtable="EVENTS" scfile=/scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits sctable="SC_DATA" outfile=/scratch/kocevski/14952/ltcube_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.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/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits
.....................!
real 13.62
user 13.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/14952/ltcube_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.fits outfile=/scratch/kocevski/14952/expmap_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.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/14952/ltcube_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.fits
.....................!
real 192.39
user 186.19
sys 5.28

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/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits scfile=/scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits outfile=/scratch/kocevski/14952/cmap_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.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/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits scfile=/scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits outfile=/scratch/kocevski/14952/cmap_HighResolution_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14952/Model_4FGL_J1037.4-2933_daily_bin1531.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/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits.....................!
real 85.45
user 83.90
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits', '/scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits', expMap='/scratch/kocevski/14952/expmap_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.fits', expCube='/scratch/kocevski/14952/ltcube_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14952/Model_4FGL_J1037.4-2933_daily_bin1531.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  1.000e-04  1.000e+04 ( 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/14952/ft1_filtered_4FGL_J1037.4-2933_daily_bin1531.fits
Spacecraft file(s): /scratch/kocevski/14952/ft2_4FGL_J1037.4-2933_daily_bin1531.fits
Exposure map: /scratch/kocevski/14952/expmap_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.fits
Exposure cube: /scratch/kocevski/14952/ltcube_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14952/Model_4FGL_J1037.4-2933_daily_bin1531.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) = 8535.38379157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7753       1.0000         .10000E-03   10000.    
     2 'norm      '    .63562       1.0000         .10000E-03   10000.    
     3 'norm      '    5.4389       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3134       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17381E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.122       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3665       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9161       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0061       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0928       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.

 FCN=   8535.382     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2197 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7750        10.792        .88419E-06   -.26347E-03
   2  norm          .63564        1.1996        .27721E-06   -.39936E-03
   3  norm          5.4387        7.8759        .24016E-05   -.75668E-03
   4  Prefactor     42.756        28.117        .10999E-06   -.25481E-05
   5  Prefactor     .10000E-03    4.2795        .12856E-05** at limit **
   6  norm          5.3120        7.7680       -.59143E-07   -.94978E-04
   7  norm          .10000E-03    2.7288       -.71141E-07** at limit **
   8  Prefactor     .10000E-03    22.267       -.39695E-05** at limit **
   9  Prefactor     .10000E-03    5.5140       -.57137E-06** at limit **
  10  Prefactor     .10001E-03    18.705        .42709E-05** at limit **
  11  norm          .10000E-03    1.9921        .10134E-06** at limit **
  12  Prefactor     .10000E-03    3.3451        .47931E-06** at limit **
  13  Prefactor     .10000E-03    1.7889        .16761E-06** at limit **
  14  Prefactor     16.131        10.681        .11396E-06   -.14042E-03
  15  Prefactor     .10000E-03    3.7418       -.13269E-05** at limit **
  16  Prefactor     .10000E-03    1.9913        .78707E-07** at limit **
  17  Prefactor     .10000E-03    15.390       -.11504E-05** at limit **
  18  Prefactor     1.3667        5.9391        .13467E-05   -.20656E-03
  19  Prefactor     7.9175        54.910        .14734E-05    .17659E-04
  20  Normalizat    1.0061        .20824       -.59457E-06   -.16154E-04
  21  Prefactor     1.0928        .10363       -.15013E-06    .15397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.77496
  norm       = 0.635638
  norm       = 5.43868
  Prefactor  = 42.7558
  Prefactor  = 0.000100001
  norm       = 5.31196
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36675
  Prefactor  = 7.91747
  Normalizat = 1.00612
  Prefactor  = 1.09276
 **********
 **   18 **HESSE 
 **********

 FCN=   8535.382     FROM HESSE     STATUS=OK           317 CALLS     2514 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7750        10.885        .67655E-03   -1.5115    
   2  norm          .63564        1.1784        .13464E-03   -1.5549    
   3  norm          5.4387        8.4838        .86150E-03   -1.5242    
   4  Prefactor     42.756        28.113        .61309E-04   -1.4399    
   5  Prefactor     .10000E-03    4.4052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3120        7.7518        .17436E-03   -1.5247    
   7  norm          .10000E-03    2.7378        .14897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    20.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0308        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3660        .16545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4626        .22801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.131        10.366        .99751E-04   -1.4904    
  15  Prefactor     .10000E-03    3.9532        .35190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9961        .12733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3667        6.0130        .37322E-03   -1.5474    
  19  Prefactor     7.9175        54.972        .14251E-03   -1.5145    
  20  Normalizat    1.0061        .23914        .35220E-03   -.92826    
  21  Prefactor     1.0928        .12057        .17236E-03   -.89698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91157e-09
Minuit parameter uncertainties:
  1  10.8874
  2  1.17847
  3  8.48563
  4  28.1212
  5  0.000104854
  6  7.75321
  7  4.93757e-06
  8  0.000636198
  9  5.2962e-05
  10  0.000674551
  11  2.93418e-07
  12  3.45791e-05
  13  0.000103344
  14  10.3672
  15  8.36124e-05
  16  3.96188e-06
  17  0.000175249
  18  5.73426
  19  41.7794
  20  0.239399
  21  0.120598
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.746e-04  1.000e-04  1.000e+04 ( 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.093e+00  1.206e-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:  1.006e+00  2.394e-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: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14952/likelihoodResults_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.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) = 8535.38187555
delta logL = -0.000237101090534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8535.38163814
delta logL = 3.04864443024e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11617E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4886       1.0000          .0000       10.000    
     3 'Normalizat'    1.0062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0927       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=   8535.382     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      223 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    2.7583        .90712E-01** at limit **
   2  Index         2.6084        2.6452        .50000       -.50155E-04
   3  Normalizat    1.0061        .33747E-02    .79577E-01    .17435E-03
   4  Prefactor     1.0928        .17224E-02    .37869E-01    .81094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100744
  Index      = 2.60841
  Normalizat = 1.00612
  Prefactor  = 1.09276
 **********
 **   18 **HESSE 
 **********

 FCN=   8535.382     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      258 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10074E-03    2201.9        .46417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6084        6.2826        .50000       -.49874    
   3  Normalizat    1.0061        .31105E-01    .35220E-03   -.92826    
   4  Prefactor     1.0928        .15885E-01    .17236E-03   -.89698    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.92191e-07
Minuit parameter uncertainties:
  1  0.0842607
  2  25.2467
  3  0.0311051
  4  0.015885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14952': 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) = 8535.38163661
delta logL = 1.83423981071e-06

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.007e-04  8.426e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.608e+00  2.525e+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.093e+00  1.588e-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.006e+00  3.111e-02  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/14952/cmap_HighResolution_636163201_636422401_4FGL_J1037.4-2933_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-02 05:47:22.021242', job_id='14952', GAL2='1.09', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630586842.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1531' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:47:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 14952: <4FGL_J1037.4-2933_daily_bin1531> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1531> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:48 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:31:49 2021
Terminated at Thu Sep  2 05:47:22 2021
Results reported at Thu Sep  2 05:47:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1531 159.356 -29.5568 636163201 636422401 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

