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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1453
RA = 159.356, Dec = -29.5568
tmin = 615945601, tmax = 616204801
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='14831', job_status='RUN', time_executed='2021-09-02 05:35:08.191606', time_epoch_executed='1630586108.19' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14831/ft1_4FGL_J1037.4-2933_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14831/ft2_4FGL_J1037.4-2933_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14831/ft1_4FGL_J1037.4-2933_daily_bin1453.fits outfile=/scratch/kocevski/14831/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1453.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=615945601.0 tmax=616204801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.22
user 3.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14831/ft1_filtered_4FGL_J1037.4-2933_daily_bin1453.fits" evtable="EVENTS" scfile=/scratch/kocevski/14831/ft2_4FGL_J1037.4-2933_daily_bin1453.fits sctable="SC_DATA" outfile=/scratch/kocevski/14831/ltcube_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.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/14831/ft2_4FGL_J1037.4-2933_daily_bin1453.fits
.....................!
real 14.54
user 14.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14831/ft1_filtered_4FGL_J1037.4-2933_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/14831/ft2_4FGL_J1037.4-2933_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/14831/ltcube_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.fits outfile=/scratch/kocevski/14831/expmap_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.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/14831/ltcube_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.fits
.....................!
real 189.60
user 185.30
sys 3.96

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/14831/ft1_filtered_4FGL_J1037.4-2933_daily_bin1453.fits scfile=/scratch/kocevski/14831/ft2_4FGL_J1037.4-2933_daily_bin1453.fits outfile=/scratch/kocevski/14831/cmap_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14831/ft1_filtered_4FGL_J1037.4-2933_daily_bin1453.fits scfile=/scratch/kocevski/14831/ft2_4FGL_J1037.4-2933_daily_bin1453.fits outfile=/scratch/kocevski/14831/cmap_HighResolution_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14831/ft1_filtered_4FGL_J1037.4-2933_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/14831/ft2_4FGL_J1037.4-2933_daily_bin1453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14831/Model_4FGL_J1037.4-2933_daily_bin1453.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/14831/ft1_filtered_4FGL_J1037.4-2933_daily_bin1453.fits.....................!
real 69.95
user 68.25
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1336       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15792E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11859E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5402       1.0000         .10000E-03   10000.    
     7 'norm      '    21.372       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .67808       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4205       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20114E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5363       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6230       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83931       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6239.889     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     1927 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9091         .0000    ** at limit **
   2  norm          2.1337        1.6715         .0000       -.70944E-03
   3  norm          8.4426        8.5120         .0000       -.67741E-03
   4  Prefactor     .10004E-03    87.484         .0000    ** at limit **
   5  Prefactor     .10000E-03    17.358         .0000    ** at limit **
   6  norm          4.5296        17.728         .0000        .18395E-02
   7  norm          21.384        14.928         .0000       -.81036E-03
   8  Prefactor     .10000E-03    11.457         .0000    ** at limit **
   9  Prefactor     .10000E-03    16.756         .0000    ** at limit **
  10  Prefactor     .10000E-03    29.995         .0000    ** at limit **
  11  norm          .67896        5.8689         .0000        .17035E-02
  12  Prefactor     .10000E-03    7.3862         .0000    ** at limit **
  13  Prefactor     4.7130        5.9333         .0000       -.80792E-03
  14  Prefactor     .10000E-03    6.7431         .0000    ** at limit **
  15  Prefactor     .10000E-03    2.8236         .0000    ** at limit **
  16  Prefactor     1.4215        22.399         .0000        .74556E-02
  17  Prefactor     .10008E-03    301.07         .0000    ** at limit **
  18  Prefactor     5.4931        17.722         .0000        .50875E-03
  19  Prefactor     .10000E-03    61.157         .0000    ** at limit **
  20  Normalizat    1.6228        .26595         .0000       -.43570E-04
  21  Prefactor     .83938        .12037         .0000       -.17317E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.13369
  norm       = 8.44263
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  norm       = 4.52962
  norm       = 21.3842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.678963
  Prefactor  = 0.0001
  Prefactor  = 4.713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42146
  Prefactor  = 0.000100082
  Prefactor  = 5.49309
  Prefactor  = 0.000100001
  Normalizat = 1.62281
  Prefactor  = 0.83938
 **********
 **   18 **HESSE 
 **********

 FCN=   6239.889     FROM HESSE     STATUS=OK           311 CALLS     2238 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9105        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1337        1.6750        .86930E-04   -1.5416    
   3  norm          8.4426        8.5051        .13797E-03   -1.5127    
   4  Prefactor     .10004E-03    88.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5296        17.480        .94466E-03   -1.5282    
   7  norm          21.384        14.772        .86641E-04   -1.4783    
   8  Prefactor     .10000E-03    11.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .67896        5.8943        .34940E-02   -1.5543    
  12  Prefactor     .10000E-03    7.3993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7130        5.8641        .18534E-03   -1.5274    
  14  Prefactor     .10000E-03    6.7716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8358        .12961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4215        22.631        .18149E-02   -1.5470    
  17  Prefactor     .10008E-03    304.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4931        17.648        .17075E-03   -1.5239    
  19  Prefactor     .10000E-03    61.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6228        .31609        .31631E-03   -.74384    
  21  Prefactor     .83938        .14297        .19642E-03   -.98293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05833e-09
Minuit parameter uncertainties:
  1  3.35681e-05
  2  1.67507
  3  8.50635
  4  0.00388253
  5  3.02747e-05
  6  17.4992
  7  14.7746
  8  7.73057e-05
  9  2.22315e-05
  10  5.56219e-05
  11  4.00123
  12  7.40731e-06
  13  5.8648
  14  2.09109e-05
  15  4.8353e-05
  16  11.3482
  17  0.0100368
  18  17.6645
  19  0.000577397
  20  0.316479
  21  0.14303
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.562e-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:  8.394e-01  1.430e-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.623e+00  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14831/likelihoodResults_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.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) = 6239.88956438
delta logL = -0.000157483188559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6239.8894072
delta logL = -3.02266016661e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6690       1.0000          .0000       10.000    
     3 'Normalizat'    1.6228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83938       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=   6239.889     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.469        .90712E-02** at limit **
   2  Index         2.6440        5.5018        .50000        .77293E-05
   3  Normalizat    1.6228        .53108E-02    .71497E-01    .10813E-03
   4  Prefactor     .83938        .24878E-02    .44228E-01    .13081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.64397
  Normalizat = 1.62281
  Prefactor  = 0.83938
 **********
 **   18 **HESSE 
 **********

 FCN=   6239.889     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    137.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6440        8.6551        .50000       -.49066    
   3  Normalizat    1.6228        .15241E-01    .31631E-03   -.74384    
   4  Prefactor     .83938        .71434E-02    .19642E-03   -.98293    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47425e-07
Minuit parameter uncertainties:
  1  0.00208058
  2  240.892
  3  0.0152406
  4  0.00714337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14831': 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) = 6239.88940709
delta logL = -1.89365891856e-07

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.081e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.644e+00  2.409e+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:  8.394e-01  7.143e-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.623e+00  1.524e-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/14831/cmap_HighResolution_615945601_616204801_4FGL_J1037.4-2933_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-02 05:45:51.052538', job_id='14831', GAL2='0.84', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1630586751.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1453' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 14831: <4FGL_J1037.4-2933_daily_bin1453> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1453 159.356 -29.5568 615945601 616204801 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 :                                   609.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

