/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 3 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2237.6-5126_daily_bin292
RA = 339.414, Dec = -51.4347
tmin = 315014401, tmax = 315273601
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='425848', job_status='RUN', time_executed='2021-09-28 18:01:11.015595', time_epoch_executed='1632877271.02' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425848/ft1_4FGL_J2237.6-5126_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425848/ft1_4FGL_J2237.6-5126_daily_bin292.fits outfile=/scratch/kocevski/425848/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin292.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=315014401.0 tmax=315273601.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.56
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.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/425848/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/425848/ltcube_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.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/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits
.....................!
real 12.04
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/425848/ltcube_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.fits outfile=/scratch/kocevski/425848/expmap_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.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/425848/ltcube_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.fits
.....................!
real 191.00
user 185.20
sys 5.49

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/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits scfile=/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits outfile=/scratch/kocevski/425848/cmap_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits scfile=/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits outfile=/scratch/kocevski/425848/cmap_HighResolution_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425848/Model_4FGL_J2237.6-5126_daily_bin292.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/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits.....................!
real 61.42
user 60.09
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits', '/scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits', expMap='/scratch/kocevski/425848/expmap_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.fits', expCube='/scratch/kocevski/425848/ltcube_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425848/Model_4FGL_J2237.6-5126_daily_bin292.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/425848/ft1_filtered_4FGL_J2237.6-5126_daily_bin292.fits
Spacecraft file(s): /scratch/kocevski/425848/ft2_4FGL_J2237.6-5126_daily_bin292.fits
Exposure map: /scratch/kocevski/425848/expmap_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.fits
Exposure cube: /scratch/kocevski/425848/ltcube_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425848/Model_4FGL_J2237.6-5126_daily_bin292.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) = 8816.29135657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14590E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.839       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64549       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.196       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7513       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.570       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9135       1.0000         .10000E-03   10000.    
    18 'norm      '    .10586E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.396       1.0000         .10000E-03   10000.    
    21 'norm      '    21.031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8385       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5886       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    42.878       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .63263       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2887       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=   8816.285     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3333 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.151        21.277       -.57790E-07    .75183E-04
   2  Prefactor     .10002E-03    1.6066       -.81293E-06** at limit **
   3  Prefactor     45.843        33.153       -.64998E-06    .60207E-04
   4  Prefactor     .10000E-03    2.5553       -.56401E-06** at limit **
   5  Prefactor     .64788        1.7360       -.58750E-06   -.92970E-03
   6  Prefactor     42.172        56.448        .33018E-05    .13293E-04
   7  norm          .10000E-03    3.7381       -.77192E-07** at limit **
   8  Prefactor     2.6374        3.2882        .40073E-07    .38120E-05
   9  Prefactor     .10000E-03    13.356       -.56193E-06** at limit **
  10  Prefactor     .10000E-03    4.6626       -.11414E-05** at limit **
  11  Prefactor     21.463        29.929        .16740E-05    .35020E-04
  12  Prefactor     25.176        13.496       -.67670E-06    .83793E-04
  13  Prefactor     .10000E-03    42.253       -.20619E-07** at limit **
  14  Prefactor     1.7512        2.4776       -.80685E-07   -.23686E-04
  15  Prefactor     .10000E-03    12.995        .33236E-06** at limit **
  16  Prefactor     13.570        12.217       -.17902E-06   -.39990E-05
  17  norm          4.9133        7.2746        .59619E-06   -.30561E-04
  18  norm          .10000E-03    2.8739       -.35876E-06** at limit **
  19  Prefactor     2.3003        5.7711        .55544E-05   -.18631E-03
  20  Prefactor     26.402        22.600       -.27580E-05    .10392E-04
  21  norm          21.031        2.6584       -.83616E-07   -.14941E-03
  22  Prefactor     9.8385        11.005       -.10964E-06   -.34485E-05
  23  Prefactor     2.5885        2.8155        .18788E-06    .20483E-04
  24  Prefactor     .10000E-03    13.179       -.14302E-06** at limit **
  25  norm          42.877        35.392        .13956E-06   -.29557E-05
  26  Normalizat    .63257        .17659        .39163E-05    .19591E-03
  27  Prefactor     1.2888        .15348       -.24188E-05    .16211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1515
  Prefactor  = 0.000100025
  Prefactor  = 45.8431
  Prefactor  = 0.0001
  Prefactor  = 0.647883
  Prefactor  = 42.1719
  norm       = 0.0001
  Prefactor  = 2.6374
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.4626
  Prefactor  = 25.1762
  Prefactor  = 0.0001
  Prefactor  = 1.75118
  Prefactor  = 0.0001
  Prefactor  = 13.5696
  norm       = 4.91327
  norm       = 0.0001
  Prefactor  = 2.30028
  Prefactor  = 26.402
  norm       = 21.0313
  Prefactor  = 9.83847
  Prefactor  = 2.58849
  Prefactor  = 0.0001
  norm       = 42.877
  Normalizat = 0.632566
  Prefactor  = 1.28883
 **********
 **   18 **HESSE 
 **********

 FCN=   8816.285     FROM HESSE     STATUS=OK           494 CALLS     3827 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.151        21.257        .71792E-04   -1.4591    
   2  Prefactor     .10002E-03    16.026        .22127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.843        33.122        .59220E-04   -1.4353    
   4  Prefactor     .10000E-03    2.5797        .14685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .64788        1.7024        .19579E-03   -1.5547    
   6  Prefactor     42.172        56.440        .61712E-04   -1.4408    
   7  norm          .10000E-03    3.8218        .17728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6374        3.2816        .17763E-03   -1.5383    
   9  Prefactor     .10000E-03    13.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9021        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.463        29.961        .86421E-04   -1.4781    
  12  Prefactor     25.176        13.461        .79836E-04   -1.4704    
  13  Prefactor     .10000E-03    42.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7512        2.4585        .17139E-03   -1.5443    
  15  Prefactor     .10000E-03    12.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.570        12.214        .10873E-03   -1.4971    
  17  norm          4.9133        7.2634        .90725E-03   -1.5265    
  18  norm          .10000E-03    7.6104        .30919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3003        5.8812        .13521E-02   -1.5405    
  20  Prefactor     26.402        22.670        .77972E-04   -1.4680    
  21  norm          21.031        2.6538        .47507E-04   -1.4790    
  22  Prefactor     9.8385        11.002        .12775E-03   -1.5081    
  23  Prefactor     2.5885        2.8009        .15823E-03   -1.5386    
  24  Prefactor     .10000E-03    13.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          42.877        35.389        .61222E-04   -1.4397    
  26  Normalizat    .63257        .20276        .16730E-02   -1.0662    
  27  Prefactor     1.2888        .17772        .22432E-03   -.83640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36792e-09
Minuit parameter uncertainties:
  1  21.262
  2  0.00126277
  3  33.1357
  4  4.34857e-05
  5  1.70253
  6  56.5115
  7  6.67808e-06
  8  3.28183
  9  1.22476e-05
  10  0.000149452
  11  29.982
  12  13.4628
  13  4.8407e-06
  14  2.4586
  15  4.26633e-05
  16  12.2164
  17  7.26475
  18  4.04762e-05
  19  5.88272
  20  22.677
  21  2.65385
  22  11.0047
  23  2.80105
  24  8.4788e-06
  25  35.4068
  26  0.203002
  27  0.177798
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  2.146e+01  2.998e+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.289e+00  1.778e-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:  6.326e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/425848/likelihoodResults_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.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): 0
logL (Free Index) = 8816.22424721
delta logL = 0.0606910954357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8816.20594204
delta logL = 0.0789962581312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.427       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6015       1.0000          .0000       10.000    
     3 'Normalizat'    .62146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2969       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=   8816.206     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      271 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.404        34.422        .98820E-04    .33915E-03
   2  Index         3.6051        2.1212        .15619E-01    .10415E-03
   3  Normalizat    .62119        .19377        .33745E-03   -.11158E-03
   4  Prefactor     1.2969        .17638        .22374E-03    .55425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4037
  Index      = 3.6051
  Normalizat = 0.621193
  Prefactor  = 1.29688
 **********
 **   18 **HESSE 
 **********

 FCN=   8816.206     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.404        27.877        .39528E-05   -1.4898    
   2  Index         3.6051        1.7362        .62476E-03   -.28273    
   3  Normalizat    .62119        .19409        .13498E-04   -1.0709    
   4  Prefactor     1.2969        .17649        .44749E-04   -.83400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44485e-10
Minuit parameter uncertainties:
  1  27.8988
  2  1.7764
  3  0.1943
  4  0.176566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425848': 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) = 8816.20593656
delta logL = 0.0790017380787

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.640e+01  2.790e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.605e+00  1.776e+00  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.297e+00  1.766e-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:  6.212e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 339.414 -51.435
Photon Index (Free Index): 3.61 +/- 1.78
Photon Flux (Free Index): 4.37e-08 +/- 4.83e-08
Energy Flux (Free Index): 7.09e-06 +/- 8.10e-06

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/425848/cmap_HighResolution_315014401_315273601_4FGL_J2237.6-5126_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.92e-03', comment='SUCCESS', energy_flux2='7.09e-06', dlogl='7.90e-02', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-09-28 18:16:58.225932', photon_index_error2='1.78', photon_index2='3.61', ts='0.83', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='8.10e-06', EG='0.63', time_epoch_completed='1632878218.23', return_code='0', job_id='425848', GAL2='1.30', EG2='0.62', return_code2='0', photon_flux_error2='4.83e-08', ts2='1.03', photon_index='3.01' WHERE bin_id='292' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 425848: <4FGL_J2237.6-5126_daily_bin292> in cluster <slac> Done

Job <4FGL_J2237.6-5126_daily_bin292> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:00:58 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:01:00 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:01:00 2021
Terminated at Tue Sep 28 18:16:58 2021
Results reported at Tue Sep 28 18:16:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin292 339.414 -51.4347 315014401 315273601 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 :                                   944.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             344.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

