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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin1373
RA = 309.252, Dec = -28.4383
tmin = 595209601, tmax = 595468801
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='77929', job_status='RUN', time_executed='2021-09-25 14:04:46.271840', time_epoch_executed='1632603886.27' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77929/ft1_4FGL_J2037.0-2826_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77929/ft1_4FGL_J2037.0-2826_daily_bin1373.fits outfile=/scratch/kocevski/77929/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1373.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=595209601.0 tmax=595468801.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 2.94
user 2.71
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.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/77929/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.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.59
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/77929/ltcube_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.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/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits
.....................!
real 15.83
user 15.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/77929/ltcube_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.fits outfile=/scratch/kocevski/77929/expmap_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.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/77929/ltcube_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.fits
.....................!
real 191.30
user 186.62
sys 4.17

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

Setting source of interest to:
4FGL J2037.0-2826 @ 309.252 -28.4383

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits scfile=/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits outfile=/scratch/kocevski/77929/cmap_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.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=309.252 yref=-28.4383 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.67
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits scfile=/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits outfile=/scratch/kocevski/77929/cmap_HighResolution_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.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=309.252 yref=-28.4383 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.61
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77929/Model_4FGL_J2037.0-2826_daily_bin1373.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/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits.....................!
real 107.60
user 105.48
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits', '/scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits', expMap='/scratch/kocevski/77929/expmap_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.fits', expCube='/scratch/kocevski/77929/ltcube_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77929/Model_4FGL_J2037.0-2826_daily_bin1373.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2037.0-2826'

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.729e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77929/ft1_filtered_4FGL_J2037.0-2826_daily_bin1373.fits
Spacecraft file(s): /scratch/kocevski/77929/ft2_4FGL_J2037.0-2826_daily_bin1373.fits
Exposure map: /scratch/kocevski/77929/expmap_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.fits
Exposure cube: /scratch/kocevski/77929/ltcube_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77929/Model_4FGL_J2037.0-2826_daily_bin1373.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) = 13149.4400793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.764       1.0000         .10000E-03   10000.    
     3 'norm      '    8.6852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.355       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3774       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82288       1.0000         .10000E-03   10000.    
    14 'norm      '    11.961       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1806       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13149.44     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1469 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1930        4.2600        .22009E-06    .14830E-03
   2  Prefactor     13.764        16.974        .84371E-07   -.55273E-05
   3  norm          8.6860        11.664        .47807E-06    .26957E-06
   4  Prefactor     .10003E-03    73.032       -.74182E-05** at limit **
   5  norm          .10000E-03    2.0658        .59647E-07** at limit **
   6  Prefactor     .10000E-03    33.014       -.31465E-07** at limit **
   7  Prefactor     10.355        5.7325        .28327E-06    .11769E-03
   8  Prefactor     1.3775        3.3461        .15022E-05   -.27659E-03
   9  Prefactor     .10003E-03    64.590        .64304E-05** at limit **
  10  norm          .10000E-03    5.3085        .31772E-07** at limit **
  11  Prefactor     10.187        13.280       -.92842E-08   -.76499E-04
  12  Prefactor     47.685        21.679        .16891E-06   -.23590E-04
  13  Prefactor     .82309        3.9939        .38980E-05   -.38017E-03
  14  norm          11.961        8.0493        .45459E-07    .45131E-04
  15  Normalizat    1.1806        .19370       -.12877E-05   -.17277E-03
  16  Prefactor     1.0127        .77008E-01   -.12212E-06   -.35531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.19303
  Prefactor  = 13.764
  norm       = 8.68604
  Prefactor  = 0.000100033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3548
  Prefactor  = 1.3775
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 10.1874
  Prefactor  = 47.6847
  Prefactor  = 0.823092
  norm       = 11.9615
  Normalizat = 1.18058
  Prefactor  = 1.01271
 **********
 **   18 **HESSE 
 **********

 FCN=   13149.44     FROM HESSE     STATUS=OK           205 CALLS     1674 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1930        4.2643        .14007E-03   -1.5135    
   2  Prefactor     13.764        16.983        .10796E-03   -1.4966    
   3  norm          8.6860        11.673        .13601E-03   -1.5118    
   4  Prefactor     .10003E-03    78.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0716        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.355        5.7429        .12452E-03   -1.5064    
   8  Prefactor     1.3775        3.3588        .31582E-03   -1.5473    
   9  Prefactor     .10003E-03    69.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.3111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.187        13.307        .12554E-03   -1.5070    
  12  Prefactor     47.685        21.693        .58068E-04   -1.4326    
  13  Prefactor     .82309        4.1404        .44477E-03   -1.5527    
  14  norm          11.961        8.0511        .11583E-03   -1.5016    
  15  Normalizat    1.1806        .22606        .38255E-03   -.87205    
  16  Prefactor     1.0127        .90585E-01    .16784E-03   -.92307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14518e-09
Minuit parameter uncertainties:
  1  4.2645
  2  16.9894
  3  11.676
  4  0.00323943
  5  5.00828e-06
  6  3.5035e-05
  7  5.74325
  8  3.35923
  9  0.00280085
  10  2.81598e-06
  11  13.3112
  12  21.697
  13  3.69231
  14  8.05178
  15  0.226246
  16  0.090599
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.035e+01  5.743e+00  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.013e+00  9.060e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.181e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.06
Ra Dec: 309.252 -28.438
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 7.91e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.19e-05

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) = 13149.4269896
delta logL = 0.0121606587072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13149.4190895
delta logL = 0.0200607090501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4921       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6947       1.0000          .0000       10.000    
     3 'Normalizat'    1.1723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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=   13149.42     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4916        7.8698        .13007E-03   -.24420E-03
   2  Index         2.6948        .72385        .89657E-02   -.70441E-04
   3  Normalizat    1.1723        .22305        .38370E-03   -.56312E-03
   4  Prefactor     1.0150        .90153E-01    .16767E-03   -.11287E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.49163
  Index      = 2.69476
  Normalizat = 1.1723
  Prefactor  = 1.01495
 **********
 **   18 **HESSE 
 **********

 FCN=   13149.42     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4916        7.1574        .52030E-05   -1.5092    
   2  Index         2.6948        .65788        .35863E-03   -.47918    
   3  Normalizat    1.1723        .22274        .15348E-04   -.87463    
   4  Prefactor     1.0150        .90062E-01    .33535E-04   -.92233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37802e-10
Minuit parameter uncertainties:
  1  7.15804
  2  0.66032
  3  0.222919
  4  0.090075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77929': 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) = 13149.4190895
delta logL = 0.0200607138158

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  9.492e+00  7.158e+00  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.695e+00  6.603e-01  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.015e+00  9.008e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.172e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 309.252 -28.438
Photon Index (Free Index): 2.69 +/- 0.66
Photon Flux (Free Index): 8.51e-08 +/- 5.37e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.20e-05

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/77929/cmap_HighResolution_595209601_595468801_4FGL_J2037.0-2826_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.91e-08', energy_flux2='2.06e-05', photon_flux_error='4.38e-08', dlogl='2.01e-02', energy_flux='2.14e-05', photon_flux2='8.51e-08', job_status='DONE', time_completed='2021-09-25 14:16:53.782510', photon_index_error2='0.66', photon_index2='2.69', ts='5.06', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.18', time_epoch_completed='1632604613.78', return_code='0', job_id='77929', GAL2='1.01', EG2='1.17', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.37e-08', ts2='5.11', photon_index='2.57' WHERE bin_id='1373' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 14:16:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 77929: <4FGL_J2037.0-2826_daily_bin1373> in cluster <slac> Done

Job <4FGL_J2037.0-2826_daily_bin1373> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 14:00:34 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 14:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 14:00:58 2021
Terminated at Sat Sep 25 14:16:54 2021
Results reported at Sat Sep 25 14:16:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin1373 309.252 -28.4383 595209601 595468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2037.0-2826 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            980 sec.

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

