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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin1029
RA = 309.252, Dec = -28.4383
tmin = 506044801, tmax = 506304001
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='75054', job_status='RUN', time_executed='2021-09-25 13:54:15.599251', time_epoch_executed='1632603255.6' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75054/ft1_4FGL_J2037.0-2826_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75054/ft1_4FGL_J2037.0-2826_daily_bin1029.fits outfile=/scratch/kocevski/75054/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1029.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=506044801.0 tmax=506304001.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.32
user 4.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.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/75054/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/75054/ltcube_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.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/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits
.....................!
real 13.52
user 13.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/75054/ltcube_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.fits outfile=/scratch/kocevski/75054/expmap_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.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/75054/ltcube_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.fits
.....................!
real 191.88
user 185.71
sys 5.46

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/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits scfile=/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits outfile=/scratch/kocevski/75054/cmap_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits scfile=/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits outfile=/scratch/kocevski/75054/cmap_HighResolution_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75054/Model_4FGL_J2037.0-2826_daily_bin1029.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/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits.....................!
real 75.47
user 73.88
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits', '/scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits', expMap='/scratch/kocevski/75054/expmap_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.fits', expCube='/scratch/kocevski/75054/ltcube_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75054/Model_4FGL_J2037.0-2826_daily_bin1029.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/75054/ft1_filtered_4FGL_J2037.0-2826_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/75054/ft2_4FGL_J2037.0-2826_daily_bin1029.fits
Exposure map: /scratch/kocevski/75054/expmap_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.fits
Exposure cube: /scratch/kocevski/75054/ltcube_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75054/Model_4FGL_J2037.0-2826_daily_bin1029.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) = 8561.80807081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0494       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8317       1.0000         .10000E-03   10000.    
     3 'norm      '    12.688       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .76287E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.223       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54750E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .12296E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.569       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2551       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .81966       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.2419       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=   8561.804     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     1703 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0543        6.3181        .81622E-03    .20472E-03
   2  Prefactor     6.8390        24.211        .15350E-03   -.11850E-05
   3  norm          12.699        13.489        .11246E-03    .83908E-04
   4  Prefactor     .10000E-03    52.851        .18142E-02** at limit **
   5  norm          .99377E-01    8.2117        .72918E-01    .32366E-03
   6  Prefactor     21.191        42.063        .86943E-04   -.30336E-04
   7  Prefactor     .10000E-03    9.9241        .36285E-03** at limit **
   8  Prefactor     15.105        6.7760        .10306E-03    .14804E-03
   9  Prefactor     .10000E-03    440.56        .19075E-02** at limit **
  10  norm          .10000E-03    22.107        .18142E-02** at limit **
  11  Prefactor     .10000E-03    10.351        .18142E-02** at limit **
  12  Prefactor     32.593        31.595        .70213E-04    .32383E-06
  13  Prefactor     .10000E-03    5.7104        .18142E-02** at limit **
  14  norm          6.2527        6.2765        .16050E-03   -.33999E-05
  15  Normalizat    .81889        .28799        .47130E-03    .35141E-03
  16  Prefactor     1.2419        .12057        .16295E-03    .46980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.05429
  Prefactor  = 6.83905
  norm       = 12.6986
  Prefactor  = 0.0001
  norm       = 0.0993775
  Prefactor  = 21.1906
  Prefactor  = 0.0001
  Prefactor  = 15.1048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5933
  Prefactor  = 0.0001
  norm       = 6.25267
  Normalizat = 0.818888
  Prefactor  = 1.24189
 **********
 **   18 **HESSE 
 **********

 FCN=   8561.804     FROM HESSE     STATUS=OK           197 CALLS     1900 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0543        6.3163        .32649E-04   -1.5216    
   2  Prefactor     6.8390        24.203        .61402E-05   -1.5185    
   3  norm          12.699        13.489        .44982E-05   -1.4995    
   4  Prefactor     .10000E-03    52.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .99377E-01    7.6414        .76988E-01   -1.5645    
   6  Prefactor     21.191        42.030        .34777E-05   -1.4787    
   7  Prefactor     .10000E-03    9.9248        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.105        6.7758        .41225E-05   -1.4930    
   9  Prefactor     .10000E-03    440.72        .38149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    22.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.593        31.576        .28085E-05   -1.4566    
  13  Prefactor     .10000E-03    5.7153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2527        6.2765        .64201E-05   -1.5208    
  15  Normalizat    .81889        .28809        .18852E-04   -.99372    
  16  Prefactor     1.2419        .12060        .32589E-04   -.85052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55545e-10
Minuit parameter uncertainties:
  1  6.317
  2  24.238
  3  13.4927
  4  4.17728e-05
  5  1.74221
  6  42.0891
  7  9.08851e-05
  8  6.77611
  9  0.0004477
  10  4.91295e-05
  11  7.61553e-06
  12  31.5921
  13  1.14855e-06
  14  6.2772
  15  0.288634
  16  0.120623
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  9.089e-05  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.242e+00  1.206e-01  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:  8.189e-01  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 309.252 -28.438
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75054/likelihoodResults_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8561.80427257
delta logL = -0.000481223307361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8561.80379183
delta logL = -4.88873411086e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11338E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5974       1.0000          .0000       10.000    
     3 'Normalizat'    .81888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2419       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8561.804     FROM MIGRAD    STATUS=FAILED        98 CALLS      257 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11505E-03    85.181        .33868E-02** at limit **
   2  Index         2.9524        7.1449        .50000       -.13996E-04
   3  Normalizat    .81889        .15234E-01    .47130E-03    .11101E-03
   4  Prefactor     1.2419        .63967E-02    .16294E-03   -.20256E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8561.804     FROM SIMPLEX   STATUS=PROGRESS     115 CALLS      372 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    85.181        .57715E-03** at limit **
   2  Index         2.9506        7.1449        .55612E-03   -.13996E-04
   3  Normalizat    .81888        .15234E-01    .37955E-05    .11101E-03
   4  Prefactor     1.2419        .63967E-02    .14585E-05   -.20256E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8561.804     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      411 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    .97458E-01    .67736E-01** at limit **
   2  Index         3.0140        6.0773        .50000       -.95336E-05
   3  Normalizat    .81888        .13492E-02    .18852E-04   -.18873E-02
   4  Prefactor     1.2419        .56651E-03    .32589E-04   -.60034E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101404
  Index      = 3.01399
  Normalizat = 0.818879
  Prefactor  = 1.24189
 **********
 **   18 **HESSE 
 **********

 FCN=   8561.804     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      442 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10140E-03    101.47        .26465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0140        5.3483        .50000       -.40847    
   3  Normalizat    .81888        .16224E-01    .37704E-05   -.99372    
   4  Prefactor     1.2419        .68122E-02    .65178E-05   -.85052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29594e-09
Minuit parameter uncertainties:
  1  0.023908
  2  375.532
  3  0.0162242
  4  0.00681218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75054': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8561.8037895
delta logL = 1.84650525625e-06

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.014e-04  2.391e-02  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  3.014e+00  3.755e+02  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.242e+00  6.812e-03  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:  8.189e-01  1.622e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.252 -28.438

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/75054/cmap_HighResolution_506044801_506304001_4FGL_J2037.0-2826_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-25 14:05:18.167822', job_id='75054', GAL2='1.24', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632603918.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1029' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 14:05:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 75054: <4FGL_J2037.0-2826_daily_bin1029> in cluster <slac> Done

Job <4FGL_J2037.0-2826_daily_bin1029> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 13:50:41 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 13:51:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 13:51:54 2021
Terminated at Sat Sep 25 14:05:18 2021
Results reported at Sat Sep 25 14:05:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin1029 309.252 -28.4383 506044801 506304001 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 :                                   661.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             262.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            877 sec.

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

