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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1349
RA = 159.356, Dec = -29.5568
tmin = 588988801, tmax = 589248001
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='14667', job_status='RUN', time_executed='2021-09-02 05:32:21.594469', time_epoch_executed='1630585941.59' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14667

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14667/ft1_4FGL_J1037.4-2933_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14667/ft2_4FGL_J1037.4-2933_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14667/ft1_4FGL_J1037.4-2933_daily_bin1349.fits outfile=/scratch/kocevski/14667/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1349.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=588988801.0 tmax=589248001.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.16
user 2.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14667/ft1_filtered_4FGL_J1037.4-2933_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/14667/ft2_4FGL_J1037.4-2933_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/14667/ltcube_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.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/14667/ft2_4FGL_J1037.4-2933_daily_bin1349.fits
.....................!
real 14.90
user 14.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14667/ft1_filtered_4FGL_J1037.4-2933_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/14667/ft2_4FGL_J1037.4-2933_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/14667/ltcube_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.fits outfile=/scratch/kocevski/14667/expmap_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.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/14667/ltcube_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.fits
.....................!
real 190.95
user 185.97
sys 4.41

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/14667/ft1_filtered_4FGL_J1037.4-2933_daily_bin1349.fits scfile=/scratch/kocevski/14667/ft2_4FGL_J1037.4-2933_daily_bin1349.fits outfile=/scratch/kocevski/14667/cmap_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14667/ft1_filtered_4FGL_J1037.4-2933_daily_bin1349.fits scfile=/scratch/kocevski/14667/ft2_4FGL_J1037.4-2933_daily_bin1349.fits outfile=/scratch/kocevski/14667/cmap_HighResolution_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.904       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3173       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5216       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6746       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.882       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7475       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17591E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13474E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28685       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12054E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7215       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89293       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=   9761.629     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2185 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.904        9.2367        .11335E-06   -.89819E-04
   2  norm          8.3162        2.2170        .11020E-07    .12079E-03
   3  norm          .10000E-03    9.6907       -.85662E-07** at limit **
   4  Prefactor     .10001E-03    26.523       -.46069E-05** at limit **
   5  Prefactor     8.5265        10.181       -.60755E-06    .38901E-03
   6  norm          .10000E-03    9.3446        .73412E-06** at limit **
   7  norm          4.6740        6.2545       -.10695E-06    .11433E-03
   8  Prefactor     .10000E-03    10.558       -.11608E-05** at limit **
   9  Prefactor     .10000E-03    9.0248        .12344E-05** at limit **
  10  Prefactor     22.879        24.531        .54856E-06    .36334E-03
  11  norm          3.7527        4.4849       -.32109E-06    .54524E-03
  12  Prefactor     .10000E-03    4.8777        .20425E-07** at limit **
  13  Prefactor     .10002E-03    3.4549        .12702E-05** at limit **
  14  Prefactor     .10004E-03    57.327       -.14860E-04** at limit **
  15  Prefactor     .28534        3.9018        .60787E-06    .36165E-05
  16  Prefactor     15.574        9.5453       -.13164E-07    .12598E-04
  17  Prefactor     .10000E-03    12.101       -.19454E-06** at limit **
  18  Prefactor     .10000E-03    6.0555        .87378E-07** at limit **
  19  Prefactor     .10000E-03    20.605        .34848E-05** at limit **
  20  Normalizat    1.7223        .23316       -.25426E-06    .15179E-03
  21  Prefactor     .89273        .10267       -.59162E-07    .25733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9045
  norm       = 8.31619
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 8.52651
  norm       = 0.0001
  norm       = 4.67405
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.8791
  norm       = 3.75266
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100044
  Prefactor  = 0.285336
  Prefactor  = 15.5737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.72232
  Prefactor  = 0.892735
 **********
 **   18 **HESSE 
 **********

 FCN=   9761.629     FROM HESSE     STATUS=OK           317 CALLS     2502 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.904        9.2468        .58052E-03   -1.5018    
   2  norm          8.3162        2.2207        .73168E-04   -1.5131    
   3  norm          .10000E-03    9.8729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    27.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5265        10.449        .68661E-03   -1.5124    
   6  norm          .10000E-03    9.5549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6740        6.2459        .18613E-03   -1.5276    
   8  Prefactor     .10000E-03    10.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.879        23.437        .83736E-04   -1.4751    
  11  norm          3.7527        4.4591        .18702E-03   -1.5321    
  12  Prefactor     .10000E-03    4.8825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    7.0953        .31578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    61.430        .48034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .28534        22.214        .36707E-02   -1.5601    
  16  Prefactor     15.574        9.5506        .10148E-03   -1.4918    
  17  Prefactor     .10000E-03    12.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7223        .27554        .33113E-03   -.71709    
  21  Prefactor     .89273        .12322        .20250E-03   -.96395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01206e-09
Minuit parameter uncertainties:
  1  9.24788
  2  2.22073
  3  2.21084e-05
  4  0.0008377
  5  10.4516
  6  0.000132872
  7  6.24677
  8  0.000138898
  9  0.000160897
  10  23.4465
  11  4.45949
  12  3.81023e-06
  13  0.000672586
  14  0.0032877
  15  5.03633
  16  9.55149
  17  2.57566e-05
  18  9.63472e-06
  19  0.000637323
  20  0.27579
  21  0.123257
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.288e+01  2.345e+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:  8.927e-01  1.233e-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.722e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.14e-08 +/- 6.29e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/14667/likelihoodResults_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.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) = 9760.66616559
delta logL = 0.963025820443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9760.65667252
delta logL = 0.97251888593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1304       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8566       1.0000          .0000       10.000    
     3 'Normalizat'    1.6017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93225       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9760.657     FROM MIGRAD    STATUS=FAILED        83 CALLS      340 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1309        47.123        .93860E-04    .45603E-02
   2  Index         3.8567        3.4259        .41775E-02    .10106E-02
   3  Normalizat    1.6019        .25543        .34060E-03    .60653E-03
   4  Prefactor     .93219        .11547        .19869E-03    .78917E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9760.657     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      423 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1309        47.123        .19424E-03    .45603E-02
   2  Index         3.8567        3.4259        .94624E-03    .10106E-02
   3  Normalizat    1.6019        .25543        .23536E-03    .60653E-03
   4  Prefactor     .93219        .11547        .16647E-03    .78917E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9760.657     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      452 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1314        10.636        .37544E-05    .42296E-02
   2  Index         3.8567        1.6320        .16710E-03    .72771E-03
   3  Normalizat    1.6019        .28411        .68121E-04    .52243E-03
   4  Prefactor     .93219        .12751        .39738E-04    .72266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13144
  Index      = 3.85665
  Normalizat = 1.60188
  Prefactor  = 0.932194
 **********
 **   18 **HESSE 
 **********

 FCN=   9760.657     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1314        9.9277        .75088E-06   -1.5354    
   2  Index         3.8567        1.5269        .66840E-05   -.23071    
   3  Normalizat    1.6019        .28378        .13624E-04   -.74955    
   4  Prefactor     .93219        .12732        .79476E-05   -.95025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74749e-09
Minuit parameter uncertainties:
  1  9.93291
  2  1.55314
  3  0.284065
  4  0.127362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14667': 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) = 9760.65667152
delta logL = 0.972519889672

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.131e+00  9.933e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.857e+00  1.553e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.322e-01  1.274e-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.602e+00  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.05
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 3.86 +/- 1.55
Photon Flux (Free Index): 1.45e-07 +/- 8.85e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.35e-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/14667/cmap_HighResolution_588988801_589248001_4FGL_J1037.4-2933_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.14e-08', energy_flux2='2.23e-05', photon_flux_error='6.29e-08', dlogl='9.73e-01', energy_flux='1.98e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-02 05:46:21.440028', photon_index_error2='1.55', photon_index2='3.86', ts='1.78', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.35e-05', EG='1.72', time_epoch_completed='1630586781.44', return_code='0', job_id='14667', GAL2='0.93', EG2='1.60', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='8.85e-08', ts2='4.05', photon_index='2.41' WHERE bin_id='1349' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 14667: <4FGL_J1037.4-2933_daily_bin1349> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1349> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:23 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:26 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:26 2021
Terminated at Thu Sep  2 05:46:22 2021
Results reported at Thu Sep  2 05:46:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1349 159.356 -29.5568 588988801 589248001 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 :                                   827.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            899 sec.

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

