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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1009
RA = 339.414, Dec = -51.4347
tmin = 500860801, tmax = 501120001
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='429116', job_status='RUN', time_executed='2021-09-28 18:13:06.820717', time_epoch_executed='1632877986.82' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429116

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429116/ft1_4FGL_J2237.6-5126_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429116/ft1_4FGL_J2237.6-5126_daily_bin1009.fits outfile=/scratch/kocevski/429116/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1009.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=500860801.0 tmax=501120001.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.55
user 4.28
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.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/429116/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1009.fits evtable="EVENTS" outfile="/scratch/kocevski/429116/ft1_filtered_4FGL_J2237.6-5126_daily_bin1009.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429116/ft1_filtered_4FGL_J2237.6-5126_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/429116/ltcube_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.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/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.fits
.....................!
real 12.00
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429116/ft1_filtered_4FGL_J2237.6-5126_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/429116/ltcube_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.fits outfile=/scratch/kocevski/429116/expmap_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.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/429116/ltcube_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.fits
.....................!
real 192.04
user 186.72
sys 4.97

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/429116/ft1_filtered_4FGL_J2237.6-5126_daily_bin1009.fits scfile=/scratch/kocevski/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.fits outfile=/scratch/kocevski/429116/cmap_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.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.51
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429116/ft1_filtered_4FGL_J2237.6-5126_daily_bin1009.fits scfile=/scratch/kocevski/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.fits outfile=/scratch/kocevski/429116/cmap_HighResolution_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429116/ft1_filtered_4FGL_J2237.6-5126_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/429116/ft2_4FGL_J2237.6-5126_daily_bin1009.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429116/Model_4FGL_J2237.6-5126_daily_bin1009.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/429116/ft1_filtered_4FGL_J2237.6-5126_daily_bin1009.fits.....................!
real 41.22
user 39.94
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.233       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.294       1.0000         .10000E-03   10000.    
    21 'norm      '    .99438       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .56119E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.284       1.0000         .10000E-03   10000.    
    25 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97782       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=   4901.363     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3362 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7666        .20962E-07** at limit **
   2  Prefactor     7.4989        5.1027       -.17119E-06    .72946E-04
   3  Prefactor     .10000E-03    71.766       -.61017E-05** at limit **
   4  Prefactor     2.8570        6.6134        .45902E-05    .71290E-04
   5  Prefactor     1.2551        2.6211        .10582E-06    .29508E-04
   6  Prefactor     .10000E-03    34.917       -.40436E-06** at limit **
   7  norm          .10000E-03    2.8333        .39232E-08** at limit **
   8  Prefactor     .10000E-03    1.6732       -.13825E-07** at limit **
   9  Prefactor     .10000E-03    22.382        .23342E-06** at limit **
  10  Prefactor     .10000E-03    2.9461       -.11733E-06** at limit **
  11  Prefactor     35.073        31.450        .25836E-07    .99199E-06
  12  Prefactor     10.964        15.128       -.23031E-06   -.77485E-05
  13  Prefactor     .10000E-03    63.858        .11923E-05** at limit **
  14  Prefactor     .10000E-03    3.8876       -.28582E-07** at limit **
  15  Prefactor     35.160        46.992        .45842E-05   -.22026E-04
  16  Prefactor     .10000E-03    12.454       -.13730E-06** at limit **
  17  norm          .10000E-03    9.9063        .12268E-06** at limit **
  18  norm          .10000E-03    5.3542        .60665E-08** at limit **
  19  Prefactor     .10000E-03    5.5197        .19536E-06** at limit **
  20  Prefactor     30.285        21.981       -.42445E-06    .18099E-04
  21  norm          .99364        1.6629        .84633E-07   -.65782E-04
  22  Prefactor     .10000E-03    58.266        .44684E-05** at limit **
  23  Prefactor     .10001E-03    3.8106        .31889E-06** at limit **
  24  Prefactor     26.169        38.537        .21701E-05    .52519E-04
  25  norm          .10000E-03    35.007       -.41799E-06** at limit **
  26  Normalizat    1.0075        .21297       -.85530E-06    .25345E-04
  27  Prefactor     .97756        .17680       -.42098E-07    .39903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.49889
  Prefactor  = 0.000100001
  Prefactor  = 2.85702
  Prefactor  = 1.25512
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0732
  Prefactor  = 10.9641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1599
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2846
  norm       = 0.993641
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 26.1693
  norm       = 0.0001
  Normalizat = 1.00749
  Prefactor  = 0.977556
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.363     FROM HESSE     STATUS=OK           486 CALLS     3848 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7706        .17787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4989        5.0999        .12405E-03   -1.5160    
   3  Prefactor     .10000E-03    72.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8570        6.6231        .12026E-02   -1.5370    
   5  Prefactor     1.2551        2.5675        .15780E-03   -1.5484    
   6  Prefactor     .10000E-03    34.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8366        .11509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6884        .88418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9607        .11731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.073        31.510        .67690E-04   -1.4523    
  12  Prefactor     10.964        15.099        .12101E-03   -1.5046    
  13  Prefactor     .10000E-03    63.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8960        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.160        46.992        .67515E-04   -1.4521    
  16  Prefactor     .10000E-03    12.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.9244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.3978        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5367        .16042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.285        21.793        .72795E-04   -1.4607    
  21  norm          .99364        1.4956        .10406E-02   -1.5509    
  22  Prefactor     .10000E-03    59.304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    12.729        .23765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.169        35.621        .78138E-04   -1.4684    
  25  norm          .10000E-03    35.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0075        .25224        .25846E-03   -.92780    
  27  Prefactor     .97756        .21052        .22529E-03   -.93481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35498e-09
Minuit parameter uncertainties:
  1  1.8522e-06
  2  5.10021
  3  0.00042867
  4  6.62481
  5  2.56771
  6  1.20569e-05
  7  1.05325e-07
  8  3.52136e-07
  9  3.09958e-06
  10  8.71102e-06
  11  31.5248
  12  15.104
  13  6.62095e-05
  14  6.77801e-08
  15  47.0412
  16  8.69276e-06
  17  2.27879e-06
  18  1.75358e-06
  19  1.33018e-05
  20  21.7986
  21  1.49563
  22  0.000433952
  23  0.000512466
  24  35.6504
  25  1.70013e-06
  26  0.252535
  27  0.210697
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  3.507e+01  3.152e+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:  9.776e-01  2.107e-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.007e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 339.414 -51.435
Photon Index (Fixed Index): 3.01 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 5.40e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.07e-05

TS (Fixed Index): 3.34
Ra Dec: 339.414 -51.435
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429116/likelihoodResults_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.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) = 4900.67453144
delta logL = 0.688134335815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4900.43806301
delta logL = 0.924602767324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.262       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6568       1.0000          .0000       10.000    
     3 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94767       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=   4900.438     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.273        21.171        .16308E-04    .31379E-03
   2  Index         1.6568        .84722        .78908E-04   -.64916E-04
   3  Normalizat    1.0657        .19967       -.20172E-05   -.67614E-05
   4  Prefactor     .94775        .17170        .96793E-06   -.24576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2728
  Index      = 1.65684
  Normalizat = 1.06569
  Prefactor  = 0.947747
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.438     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.273        19.786        .11938E-03   -1.5036    
   2  Index         1.6568        .79030        .71912E-02   -.73237    
   3  Normalizat    1.0657        .23830        .25238E-03   -.90861    
   4  Prefactor     .94775        .20531        .22838E-03   -.94492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17852e-10
Minuit parameter uncertainties:
  1  19.7975
  2  0.796372
  3  0.238538
  4  0.205478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429116': 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) = 4900.43806191
delta logL = 0.924603869018

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.127e+01  1.980e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  1.657e+00  7.964e-01  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:  9.477e-01  2.055e-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.066e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 339.414 -51.435
Photon Index (Free Index): 1.66 +/- 0.80
Photon Flux (Free Index): 1.19e-08 +/- 1.89e-08
Energy Flux (Free Index): 2.24e-05 +/- 3.84e-05

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/429116/cmap_HighResolution_500860801_501120001_4FGL_J2237.6-5126_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='2.24e-05', photon_flux_error='5.40e-08', dlogl='9.25e-01', energy_flux='1.19e-05', photon_flux2='1.19e-08', job_status='DONE', time_completed='2021-09-28 18:24:10.132135', photon_index_error2='0.80', photon_index2='1.66', ts='3.34', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='3.84e-05', EG='1.01', time_epoch_completed='1632878650.13', return_code='0', job_id='429116', GAL2='0.95', EG2='1.07', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='1.89e-08', ts2='5.17', photon_index='3.01' WHERE bin_id='1009' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:24:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 429116: <4FGL_J2237.6-5126_daily_bin1009> in cluster <slac> Done

Job <4FGL_J2237.6-5126_daily_bin1009> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:10:40 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:10:42 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:10:42 2021
Terminated at Tue Sep 28 18:24:10 2021
Results reported at Tue Sep 28 18:24:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1009 339.414 -51.4347 500860801 501120001 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 :                                   661.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

