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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1325
RA = 159.356, Dec = -29.5568
tmin = 582768001, tmax = 583027201
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='14628', job_status='RUN', time_executed='2021-09-02 05:32:11.227468', time_epoch_executed='1630585931.23' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14628/ft1_4FGL_J1037.4-2933_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14628/ft2_4FGL_J1037.4-2933_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14628/ft1_4FGL_J1037.4-2933_daily_bin1325.fits outfile=/scratch/kocevski/14628/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1325.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=582768001.0 tmax=583027201.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.68
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14628/ft1_filtered_4FGL_J1037.4-2933_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/14628/ft2_4FGL_J1037.4-2933_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/14628/ltcube_582768001_583027201_4FGL_J1037.4-2933_daily_bin1325.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/14628/ft2_4FGL_J1037.4-2933_daily_bin1325.fits
.....................!
real 18.22
user 17.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14628/ft1_filtered_4FGL_J1037.4-2933_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/14628/ft2_4FGL_J1037.4-2933_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/14628/ltcube_582768001_583027201_4FGL_J1037.4-2933_daily_bin1325.fits outfile=/scratch/kocevski/14628/expmap_582768001_583027201_4FGL_J1037.4-2933_daily_bin1325.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/14628/ltcube_582768001_583027201_4FGL_J1037.4-2933_daily_bin1325.fits
.....................!
real 195.20
user 187.87
sys 5.23

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/14628/ft1_filtered_4FGL_J1037.4-2933_daily_bin1325.fits scfile=/scratch/kocevski/14628/ft2_4FGL_J1037.4-2933_daily_bin1325.fits outfile=/scratch/kocevski/14628/cmap_582768001_583027201_4FGL_J1037.4-2933_daily_bin1325.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14628/ft1_filtered_4FGL_J1037.4-2933_daily_bin1325.fits scfile=/scratch/kocevski/14628/ft2_4FGL_J1037.4-2933_daily_bin1325.fits outfile=/scratch/kocevski/14628/cmap_HighResolution_582768001_583027201_4FGL_J1037.4-2933_daily_bin1325.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.60
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14628/ft1_filtered_4FGL_J1037.4-2933_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/14628/ft2_4FGL_J1037.4-2933_daily_bin1325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14628/Model_4FGL_J1037.4-2933_daily_bin1325.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/14628/ft1_filtered_4FGL_J1037.4-2933_daily_bin1325.fits.....................!
real 115.81
user 109.80
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.9966       1.0000         .10000E-03   10000.    
     3 'norm      '    13.317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0608       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7933       1.0000         .10000E-03   10000.    
     7 'norm      '    .26941E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3473       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.797       1.0000         .10000E-03   10000.    
    11 'norm      '    8.6955       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7681       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9601       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 '    7.0041       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3219       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82723       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=   11163.79     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1897 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6183        .19564E-06** at limit **
   2  norm          4.9967        1.3810        .14098E-07   -.25168E-04
   3  norm          13.318        8.2401        .37769E-07   -.54690E-04
   4  Prefactor     .10000E-03    5.6624       -.17794E-06** at limit **
   5  Prefactor     9.0602        8.4808        .37523E-06   -.11713E-04
   6  norm          2.8011        5.0788       -.55668E-07   -.22649E-03
   7  norm          .10003E-03    3.1508        .29628E-06** at limit **
   8  Prefactor     13.126        12.179       -.41202E-06   -.37541E-05
   9  Prefactor     2.3465        7.8858       -.17577E-06   -.10981E-03
  10  Prefactor     17.797        14.959        .57543E-06    .23378E-05
  11  norm          8.6951        4.1038        .72828E-06    .27759E-04
  12  Prefactor     .10000E-03    4.7069        .13919E-06** at limit **
  13  Prefactor     .10000E-03    2.3224       -.37372E-06** at limit **
  14  Prefactor     .10000E-03    9.2350        .40923E-07** at limit **
  15  Prefactor     3.7681        3.1818        .90535E-07   -.23930E-03
  16  Prefactor     7.9599        6.5229       -.40829E-07   -.18339E-05
  17  Prefactor     .10000E-03    24.719       -.17132E-05** at limit **
  18  Prefactor     .10000E-03    2.2904        .17415E-07** at limit **
  19  Prefactor     7.0029        30.208       -.33547E-05   -.28182E-06
  20  Normalizat    1.3218        .17772       -.53374E-06   -.22848E-05
  21  Prefactor     .82730        .85867E-01    .74597E-07   -.88660E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.99669
  norm       = 13.3181
  Prefactor  = 0.0001
  Prefactor  = 9.06015
  norm       = 2.80108
  norm       = 0.000100032
  Prefactor  = 13.1258
  Prefactor  = 2.34649
  Prefactor  = 17.7968
  norm       = 8.69514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76815
  Prefactor  = 7.95986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00288
  Normalizat = 1.32183
  Prefactor  = 0.827301
 **********
 **   18 **HESSE 
 **********

 FCN=   11163.79     FROM HESSE     STATUS=OK           331 CALLS     2228 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6231        .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9967        1.3845        .62775E-04   -1.5261    
   3  norm          13.318        8.2471        .54881E-03   -1.4978    
   4  Prefactor     .10000E-03    5.6698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0602        8.4853        .13315E-03   -1.5106    
   6  norm          2.8011        6.6976        .12172E-02   -1.5373    
   7  norm          .10003E-03    3.3598        .59688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.126        12.211        .11056E-03   -1.4983    
   9  Prefactor     2.3465        10.211        .13379E-02   -1.5402    
  10  Prefactor     17.797        14.955        .94939E-04   -1.4864    
  11  norm          8.6951        4.1154        .12705E-03   -1.5118    
  12  Prefactor     .10000E-03    4.7237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4259        .31655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7681        3.6134        .94412E-03   -1.5320    
  16  Prefactor     7.9599        6.5286        .14211E-03   -1.5144    
  17  Prefactor     .10000E-03    25.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2958        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0029        30.125        .15158E-03   -1.5179    
  20  Normalizat    1.3218        .21321        .30637E-03   -.82917    
  21  Prefactor     .82730        .10220        .18686E-03   -.98730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43974e-10
Minuit parameter uncertainties:
  1  1.86843e-07
  2  1.38454
  3  8.24777
  4  8.51368e-07
  5  8.48644
  6  6.69939
  7  0.000654524
  8  12.2136
  9  9.79233
  10  14.9586
  11  4.11557
  12  3.03472e-06
  13  2.3997e-05
  14  2.23735e-05
  15  3.61364
  16  6.52921
  17  2.01175e-05
  18  4.01947e-07
  19  29.0737
  20  0.213349
  21  0.102225
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.780e+01  1.496e+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.273e-01  1.022e-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.322e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.75
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.29e-05

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) = 11163.7394138
delta logL = 0.0538860746437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11163.7279303
delta logL = 0.0653695262099

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.228       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8004       1.0000          .0000       10.000    
     3 'Normalizat'    1.3584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81893       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=   11163.73     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      263 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.173        21.256        .26546E-02   -.14270E-04
   2  Index         1.7966        .97872        .27081       -.12319E-03
   3  Normalizat    1.3585        .18075        .68500E-01    .13220E-04
   4  Prefactor     .81886        .85888E-01    .43963E-01    .11268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1729
  Index      = 1.79662
  Normalizat = 1.35853
  Prefactor  = 0.818857
 **********
 **   18 **HESSE 
 **********

 FCN=   11163.73     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.173        21.351        .10618E-03   -1.4955    
   2  Index         1.7966        1.2867        .16532E-01   -.69538    
   3  Normalizat    1.3585        .20652        .30306E-03   -.81836    
   4  Prefactor     .81886        .10101        .18782E-03   -.99037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89067e-08
Minuit parameter uncertainties:
  1  21.3622
  2  1.31215
  3  0.206646
  4  0.101029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14628': 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) = 11163.7279263
delta logL = 0.0653735843262

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.417e+01  2.136e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.797e+00  1.312e+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.189e-01  1.010e-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.359e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 1.80 +/- 1.31
Photon Flux (Free Index): 1.47e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.78e-05 +/- 2.74e-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/14628/cmap_HighResolution_582768001_583027201_4FGL_J1037.4-2933_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.78e-05', photon_flux_error='4.01e-08', dlogl='6.54e-02', energy_flux='1.54e-05', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-02 05:45:28.554945', photon_index_error2='1.31', photon_index2='1.80', ts='4.75', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='1.32', time_epoch_completed='1630586728.56', return_code='0', job_id='14628', GAL2='0.82', EG2='1.36', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.31e-08', ts2='4.88', photon_index='2.41' WHERE bin_id='1325' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 14628: <4FGL_J1037.4-2933_daily_bin1325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1325 159.356 -29.5568 582768001 583027201 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

