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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1245
RA = 159.356, Dec = -29.5568
tmin = 562032001, tmax = 562291201
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='13682', job_status='RUN', time_executed='2021-09-02 05:29:34.573221', time_epoch_executed='1630585774.57' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13682

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13682/ft1_4FGL_J1037.4-2933_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13682/ft2_4FGL_J1037.4-2933_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13682/ft1_4FGL_J1037.4-2933_daily_bin1245.fits outfile=/scratch/kocevski/13682/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1245.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=562032001.0 tmax=562291201.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.59
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13682/ft1_filtered_4FGL_J1037.4-2933_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/13682/ft2_4FGL_J1037.4-2933_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/13682/ltcube_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.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/13682/ft2_4FGL_J1037.4-2933_daily_bin1245.fits
.....................!
real 14.99
user 14.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13682/ft1_filtered_4FGL_J1037.4-2933_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/13682/ft2_4FGL_J1037.4-2933_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/13682/ltcube_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.fits outfile=/scratch/kocevski/13682/expmap_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.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/13682/ltcube_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.fits
.....................!
real 191.48
user 186.94
sys 3.92

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/13682/ft1_filtered_4FGL_J1037.4-2933_daily_bin1245.fits scfile=/scratch/kocevski/13682/ft2_4FGL_J1037.4-2933_daily_bin1245.fits outfile=/scratch/kocevski/13682/cmap_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13682/ft1_filtered_4FGL_J1037.4-2933_daily_bin1245.fits scfile=/scratch/kocevski/13682/ft2_4FGL_J1037.4-2933_daily_bin1245.fits outfile=/scratch/kocevski/13682/cmap_HighResolution_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.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.57
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13682/ft1_filtered_4FGL_J1037.4-2933_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/13682/ft2_4FGL_J1037.4-2933_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13682/Model_4FGL_J1037.4-2933_daily_bin1245.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/13682/ft1_filtered_4FGL_J1037.4-2933_daily_bin1245.fits.....................!
real 58.72
user 57.22
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.824       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3136       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.643       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.460       1.0000         .10000E-03   10000.    
    11 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8643       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3160       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.955       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.068       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .74078       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2259       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=   5428.165     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2493 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.825        20.267       -.24417E-08   -.68227E-07
   2  norm          1.3140        1.9128        .32795E-06    .11385E-04
   3  norm          4.4360        7.4834        .28567E-05   -.50579E-04
   4  Prefactor     .10000E-03    9.8248        .39029E-07** at limit **
   5  Prefactor     .10000E-03    6.3480        .41810E-07** at limit **
   6  norm          28.643        15.795       -.11275E-06   -.19195E-04
   7  norm          .10000E-03    5.0085        .44188E-07** at limit **
   8  Prefactor     6.7163        9.9399        .87120E-07   -.29087E-06
   9  Prefactor     .10000E-03    6.6660       -.17723E-07** at limit **
  10  Prefactor     13.438        24.093       -.13532E-06   -.57962E-04
  11  norm          .10000E-03    3.3690       -.12470E-06** at limit **
  12  Prefactor     4.8672        16.099        .34315E-06   -.87904E-05
  13  Prefactor     .10000E-03    6.9086        .41126E-06** at limit **
  14  Prefactor     8.3176        20.774       -.13116E-07   -.46151E-04
  15  Prefactor     23.956        10.986        .91669E-07   -.28078E-04
  16  Prefactor     .10000E-03    4.9622       -.28581E-06** at limit **
  17  Prefactor     .10000E-03    83.738        .44743E-06** at limit **
  18  Prefactor     .10000E-03    9.2579        .16764E-06** at limit **
  19  Prefactor     41.929        141.52       -.98188E-06   -.32663E-04
  20  Normalizat    .74057        .34446       -.22987E-05   -.35689E-04
  21  Prefactor     1.2260        .15453        .46060E-06   -.11414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.8253
  norm       = 1.31404
  norm       = 4.43604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.6433
  norm       = 0.0001
  Prefactor  = 6.7163
  Prefactor  = 0.0001
  Prefactor  = 13.4379
  norm       = 0.0001
  Prefactor  = 4.86725
  Prefactor  = 0.0001
  Prefactor  = 8.31756
  Prefactor  = 23.9559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.929
  Normalizat = 0.740566
  Prefactor  = 1.226
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.165     FROM HESSE     STATUS=OK           319 CALLS     2812 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.825        20.274        .73365E-04   -1.4615    
   2  norm          1.3140        1.8930        .11520E-03   -1.5479    
   3  norm          4.4360        7.4823        .95606E-03   -1.5287    
   4  Prefactor     .10000E-03    9.8290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3501        .18129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.643        15.781        .74859E-04   -1.4637    
   7  norm          .10000E-03    5.0189        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7163        9.9335        .15483E-03   -1.5190    
   9  Prefactor     .10000E-03    6.6729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.438        23.242        .10918E-03   -1.4975    
  11  norm          .10000E-03    3.4116        .13157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8672        16.073        .18239E-03   -1.5267    
  13  Prefactor     .10000E-03    27.807        .33106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3176        19.763        .13902E-03   -1.5131    
  15  Prefactor     23.956        10.987        .81843E-04   -1.4729    
  16  Prefactor     .10000E-03    4.9666        .16024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    84.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.2840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.929        141.58        .30903E-03   -1.4412    
  20  Normalizat    .74057        .37633        .45228E-03   -1.0231    
  21  Prefactor     1.2260        .17225        .17716E-03   -.85535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0834e-11
Minuit parameter uncertainties:
  1  20.2783
  2  1.89311
  3  7.48391
  4  8.2047e-06
  5  4.71975e-06
  6  15.7829
  7  2.96347e-06
  8  9.93594
  9  6.58602e-06
  10  23.258
  11  3.61216e-06
  12  16.0868
  13  0.000183927
  14  19.7789
  15  10.9879
  16  6.46277e-06
  17  2.82522e-05
  18  1.28815e-05
  19  142.738
  20  0.377658
  21  0.172326
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.344e+01  2.326e+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:  1.226e+00  1.723e-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:  7.406e-01  3.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/13682/likelihoodResults_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.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): 0
logL (Free Index) = 5427.82004535
delta logL = 0.344913658315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5427.79570363
delta logL = 0.369255377655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8415       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2607       1.0000          .0000       10.000    
     3 'Normalizat'    .78025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2147       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=   5427.796     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8605        13.446        .31934E-02   -.38093E-05
   2  Index         1.2599        .53837        .30721       -.60035E-04
   3  Normalizat    .78053        .30409        .99572E-01    .33336E-04
   4  Prefactor     1.2146        .15036        .34291E-01    .11733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.86047
  Index      = 1.25986
  Normalizat = 0.780525
  Prefactor  = 1.21458
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.796     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8605        16.916        .12773E-03   -1.5080    
   2  Index         1.2599        .78352        .11693E-01   -.84509    
   3  Normalizat    .78053        .33973        .44126E-03   -1.0080    
   4  Prefactor     1.2146        .16869        .17782E-03   -.85884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4372e-09
Minuit parameter uncertainties:
  1  16.9241
  2  0.790991
  3  0.340659
  4  0.168762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13682': 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) = 5427.79570016
delta logL = 0.369258841482

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.860e+00  1.692e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.260e+00  7.910e-01  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:  1.215e+00  1.688e-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:  7.805e-01  3.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 1.26 +/- 0.79
Photon Flux (Free Index): 7.02e-09 +/- 1.20e-08
Energy Flux (Free Index): 4.88e-05 +/- 9.66e-05

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/13682/cmap_HighResolution_562032001_562291201_4FGL_J1037.4-2933_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', energy_flux2='4.88e-05', dlogl='3.69e-01', photon_flux2='7.02e-09', job_status='DONE', time_completed='2021-09-02 05:39:39.138867', photon_index_error2='0.79', photon_index2='1.26', ts='0.44', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='9.66e-05', EG='0.74', time_epoch_completed='1630586379.14', return_code='0', job_id='13682', GAL2='1.21', EG2='0.78', return_code2='0', photon_flux_error2='1.20e-08', ts2='1.17', photon_index='2.41' WHERE bin_id='1245' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 13682: <4FGL_J1037.4-2933_daily_bin1245> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1245> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 05:26:33 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:27:47 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:27:47 2021
Terminated at Thu Sep  2 05:39:39 2021
Results reported at Thu Sep  2 05:39:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1245 159.356 -29.5568 562032001 562291201 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 :                                   599.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            786 sec.

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

