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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1369
RA = 159.356, Dec = -29.5568
tmin = 594172801, tmax = 594432001
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='14698', job_status='RUN', time_executed='2021-09-02 05:33:38.048367', time_epoch_executed='1630586018.05' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14698

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14698/ft1_4FGL_J1037.4-2933_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14698/ft2_4FGL_J1037.4-2933_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14698/ft1_4FGL_J1037.4-2933_daily_bin1369.fits outfile=/scratch/kocevski/14698/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1369.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=594172801.0 tmax=594432001.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.15
user 3.92
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14698/ft1_filtered_4FGL_J1037.4-2933_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/14698/ft2_4FGL_J1037.4-2933_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/14698/ltcube_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.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/14698/ft2_4FGL_J1037.4-2933_daily_bin1369.fits
.....................!
real 14.21
user 13.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14698/ft1_filtered_4FGL_J1037.4-2933_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/14698/ft2_4FGL_J1037.4-2933_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/14698/ltcube_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.fits outfile=/scratch/kocevski/14698/expmap_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.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/14698/ltcube_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.fits
.....................!
real 191.21
user 186.51
sys 4.10

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/14698/ft1_filtered_4FGL_J1037.4-2933_daily_bin1369.fits scfile=/scratch/kocevski/14698/ft2_4FGL_J1037.4-2933_daily_bin1369.fits outfile=/scratch/kocevski/14698/cmap_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.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.67
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14698/ft1_filtered_4FGL_J1037.4-2933_daily_bin1369.fits scfile=/scratch/kocevski/14698/ft2_4FGL_J1037.4-2933_daily_bin1369.fits outfile=/scratch/kocevski/14698/cmap_HighResolution_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.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.66
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14698/ft1_filtered_4FGL_J1037.4-2933_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/14698/ft2_4FGL_J1037.4-2933_daily_bin1369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14698/Model_4FGL_J1037.4-2933_daily_bin1369.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/14698/ft1_filtered_4FGL_J1037.4-2933_daily_bin1369.fits.....................!
real 70.69
user 68.76
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.396       1.0000         .10000E-03   10000.    
     2 'norm      '    .55793       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4493       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.087       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7247       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82791       1.0000         .10000E-03   10000.    
    11 'norm      '    11.585       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7744       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9428       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7324       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84957       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=   6681.198     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2170 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.396        14.568        .12239E-06    .43894E-05
   2  norm          .55803        1.3854        .44989E-06    .11614E-02
   3  norm          2.4478        17.299        .91658E-06    .94893E-04
   4  Prefactor     12.093        33.020       -.60044E-06   -.35601E-04
   5  Prefactor     10.088        14.830       -.26868E-06   -.14133E-04
   6  norm          6.7245        8.2670        .11737E-05    .11301E-02
   7  norm          .10000E-03    4.1738       -.31126E-07** at limit **
   8  Prefactor     .10000E-03    9.2480        .28728E-05** at limit **
   9  Prefactor     .10000E-03    7.5084        .92695E-06** at limit **
  10  Prefactor     .81291        148.68       -.22918E-04    .14145E-03
  11  norm          11.576        6.1233       -.28636E-06   -.13748E-02
  12  Prefactor     .10000E-03    14.793       -.29683E-05** at limit **
  13  Prefactor     1.7679        5.7859        .90093E-07    .19929E-03
  14  Prefactor     .10000E-03    8.8178       -.33768E-05** at limit **
  15  Prefactor     8.9434        9.3669        .27686E-06    .42103E-04
  16  Prefactor     .10000E-03    2.6549       -.44484E-07** at limit **
  17  Prefactor     .10000E-03    14.329        .27482E-05** at limit **
  18  Prefactor     .10000E-03    3.6661       -.84705E-07** at limit **
  19  Prefactor     .10000E-03    32.144       -.77346E-06** at limit **
  20  Normalizat    1.7324        .28155       -.95096E-06   -.22957E-03
  21  Prefactor     .84955        .12484        .78446E-07   -.43172E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3963
  norm       = 0.558032
  norm       = 2.44777
  Prefactor  = 12.0931
  Prefactor  = 10.0875
  norm       = 6.7245
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.812906
  norm       = 11.5764
  Prefactor  = 0.0001
  Prefactor  = 1.76789
  Prefactor  = 0.0001
  Prefactor  = 8.94335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.7324
  Prefactor  = 0.849553
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.198     FROM HESSE     STATUS=OK           317 CALLS     2487 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.396        14.571        .10207E-03   -1.4923    
   2  norm          .55803        1.4272        .14977E-03   -1.5559    
   3  norm          2.4478        17.339        .26138E-03   -1.5395    
   4  Prefactor     12.093        33.193        .11519E-03   -1.5012    
   5  Prefactor     10.088        14.827        .12616E-03   -1.5073    
   6  norm          6.7245        9.0051        .77366E-03   -1.5189    
   7  norm          .10000E-03    4.1905        .16306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .81291        209.52        .61904E-02   -1.5528    
  11  norm          11.576        6.5652        .11770E-03   -1.5027    
  12  Prefactor     .10000E-03    14.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7679        5.7607        .30803E-03   -1.5442    
  14  Prefactor     .10000E-03    8.6922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9434        9.4975        .13403E-03   -1.5110    
  16  Prefactor     .10000E-03    2.6574        .13006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6678        .15285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7324        .34583        .32249E-03   -.71442    
  21  Prefactor     .84955        .15227        .20479E-03   -.97927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06611e-09
Minuit parameter uncertainties:
  1  14.5739
  2  1.42728
  3  13.0345
  4  33.2439
  5  14.8324
  6  9.00691
  7  3.10102e-06
  8  8.38389e-05
  9  4.40268e-05
  10  26.1928
  11  6.56563
  12  7.63241e-05
  13  5.76253
  14  4.78046e-05
  15  9.49913
  16  8.51824e-07
  17  0.000106056
  18  7.19181e-07
  19  3.77661e-05
  20  0.34632
  21  0.152343
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  8.129e-01  2.619e+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.496e-01  1.523e-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.732e+00  3.463e-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.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14698/likelihoodResults_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.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) = 6681.19835472
delta logL = 1.87355908565e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6681.19835472
delta logL = 3.7471181713e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81291       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4139       1.0000          .0000       10.000    
     3 'Normalizat'    1.7324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84955       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=   6681.198     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81284        25.207        .12488        .10046E-02
   2  Index         2.4191        1.2958        .50000        .11309E-05
   3  Normalizat    1.7324        .88551E-02    .72894E-01    .16755E-04
   4  Prefactor     .84956        .41547E-02    .44359E-01    .19057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.812844
  Index      = 2.41912
  Normalizat = 1.73237
  Prefactor  = 0.849559
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.198     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81284        234.06        .61803E-02   -1.5528    
   2  Index         2.4191        5.6398        .18911E-01   -.54238    
   3  Normalizat    1.7324        .32192        .32250E-03   -.71442    
   4  Prefactor     .84956        .14981        .20479E-03   -.97927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57774e-08
Minuit parameter uncertainties:
  1  27.6945
  2  7.35336
  3  0.322315
  4  0.149886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14698': 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) = 6681.19835427
delta logL = 4.50114384876e-07

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  8.128e-01  2.769e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.419e+00  7.353e+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:  8.496e-01  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:  1.732e+00  3.223e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/14698/cmap_HighResolution_594172801_594432001_4FGL_J1037.4-2933_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-02 05:45:05.421502', job_id='14698', GAL2='0.85', fit_tolerance='1e-08', EG2='1.73', EG='1.73', time_epoch_completed='1630586705.42', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.50e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1369' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:45:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 14698: <4FGL_J1037.4-2933_daily_bin1369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1369 159.356 -29.5568 594172801 594432001 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

