/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 201 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_bin1322
RA = 309.252, Dec = -28.4383
tmin = 581990401, tmax = 582249601
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='77849', job_status='RUN', time_executed='2021-09-25 14:04:14.013056', time_epoch_executed='1632603854.01' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77849/ft1_4FGL_J2037.0-2826_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77849/ft2_4FGL_J2037.0-2826_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77849/ft1_4FGL_J2037.0-2826_daily_bin1322.fits outfile=/scratch/kocevski/77849/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1322.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=581990401.0 tmax=582249601.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.40
user 2.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77849/ft1_filtered_4FGL_J2037.0-2826_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/77849/ft2_4FGL_J2037.0-2826_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/77849/ltcube_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.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/77849/ft2_4FGL_J2037.0-2826_daily_bin1322.fits
.....................!
real 16.19
user 15.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77849/ft1_filtered_4FGL_J2037.0-2826_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/77849/ft2_4FGL_J2037.0-2826_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/77849/ltcube_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.fits outfile=/scratch/kocevski/77849/expmap_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.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/77849/ltcube_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.fits
.....................!
real 192.11
user 185.47
sys 5.62

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/77849/ft1_filtered_4FGL_J2037.0-2826_daily_bin1322.fits scfile=/scratch/kocevski/77849/ft2_4FGL_J2037.0-2826_daily_bin1322.fits outfile=/scratch/kocevski/77849/cmap_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.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.56
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77849/ft1_filtered_4FGL_J2037.0-2826_daily_bin1322.fits scfile=/scratch/kocevski/77849/ft2_4FGL_J2037.0-2826_daily_bin1322.fits outfile=/scratch/kocevski/77849/cmap_HighResolution_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77849/ft1_filtered_4FGL_J2037.0-2826_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/77849/ft2_4FGL_J2037.0-2826_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77849/Model_4FGL_J2037.0-2826_daily_bin1322.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/77849/ft1_filtered_4FGL_J2037.0-2826_daily_bin1322.fits.....................!
real 52.34
user 50.54
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.281       1.0000         .10000E-03   10000.    
     3 'norm      '    .16775E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    116.43       1.0000         .10000E-03   10000.    
     5 'norm      '    14.623       1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8953       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.825       1.0000         .10000E-03   10000.    
    10 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14270E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    6.9350       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .73819       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1381       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=   5416.445     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1727 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5932        15.910        .21448E-06    .65020E-04
   2  Prefactor     39.286        81.546        .10760E-05    .16347E-04
   3  norm          .10076E-03    27.970       -.61447E-05** at limit **
   4  Prefactor     116.53        102.14       -.19910E-06    .28663E-04
   5  norm          14.653        26.057        .13593E-06    .39439E-04
   6  Prefactor     76.038        80.287       -.74400E-06    .51660E-04
   7  Prefactor     .10000E-03    6.2359        .17399E-05** at limit **
   8  Prefactor     1.9013        4.6114        .56446E-06    .31220E-03
   9  Prefactor     10.741        136.72        .14217E-05    .19764E-04
  10  norm          .10000E-03    7.7103       -.50900E-06** at limit **
  11  Prefactor     66.435        37.623        .60272E-06    .25757E-03
  12  Prefactor     .10000E-03    34.425       -.53631E-06** at limit **
  13  Prefactor     .18798        7.5335        .64803E-07   -.28584E-03
  14  norm          6.9438        18.166        .27691E-06    .27142E-04
  15  Normalizat    .73637        .34527        .11311E-04    .44719E-03
  16  Prefactor     1.1384        .14284       -.28596E-05    .10726E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.59318
  Prefactor  = 39.2864
  norm       = 0.000100763
  Prefactor  = 116.534
  norm       = 14.6534
  Prefactor  = 76.0378
  Prefactor  = 0.000100001
  Prefactor  = 1.90134
  Prefactor  = 10.7407
  norm       = 0.0001
  Prefactor  = 66.4346
  Prefactor  = 0.0001
  Prefactor  = 0.187979
  norm       = 6.94377
  Normalizat = 0.736371
  Prefactor  = 1.13838
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.445     FROM HESSE     STATUS=OK           209 CALLS     1936 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5932        15.796        .14562E-03   -1.5157    
   2  Prefactor     39.286        81.272        .63952E-04   -1.4454    
   3  norm          .10076E-03    96.603        .58339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     116.53        102.07        .18644E-03   -1.3545    
   5  norm          14.653        26.003        .10474E-03   -1.4942    
   6  Prefactor     76.038        80.289        .23045E-03   -1.3962    
   7  Prefactor     .10000E-03    6.2836        .17915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9013        4.5722        .23185E-03   -1.5432    
   9  Prefactor     10.741        137.51        .12177E-03   -1.5052    
  10  norm          .10000E-03    7.7198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     66.435        37.600        .49229E-04   -1.4076    
  12  Prefactor     .10000E-03    34.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18798        84.986        .36443E-02   -1.5621    
  14  norm          6.9438        18.139        .15234E-03   -1.5181    
  15  Normalizat    .73637        .37040        .48012E-03   -1.0247    
  16  Prefactor     1.1384        .14739        .16425E-03   -.88249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17033e-08
Minuit parameter uncertainties:
  1  15.8051
  2  81.5029
  3  0.0171951
  4  102.223
  5  26.0235
  6  80.4037
  7  0.000124537
  8  4.57308
  9  77.0821
  10  4.94652e-05
  11  37.6139
  12  0.000154216
  13  8.00319
  14  18.1536
  15  0.371671
  16  0.147445
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.245e-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.138e+00  1.474e-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:  7.364e-01  3.717e-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.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77849/likelihoodResults_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.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) = 5416.44532269
delta logL = -0.000758497493734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5416.44456443
delta logL = -2.33214450418e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5607       1.0000          .0000       10.000    
     3 'Normalizat'    .73625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1384       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=   5416.445     FROM MIGRAD    STATUS=FAILED        97 CALLS      252 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    823.66        .17946E-02** at limit **
   2  Index         2.3226        8.1781        .50000       -.36905E-06
   3  Normalizat    .73636        .10719        .48010E-03   -.10412E-03
   4  Prefactor     1.1384        .45080E-01    .16425E-03   -.28204E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5416.445     FROM SIMPLEX   STATUS=UNCHANGED    195 CALLS      447 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    823.66        .41675E-03** at limit **
   2  Index         2.3226        8.1781        .13617E-05   -.36905E-06
   3  Normalizat    .73636        .10719        .13202E-06   -.10412E-03
   4  Prefactor     1.1384        .45080E-01    .18776E-07   -.28204E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5416.445     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      481 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3079        .35893E-03** at limit **
   2  Index         2.3263        6.1120        .50000       -.19434E-06
   3  Normalizat    .73636        .33486        .19204E-04   -.10348E-03
   4  Prefactor     1.1384        .14114        .32850E-04   -.28005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32633
  Normalizat = 0.736364
  Prefactor  = 1.13838
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.445     FROM HESSE     STATUS=OK            29 CALLS      510 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5924        .71785E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3263        5.0213        .50000       -.56419    
   3  Normalizat    .73636        .33487        .38408E-05   -1.0247    
   4  Prefactor     1.1384        .14115        .65699E-05   -.88249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16909e-10
Minuit parameter uncertainties:
  1  6.21838e-05
  2  159.24
  3  0.335805
  4  0.141194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77849': 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) = 5416.44456392
delta logL = 2.78821971733e-07

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  6.218e-05  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.326e+00  1.592e+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.138e+00  1.412e-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:  7.364e-01  3.358e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/77849/cmap_HighResolution_581990401_582249601_4FGL_J2037.0-2826_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-25 14:13:18.406884', job_id='77849', GAL2='1.14', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632604398.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1322' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 14:13:18 PDT 2021


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

Job <4FGL_J2037.0-2826_daily_bin1322> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 14:00:27 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 14:00:43 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:43 2021
Terminated at Sat Sep 25 14:13:19 2021
Results reported at Sat Sep 25 14:13:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin1322 309.252 -28.4383 581990401 582249601 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 :                                   528.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            772 sec.

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

