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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1584
RA = 159.356, Dec = -29.5568
tmin = 649900801, tmax = 650160001
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='15039', job_status='RUN', time_executed='2021-09-02 05:32:27.394451', time_epoch_executed='1630585947.39' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15039

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15039/ft1_4FGL_J1037.4-2933_daily_bin1584.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15039/ft2_4FGL_J1037.4-2933_daily_bin1584.fits


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

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

Done.
real 5.13
user 4.84
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15039/ft1_filtered_4FGL_J1037.4-2933_daily_bin1584.fits" evtable="EVENTS" scfile=/scratch/kocevski/15039/ft2_4FGL_J1037.4-2933_daily_bin1584.fits sctable="SC_DATA" outfile=/scratch/kocevski/15039/ltcube_649900801_650160001_4FGL_J1037.4-2933_daily_bin1584.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/15039/ft2_4FGL_J1037.4-2933_daily_bin1584.fits
.....................!
real 15.18
user 14.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15039/ft1_filtered_4FGL_J1037.4-2933_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/15039/ft2_4FGL_J1037.4-2933_daily_bin1584.fits sctable="SC_DATA" expcube=/scratch/kocevski/15039/ltcube_649900801_650160001_4FGL_J1037.4-2933_daily_bin1584.fits outfile=/scratch/kocevski/15039/expmap_649900801_650160001_4FGL_J1037.4-2933_daily_bin1584.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/15039/ltcube_649900801_650160001_4FGL_J1037.4-2933_daily_bin1584.fits
.....................!
real 192.70
user 187.86
sys 4.23

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/15039/ft1_filtered_4FGL_J1037.4-2933_daily_bin1584.fits scfile=/scratch/kocevski/15039/ft2_4FGL_J1037.4-2933_daily_bin1584.fits outfile=/scratch/kocevski/15039/cmap_649900801_650160001_4FGL_J1037.4-2933_daily_bin1584.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.64
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9175       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3548       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.489       1.0000         .10000E-03   10000.    
    11 'norm      '    .85533       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26009E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7953       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.854       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2077       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96569       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=   8578.797     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2214 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3525        .61542E-09** at limit **
   2  norm          2.9174        1.6364        .28527E-07   -.17617E-04
   3  norm          8.3546        7.4720        .49039E-07    .19908E-05
   4  Prefactor     .10000E-03    11.376        .17535E-06** at limit **
   5  Prefactor     .10000E-03    3.4771        .61777E-08** at limit **
   6  norm          .10000E-03    3.2475       -.50467E-07** at limit **
   7  norm          .10000E-03    2.5244       -.48032E-07** at limit **
   8  Prefactor     6.1432        9.6380        .10347E-05   -.55764E-04
   9  Prefactor     .10000E-03    7.8383        .34607E-06** at limit **
  10  Prefactor     16.468        19.054        .18130E-05    .21623E-03
  11  norm          .86543        4.6476       -.16983E-05   -.64567E-03
  12  Prefactor     .10000E-03    16.408        .10076E-06** at limit **
  13  Prefactor     6.8912        5.1582        .39209E-06    .67607E-03
  14  Prefactor     2.1150        12.137       -.24063E-06   -.63479E-06
  15  Prefactor     .10001E-03    3.3533        .28635E-06** at limit **
  16  Prefactor     2.8656        7.8162        .53501E-05   -.26679E-03
  17  Prefactor     .10000E-03    8.7387       -.30450E-06** at limit **
  18  Prefactor     9.7953        8.8673        .13136E-06    .65769E-04
  19  Prefactor     55.849        60.997       -.54383E-06   -.55104E-04
  20  Normalizat    1.2077        .20977        .25208E-07    .18476E-03
  21  Prefactor     .96566        .99939E-01   -.41050E-06    .36590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.9174
  norm       = 8.35457
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.14316
  Prefactor  = 0.0001
  Prefactor  = 16.4681
  norm       = 0.865429
  Prefactor  = 0.000100001
  Prefactor  = 6.89116
  Prefactor  = 2.11498
  Prefactor  = 0.000100007
  Prefactor  = 2.86556
  Prefactor  = 0.000100002
  Prefactor  = 9.7953
  Prefactor  = 55.8492
  Normalizat = 1.20772
  Prefactor  = 0.965663
 **********
 **   18 **HESSE 
 **********

 FCN=   8578.797     FROM HESSE     STATUS=OK           325 CALLS     2539 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9174        1.6375        .84974E-04   -1.5366    
   3  norm          8.3546        7.4723        .13869E-03   -1.5130    
   4  Prefactor     .10000E-03    11.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4786        .16867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2592        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5345        .14370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1432        9.6347        .80987E-03   -1.5212    
   9  Prefactor     .10000E-03    7.8556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.468        19.087        .98633E-04   -1.4896    
  11  norm          .86543        4.9500        .33788E-03   -1.5522    
  12  Prefactor     .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8912        5.1016        .15045E-03   -1.5183    
  14  Prefactor     2.1150        11.875        .28370E-03   -1.5417    
  15  Prefactor     .10001E-03    3.6378        .48290E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8656        7.8263        .12005E-02   -1.5369    
  17  Prefactor     .10000E-03    8.6717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7953        8.8723        .12804E-03   -1.5082    
  19  Prefactor     55.849        60.997        .53675E-04   -1.4212    
  20  Normalizat    1.2077        .24925        .32665E-03   -.86364    
  21  Prefactor     .96566        .11868        .17986E-03   -.93883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05732e-09
Minuit parameter uncertainties:
  1  1.47744e-06
  2  1.63756
  3  7.47313
  4  0.000215381
  5  6.29461e-06
  6  2.60923e-06
  7  6.95487e-06
  8  9.63711
  9  0.00010244
  10  19.0939
  11  4.13977
  12  0.000185218
  13  5.10197
  14  10.0259
  15  0.000310455
  16  7.82906
  17  0.000249956
  18  8.8735
  19  61.0652
  20  0.249496
  21  0.118711
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.647e+01  1.909e+01  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:  9.657e-01  1.187e-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.208e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/15039/likelihoodResults_649900801_650160001_4FGL_J1037.4-2933_daily_bin1584.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) = 8578.61313722
delta logL = 0.184198492532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8578.60618299
delta logL = 0.191152721842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2678       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9587       1.0000          .0000       10.000    
     3 'Normalizat'    1.1765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97525       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=   8578.606     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      284 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2695        25.528        .13165E-03    .24491E-03
   2  Index         2.9595        1.5393        .72773E-02    .11340E-03
   3  Normalizat    1.1765        .24616        .33023E-03    .70230E-04
   4  Prefactor     .97530        .11979        .17904E-03    .15981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.26954
  Index      = 2.95949
  Normalizat = 1.17652
  Prefactor  = 0.975297
 **********
 **   18 **HESSE 
 **********

 FCN=   8578.606     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2695        15.884        .52659E-05   -1.5099    
   2  Index         2.9595        .96644        .29109E-03   -.42037    
   3  Normalizat    1.1765        .24217        .13209E-04   -.87332    
   4  Prefactor     .97530        .11839        .35808E-04   -.93558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17222e-11
Minuit parameter uncertainties:
  1  15.8914
  2  0.973808
  3  0.242399
  4  0.118418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15039': 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) = 8578.60617974
delta logL = 0.191155981087

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.270e+00  1.589e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.959e+00  9.738e-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:  9.753e-01  1.184e-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.177e+00  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.96 +/- 0.97
Photon Flux (Free Index): 6.87e-08 +/- 6.50e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.20e-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/15039/cmap_HighResolution_649900801_650160001_4FGL_J1037.4-2933_daily_bin1584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='1.40e-05', photon_flux_error='5.12e-08', dlogl='1.91e-01', energy_flux='1.42e-05', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-09-02 05:45:35.199973', photon_index_error2='0.97', photon_index2='2.96', ts='1.41', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.20e-05', EG='1.21', time_epoch_completed='1630586735.2', return_code='0', job_id='15039', GAL2='0.98', EG2='1.18', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='6.50e-08', ts2='1.85', photon_index='2.41' WHERE bin_id='1584' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 15039: <4FGL_J1037.4-2933_daily_bin1584> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1584> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:55 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:57 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:57 2021
Terminated at Thu Sep  2 05:45:35 2021
Results reported at Thu Sep  2 05:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1584 159.356 -29.5568 649900801 650160001 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

