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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin838
RA = 309.252, Dec = -28.4383
tmin = 456537601, tmax = 456796801
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='73635', job_status='RUN', time_executed='2021-09-25 13:47:57.640560', time_epoch_executed='1632602877.64' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73635/ft1_4FGL_J2037.0-2826_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73635/ft2_4FGL_J2037.0-2826_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73635/ft1_4FGL_J2037.0-2826_daily_bin838.fits outfile=/scratch/kocevski/73635/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin838.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=456537601.0 tmax=456796801.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 5.28
user 5.00
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73635/ft1_filtered_4FGL_J2037.0-2826_daily_bin838.fits" evtable="EVENTS" scfile=/scratch/kocevski/73635/ft2_4FGL_J2037.0-2826_daily_bin838.fits sctable="SC_DATA" outfile=/scratch/kocevski/73635/ltcube_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.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/73635/ft2_4FGL_J2037.0-2826_daily_bin838.fits
.....................!
real 15.08
user 14.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73635/ft1_filtered_4FGL_J2037.0-2826_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/73635/ft2_4FGL_J2037.0-2826_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/73635/ltcube_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.fits outfile=/scratch/kocevski/73635/expmap_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.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/73635/ltcube_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.fits
.....................!
real 191.12
user 185.09
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/73635/ft1_filtered_4FGL_J2037.0-2826_daily_bin838.fits scfile=/scratch/kocevski/73635/ft2_4FGL_J2037.0-2826_daily_bin838.fits outfile=/scratch/kocevski/73635/cmap_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73635/ft1_filtered_4FGL_J2037.0-2826_daily_bin838.fits scfile=/scratch/kocevski/73635/ft2_4FGL_J2037.0-2826_daily_bin838.fits outfile=/scratch/kocevski/73635/cmap_HighResolution_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.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/73635/ft1_filtered_4FGL_J2037.0-2826_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/73635/ft2_4FGL_J2037.0-2826_daily_bin838.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73635/Model_4FGL_J2037.0-2826_daily_bin838.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/73635/ft1_filtered_4FGL_J2037.0-2826_daily_bin838.fits.....................!
real 60.20
user 58.82
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9329       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.187       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5780       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .44870       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1566       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=   7155.510     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     1421 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9329        6.0547       -.15875E-05   -.82381E-03
   2  Prefactor     .10000E-03    16.217        .27701E-05** at limit **
   3  norm          10.173        15.953        .15917E-06   -.65698E-04
   4  Prefactor     .10000E-03    18.682        .56434E-05** at limit **
   5  norm          6.7942        8.1831        .48118E-06   -.12336E-03
   6  Prefactor     21.168        50.739       -.38275E-04   -.93103E-04
   7  Prefactor     .10000E-03    6.9352        .81212E-05** at limit **
   8  Prefactor     .10000E-03    1.8002       -.56434E-07** at limit **
   9  Prefactor     .10000E-03    20.178       -.14297E-05** at limit **
  10  norm          .10000E-03    7.7816       -.81405E-05** at limit **
  11  Prefactor     .10000E-03    5.2329       -.12860E-05** at limit **
  12  Prefactor     .10000E-03    20.709       -.61769E-05** at limit **
  13  Prefactor     .10000E-03    4.7400        .38719E-06** at limit **
  14  norm          2.5781        5.8128       -.56512E-06   -.32786E-03
  15  Normalizat    .44864        .24502        .50077E-05   -.77714E-04
  16  Prefactor     1.1567        .10745       -.24886E-07   -.33524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93285
  Prefactor  = 0.0001
  norm       = 10.1727
  Prefactor  = 0.0001
  norm       = 6.79417
  Prefactor  = 21.1676
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.57814
  Normalizat = 0.448637
  Prefactor  = 1.15666
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.510     FROM HESSE     STATUS=OK           195 CALLS     1616 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9329        6.1215        .29872E-03   -1.5430    
   2  Prefactor     .10000E-03    16.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.173        15.961        .12564E-03   -1.5070    
   4  Prefactor     .10000E-03    18.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7942        8.1746        .15393E-03   -1.5187    
   6  Prefactor     21.168        50.698        .87017E-04   -1.4787    
   7  Prefactor     .10000E-03    7.2677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8152        .11081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.7460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8607        .35919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5781        5.7936        .25419E-03   -1.5387    
  15  Normalizat    .44864        .25335        .50052E-03   -1.1486    
  16  Prefactor     1.1567        .11360        .14152E-03   -.87676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65544e-09
Minuit parameter uncertainties:
  1  6.12345
  2  1.70531e-05
  3  15.9682
  4  1.11738e-05
  5  8.17595
  6  50.8018
  7  0.000184251
  8  5.46644e-06
  9  2.30196e-08
  10  3.24237e-07
  11  5.85733e-06
  12  4.5031e-05
  13  3.06905e-05
  14  5.79483
  15  0.254004
  16  0.113626
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.843e-04  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.157e+00  1.136e-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:  4.486e-01  2.540e-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: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73635/likelihoodResults_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.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) = 7155.51052028
delta logL = -0.000656862306641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7155.50986366
delta logL = -2.41073394136e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6081       1.0000          .0000       10.000    
     3 'Normalizat'    .44855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1567       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=   7155.489     FROM MIGRAD    STATUS=FAILED       160 CALLS      320 TOTAL
                     EDM=   .32E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20145        23.951        .36285E-02   -.57344E-01
   2  Index         4.0087        2.2234        .50000       -.18505E-04
   3  Normalizat    .43478        .26181E-01    .50051E-03   -.80590E-04
   4  Prefactor     1.1595        .11589E-01    .14152E-03   -.23155E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7155.489     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      391 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20145        23.951        .21850E-03   -.57344E-01
   2  Index         4.0087        2.2234        .36161E-02   -.18505E-04
   3  Normalizat    .43478        .26181E-01    .21467E-03   -.80590E-04
   4  Prefactor     1.1595        .11589E-01    .28685E-04   -.23155E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7155.489     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      424 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20146        2.4109        .72569E-03   -.22389E-02
   2  Index         4.0087        3.2475        .84105E-02   -.14331E-04
   3  Normalizat    .43478        .25928        .20021E-04   -.35434E-04
   4  Prefactor     1.1595        .11227        .28305E-04   -.11905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.201455
  Index      = 4.00866
  Normalizat = 0.43478
  Prefactor  = 1.15954
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.489     FROM HESSE     STATUS=OK            27 CALLS      451 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20146        2.7147        .14514E-03   -1.5798    
   2  Index         4.0087        3.3933        .33642E-03   -.19959    
   3  Normalizat    .43478        .25947        .40041E-05   -1.1554    
   4  Prefactor     1.1595        .11228        .56609E-05   -.87586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12692e-10
Minuit parameter uncertainties:
  1  1.47876
  2  3.74818
  3  0.260196
  4  0.112302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73635': 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) = 7155.48914751
delta logL = 0.0207159107013

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  2.015e-01  1.479e+00  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  4.009e+00  3.748e+00  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.160e+00  1.123e-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:  4.348e-01  2.602e-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/73635/cmap_HighResolution_456537601_456796801_4FGL_J2037.0-2826_daily_bin838.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-25 13:57:42.828935', job_id='73635', GAL2='1.16', fit_tolerance='1e-08', EG2='0.43', EG='0.45', time_epoch_completed='1632603462.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.07e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='838' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 13:57:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 73635: <4FGL_J2037.0-2826_daily_bin838> in cluster <slac> Done

Job <4FGL_J2037.0-2826_daily_bin838> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 25 13:45:42 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 13:47:36 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:47:36 2021
Terminated at Sat Sep 25 13:57:43 2021
Results reported at Sat Sep 25 13:57:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin838 309.252 -28.4383 456537601 456796801 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 :                                   583.56 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            721 sec.

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

