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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin1046
RA = 309.252, Dec = -28.4383
tmin = 510451201, tmax = 510710401
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='75081', job_status='RUN', time_executed='2021-09-25 13:55:57.476153', time_epoch_executed='1632603357.48' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75081

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75081/ft1_4FGL_J2037.0-2826_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75081/ft1_4FGL_J2037.0-2826_daily_bin1046.fits outfile=/scratch/kocevski/75081/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1046.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=510451201.0 tmax=510710401.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.00
user 3.71
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.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/75081/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/75081/ft1_filtered_4FGL_J2037.0-2826_daily_bin1046.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/75081/ft1_filtered_4FGL_J2037.0-2826_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/75081/ltcube_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.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/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.fits
.....................!
real 13.19
user 12.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75081/ft1_filtered_4FGL_J2037.0-2826_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/75081/ltcube_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.fits outfile=/scratch/kocevski/75081/expmap_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.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/75081/ltcube_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.fits
.....................!
real 191.07
user 185.69
sys 4.84

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/75081/ft1_filtered_4FGL_J2037.0-2826_daily_bin1046.fits scfile=/scratch/kocevski/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.fits outfile=/scratch/kocevski/75081/cmap_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75081/ft1_filtered_4FGL_J2037.0-2826_daily_bin1046.fits scfile=/scratch/kocevski/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.fits outfile=/scratch/kocevski/75081/cmap_HighResolution_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.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.58
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75081/ft1_filtered_4FGL_J2037.0-2826_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/75081/ft2_4FGL_J2037.0-2826_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75081/Model_4FGL_J2037.0-2826_daily_bin1046.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/75081/ft1_filtered_4FGL_J2037.0-2826_daily_bin1046.fits.....................!
real 62.13
user 60.70
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.212       1.0000         .10000E-03   10000.    
     5 'norm      '    .19140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.778       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8438       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.689       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.932       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42484       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1303       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91114       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=   7064.014     FROM MIGRAD    STATUS=CONVERGED    297 CALLS     1529 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.737        7.8568       -.55491E-06   -.11284E-05
   2  Prefactor     .10000E-03    11.298       -.32892E-06** at limit **
   3  norm          .10000E-03    6.9967       -.26792E-06** at limit **
   4  Prefactor     52.213        45.734       -.86119E-06    .16308E-04
   5  norm          .18908        8.6364       -.16444E-05   -.23905E-03
   6  Prefactor     2.6765        104.08        .56775E-04   -.70754E-05
   7  Prefactor     .10000E-03    3.8488       -.48232E-06** at limit **
   8  Prefactor     7.8110        5.8420       -.18274E-05   -.12418E-03
   9  Prefactor     44.670        58.695       -.96437E-04   -.70454E-05
  10  norm          7.8461        19.451        .25395E-04    .26808E-04
  11  Prefactor     51.692        27.401       -.23946E-05    .84463E-04
  12  Prefactor     17.935        23.297       -.15140E-04    .11736E-04
  13  Prefactor     .43391        4.9358       -.42562E-06   -.21581E-03
  14  norm          .10000E-03    9.0570       -.85711E-07** at limit **
  15  Normalizat    1.1298        .25898        .91855E-05   -.56779E-04
  16  Prefactor     .91134        .98037E-01   -.10447E-05    .67851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.2132
  norm       = 0.18908
  Prefactor  = 2.67645
  Prefactor  = 0.000100002
  Prefactor  = 7.81096
  Prefactor  = 44.6701
  norm       = 7.84611
  Prefactor  = 51.6918
  Prefactor  = 17.9355
  Prefactor  = 0.433909
  norm       = 0.0001
  Normalizat = 1.12977
  Prefactor  = 0.911336
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.014     FROM HESSE     STATUS=OK           215 CALLS     1744 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.737        7.8653        .95101E-04   -1.4865    
   2  Prefactor     .10000E-03    11.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.0309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     52.213        45.738        .55505E-04   -1.4262    
   5  norm          .18908        14.206        .71600E-01   -1.5621    
   6  Prefactor     2.6765        102.77        .24621E-03   -1.5381    
   7  Prefactor     .10000E-03    10.325        .31574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8110        5.8457        .14348E-03   -1.5149    
   9  Prefactor     44.670        58.715        .29957E-03   -1.4370    
  10  norm          7.8461        19.434        .14317E-03   -1.5148    
  11  Prefactor     51.692        27.505        .55783E-04   -1.4269    
  12  Prefactor     17.935        23.319        .94582E-04   -1.4861    
  13  Prefactor     .43391        15.092        .35144E-02   -1.5576    
  14  norm          .10000E-03    9.1039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1298        .29868        .38151E-03   -.88802    
  16  Prefactor     .91134        .11495        .16707E-03   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84092e-08
Minuit parameter uncertainties:
  1  7.86571
  2  8.79229e-06
  3  2.45905e-05
  4  45.7685
  5  3.27781
  6  33.2305
  7  0.000290497
  8  5.84612
  9  58.7911
  10  19.4501
  11  27.5116
  12  23.3306
  13  5.11879
  14  1.71939e-05
  15  0.299126
  16  0.114982
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  2.905e-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:  9.113e-01  1.150e-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:  1.130e+00  2.991e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75081/likelihoodResults_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.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) = 7064.01478265
delta logL = -0.000459644177681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7064.01432357
delta logL = -5.5856162362e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6389       1.0000          .0000       10.000    
     3 'Normalizat'    1.1302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91119       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=   7063.970     FROM MIGRAD    STATUS=FAILED       170 CALLS      341 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40903        25.566        .31898E-02   -.30293E-01
   2  Index         3.9055        2.0108        .50000        .88729E-06
   3  Normalizat    1.1086        .31968E-01    .38151E-03   -.69671E-04
   4  Prefactor     .91537        .12791E-01    .16707E-03   -.75724E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7063.970     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      413 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40903        25.566        .17088E-03   -.30293E-01
   2  Index         3.9055        2.0108        .19568E-02    .88729E-06
   3  Normalizat    1.1086        .31968E-01    .64822E-04   -.69671E-04
   4  Prefactor     .91537        .12791E-01    .19735E-04   -.75724E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7063.970     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      450 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40903        2.4496        .63795E-03   -.11880E-02
   2  Index         3.9055        2.6550        .73085E-02   -.53122E-05
   3  Normalizat    1.1086        .28987        .15260E-04   -.61089E-04
   4  Prefactor     .91537        .11358        .33414E-04   -.62672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.409031
  Index      = 3.90546
  Normalizat = 1.10862
  Prefactor  = 0.915373
 **********
 **   18 **HESSE 
 **********

 FCN=   7063.970     FROM HESSE     STATUS=OK            27 CALLS      477 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40903        2.5142        .12759E-03   -1.5836    
   2  Index         3.9055        2.6794        .29234E-03   -.22070    
   3  Normalizat    1.1086        .28993        .30521E-05   -.89476    
   4  Prefactor     .91537        .11358        .66827E-05   -.95606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3824e-11
Minuit parameter uncertainties:
  1  2.02808
  2  2.83654
  3  0.290344
  4  0.113608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75081': 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) = 7063.96993807
delta logL = 0.044384939888

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  4.090e-01  2.028e+00  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  3.905e+00  2.837e+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:  9.154e-01  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:  1.109e+00  2.903e-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/75081/cmap_HighResolution_510451201_510710401_4FGL_J2037.0-2826_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-25 14:05:43.952855', job_id='75081', GAL2='0.92', fit_tolerance='1e-08', EG2='1.11', EG='1.13', time_epoch_completed='1632603943.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.44e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1046' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 14:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 75081: <4FGL_J2037.0-2826_daily_bin1046> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin1046 309.252 -28.4383 510451201 510710401 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 :                                   584.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            901 sec.

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

