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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin1529
RA = 309.252, Dec = -28.4383
tmin = 635644801, tmax = 635904001
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='78186', job_status='RUN', time_executed='2021-09-25 14:02:19.042996', time_epoch_executed='1632603739.04' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78186/ft1_4FGL_J2037.0-2826_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78186/ft2_4FGL_J2037.0-2826_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78186/ft1_4FGL_J2037.0-2826_daily_bin1529.fits outfile=/scratch/kocevski/78186/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1529.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=635644801.0 tmax=635904001.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.35
user 4.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78186/ft1_filtered_4FGL_J2037.0-2826_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/78186/ft2_4FGL_J2037.0-2826_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/78186/ltcube_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.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/78186/ft2_4FGL_J2037.0-2826_daily_bin1529.fits
.....................!
real 13.97
user 13.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78186/ft1_filtered_4FGL_J2037.0-2826_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/78186/ft2_4FGL_J2037.0-2826_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/78186/ltcube_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.fits outfile=/scratch/kocevski/78186/expmap_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.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/78186/ltcube_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.fits
.....................!
real 193.95
user 187.97
sys 5.31

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/78186/ft1_filtered_4FGL_J2037.0-2826_daily_bin1529.fits scfile=/scratch/kocevski/78186/ft2_4FGL_J2037.0-2826_daily_bin1529.fits outfile=/scratch/kocevski/78186/cmap_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78186/ft1_filtered_4FGL_J2037.0-2826_daily_bin1529.fits scfile=/scratch/kocevski/78186/ft2_4FGL_J2037.0-2826_daily_bin1529.fits outfile=/scratch/kocevski/78186/cmap_HighResolution_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.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/78186/ft1_filtered_4FGL_J2037.0-2826_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/78186/ft2_4FGL_J2037.0-2826_daily_bin1529.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/78186/Model_4FGL_J2037.0-2826_daily_bin1529.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/78186/ft1_filtered_4FGL_J2037.0-2826_daily_bin1529.fits.....................!
real 76.31
user 74.80
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38250E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    53.760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.167       1.0000         .10000E-03   10000.    
     5 'norm      '    22.415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.387       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11533E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
    10 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6186       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .85912       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8984.743     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     1921 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2208        .13681E-02** at limit **
   2  Prefactor     .10027E-03    28.839        .12703    ** at limit **
   3  norm          53.761        15.368        .54704E-04   -.30342E-04
   4  Prefactor     82.163        66.823        .44311E-04    .34277E-04
   5  norm          22.416        12.064        .84603E-04   -.22844E-03
   6  Prefactor     60.380        41.498        .51632E-04   -.35309E-03
   7  Prefactor     .10006E-03    12.759        .33473E-02** at limit **
   8  Prefactor     .80229        3.2503        .32738E-03   -.50770E-04
   9  Prefactor     11.476        111.36        .11819E-03   -.27895E-04
  10  norm          .10001E-03    23.803        .18142E-02** at limit **
  11  Prefactor     5.6220        17.777        .16948E-03   -.16086E-03
  12  Prefactor     .10000E-03    8.2537        .18142E-02** at limit **
  13  Prefactor     .10000E-03    9.3809        .36285E-03** at limit **
  14  norm          .10000E-03    3.7279        .17874E-02** at limit **
  15  Normalizat    .85879        .27635        .42787E-03   -.44511E-03
  16  Prefactor     1.0645        .10979        .15879E-03   -.11551E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100274
  norm       = 53.7608
  Prefactor  = 82.1633
  norm       = 22.416
  Prefactor  = 60.3803
  Prefactor  = 0.000100058
  Prefactor  = 0.802293
  Prefactor  = 11.4759
  norm       = 0.000100007
  Prefactor  = 5.62196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.85879
  Prefactor  = 1.06452
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.743     FROM HESSE     STATUS=OK           195 CALLS     2116 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2215        .27361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10027E-03    27.721        .13028       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          53.761        15.370        .21882E-05   -1.4240    
   4  Prefactor     82.163        66.825        .88622E-05   -1.3893    
   5  norm          22.416        12.063        .33841E-05   -1.4761    
   6  Prefactor     60.380        41.493        .10326E-04   -1.4152    
   7  Prefactor     .10006E-03    12.896        .66946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .80229        3.2493        .13095E-04   -1.5529    
   9  Prefactor     11.476        110.42        .47277E-05   -1.5030    
  10  norm          .10001E-03    23.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6220        17.771        .67791E-05   -1.5234    
  12  Prefactor     .10000E-03    8.2540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3814        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7279        .35747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .85879        .27642        .17115E-04   -.97924    
  16  Prefactor     1.0645        .10984        .31759E-04   -.90609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60855e-09
Minuit parameter uncertainties:
  1  8.91384e-07
  2  0.00551495
  3  15.3709
  4  66.8858
  5  12.0646
  6  41.5127
  7  0.00173405
  8  3.22927
  9  71.3671
  10  0.000813916
  11  17.7881
  12  4.49851e-05
  13  2.72595e-05
  14  3.01462e-06
  15  0.276873
  16  0.109863
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.001e-04  1.734e-03  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.065e+00  1.099e-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.588e-01  2.769e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78186/likelihoodResults_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.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) = 8984.74320157
delta logL = -0.00037089667785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8984.74283099
delta logL = -3.14532371704e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6037       1.0000          .0000       10.000    
     3 'Normalizat'    .85889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0645       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=   8984.726     FROM MIGRAD    STATUS=FAILED       265 CALLS      437 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .66993E-02    .64486E-03** at limit **
   2  Index         8.4304        9.0393        .50000        .74251E-04
   3  Normalizat    .84518        .24722E-01    .42787E-03   -.82525E-03
   4  Prefactor     1.0681        .10175E-01    .15879E-03   -.14856E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8984.726     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      561 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .66993E-02    .13167E-04** at limit **
   2  Index         8.4304        9.0393        .51555E-02    .74251E-04
   3  Normalizat    .84518        .24722E-01    .21646E-04   -.82525E-03
   4  Prefactor     1.0681        .10175E-01    .41874E-05   -.14856E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8984.726     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      648 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27507E-01    .57435E-03** at limit **
   2  Index         8.4303        5.1221        .85461E-02   -.10294E-04
   3  Normalizat    .84518        .48880E-01    .17115E-04   -.85849E-03
   4  Prefactor     1.0681        .20116E-01    .63518E-05   -.15156E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.43033
  Normalizat = 0.845179
  Prefactor  = 1.06813
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.726     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      681 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .29479E-01    .56684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4303        5.4593        .34184E-03    .75607    
   3  Normalizat    .84518        .50359E-01    .34229E-05   -.98414    
   4  Prefactor     1.0681        .20732E-01    .12704E-05   -.90492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64008e-09
Minuit parameter uncertainties:
  1  1.44598e-06
  2  23.6921
  3  0.0503621
  4  0.0207323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78186': 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) = 8984.72632636
delta logL = 0.0165043155812

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.446e-06  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  8.430e+00  2.369e+01  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.068e+00  2.073e-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.452e-01  5.036e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/78186/cmap_HighResolution_635644801_635904001_4FGL_J2037.0-2826_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-25 14:14:38.105639', job_id='78186', GAL2='1.07', fit_tolerance='1e-08', EG2='0.85', EG='0.86', time_epoch_completed='1632604478.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.65e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1529' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 14:14:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 78186: <4FGL_J2037.0-2826_daily_bin1529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin1529 309.252 -28.4383 635644801 635904001 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            822 sec.

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

