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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1555
RA = 159.356, Dec = -29.5568
tmin = 642384001, tmax = 642643201
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='14993', job_status='RUN', time_executed='2021-09-02 05:33:12.549425', time_epoch_executed='1630585992.55' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14993

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14993/ft1_4FGL_J1037.4-2933_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14993/ft2_4FGL_J1037.4-2933_daily_bin1555.fits


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

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

Done.
real 3.67
user 3.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14993/ft1_filtered_4FGL_J1037.4-2933_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/14993/ft2_4FGL_J1037.4-2933_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/14993/ltcube_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.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/14993/ft2_4FGL_J1037.4-2933_daily_bin1555.fits
.....................!
real 13.60
user 13.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14993/ft1_filtered_4FGL_J1037.4-2933_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/14993/ft2_4FGL_J1037.4-2933_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/14993/ltcube_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.fits outfile=/scratch/kocevski/14993/expmap_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.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/14993/ltcube_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.fits
.....................!
real 190.43
user 185.19
sys 4.82

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/14993/ft1_filtered_4FGL_J1037.4-2933_daily_bin1555.fits scfile=/scratch/kocevski/14993/ft2_4FGL_J1037.4-2933_daily_bin1555.fits outfile=/scratch/kocevski/14993/cmap_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.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.65
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14993/ft1_filtered_4FGL_J1037.4-2933_daily_bin1555.fits scfile=/scratch/kocevski/14993/ft2_4FGL_J1037.4-2933_daily_bin1555.fits outfile=/scratch/kocevski/14993/cmap_HighResolution_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.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.75
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14993/ft1_filtered_4FGL_J1037.4-2933_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/14993/ft2_4FGL_J1037.4-2933_daily_bin1555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14993/Model_4FGL_J1037.4-2933_daily_bin1555.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/14993/ft1_filtered_4FGL_J1037.4-2933_daily_bin1555.fits.....................!
real 101.81
user 98.67
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4367       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4292       1.0000         .10000E-03   10000.    
     3 'norm      '    11.839       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2743       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9350       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.255       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3963       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7052       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3628       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3308       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.380       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16143E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6812       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69233       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1402       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=   10302.21     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2216 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4372        5.3514        .22679E-05    .16473E-03
   2  norm          5.4292        1.4726        .69528E-07   -.15821E-03
   3  norm          11.845        10.143        .33363E-05   -.78153E-04
   4  Prefactor     11.919        18.257        .45927E-05   -.32475E-04
   5  Prefactor     9.2764        13.090        .39767E-07   -.69930E-04
   6  norm          .10000E-03    1.7041       -.20137E-07** at limit **
   7  norm          .10000E-03    3.1974       -.59654E-07** at limit **
   8  Prefactor     .10000E-03    2.4580       -.25428E-07** at limit **
   9  Prefactor     6.9410        9.4476       -.21693E-05   -.12910E-03
  10  Prefactor     19.270        15.716       -.42142E-05   -.99310E-04
  11  norm          1.3930        3.1448        .61682E-06   -.12604E-02
  12  Prefactor     .10000E-03    6.0391        .16374E-06** at limit **
  13  Prefactor     4.7054        4.0670        .27972E-06   -.71205E-03
  14  Prefactor     6.3630        9.3049        .63898E-05   -.15508E-03
  15  Prefactor     3.3311        3.2647        .43905E-06   -.27666E-03
  16  Prefactor     6.0112        5.4309        .36501E-05    .30921E-04
  17  Prefactor     12.380        21.278       -.15350E-05   -.36277E-04
  18  Prefactor     .10000E-03    4.3575        .44198E-06** at limit **
  19  Prefactor     1.6274        171.11       -.40063E-04   -.19000E-04
  20  Normalizat    .69228        .19901       -.34085E-05   -.11925E-03
  21  Prefactor     1.1402        .97407E-01    .20143E-07   -.10526E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.43718
  norm       = 5.42917
  norm       = 11.8449
  Prefactor  = 11.9192
  Prefactor  = 9.27644
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.94099
  Prefactor  = 19.2704
  norm       = 1.39301
  Prefactor  = 0.0001
  Prefactor  = 4.7054
  Prefactor  = 6.36304
  Prefactor  = 3.33111
  Prefactor  = 6.01122
  Prefactor  = 12.3798
  Prefactor  = 0.0001
  Prefactor  = 1.62738
  Normalizat = 0.69228
  Prefactor  = 1.14022
 **********
 **   18 **HESSE 
 **********

 FCN=   10302.21     FROM HESSE     STATUS=OK           331 CALLS     2547 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4372        5.3707        .17234E-03   -1.5242    
   2  norm          5.4292        1.4724        .61515E-04   -1.5242    
   3  norm          11.845        10.107        .11643E-03   -1.5020    
   4  Prefactor     11.919        18.214        .11601E-03   -1.5017    
   5  Prefactor     9.2764        13.073        .13160E-03   -1.5099    
   6  norm          .10000E-03    1.7059        .12937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.2670        .17719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4624        .15541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9410        9.4170        .15234E-03   -1.5181    
  10  Prefactor     19.270        15.221        .91276E-04   -1.4830    
  11  norm          1.3930        3.0242        .22730E-03   -1.5472    
  12  Prefactor     .10000E-03    6.0793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7054        4.0198        .16460E-03   -1.5274    
  14  Prefactor     6.3630        9.2078        .15912E-03   -1.5203    
  15  Prefactor     3.3311        3.2591        .17442E-03   -1.5343    
  16  Prefactor     6.0112        5.4301        .16376E-03   -1.5218    
  17  Prefactor     12.380        21.119        .11385E-03   -1.5004    
  18  Prefactor     .10000E-03    51.680        .40710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6274        176.65        .32488E-03   -1.5453    
  20  Normalizat    .69228        .22006        .40257E-03   -1.0420    
  21  Prefactor     1.1402        .10954        .16556E-03   -.88191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12161e-09
Minuit parameter uncertainties:
  1  5.37113
  2  1.47246
  3  10.1081
  4  18.2228
  5  13.0773
  6  4.22611e-06
  7  3.52348e-06
  8  2.25706e-06
  9  9.41901
  10  15.2241
  11  3.02455
  12  3.79317e-05
  13  4.02003
  14  9.20982
  15  3.25932
  16  5.43057
  17  21.1321
  18  0.000256171
  19  34.0129
  20  0.220345
  21  0.10956
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.927e+01  1.522e+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:  1.140e+00  1.096e-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:  6.923e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.31e-05

TS (Fixed Index): 3.01
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14993/likelihoodResults_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.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) = 10302.1760035
delta logL = 0.0329412876163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10302.1723349
delta logL = 0.0366099517141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.252       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2709       1.0000          .0000       10.000    
     3 'Normalizat'    .69908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1380       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=   10302.17     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.254        19.276        .84911E-04    .48200E-05
   2  Index         2.2709        .53830        .83815E-02    .55964E-03
   3  Normalizat    .69907        .20966        .40077E-03   -.47600E-04
   4  Prefactor     1.1380        .10807        .16570E-03   -.14397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2543
  Index      = 2.27086
  Normalizat = 0.699071
  Prefactor  = 1.13799
 **********
 **   18 **HESSE 
 **********

 FCN=   10302.17     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.254        18.604        .33965E-05   -1.4764    
   2  Index         2.2709        .51941        .16763E-02   -.57738    
   3  Normalizat    .69907        .20963        .16031E-04   -1.0393    
   4  Prefactor     1.1380        .10809        .33139E-04   -.88262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80504e-12
Minuit parameter uncertainties:
  1  18.6084
  2  0.520746
  3  0.209866
  4  0.108106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14993': 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) = 10302.1723349
delta logL = 0.0366099660023

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.225e+01  1.861e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.271e+00  5.207e-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.138e+00  1.081e-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:  6.991e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.27 +/- 0.52
Photon Flux (Free Index): 4.67e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.54e-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/14993/cmap_HighResolution_642384001_642643201_4FGL_J1037.4-2933_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='1.85e-05', photon_flux_error='4.08e-08', dlogl='3.66e-02', energy_flux='1.66e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-02 05:47:36.669881', photon_index_error2='0.52', photon_index2='2.27', ts='3.01', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.54e-05', EG='0.69', time_epoch_completed='1630586856.67', return_code='0', job_id='14993', GAL2='1.14', EG2='0.70', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.86e-08', ts2='3.10', photon_index='2.41' WHERE bin_id='1555' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:47:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 14993: <4FGL_J1037.4-2933_daily_bin1555> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1555> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:51 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:54 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:54 2021
Terminated at Thu Sep  2 05:47:37 2021
Results reported at Thu Sep  2 05:47:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1555 159.356 -29.5568 642384001 642643201 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 :                                   855.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

