/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 5 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1037.4-2933_daily_bin240
RA = 159.356, Dec = -29.5568
tmin = 301536001, tmax = 301795201
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='9043', job_status='RUN', time_executed='2021-09-02 05:13:07.704115', time_epoch_executed='1630584787.7' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9043/ft1_4FGL_J1037.4-2933_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9043/ft2_4FGL_J1037.4-2933_daily_bin240.fits


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

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

Done.
real 4.68
user 4.35
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9043/ft1_filtered_4FGL_J1037.4-2933_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/9043/ft2_4FGL_J1037.4-2933_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/9043/ltcube_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.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/9043/ft2_4FGL_J1037.4-2933_daily_bin240.fits
.....................!
real 15.52
user 15.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9043/ft1_filtered_4FGL_J1037.4-2933_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/9043/ft2_4FGL_J1037.4-2933_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/9043/ltcube_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.fits outfile=/scratch/kocevski/9043/expmap_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.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/9043/ltcube_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.fits
.....................!
real 194.14
user 188.08
sys 5.48

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/9043/ft1_filtered_4FGL_J1037.4-2933_daily_bin240.fits scfile=/scratch/kocevski/9043/ft2_4FGL_J1037.4-2933_daily_bin240.fits outfile=/scratch/kocevski/9043/cmap_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9043/ft1_filtered_4FGL_J1037.4-2933_daily_bin240.fits scfile=/scratch/kocevski/9043/ft2_4FGL_J1037.4-2933_daily_bin240.fits outfile=/scratch/kocevski/9043/cmap_HighResolution_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=159.356 yref=-29.5568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9043/ft1_filtered_4FGL_J1037.4-2933_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/9043/ft2_4FGL_J1037.4-2933_daily_bin240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9043/Model_4FGL_J1037.4-2933_daily_bin240.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/9043/ft1_filtered_4FGL_J1037.4-2933_daily_bin240.fits.....................!
real 81.48
user 79.99
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .79669       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9925       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8653       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.859       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.462       1.0000         .10000E-03   10000.    
    11 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1558       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3267       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6732       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.970       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0577       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=   7790.559     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1869 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7765        .65856E-07** at limit **
   2  norm          .79667        1.4291        .16526E-06   -.34414E-04
   3  norm          3.9921        6.7236        .18860E-05    .55590E-04
   4  Prefactor     .10000E-03    18.650       -.65334E-06** at limit **
   5  Prefactor     6.8664        13.124        .19006E-06    .52399E-04
   6  norm          .10000E-03    3.9821        .42812E-07** at limit **
   7  norm          .10000E-03    5.7190       -.12086E-06** at limit **
   8  Prefactor     13.859        12.006        .77138E-07   -.10658E-04
   9  Prefactor     .10001E-03    25.642       -.31946E-06** at limit **
  10  Prefactor     17.467        14.752       -.33549E-06   -.63776E-04
  11  norm          .10000E-03    1.5500        .79277E-07** at limit **
  12  Prefactor     1.1560        12.487        .32780E-06   -.93776E-04
  13  Prefactor     3.0686        4.5194        .30508E-06   -.11285E-03
  14  Prefactor     8.3282        9.5983        .69031E-07   -.83585E-04
  15  Prefactor     2.6732        4.2378        .31288E-05   -.21347E-04
  16  Prefactor     .10000E-03    5.4284        .15557E-06** at limit **
  17  Prefactor     .10000E-03    21.297       -.10977E-05** at limit **
  18  Prefactor     11.970        12.993        .33902E-06    .97392E-04
  19  Prefactor     .10000E-03    16.006        .94744E-06** at limit **
  20  Normalizat    1.0301        .22442       -.14873E-05   -.70522E-04
  21  Prefactor     1.0577        .10829       -.47886E-07   -.15287E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.796669
  norm       = 3.99209
  Prefactor  = 0.0001
  Prefactor  = 6.86636
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8587
  Prefactor  = 0.000100006
  Prefactor  = 17.4672
  norm       = 0.0001
  Prefactor  = 1.15601
  Prefactor  = 3.06857
  Prefactor  = 8.32822
  Prefactor  = 2.67324
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.9703
  Prefactor  = 0.0001
  Normalizat = 1.03009
  Prefactor  = 1.05773
 **********
 **   18 **HESSE 
 **********

 FCN=   7790.559     FROM HESSE     STATUS=OK           319 CALLS     2188 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .79667        1.3967        .13445E-03   -1.5529    
   3  norm          3.9921        6.7174        .10092E-02   -1.5308    
   4  Prefactor     .10000E-03    18.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8664        13.119        .15312E-03   -1.5184    
   6  norm          .10000E-03    3.9976        .17197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.8237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.859        12.007        .10759E-03   -1.4963    
   9  Prefactor     .10001E-03    26.659        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.467        14.696        .95845E-04   -1.4872    
  11  norm          .10000E-03    1.5619        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1560        12.543        .42947E-03   -1.5493    
  13  Prefactor     3.0686        4.4668        .19893E-03   -1.5358    
  14  Prefactor     8.3282        9.5446        .13893E-03   -1.5131    
  15  Prefactor     2.6732        4.2385        .10995E-02   -1.5381    
  16  Prefactor     .10000E-03    5.4998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.970        13.007        .11578E-03   -1.5016    
  19  Prefactor     .10000E-03    16.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0301        .26188        .34917E-03   -.92029    
  21  Prefactor     1.0577        .12760        .17341E-03   -.90829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84265e-10
Minuit parameter uncertainties:
  1  7.41927e-06
  2  1.39679
  3  6.71868
  4  0.000176337
  5  13.1241
  6  1.07155e-05
  7  6.18218e-05
  8  12.0087
  9  0.000822796
  10  14.6994
  11  5.64446e-06
  12  7.6174
  13  4.46729
  14  9.5463
  15  4.23895
  16  3.9215e-05
  17  0.000236417
  18  13.0102
  19  0.0001695
  20  0.262213
  21  0.12764
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.747e+01  1.470e+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.058e+00  1.276e-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.030e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/9043/likelihoodResults_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.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) = 7790.49075823
delta logL = 0.0679693594338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7790.4616334
delta logL = 0.0970941907908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.814       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1240       1.0000          .0000       10.000    
     3 'Normalizat'    1.0433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0538       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=   7790.462     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      252 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.813        19.834        .85760E-04    .30622E-04
   2  Index         2.1237        .65532        .98717E-02    .14946E-04
   3  Normalizat    1.0433        .25262        .34725E-03    .70749E-04
   4  Prefactor     1.0538        .12686        .17370E-03    .15513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8131
  Index      = 2.12372
  Normalizat = 1.04334
  Prefactor  = 1.05381
 **********
 **   18 **HESSE 
 **********

 FCN=   7790.462     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.813        19.447        .34304E-05   -1.4774    
   2  Index         2.1237        .64248        .39487E-03   -.61292    
   3  Normalizat    1.0433        .25269        .13890E-04   -.91592    
   4  Prefactor     1.0538        .12693        .34740E-04   -.90957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05615e-11
Minuit parameter uncertainties:
  1  19.4526
  2  0.645148
  3  0.252985
  4  0.12697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9043': 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) = 7790.46163305
delta logL = 0.0970945423878

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.181e+01  1.945e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.124e+00  6.451e-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.054e+00  1.270e-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.043e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.31
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.12 +/- 0.65
Photon Flux (Free Index): 3.60e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.96e-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/9043/cmap_HighResolution_301536001_301795201_4FGL_J1037.4-2933_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='1.88e-05', photon_flux_error='3.94e-08', dlogl='9.71e-02', energy_flux='1.51e-05', photon_flux2='3.60e-08', job_status='DONE', time_completed='2021-09-02 05:24:54.459078', photon_index_error2='0.65', photon_index2='2.12', ts='3.12', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.96e-05', EG='1.03', time_epoch_completed='1630585494.46', return_code='0', job_id='9043', GAL2='1.05', EG2='1.04', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.02e-08', ts2='3.31', photon_index='2.41' WHERE bin_id='240' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:24:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 9043: <4FGL_J1037.4-2933_daily_bin240> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin240> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 05:11:47 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:12:53 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:12:53 2021
Terminated at Thu Sep  2 05:24:55 2021
Results reported at Thu Sep  2 05:24:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin240 159.356 -29.5568 301536001 301795201 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 :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            788 sec.

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

