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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1120
RA = 159.356, Dec = -29.5568
tmin = 529632001, tmax = 529891201
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='12266', job_status='RUN', time_executed='2021-09-02 05:26:53.470165', time_epoch_executed='1630585613.47' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12266

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12266/ft1_4FGL_J1037.4-2933_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12266/ft1_4FGL_J1037.4-2933_daily_bin1120.fits outfile=/scratch/kocevski/12266/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1120.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=529632001.0 tmax=529891201.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.66
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.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/12266/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1120.fits evtable="EVENTS" outfile="/scratch/kocevski/12266/ft1_filtered_4FGL_J1037.4-2933_daily_bin1120.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12266/ft1_filtered_4FGL_J1037.4-2933_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/12266/ltcube_529632001_529891201_4FGL_J1037.4-2933_daily_bin1120.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/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.fits
.....................!
real 16.39
user 16.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12266/ft1_filtered_4FGL_J1037.4-2933_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/12266/ltcube_529632001_529891201_4FGL_J1037.4-2933_daily_bin1120.fits outfile=/scratch/kocevski/12266/expmap_529632001_529891201_4FGL_J1037.4-2933_daily_bin1120.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/12266/ltcube_529632001_529891201_4FGL_J1037.4-2933_daily_bin1120.fits
.....................!
real 191.44
user 187.01
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/12266/ft1_filtered_4FGL_J1037.4-2933_daily_bin1120.fits scfile=/scratch/kocevski/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.fits outfile=/scratch/kocevski/12266/cmap_529632001_529891201_4FGL_J1037.4-2933_daily_bin1120.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12266/ft1_filtered_4FGL_J1037.4-2933_daily_bin1120.fits scfile=/scratch/kocevski/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.fits outfile=/scratch/kocevski/12266/cmap_HighResolution_529632001_529891201_4FGL_J1037.4-2933_daily_bin1120.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12266/ft1_filtered_4FGL_J1037.4-2933_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/12266/ft2_4FGL_J1037.4-2933_daily_bin1120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12266/Model_4FGL_J1037.4-2933_daily_bin1120.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/12266/ft1_filtered_4FGL_J1037.4-2933_daily_bin1120.fits.....................!
real 69.89
user 68.04
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.6578       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4675       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.882       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19876       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8140       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.803       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2494       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99781       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=   6654.682     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2194 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3780       -.71747E-06** at limit **
   2  norm          1.6579        1.7412        .51594E-07   -.91967E-04
   3  norm          6.4671        12.369        .66724E-06   -.32839E-03
   4  Prefactor     10.471        32.333       -.91164E-05   -.31368E-04
   5  Prefactor     .10000E-03    5.5520        .11795E-05** at limit **
   6  norm          26.881        12.788        .53475E-06    .56737E-04
   7  norm          .10000E-03    2.3003        .54309E-07** at limit **
   8  Prefactor     .10000E-03    21.451        .38382E-05** at limit **
   9  Prefactor     .10000E-03    3.4680       -.58695E-08** at limit **
  10  Prefactor     .10000E-03    6.8570       -.15514E-05** at limit **
  11  norm          .21348        1.9905       -.57111E-06    .59417E-03
  12  Prefactor     .10000E-03    4.0585        .44466E-06** at limit **
  13  Prefactor     .10000E-03    1.7966       -.13748E-07** at limit **
  14  Prefactor     5.8055        11.008       -.76054E-07    .91984E-05
  15  Prefactor     2.8131        3.4478        .72661E-06   -.17488E-02
  16  Prefactor     .10000E-03    11.226        .59312E-05** at limit **
  17  Prefactor     41.809        51.134        .71331E-05    .12681E-03
  18  Prefactor     .10000E-03    12.635       -.79856E-05** at limit **
  19  Prefactor     .10000E-03    39.757       -.24154E-05** at limit **
  20  Normalizat    1.2494        .25751        .59567E-06    .15914E-04
  21  Prefactor     .99778        .11971       -.36939E-06    .10625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.65785
  norm       = 6.46707
  Prefactor  = 10.471
  Prefactor  = 0.0001
  norm       = 26.8806
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.213482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.80549
  Prefactor  = 2.81314
  Prefactor  = 0.0001
  Prefactor  = 41.8093
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.24943
  Prefactor  = 0.997779
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.682     FROM HESSE     STATUS=OK           313 CALLS     2507 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3793        .16669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6579        1.7344        .10525E-03   -1.5450    
   3  norm          6.4671        12.704        .78907E-03   -1.5199    
   4  Prefactor     10.471        32.385        .12378E-03   -1.5061    
   5  Prefactor     .10000E-03    5.5586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.881        12.777        .77267E-04   -1.4671    
   7  norm          .10000E-03    2.3021        .12082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4689        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .21348        11.031        .21819E-02   -1.5616    
  12  Prefactor     .10000E-03    4.0605        .16050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8045        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8055        11.018        .16668E-03   -1.5226    
  15  Prefactor     2.8131        7.3708        .12124E-02   -1.5373    
  16  Prefactor     .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.809        51.812        .62001E-04   -1.4414    
  18  Prefactor     .10000E-03    12.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2494        .31581        .34829E-03   -.85089    
  21  Prefactor     .99778        .14456        .18434E-03   -.92804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30832e-09
Minuit parameter uncertainties:
  1  4.48899e-06
  2  1.73447
  3  12.709
  4  32.4396
  5  2.01486e-05
  6  12.7782
  7  1.30478e-06
  8  3.08872e-05
  9  1.49579e-06
  10  6.93907e-06
  11  3.06906
  12  3.76211e-06
  13  1.64969e-06
  14  11.0219
  15  7.37317
  16  3.90494e-05
  17  51.8674
  18  0.000225282
  19  5.91646e-05
  20  0.316298
  21  0.144621
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.978e-01  1.446e-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.249e+00  3.163e-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: 8.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12266/likelihoodResults_529632001_529891201_4FGL_J1037.4-2933_daily_bin1120.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) = 6654.68283445
delta logL = -0.000694410783581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6654.68214141
delta logL = -1.37033475767e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3852       1.0000          .0000       10.000    
     3 'Normalizat'    1.2492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99778       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=   6654.682     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10355E-03    5.7349        .18142E-01** at limit **
   2  Index         2.2882        6.2240        .50000        .27211E-04
   3  Normalizat    1.2494        .55087E-02    .34829E-03    .14787E-04
   4  Prefactor     .99778        .26569E-02    .18434E-03    .31144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103553
  Index      = 2.28817
  Normalizat = 1.24943
  Prefactor  = 0.997779
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.682     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10355E-03    65.912        .22258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2882        7.8754        .50000       -.57325    
   3  Normalizat    1.2494        .18798E-01    .13931E-04   -.85089    
   4  Prefactor     .99778        .90666E-02    .73736E-05   -.92804    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.03621e-09
Minuit parameter uncertainties:
  1  0.0306401
  2  303.865
  3  0.0187981
  4  0.00906658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12266': 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) = 6654.68213935
delta logL = 6.86474777467e-07

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.036e-04  3.064e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.288e+00  3.039e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.978e-01  9.067e-03  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.249e+00  1.880e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-09-02 05:37:44.937294', job_id='12266', GAL2='1.00', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630586264.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1120' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:37:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 12266: <4FGL_J1037.4-2933_daily_bin1120> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1120> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 05:21:26 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:26:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:26:18 2021
Terminated at Thu Sep  2 05:37:45 2021
Results reported at Thu Sep  2 05:37:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1120 159.356 -29.5568 529632001 529891201 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 :                                   646.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            979 sec.

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

