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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1067
RA = 159.356, Dec = -29.5568
tmin = 515894401, tmax = 516153601
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='12192', job_status='RUN', time_executed='2021-09-02 05:26:33.064016', time_epoch_executed='1630585593.06' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12192/ft1_4FGL_J1037.4-2933_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12192/ft2_4FGL_J1037.4-2933_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12192/ft1_4FGL_J1037.4-2933_daily_bin1067.fits outfile=/scratch/kocevski/12192/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1067.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=515894401.0 tmax=516153601.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.82
user 3.53
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12192/ft1_filtered_4FGL_J1037.4-2933_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/12192/ft2_4FGL_J1037.4-2933_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/12192/ltcube_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.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/12192/ft2_4FGL_J1037.4-2933_daily_bin1067.fits
.....................!
real 17.35
user 16.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12192/ft1_filtered_4FGL_J1037.4-2933_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/12192/ft2_4FGL_J1037.4-2933_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/12192/ltcube_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.fits outfile=/scratch/kocevski/12192/expmap_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.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/12192/ltcube_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.fits
.....................!
real 192.67
user 187.71
sys 4.25

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/12192/ft1_filtered_4FGL_J1037.4-2933_daily_bin1067.fits scfile=/scratch/kocevski/12192/ft2_4FGL_J1037.4-2933_daily_bin1067.fits outfile=/scratch/kocevski/12192/cmap_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=159.356 yref=-29.5568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12192/ft1_filtered_4FGL_J1037.4-2933_daily_bin1067.fits scfile=/scratch/kocevski/12192/ft2_4FGL_J1037.4-2933_daily_bin1067.fits outfile=/scratch/kocevski/12192/cmap_HighResolution_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.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.58
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12192/ft1_filtered_4FGL_J1037.4-2933_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/12192/ft2_4FGL_J1037.4-2933_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12192/Model_4FGL_J1037.4-2933_daily_bin1067.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/12192/ft1_filtered_4FGL_J1037.4-2933_daily_bin1067.fits.....................!
real 63.04
user 61.60
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0306       1.0000         .10000E-03   10000.    
     3 'norm      '    9.8779       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21972E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    30.333       1.0000         .10000E-03   10000.    
     7 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0813       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92645       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=   5830.620     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2233 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3450        .28055E-07** at limit **
   2  norm          1.0307        1.4973       -.92409E-07    .53480E-03
   3  norm          9.8800        10.298        .19351E-07    .25096E-03
   4  Prefactor     45.973        41.115        .17720E-06    .25860E-03
   5  Prefactor     .10172E-03    55.787       -.13898E-04** at limit **
   6  norm          30.341        17.045        .93423E-08    .52003E-03
   7  norm          .10000E-03    4.1661        .97485E-07** at limit **
   8  Prefactor     .10000E-03    5.7941        .34895E-07** at limit **
   9  Prefactor     8.3064        18.177       -.37954E-06   -.83214E-04
  10  Prefactor     .10000E-03    8.0075        .22506E-06** at limit **
  11  norm          10.287        5.1228       -.25644E-06   -.18478E-03
  12  Prefactor     5.3562        15.399        .17904E-05    .16257E-03
  13  Prefactor     .10003E-03    17.328        .96820E-05** at limit **
  14  Prefactor     3.5070        12.270       -.12979E-05    .93689E-04
  15  Prefactor     .10000E-03    3.2963        .57928E-07** at limit **
  16  Prefactor     .10000E-03    22.330        .10831E-05** at limit **
  17  Prefactor     16.413        28.590       -.11161E-06   -.95805E-05
  18  Prefactor     .10000E-03    4.3895        .33670E-07** at limit **
  19  Prefactor     .10000E-03    22.277        .29307E-06** at limit **
  20  Normalizat    1.0822        .27393        .14341E-05   -.19261E-04
  21  Prefactor     .92592        .12410       -.12723E-05   -.50886E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.03068
  norm       = 9.88001
  Prefactor  = 45.9734
  Prefactor  = 0.000101717
  norm       = 30.3412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3064
  Prefactor  = 0.0001
  norm       = 10.2866
  Prefactor  = 5.35615
  Prefactor  = 0.000100027
  Prefactor  = 3.50698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08223
  Prefactor  = 0.925923
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.620     FROM HESSE     STATUS=OK           319 CALLS     2552 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3488        .17242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0307        1.3495        .10771E-02   -1.5505    
   3  norm          9.8800        10.254        .12750E-03   -1.5079    
   4  Prefactor     45.973        40.617        .59128E-04   -1.4351    
   5  Prefactor     .10172E-03    190.89        .51716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.341        16.779        .72748E-04   -1.4606    
   7  norm          .10000E-03    4.1873        .15218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8102        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3064        18.104        .13913E-03   -1.5131    
  10  Prefactor     .10000E-03    8.0177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.287        5.1159        .11533E-03   -1.5066    
  12  Prefactor     5.3562        15.452        .17418E-03   -1.5245    
  13  Prefactor     .10003E-03    21.285        .33063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5070        12.298        .21581E-03   -1.5333    
  15  Prefactor     .10000E-03    3.3206        .13534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.413        28.578        .98902E-04   -1.4897    
  18  Prefactor     .10000E-03    4.3937        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0822        .32514        .34972E-03   -.90324    
  21  Prefactor     .92592        .15055        .17954E-03   -.95241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09515e-08
Minuit parameter uncertainties:
  1  5.31571e-06
  2  1.34951
  3  10.2555
  4  40.6418
  5  0.0363232
  6  16.7818
  7  5.73341e-07
  8  1.09975e-05
  9  18.1158
  10  1.58747e-05
  11  5.11616
  12  15.4631
  13  0.00151742
  14  12.3065
  15  6.98044e-06
  16  5.52458e-05
  17  28.6022
  18  1.41786e-05
  19  3.81439e-05
  20  0.325744
  21  0.150616
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.587e-05  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.259e-01  1.506e-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.082e+00  3.257e-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: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12192/likelihoodResults_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.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) = 5830.62088725
delta logL = -0.000593698160628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5830.62029379
delta logL = -2.37256244873e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3959       1.0000          .0000       10.000    
     3 'Normalizat'    1.0821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92597       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=   5830.620     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    88.964        .18142E-02** at limit **
   2  Index         2.3344        7.2701        .50000        .15576E-04
   3  Normalizat    1.0822        .21232E-01    .34972E-03    .10988E-04
   4  Prefactor     .92593        .10233E-01    .17954E-03    .23112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101403
  Index      = 2.33437
  Normalizat = 1.08222
  Prefactor  = 0.925927
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.620     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10140E-03    374.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3344        8.3603        .50000       -.56229    
   3  Normalizat    1.0822        .45569E-01    .13989E-04   -.90325    
   4  Prefactor     .92593        .21963E-01    .71816E-05   -.95241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12219e-08
Minuit parameter uncertainties:
  1  0.0461538
  2  759.124
  3  0.0455705
  4  0.0219631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12192': 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) = 5830.62029331
delta logL = 2.40418557951e-07

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.014e-04  4.615e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.334e+00  7.591e+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.259e-01  2.196e-02  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.082e+00  4.557e-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/12192/cmap_HighResolution_515894401_516153601_4FGL_J1037.4-2933_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-02 05:36:57.951694', job_id='12192', GAL2='0.93', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630586217.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1067' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 12192: <4FGL_J1037.4-2933_daily_bin1067> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1067> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 05:21:22 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:25:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:25:52 2021
Terminated at Thu Sep  2 05:36:58 2021
Results reported at Thu Sep  2 05:36:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1067 159.356 -29.5568 515894401 516153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.4-2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            936 sec.

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

