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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1298
RA = 159.356, Dec = -29.5568
tmin = 575769601, tmax = 576028801
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='14585', job_status='RUN', time_executed='2021-09-02 05:31:37.129550', time_epoch_executed='1630585897.13' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14585/ft1_4FGL_J1037.4-2933_daily_bin1298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14585/ft2_4FGL_J1037.4-2933_daily_bin1298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14585/ft1_4FGL_J1037.4-2933_daily_bin1298.fits outfile=/scratch/kocevski/14585/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1298.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=575769601.0 tmax=576028801.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.86
user 3.63
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14585/ft1_filtered_4FGL_J1037.4-2933_daily_bin1298.fits" evtable="EVENTS" scfile=/scratch/kocevski/14585/ft2_4FGL_J1037.4-2933_daily_bin1298.fits sctable="SC_DATA" outfile=/scratch/kocevski/14585/ltcube_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.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/14585/ft2_4FGL_J1037.4-2933_daily_bin1298.fits
.....................!
real 15.12
user 14.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14585/ft1_filtered_4FGL_J1037.4-2933_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/14585/ft2_4FGL_J1037.4-2933_daily_bin1298.fits sctable="SC_DATA" expcube=/scratch/kocevski/14585/ltcube_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.fits outfile=/scratch/kocevski/14585/expmap_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.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/14585/ltcube_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.fits
.....................!
real 194.41
user 188.10
sys 5.39

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/14585/ft1_filtered_4FGL_J1037.4-2933_daily_bin1298.fits scfile=/scratch/kocevski/14585/ft2_4FGL_J1037.4-2933_daily_bin1298.fits outfile=/scratch/kocevski/14585/cmap_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14585/ft1_filtered_4FGL_J1037.4-2933_daily_bin1298.fits scfile=/scratch/kocevski/14585/ft2_4FGL_J1037.4-2933_daily_bin1298.fits outfile=/scratch/kocevski/14585/cmap_HighResolution_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14585/ft1_filtered_4FGL_J1037.4-2933_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/14585/ft2_4FGL_J1037.4-2933_daily_bin1298.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14585/Model_4FGL_J1037.4-2933_daily_bin1298.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/14585/ft1_filtered_4FGL_J1037.4-2933_daily_bin1298.fits.....................!
real 59.39
user 57.81
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .14805E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.889       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .18233       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64004       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8085       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13150E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1224       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98718       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=   5341.378     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2238 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7252        .16087E-05** at limit **
   2  norm          .10000E-03    1.0196       -.21842E-06** at limit **
   3  norm          .10000E-03    16.964        .39946E-05** at limit **
   4  Prefactor     38.854        42.406        .59255E-05    .54180E-05
   5  Prefactor     .10000E-03    4.8042       -.11140E-05** at limit **
   6  norm          .10000E-03    3.4992        .16974E-06** at limit **
   7  norm          .10000E-03    11.306       -.58768E-05** at limit **
   8  Prefactor     .10000E-03    3.8166       -.20654E-06** at limit **
   9  Prefactor     31.416        28.866       -.12018E-06    .16127E-04
  10  Prefactor     .10000E-03    10.995        .64470E-05** at limit **
  11  norm          .18048        2.5788        .11312E-06   -.76407E-04
  12  Prefactor     5.3798        55.716       -.19312E-04   -.47856E-04
  13  Prefactor     .64007        4.3609        .16322E-05   -.46245E-03
  14  Prefactor     8.8037        12.053       -.94087E-05   -.19951E-03
  15  Prefactor     .10000E-03    4.9574        .88541E-06** at limit **
  16  Prefactor     .10000E-03    5.6080       -.87299E-06** at limit **
  17  Prefactor     .10000E-03    17.519       -.33916E-05** at limit **
  18  Prefactor     .10000E-03    7.3284       -.17465E-05** at limit **
  19  Prefactor     .10000E-03    426.09       -.21967E-04** at limit **
  20  Normalizat    1.1223        .28126        .43283E-05   -.10858E-03
  21  Prefactor     .98725        .12512       -.95194E-06    .15137E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.8539
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4155
  Prefactor  = 0.0001
  norm       = 0.180482
  Prefactor  = 5.37981
  Prefactor  = 0.640069
  Prefactor  = 8.80369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12233
  Prefactor  = 0.987245
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.378     FROM HESSE     STATUS=OK           315 CALLS     2553 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4887        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.854        42.540        .64273E-04   -1.4460    
   5  Prefactor     .10000E-03    4.8060        .15647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5016        .13351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8181        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.416        28.295        .71493E-04   -1.4586    
  10  Prefactor     .10000E-03    11.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .18048        23.297        .21629E-02   -1.5623    
  12  Prefactor     5.3798        54.298        .17352E-03   -1.5244    
  13  Prefactor     .64007        7.8495        .26978E-02   -1.5548    
  14  Prefactor     8.8037        11.941        .13505E-03   -1.5114    
  15  Prefactor     .10000E-03    5.0124        .15889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6216        .16900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.3426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    429.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1223        .33124        .34909E-03   -.89038    
  21  Prefactor     .98725        .15006        .17613E-03   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41197e-08
Minuit parameter uncertainties:
  1  4.54591e-06
  2  5.31975e-06
  3  8.40919e-05
  4  42.5734
  5  8.3397e-06
  6  5.13797e-06
  7  5.25405e-06
  8  7.39578e-07
  9  28.3066
  10  1.09757e-05
  11  4.10154
  12  34.2226
  13  4.48332
  14  11.9443
  15  2.4169e-05
  16  3.90738e-06
  17  2.47719e-06
  18  4.0576e-06
  19  0.000105739
  20  0.331855
  21  0.150119
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.098e-05  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.872e-01  1.501e-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.122e+00  3.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/14585/likelihoodResults_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5341.37804836
delta logL = -0.000432593961705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5341.37761634
delta logL = -5.79084371566e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3751       1.0000          .0000       10.000    
     3 'Normalizat'    1.1221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98733       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=   5341.378     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10361E-03    8.2277        .18142E-01** at limit **
   2  Index         2.2866        5.3566        .50000        .22627E-04
   3  Normalizat    1.1223        .54343E-02    .34909E-03   -.57317E-04
   4  Prefactor     .98724        .26067E-02    .17613E-03   -.17165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010361
  Index      = 2.28665
  Normalizat = 1.12234
  Prefactor  = 0.987242
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.378     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10361E-03    69.435        .25842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2866        8.6724        .50000       -.57361    
   3  Normalizat    1.1223        .15782E-01    .13964E-04   -.89038    
   4  Prefactor     .98724        .75702E-02    .35227E-04   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72392e-09
Minuit parameter uncertainties:
  1  0.0316995
  2  226.86
  3  0.0157819
  4  0.00757022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14585': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5341.37761513
delta logL = 6.33252057014e-07

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.036e-04  3.170e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.287e+00  2.269e+02  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.872e-01  7.570e-03  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.122e+00  1.578e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.356 -29.557

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/14585/cmap_HighResolution_575769601_576028801_4FGL_J1037.4-2933_daily_bin1298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-02 05:41:27.869487', job_id='14585', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630586487.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1298' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:41:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 14585: <4FGL_J1037.4-2933_daily_bin1298> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1298> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:16 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:18 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:18 2021
Terminated at Thu Sep  2 05:41:28 2021
Results reported at Thu Sep  2 05:41:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1298 159.356 -29.5568 575769601 576028801 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 :                                   586.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

