/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 179 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin239
RA = 159.427, Dec = -28.3816
tmin = 301276801, tmax = 301536001
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='25597', job_status='RUN', time_executed='2021-09-02 06:10:52.334358', time_epoch_executed='1630588252.33' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25597/ft1_4FGL_J1037.7-2822_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25597/ft1_4FGL_J1037.7-2822_daily_bin239.fits outfile=/scratch/kocevski/25597/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin239.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=301276801.0 tmax=301536001.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.52
user 4.27
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.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/25597/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin239.fits evtable="EVENTS" outfile="/scratch/kocevski/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/25597/ltcube_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.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/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits
.....................!
real 15.42
user 15.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/25597/ltcube_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.fits outfile=/scratch/kocevski/25597/expmap_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.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/25597/ltcube_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.fits
.....................!
real 190.49
user 185.42
sys 4.68

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J1037.7-2822 @ 159.427 -28.3816

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits scfile=/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits outfile=/scratch/kocevski/25597/cmap_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.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.427 yref=-28.3816 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits scfile=/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits outfile=/scratch/kocevski/25597/cmap_HighResolution_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.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.427 yref=-28.3816 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/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25597/Model_4FGL_J1037.7-2822_daily_bin239.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/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits.....................!
real 72.31
user 70.48
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits', '/scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits', expMap='/scratch/kocevski/25597/expmap_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.fits', expCube='/scratch/kocevski/25597/ltcube_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25597/Model_4FGL_J1037.7-2822_daily_bin239.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7-2822'

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/25597/ft1_filtered_4FGL_J1037.7-2822_daily_bin239.fits
Spacecraft file(s): /scratch/kocevski/25597/ft2_4FGL_J1037.7-2822_daily_bin239.fits
Exposure map: /scratch/kocevski/25597/expmap_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.fits
Exposure cube: /scratch/kocevski/25597/ltcube_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25597/Model_4FGL_J1037.7-2822_daily_bin239.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) = 6835.78175311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .56817E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    22.915       1.0000         .10000E-03   10000.    
     7 'norm      '    9.5007       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.277       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10742E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53386E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5709       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71475       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6835.754     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2106 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6046       -.27437E-07** at limit **
   2  norm          .58021E-01    .71602       -.11019E-05    .30612E-02
   3  norm          9.8980        8.5439       -.10366E-05   -.61052E-03
   4  Prefactor     21.651        31.235       -.11805E-05    .31479E-04
   5  Prefactor     .10000E-03    6.8089       -.57403E-06** at limit **
   6  norm          22.911        14.669        .64916E-05    .49010E-04
   7  norm          9.5010        8.0698       -.13769E-05   -.24933E-04
   8  Prefactor     6.9415        7.2684       -.72147E-06   -.43981E-04
   9  Prefactor     13.931        18.442       -.38858E-05    .43242E-04
  10  Prefactor     .10000E-03    6.4735        .92694E-07** at limit **
  11  norm          2.5784        3.1602       -.14248E-06   -.13656E-03
  12  Prefactor     14.280        16.462       -.50544E-05    .34043E-04
  13  Prefactor     10.845        5.7423        .23227E-05    .65582E-04
  14  Prefactor     8.1901        12.433       -.10257E-04   -.71114E-04
  15  Prefactor     .10000E-03    2.2274       -.16949E-08** at limit **
  16  Prefactor     .10000E-03    15.500        .17858E-06** at limit **
  17  Prefactor     .10011E-03    19.320       -.76767E-06** at limit **
  18  Prefactor     .10007E-03    5.1484       -.16942E-05** at limit **
  19  Normalizat    1.5709        .24156        .30741E-05    .33591E-03
  20  Prefactor     .71477        .11434       -.63668E-06    .67487E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.058021
  norm       = 9.89798
  Prefactor  = 21.651
  Prefactor  = 0.0001
  norm       = 22.911
  norm       = 9.50102
  Prefactor  = 6.94154
  Prefactor  = 13.9312
  Prefactor  = 0.0001
  norm       = 2.57839
  Prefactor  = 14.2798
  Prefactor  = 10.8454
  Prefactor  = 8.19012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100114
  Prefactor  = 0.000100074
  Normalizat = 1.57093
  Prefactor  = 0.714774
 **********
 **   18 **HESSE 
 **********

 FCN=   6835.754     FROM HESSE     STATUS=OK           301 CALLS     2407 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6055        .15331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .58021E-01    10.354        .13158E-02   -1.5660    
   3  norm          9.8980        8.5982        .63679E-03   -1.5079    
   4  Prefactor     21.651        31.238        .86063E-04   -1.4777    
   5  Prefactor     .10000E-03    6.8181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.911        14.666        .83676E-04   -1.4750    
   7  norm          9.5010        8.0648        .13002E-03   -1.5091    
   8  Prefactor     6.9415        7.2688        .15228E-03   -1.5181    
   9  Prefactor     13.931        18.400        .10732E-03   -1.4961    
  10  Prefactor     .10000E-03    6.4816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5784        3.1414        .15379E-03   -1.5387    
  12  Prefactor     14.280        16.436        .10600E-03   -1.4952    
  13  Prefactor     10.845        5.7257        .12164E-03   -1.5049    
  14  Prefactor     8.1901        12.506        .14014E-03   -1.5136    
  15  Prefactor     .10000E-03    2.2488        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-03    168.99        .70293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    23.130        .36024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5709        .28703        .29754E-03   -.75804    
  20  Prefactor     .71477        .13583        .20636E-03   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36732e-08
Minuit parameter uncertainties:
  1  7.02527e-07
  2  1.54909
  3  8.59928
  4  31.2615
  5  4.2474e-05
  6  14.6685
  7  8.06567
  8  7.2697
  9  18.4077
  10  1.12083e-06
  11  3.14162
  12  16.4409
  13  5.72597
  14  12.5101
  15  1.7713e-06
  16  5.4056e-06
  17  0.00878824
  18  0.00262185
  19  0.287331
  20  0.135897
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.578e+00  3.142e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  7.148e-01  1.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.571e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 9.42e-06 +/- 1.15e-05

TS (Fixed Index): 1.36
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25597/likelihoodResults_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.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) = 6835.53812703
delta logL = 0.21609203233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6835.53809783
delta logL = 0.216121235515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5349       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8057       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6835.538     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5331        246.51        .53749E-02    .10800E-03
   2  alpha         1.8057        4.0623        .43362       -.81990E-05
   3  Normalizat    1.5830        .26234        .67067E-01    .54999E-05
   4  Prefactor     .71018        .12244        .42537E-01    .15110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53308
  alpha      = 1.80565
  Normalizat = 1.58305
  Prefactor  = 0.710181
 **********
 **   18 **HESSE 
 **********

 FCN=   6835.538     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5331        3.9610        .16951E-03   -1.5332    
   2  alpha         1.8057        .81420        .22494E-01   -.28144    
   3  Normalizat    1.5830        .27325        .29666E-03   -.75471    
   4  Prefactor     .71018        .13465        .20694E-03   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82118e-13
Minuit parameter uncertainties:
  1  3.96129
  2  0.830664
  3  0.273507
  4  0.134714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25597': 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) = 6835.53809772
delta logL = 0.216121343708

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.533e+00  3.961e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.806e+00  8.307e-01  0.000e+00  5.000e+00 ( 1.000e+00)
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  7.102e-01  1.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.583e+00  2.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 1.81 +/- 0.83
Photon Flux (Free Index): 1.88e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.57e-05 +/- 2.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/25597/cmap_HighResolution_301276801_301536001_4FGL_J1037.7-2822_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='1.57e-05', photon_flux_error='3.43e-08', dlogl='2.16e-01', energy_flux='9.42e-06', photon_flux2='1.88e-08', job_status='DONE', time_completed='2021-09-02 06:21:57.397163', photon_index_error2='0.83', photon_index2='1.81', ts='1.36', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='2.30e-05', EG='1.57', time_epoch_completed='1630588917.4', return_code='0', job_id='25597', GAL2='0.71', EG2='1.58', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.58e-08', ts2='1.80', photon_index='2.40' WHERE bin_id='239' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 25597: <4FGL_J1037.7-2822_daily_bin239> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin239> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 06:07:01 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:07:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 06:07:03 2021
Terminated at Thu Sep  2 06:21:58 2021
Results reported at Thu Sep  2 06:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin239 159.427 -28.3816 301276801 301536001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7-2822 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             244.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            897 sec.

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

