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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1597
RA = 159.356, Dec = -29.5568
tmin = 653270401, tmax = 653529601
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='544986', job_status='RUN', time_executed='2021-09-17 00:56:53.837295', time_epoch_executed='1631865413.84' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544986

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544986/ft1_4FGL_J1037.4-2933_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544986/ft2_4FGL_J1037.4-2933_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544986/ft1_4FGL_J1037.4-2933_daily_bin1597.fits outfile=/scratch/kocevski/544986/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1597.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=653270401.0 tmax=653529601.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.31
user 3.08
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544986/ft1_filtered_4FGL_J1037.4-2933_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/544986/ft2_4FGL_J1037.4-2933_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/544986/ltcube_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.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/544986/ft2_4FGL_J1037.4-2933_daily_bin1597.fits
.....................!
real 12.36
user 12.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544986/ft1_filtered_4FGL_J1037.4-2933_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/544986/ft2_4FGL_J1037.4-2933_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/544986/ltcube_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.fits outfile=/scratch/kocevski/544986/expmap_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.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/544986/ltcube_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.fits
.....................!
real 190.04
user 184.91
sys 4.66

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/544986/ft1_filtered_4FGL_J1037.4-2933_daily_bin1597.fits scfile=/scratch/kocevski/544986/ft2_4FGL_J1037.4-2933_daily_bin1597.fits outfile=/scratch/kocevski/544986/cmap_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544986/ft1_filtered_4FGL_J1037.4-2933_daily_bin1597.fits scfile=/scratch/kocevski/544986/ft2_4FGL_J1037.4-2933_daily_bin1597.fits outfile=/scratch/kocevski/544986/cmap_HighResolution_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4446       1.0000         .10000E-03   10000.    
     3 'norm      '    10.880       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.465       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6975       1.0000         .10000E-03   10000.    
    11 'norm      '    .12094E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.459       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1544       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9463       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.867       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2290       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91986       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=   8125.098     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2221 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9907        .18297E-06** at limit **
   2  norm          1.4444        1.6331        .11265E-06    .30835E-04
   3  norm          10.878        8.7957        .16376E-06    .21799E-04
   4  Prefactor     .10000E-03    79.962       -.44199E-05** at limit **
   5  Prefactor     .10000E-03    6.6231        .34770E-06** at limit **
   6  norm          17.452        10.070        .15069E-06    .58801E-04
   7  norm          .10000E-03    1.8368        .23051E-07** at limit **
   8  Prefactor     .10000E-03    6.3540       -.47151E-06** at limit **
   9  Prefactor     1.6729        19.152        .12243E-04   -.42980E-04
  10  Prefactor     5.6914        10.965       -.36673E-06   -.65986E-04
  11  norm          .10000E-03    1.7071        .87125E-07** at limit **
  12  Prefactor     12.469        19.131       -.14587E-05   -.13962E-04
  13  Prefactor     4.1535        5.2951       -.23778E-06   -.14452E-03
  14  Prefactor     29.156        14.935        .11107E-06   -.43210E-04
  15  Prefactor     .10000E-03    10.889        .12448E-06** at limit **
  16  Prefactor     8.9495        9.0356        .36666E-06   -.34834E-04
  17  Prefactor     .10000E-03    13.299       -.36738E-06** at limit **
  18  Prefactor     .10000E-03    17.867        .42804E-06** at limit **
  19  Prefactor     19.789        51.120        .15749E-04    .33355E-04
  20  Normalizat    1.2289        .23001       -.10576E-05    .20516E-04
  21  Prefactor     .91985        .10437       -.41220E-07    .30761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.44442
  norm       = 10.8781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4521
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67287
  Prefactor  = 5.69139
  norm       = 0.0001
  Prefactor  = 12.4695
  Prefactor  = 4.15353
  Prefactor  = 29.1563
  Prefactor  = 0.0001
  Prefactor  = 8.94954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7892
  Normalizat = 1.22892
  Prefactor  = 0.919847
 **********
 **   18 **HESSE 
 **********

 FCN=   8125.098     FROM HESSE     STATUS=OK           321 CALLS     2542 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4444        1.6176        .11698E-03   -1.5468    
   3  norm          10.878        8.7944        .12146E-03   -1.5048    
   4  Prefactor     .10000E-03    82.151        .42482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.452        10.069        .95838E-04   -1.4872    
   7  norm          .10000E-03    1.8400        .11928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6729        19.289        .16250E-02   -1.5449    
  10  Prefactor     5.6914        10.810        .16828E-03   -1.5231    
  11  norm          .10000E-03    3.3898        .22262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.469        19.211        .11349E-03   -1.5002    
  13  Prefactor     4.1535        5.2031        .19775E-03   -1.5300    
  14  Prefactor     29.156        14.896        .74202E-04   -1.4628    
  15  Prefactor     .10000E-03    11.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9495        9.0390        .67002E-03   -1.5110    
  17  Prefactor     .10000E-03    13.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.789        51.155        .89860E-04   -1.4818    
  20  Normalizat    1.2289        .27440        .34162E-03   -.85714    
  21  Prefactor     .91985        .12519        .18313E-03   -.95451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14642e-11
Minuit parameter uncertainties:
  1  3.20026e-06
  2  1.61761
  3  8.79545
  4  0.000274853
  5  5.73553e-06
  6  10.0702
  7  6.77051e-07
  8  1.80132e-06
  9  11.3654
  10  10.8137
  11  4.60566e-05
  12  19.2203
  13  5.20362
  14  14.8983
  15  3.89098e-06
  16  9.04039
  17  3.23049e-06
  18  1.68056e-05
  19  51.2685
  20  0.27472
  21  0.125224
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  5.691e+00  1.081e+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:  9.198e-01  1.252e-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.229e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/544986/likelihoodResults_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.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) = 8125.03987326
delta logL = 0.0583975084082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8125.03769095
delta logL = 0.0605798213001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6578       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0826       1.0000          .0000       10.000    
     3 'Normalizat'    1.2326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91820       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=   8125.038     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      301 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6580        15.843        .13623E-03    .37136E-04
   2  Index         2.0826        .88328        .13276E-01   -.69994E-05
   3  Normalizat    1.2325        .26112        .34119E-03    .23724E-04
   4  Prefactor     .91823        .12390        .18326E-03    .53414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.65805
  Index      = 2.08257
  Normalizat = 1.23248
  Prefactor  = 0.918232
 **********
 **   18 **HESSE 
 **********

 FCN=   8125.038     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6580        15.416        .54492E-05   -1.5119    
   2  Index         2.0826        .86026        .53106E-03   -.62301    
   3  Normalizat    1.2325        .26134        .13648E-04   -.85605    
   4  Prefactor     .91823        .12401        .73303E-05   -.95507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76537e-11
Minuit parameter uncertainties:
  1  15.4233
  2  0.86683
  3  0.261617
  4  0.124046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544986': 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) = 8125.03769091
delta logL = 0.0605798634169

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  8.658e+00  1.542e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.083e+00  8.668e-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:  9.182e-01  1.240e-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.232e+00  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/544986/cmap_HighResolution_653270401_653529601_4FGL_J1037.4-2933_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-17 01:08:48.144828', job_id='544986', GAL2='0.92', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631866128.14', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.06e-02', ts2='0.54', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1597' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 01:08:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 544986: <4FGL_J1037.4-2933_daily_bin1597> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1597> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 00:55:20 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:55:22 2021
Terminated at Fri Sep 17 01:08:48 2021
Results reported at Fri Sep 17 01:08:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1597 159.356 -29.5568 653270401 653529601 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

