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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1547
RA = 159.356, Dec = -29.5568
tmin = 640310401, tmax = 640569601
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='14980', job_status='RUN', time_executed='2021-09-02 05:33:39.320872', time_epoch_executed='1630586019.32' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14980/ft1_4FGL_J1037.4-2933_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14980/ft2_4FGL_J1037.4-2933_daily_bin1547.fits


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

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

Done.
real 5.49
user 4.79
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14980/ft1_filtered_4FGL_J1037.4-2933_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/14980/ft2_4FGL_J1037.4-2933_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/14980/ltcube_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.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/14980/ft2_4FGL_J1037.4-2933_daily_bin1547.fits
.....................!
real 15.91
user 15.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14980/ft1_filtered_4FGL_J1037.4-2933_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/14980/ft2_4FGL_J1037.4-2933_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/14980/ltcube_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.fits outfile=/scratch/kocevski/14980/expmap_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.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/14980/ltcube_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.fits
.....................!
real 191.77
user 186.51
sys 4.02

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/14980/ft1_filtered_4FGL_J1037.4-2933_daily_bin1547.fits scfile=/scratch/kocevski/14980/ft2_4FGL_J1037.4-2933_daily_bin1547.fits outfile=/scratch/kocevski/14980/cmap_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14980/ft1_filtered_4FGL_J1037.4-2933_daily_bin1547.fits scfile=/scratch/kocevski/14980/ft2_4FGL_J1037.4-2933_daily_bin1547.fits outfile=/scratch/kocevski/14980/cmap_HighResolution_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14980/ft1_filtered_4FGL_J1037.4-2933_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/14980/ft2_4FGL_J1037.4-2933_daily_bin1547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14980/Model_4FGL_J1037.4-2933_daily_bin1547.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/14980/ft1_filtered_4FGL_J1037.4-2933_daily_bin1547.fits.....................!
real 63.76
user 61.43
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.085       1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .21116E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22903E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.491       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2855       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67880       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2376       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=   5873.999     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2206 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.083        23.647       -.27367E-06   -.83821E-04
   2  norm          .10000E-03    1.2174        .33699E-07** at limit **
   3  norm          12.199        12.705        .88333E-06   -.18208E-03
   4  Prefactor     .10001E-03    43.854       -.36063E-05** at limit **
   5  Prefactor     .10000E-03    6.4122       -.23094E-06** at limit **
   6  norm          .10000E-03    25.127       -.54565E-06** at limit **
   7  norm          .10000E-03    3.9949       -.92804E-08** at limit **
   8  Prefactor     4.7291        16.440        .38291E-06   -.10960E-04
   9  Prefactor     .10000E-03    4.8628        .14655E-07** at limit **
  10  Prefactor     .10000E-03    15.266        .83575E-06** at limit **
  11  norm          2.8524        3.9820        .18297E-06    .22395E-03
  12  Prefactor     .10000E-03    6.7672        .28934E-06** at limit **
  13  Prefactor     .10007E-03    4.2223       -.82348E-06** at limit **
  14  Prefactor     26.496        15.044        .11735E-07    .34913E-03
  15  Prefactor     .10000E-03    2.6368        .22331E-07** at limit **
  16  Prefactor     8.2866        10.659        .18477E-05   -.38170E-03
  17  Prefactor     .10000E-03    10.432       -.26408E-06** at limit **
  18  Prefactor     18.580        14.309        .17194E-06   -.24006E-04
  19  Prefactor     .10001E-03    30.540        .55175E-05** at limit **
  20  Normalizat    .67886        .28147       -.79784E-06    .10511E-03
  21  Prefactor     1.2375        .13574       -.13635E-06    .22843E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 32.0829
  norm       = 0.0001
  norm       = 12.1985
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.7291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85239
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 26.4956
  Prefactor  = 0.0001
  Prefactor  = 8.28658
  Prefactor  = 0.0001
  Prefactor  = 18.5797
  Prefactor  = 0.000100015
  Normalizat = 0.678864
  Prefactor  = 1.23755
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.999     FROM HESSE     STATUS=OK           311 CALLS     2517 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.083        23.723        .70739E-04   -1.4575    
   2  norm          .10000E-03    1.2745        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.199        13.003        .57340E-03   -1.5009    
   4  Prefactor     .10001E-03    45.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    26.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0131        .14957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7291        16.445        .18502E-03   -1.5273    
   9  Prefactor     .10000E-03    4.8657        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8524        3.8532        .16802E-03   -1.5370    
  12  Prefactor     .10000E-03    6.7881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10007E-03    24.030        .26098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.496        14.319        .77834E-04   -1.4678    
  15  Prefactor     .10000E-03    2.6518        .12152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2866        11.677        .69638E-03   -1.5132    
  17  Prefactor     .10000E-03    10.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.580        14.321        .46461E-03   -1.4846    
  19  Prefactor     .10001E-03    34.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67886        .30501        .43762E-03   -1.0473    
  21  Prefactor     1.2375        .14990        .16725E-03   -.85184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76328e-09
Minuit parameter uncertainties:
  1  23.7299
  2  1.65389e-06
  3  13.0058
  4  0.0010453
  5  2.48357e-05
  6  8.94227e-05
  7  7.67416e-07
  8  16.4608
  9  2.36968e-06
  10  0.000162997
  11  3.85354
  12  3.40046e-05
  13  0.00254246
  14  14.3208
  15  2.0054e-06
  16  11.6802
  17  3.75552e-05
  18  14.3241
  19  0.001435
  20  0.305771
  21  0.149948
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.630e-04  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.238e+00  1.499e-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.789e-01  3.058e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14980/likelihoodResults_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.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) = 5873.99931985
delta logL = -0.000308931264044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.99901113
delta logL = -2.12328814087e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3076       1.0000          .0000       10.000    
     3 'Normalizat'    .67889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2376       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.

 FCN=   5873.999     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1064.7        .90712E-02** at limit **
   2  Index         2.3186        5.9672        .50000       -.66320E-05
   3  Normalizat    .67886        .62350E-01    .98746E-01   -.25276E-04
   4  Prefactor     1.2375        .31449E-01    .33798E-01    .29993E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.31861
  Normalizat = 0.67886
  Prefactor  = 1.23755
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.999     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2195.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3186        5.3585        .50000       -.56602    
   3  Normalizat    .67886        .11067        .43762E-03   -1.0473    
   4  Prefactor     1.2375        .56052E-01    .16725E-03   -.85183    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.14999e-08
Minuit parameter uncertainties:
  1  0.00273964
  2  53.7978
  3  0.110709
  4  0.0560545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14980': 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) = 5873.99901108
delta logL = -1.56716851052e-07

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.740e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.319e+00  5.380e+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.238e+00  5.605e-02  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.789e-01  1.107e-01  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/14980/cmap_HighResolution_640310401_640569601_4FGL_J1037.4-2933_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-02 05:44:43.162067', job_id='14980', GAL2='1.24', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630586683.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-1.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1547' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:44:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 14980: <4FGL_J1037.4-2933_daily_bin1547> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1547> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:50 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:52 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:52 2021
Terminated at Thu Sep  2 05:44:43 2021
Results reported at Thu Sep  2 05:44:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1547 159.356 -29.5568 640310401 640569601 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 :                                   618.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

