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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin563
RA = 339.414, Dec = -51.4347
tmin = 385257601, tmax = 385516801
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='427299', job_status='RUN', time_executed='2021-09-28 18:05:51.190777', time_epoch_executed='1632877551.19' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427299/ft1_4FGL_J2237.6-5126_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427299/ft1_4FGL_J2237.6-5126_daily_bin563.fits outfile=/scratch/kocevski/427299/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin563.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=385257601.0 tmax=385516801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.50
user 3.27
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.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/427299/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin563.fits evtable="EVENTS" outfile="/scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/427299/ltcube_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.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/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits
.....................!
real 11.68
user 11.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/427299/ltcube_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.fits outfile=/scratch/kocevski/427299/expmap_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.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/427299/ltcube_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.fits
.....................!
real 189.61
user 185.22
sys 4.09

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2237.6-5126 @ 339.414 -51.4347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits scfile=/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits outfile=/scratch/kocevski/427299/cmap_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.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=339.414 yref=-51.4347 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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits scfile=/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits outfile=/scratch/kocevski/427299/cmap_HighResolution_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.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=339.414 yref=-51.4347 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427299/Model_4FGL_J2237.6-5126_daily_bin563.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/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits.....................!
real 40.46
user 39.20
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits', '/scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits', expMap='/scratch/kocevski/427299/expmap_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.fits', expCube='/scratch/kocevski/427299/ltcube_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/427299/Model_4FGL_J2237.6-5126_daily_bin563.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2237.6-5126'

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  4.169e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.012e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/427299/ft1_filtered_4FGL_J2237.6-5126_daily_bin563.fits
Spacecraft file(s): /scratch/kocevski/427299/ft2_4FGL_J2237.6-5126_daily_bin563.fits
Exposure map: /scratch/kocevski/427299/expmap_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.fits
Exposure cube: /scratch/kocevski/427299/ltcube_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/427299/Model_4FGL_J2237.6-5126_daily_bin563.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) = 5139.99753839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.912       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6379       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.939       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.671       1.0000         .10000E-03   10000.    
     7 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25136E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.889       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.385       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1678       1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.6284       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .35392E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6891       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0639       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0750       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=   5139.970     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3813 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.915        25.947        .17192E-06    .16017E-04
   2  Prefactor     4.6382        5.1921        .34169E-06    .51172E-04
   3  Prefactor     31.936        32.604       -.53502E-07   -.11829E-04
   4  Prefactor     .10000E-03    11.005        .66049E-05** at limit **
   5  Prefactor     6.9028        4.4164       -.39487E-07   -.71966E-04
   6  Prefactor     33.777        119.59        .17791E-05    .55729E-04
   7  norm          .10000E-03    4.7277        .20260E-06** at limit **
   8  Prefactor     .54072        3.0304       -.16893E-05    .10766E-02
   9  Prefactor     .10000E-03    49.974       -.15015E-06** at limit **
  10  Prefactor     .10003E-03    4.0536       -.14156E-05** at limit **
  11  Prefactor     1.6823        152.44        .15300E-04    .40024E-04
  12  Prefactor     16.880        13.549       -.13865E-05   -.97024E-05
  13  Prefactor     6.9205        238.22        .13422E-05    .48073E-04
  14  Prefactor     .10000E-03    7.7144       -.10990E-06** at limit **
  15  Prefactor     11.405        30.091        .37371E-06    .11885E-03
  16  Prefactor     8.1604        17.017       -.15393E-05    .11491E-03
  17  norm          .10000E-03    13.543       -.32326E-06** at limit **
  18  norm          5.6222        10.116        .57298E-05    .24670E-03
  19  Prefactor     .10000E-03    8.8703       -.10993E-05** at limit **
  20  Prefactor     .10000E-03    6.5978       -.90668E-07** at limit **
  21  norm          .50494E-02    .72660       -.49348E-06   -.53573E-03
  22  Prefactor     .10000E-03    30.524       -.16958E-06** at limit **
  23  Prefactor     6.6877        5.0595        .22099E-06    .31045E-03
  24  Prefactor     .10000E-03    13.437        .16644E-07** at limit **
  25  norm          .10000E-03    31.325        .10214E-06** at limit **
  26  Normalizat    1.0642        .22087        .18956E-05    .26719E-03
  27  Prefactor     1.0748        .18923       -.23527E-05    .36120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9151
  Prefactor  = 4.63822
  Prefactor  = 31.936
  Prefactor  = 0.0001
  Prefactor  = 6.90284
  Prefactor  = 33.7769
  norm       = 0.0001
  Prefactor  = 0.540723
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 1.68234
  Prefactor  = 16.8804
  Prefactor  = 6.92051
  Prefactor  = 0.0001
  Prefactor  = 11.4052
  Prefactor  = 8.16038
  norm       = 0.0001
  norm       = 5.62225
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.00504937
  Prefactor  = 0.0001
  Prefactor  = 6.68773
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.06422
  Prefactor  = 1.07481
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.970     FROM HESSE     STATUS=OK           496 CALLS     4309 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.915        25.941        .72066E-04   -1.4595    
   2  Prefactor     4.6382        5.1817        .16429E-03   -1.5277    
   3  Prefactor     31.936        32.610        .70900E-04   -1.4577    
   4  Prefactor     .10000E-03    10.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9028        4.4143        .11508E-03   -1.5182    
   6  Prefactor     33.777        118.24        .69058E-04   -1.4545    
   7  norm          .10000E-03    4.7489        .15223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .54072        9.3456        .22525E-02   -1.5561    
   9  Prefactor     .10000E-03    50.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    21.005        .26172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6823        142.42        .32191E-03   -1.5449    
  12  Prefactor     16.880        13.301        .97457E-04   -1.4886    
  13  Prefactor     6.9205        236.24        .15311E-03   -1.5182    
  14  Prefactor     .10000E-03    7.7792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.405        30.049        .11873E-03   -1.5032    
  16  Prefactor     8.1604        16.952        .14028E-03   -1.5137    
  17  norm          .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.6222        10.834        .84664E-03   -1.5234    
  19  Prefactor     .10000E-03    9.0716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6096        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .50494E-02    1.7529        .20207E-01   -1.5694    
  22  Prefactor     .10000E-03    30.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.6877        5.0903        .13380E-03   -1.5191    
  24  Prefactor     .10000E-03    13.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    31.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0642        .26124        .26223E-03   -.90909    
  27  Prefactor     1.0748        .22285        .23366E-03   -.90276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11911e-09
Minuit parameter uncertainties:
  1  25.9508
  2  5.18217
  3  32.6281
  4  3.90472e-05
  5  4.41455
  6  119.074
  7  1.8058e-07
  8  4.49636
  9  0.000117705
  10  0.00168758
  11  31.0337
  12  13.3032
  13  81.2173
  14  2.86915e-05
  15  30.0887
  16  16.9624
  17  4.99704e-05
  18  10.8373
  19  0.000163465
  20  5.44388e-06
  21  0.186295
  22  5.16981e-06
  23  5.09059
  24  1.6786e-05
  25  4.34424e-05
  26  0.26156
  27  0.22304
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.682e+00  3.103e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.012e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.075e+00  2.230e-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.064e+00  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 339.414 -51.435
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427299/likelihoodResults_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.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) = 5139.22209268
delta logL = 0.748065881979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5139.11640286
delta logL = 0.853755704064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46102E-01   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .97853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1277       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.

 FCN=   5139.116     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      311 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46061E-01    1.8383        .30313E-02    .29809E-02
   2  Index        10.0000        8.8274        .50000    ** at limit **
   3  Normalizat    .97905        .11351        .45897E-01    .14687E-04
   4  Prefactor     1.1274        .96633E-01    .36619E-01   -.22195E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0460606
  Index      = 10
  Normalizat = 0.979046
  Prefactor  = 1.12743
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.116     FROM HESSE     STATUS=OK            37 CALLS      348 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46061E-01    .49767E-01    .13939E-03   -1.5665    
   2  Index        10.0000        2.0147        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97905        .25171        .27158E-03   -.93736    
   4  Prefactor     1.1274        .22231        .22886E-03   -.88595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90505e-11
Minuit parameter uncertainties:
  1  0.0497666
  2  5.63506e-05
  3  0.252017
  4  0.222495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427299': 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) = 5139.11639948
delta logL = 0.853759082175

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  4.606e-02  4.977e-02  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  1.000e+01  5.635e-05  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.127e+00  2.225e-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:  9.790e-01  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 339.414 -51.435
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.73e-08 +/- 7.05e-08
Energy Flux (Free Index): 7.52e-06 +/- 7.93e-06

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/427299/cmap_HighResolution_385257601_385516801_4FGL_J2237.6-5126_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.78e-03', comment='SUCCESS', energy_flux2='7.52e-06', dlogl='8.54e-01', photon_flux2='6.73e-08', job_status='DONE', time_completed='2021-09-28 18:17:40.351952', photon_index_error2='0.00', photon_index2='10.00', ts='0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='7.93e-06', EG='1.06', time_epoch_completed='1632878260.35', return_code='0', job_id='427299', GAL2='1.13', EG2='0.98', return_code2='0', photon_flux_error2='7.05e-08', ts2='1.82', photon_index='3.01' WHERE bin_id='563' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:17:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 427299: <4FGL_J2237.6-5126_daily_bin563> in cluster <slac> Done

Job <4FGL_J2237.6-5126_daily_bin563> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:05:34 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:05:35 2021
Terminated at Tue Sep 28 18:17:41 2021
Results reported at Tue Sep 28 18:17:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin563 339.414 -51.4347 385257601 385516801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2237.6-5126 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

