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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin1573
RA = 309.252, Dec = -28.4383
tmin = 647049601, tmax = 647308801
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='78231', job_status='RUN', time_executed='2021-09-25 14:04:07.848331', time_epoch_executed='1632603847.85' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78231/ft1_4FGL_J2037.0-2826_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78231/ft2_4FGL_J2037.0-2826_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78231/ft1_4FGL_J2037.0-2826_daily_bin1573.fits outfile=/scratch/kocevski/78231/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1573.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=647049601.0 tmax=647308801.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.51
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/78231/ft2_4FGL_J2037.0-2826_daily_bin1573.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/78231/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1573.fits evtable="EVENTS" outfile="/scratch/kocevski/78231/ft1_filtered_4FGL_J2037.0-2826_daily_bin1573.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/78231/ft1_filtered_4FGL_J2037.0-2826_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/78231/ft2_4FGL_J2037.0-2826_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/78231/ltcube_647049601_647308801_4FGL_J2037.0-2826_daily_bin1573.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/78231/ft2_4FGL_J2037.0-2826_daily_bin1573.fits
.....................!
real 12.60
user 12.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78231/ft1_filtered_4FGL_J2037.0-2826_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/78231/ft2_4FGL_J2037.0-2826_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/78231/ltcube_647049601_647308801_4FGL_J2037.0-2826_daily_bin1573.fits outfile=/scratch/kocevski/78231/expmap_647049601_647308801_4FGL_J2037.0-2826_daily_bin1573.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/78231/ltcube_647049601_647308801_4FGL_J2037.0-2826_daily_bin1573.fits
.....................!
real 190.89
user 185.46
sys 5.08

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/78231/ft1_filtered_4FGL_J2037.0-2826_daily_bin1573.fits scfile=/scratch/kocevski/78231/ft2_4FGL_J2037.0-2826_daily_bin1573.fits outfile=/scratch/kocevski/78231/cmap_647049601_647308801_4FGL_J2037.0-2826_daily_bin1573.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/78231/ft1_filtered_4FGL_J2037.0-2826_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/78231/ft2_4FGL_J2037.0-2826_daily_bin1573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/78231/Model_4FGL_J2037.0-2826_daily_bin1573.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/78231/ft1_filtered_4FGL_J2037.0-2826_daily_bin1573.fits.....................!
real 65.52
user 63.48
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2531       1.0000         .10000E-03   10000.    
     3 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    63.327       1.0000         .10000E-03   10000.    
     5 'norm      '    14.977       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36546       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.425       1.0000         .10000E-03   10000.    
    10 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.385       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.321       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5264       1.0000         .10000E-03   10000.    
    14 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .86047       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1952       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=   7093.692     FROM MIGRAD    STATUS=CONVERGED    303 CALLS     1724 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3245       -.13588E-05** at limit **
   2  Prefactor     1.0914        461.70       -.59104E-04   -.96984E-05
   3  norm          .10000E-03    13.061        .67455E-06** at limit **
   4  Prefactor     63.333        74.938        .13476E-05    .66068E-05
   5  norm          14.984        16.809        .10713E-06   -.20262E-04
   6  Prefactor     .10000E-03    28.822        .30339E-07** at limit **
   7  Prefactor     .10000E-03    9.9617        .84399E-06** at limit **
   8  Prefactor     .36687        3.1277        .71901E-07    .29198E-03
   9  Prefactor     27.422        127.25        .10979E-04    .65185E-05
  10  norm          .10000E-03    132.15        .23349E-05** at limit **
  11  Prefactor     16.407        31.208        .22665E-05   -.11007E-05
  12  Prefactor     11.314        27.806        .12590E-05    .62621E-06
  13  Prefactor     2.5263        8.2458        .23768E-05    .67621E-04
  14  norm          .10000E-03    4.1500        .43628E-07** at limit **
  15  Normalizat    .86003        .33188       -.14126E-04   -.47466E-04
  16  Prefactor     1.1953        .12627        .29032E-05   -.53209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.09141
  norm       = 0.0001
  Prefactor  = 63.3331
  norm       = 14.9843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.366873
  Prefactor  = 27.4215
  norm       = 0.0001
  Prefactor  = 16.4073
  Prefactor  = 11.3143
  Prefactor  = 2.52628
  norm       = 0.0001
  Normalizat = 0.860033
  Prefactor  = 1.19535
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.692     FROM HESSE     STATUS=OK           203 CALLS     1927 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3382        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0914        477.88        .39923E-02   -1.5499    
   3  norm          .10000E-03    13.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     63.333        74.978        .50426E-04   -1.4115    
   5  norm          14.984        16.827        .10349E-03   -1.4934    
   6  Prefactor     .10000E-03    28.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36687        19.810        .28413E-02   -1.5587    
   9  Prefactor     27.422        126.88        .76499E-04   -1.4660    
  10  norm          .10000E-03    133.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.407        31.216        .98944E-04   -1.4898    
  12  Prefactor     11.314        27.827        .11907E-03   -1.5035    
  13  Prefactor     2.5263        8.2461        .25700E-03   -1.5390    
  14  norm          .10000E-03    4.1507        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .86003        .35773        .47166E-03   -.97879    
  16  Prefactor     1.1953        .13819        .16318E-03   -.86475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41885e-09
Minuit parameter uncertainties:
  1  1.85671e-05
  2  46.048
  3  6.98889e-05
  4  75.0901
  5  16.8323
  6  4.91484e-05
  7  7.80231e-05
  8  5.39284
  9  118.386
  10  0.000199835
  11  31.2475
  12  27.8588
  13  8.24984
  14  2.5937e-06
  15  0.358722
  16  0.138229
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  7.802e-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.195e+00  1.382e-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.600e-01  3.587e-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.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78231/likelihoodResults_647049601_647308801_4FGL_J2037.0-2826_daily_bin1573.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) = 7093.69263773
delta logL = -0.00045859110287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7093.6921793
delta logL = -1.59253431775e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5402       1.0000          .0000       10.000    
     3 'Normalizat'    .85984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1954       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=   7093.692     FROM MIGRAD    STATUS=FAILED        91 CALLS      249 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10300E-03    109.14        .36285E-02** at limit **
   2  Index         2.4484        5.3515        .50000        .15557E-04
   3  Normalizat    .86003        .22045E-01    .47168E-03    .52833E-04
   4  Prefactor     1.1954        .89079E-02    .16318E-03    .13932E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7093.692     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      371 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    109.14        .43907E-03** at limit **
   2  Index         2.4474        5.3515        .31650E-03    .15557E-04
   3  Normalizat    .86002        .22045E-01    .42128E-05    .52833E-04
   4  Prefactor     1.1953        .89079E-02    .16171E-05    .13932E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7093.692     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      428 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.674        .72569E-02** at limit **
   2  Index         2.2541        6.1176        .50000       -.58640E-07
   3  Normalizat    .86003        .18341E-01    .18867E-04    .23018E-04
   4  Prefactor     1.1954        .74113E-02    .32636E-04    .54481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25412
  Normalizat = 0.860029
  Prefactor  = 1.19535
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.692     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      457 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1619.3        .29028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2541        8.3550        .50000       -.58138    
   3  Normalizat    .86003        .10168        .37734E-05   -.97879    
   4  Prefactor     1.1954        .41087E-01    .65272E-05   -.86474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.87229e-10
Minuit parameter uncertainties:
  1  0.000127576
  2  1327.25
  3  0.101707
  4  0.0410881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78231': 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) = 7093.69217825
delta logL = 8.87524038262e-07

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.276e-04  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.254e+00  1.327e+03  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.195e+00  4.109e-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:  8.600e-01  1.017e-01  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/78231/cmap_HighResolution_647049601_647308801_4FGL_J2037.0-2826_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-25 14:14:01.633837', job_id='78231', GAL2='1.20', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632604441.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='8.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1573' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 14:14:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 78231: <4FGL_J2037.0-2826_daily_bin1573> in cluster <slac> Done

Job <4FGL_J2037.0-2826_daily_bin1573> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 14:01:01 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 14:01:46 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:01:46 2021
Terminated at Sat Sep 25 14:14:02 2021
Results reported at Sat Sep 25 14:14:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin1573 309.252 -28.4383 647049601 647308801 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 :                                   591.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            781 sec.

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

