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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1353
RA = 159.356, Dec = -29.5568
tmin = 590025601, tmax = 590284801
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='14673', job_status='RUN', time_executed='2021-09-02 05:32:20.751016', time_epoch_executed='1630585940.75' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14673/ft1_4FGL_J1037.4-2933_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14673/ft2_4FGL_J1037.4-2933_daily_bin1353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14673/ft1_4FGL_J1037.4-2933_daily_bin1353.fits outfile=/scratch/kocevski/14673/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1353.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=590025601.0 tmax=590284801.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.99
user 3.72
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14673/ft1_filtered_4FGL_J1037.4-2933_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/14673/ft2_4FGL_J1037.4-2933_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/14673/ltcube_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.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/14673/ft2_4FGL_J1037.4-2933_daily_bin1353.fits
.....................!
real 17.87
user 17.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14673/ft1_filtered_4FGL_J1037.4-2933_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/14673/ft2_4FGL_J1037.4-2933_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/14673/ltcube_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.fits outfile=/scratch/kocevski/14673/expmap_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.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/14673/ltcube_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.fits
.....................!
real 194.08
user 187.71
sys 5.29

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/14673/ft1_filtered_4FGL_J1037.4-2933_daily_bin1353.fits scfile=/scratch/kocevski/14673/ft2_4FGL_J1037.4-2933_daily_bin1353.fits outfile=/scratch/kocevski/14673/cmap_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.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.86
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14673/ft1_filtered_4FGL_J1037.4-2933_daily_bin1353.fits scfile=/scratch/kocevski/14673/ft2_4FGL_J1037.4-2933_daily_bin1353.fits outfile=/scratch/kocevski/14673/cmap_HighResolution_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.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.61
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14673/ft1_filtered_4FGL_J1037.4-2933_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/14673/ft2_4FGL_J1037.4-2933_daily_bin1353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14673/Model_4FGL_J1037.4-2933_daily_bin1353.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/14673/ft1_filtered_4FGL_J1037.4-2933_daily_bin1353.fits.....................!
real 72.04
user 67.04
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    8.7238       1.0000         .10000E-03   10000.    
     3 'norm      '    15.152       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9590       1.0000         .10000E-03   10000.    
     7 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9930       1.0000         .10000E-03   10000.    
    11 'norm      '    .26857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14719E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89947       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.478       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0060       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89541       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=   6559.018     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2291 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1178        .16431E-06** at limit **
   2  norm          8.7236        2.5059       -.13324E-06   -.10697E-04
   3  norm          15.151        9.8650       -.13295E-06   -.48037E-04
   4  Prefactor     51.466        35.580       -.36607E-05    .61694E-04
   5  Prefactor     .10000E-03    4.4045       -.14913E-06** at limit **
   6  norm          7.9581        8.9676        .42236E-06   -.18335E-03
   7  norm          .10001E-03    5.0368        .62062E-06** at limit **
   8  Prefactor     .10000E-03    5.0406        .19587E-06** at limit **
   9  Prefactor     .10000E-03    14.117       -.84973E-06** at limit **
  10  Prefactor     3.1696        60.910       -.12039E-05    .19501E-05
  11  norm          .21254        3.4101        .43980E-06    .99344E-03
  12  Prefactor     .10000E-03    10.886       -.31348E-08** at limit **
  13  Prefactor     5.2024        6.4614       -.29287E-05   -.32266E-04
  14  Prefactor     8.8455        11.437       -.68718E-05    .34665E-03
  15  Prefactor     .10013E-03    4.7176       -.40503E-07** at limit **
  16  Prefactor     .10000E-03    4.8550        .71733E-07** at limit **
  17  Prefactor     6.8112        27.396        .16081E-05    .42153E-04
  18  Prefactor     .89644        9.8432       -.24640E-05   -.56251E-04
  19  Prefactor     39.482        48.150        .27457E-05   -.29944E-04
  20  Normalizat    1.0061        .24129        .44133E-05   -.28826E-04
  21  Prefactor     .89546        .10870        .73282E-07    .15572E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.72358
  norm       = 15.1512
  Prefactor  = 51.4655
  Prefactor  = 0.0001
  norm       = 7.95808
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16958
  norm       = 0.212543
  Prefactor  = 0.0001
  Prefactor  = 5.20242
  Prefactor  = 8.84554
  Prefactor  = 0.000100129
  Prefactor  = 0.0001
  Prefactor  = 6.81122
  Prefactor  = 0.896436
  Prefactor  = 39.4824
  Normalizat = 1.00606
  Prefactor  = 0.895462
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.018     FROM HESSE     STATUS=OK           331 CALLS     2622 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.7236        2.5115        .65594E-04   -1.5117    
   3  norm          15.151        9.8608        .10289E-03   -1.4929    
   4  Prefactor     51.466        35.597        .55900E-04   -1.4272    
   5  Prefactor     .10000E-03    4.4050        .16599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.9581        8.7636        .14212E-03   -1.5144    
   7  norm          .10001E-03    19.682        .34229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0507        .17757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1696        80.134        .23465E-03   -1.5352    
  11  norm          .21254        44.362        .22535E-02   -1.5616    
  12  Prefactor     .10000E-03    10.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2024        6.3607        .17628E-03   -1.5252    
  14  Prefactor     8.8455        11.224        .13471E-03   -1.5113    
  15  Prefactor     .10013E-03    5.4888        .48925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8828        .17424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8112        27.417        .15370E-03   -1.5186    
  18  Prefactor     .89644        34.587        .46881E-02   -1.5519    
  19  Prefactor     39.482        48.134        .63793E-04   -1.4450    
  20  Normalizat    1.0061        .28414        .34546E-03   -.92828    
  21  Prefactor     .89546        .12945        .17534E-03   -.96300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99095e-08
Minuit parameter uncertainties:
  1  9.54561e-06
  2  2.51158
  3  9.86183
  4  35.6121
  5  5.53549e-06
  6  8.765
  7  0.000722142
  8  1.00164e-05
  9  3.50566e-05
  10  31.9214
  11  6.14447
  12  6.24425e-06
  13  6.3615
  14  11.2267
  15  0.00168348
  16  9.09143e-06
  17  27.3526
  18  11.1428
  19  48.1815
  20  0.284569
  21  0.12949
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.170e+00  3.192e+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.955e-01  1.295e-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.006e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/14673/likelihoodResults_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.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) = 6558.98916452
delta logL = 0.0283590941435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6558.97813213
delta logL = 0.039391487725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1894       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4790       1.0000          .0000       10.000    
     3 'Normalizat'    .98639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90137       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=   6558.978     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      268 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1783        499.04        .25238E-03   -.40879E-03
   2  Index         3.4845        8.2542        .10904E-01   -.35898E-04
   3  Normalizat    .98656        .20920        .34841E-03   -.21406E-04
   4  Prefactor     .90131        .99035E-01    .17481E-03   -.69536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17827
  Index      = 3.48452
  Normalizat = 0.986563
  Prefactor  = 0.901313
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.978     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1783        34.831        .10095E-04   -1.5491    
   2  Index         3.4845        6.7248        .43616E-03   -.30794    
   3  Normalizat    .98656        .27801        .13936E-04   -.93482    
   4  Prefactor     .90131        .13087        .34961E-04   -.96095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30091e-10
Minuit parameter uncertainties:
  1  12.8201
  2  5.45422
  3  0.278414
  4  0.130912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14673': 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) = 6558.97813096
delta logL = 0.039392659276

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.178e+00  1.282e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.485e+00  5.454e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.013e-01  1.309e-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:  9.866e-01  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/14673/cmap_HighResolution_590025601_590284801_4FGL_J1037.4-2933_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-02 05:43:47.287935', job_id='14673', GAL2='0.90', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1630586627.29', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.94e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1353' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:43:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 14673: <4FGL_J1037.4-2933_daily_bin1353> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1353> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:24 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:31:26 2021
Terminated at Thu Sep  2 05:43:48 2021
Results reported at Thu Sep  2 05:43:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1353 159.356 -29.5568 590025601 590284801 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 :                                   669.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            744 sec.

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

