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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1492
RA = 339.414, Dec = -51.4347
tmin = 626054401, tmax = 626313601
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='432079', job_status='RUN', time_executed='2021-09-28 18:21:06.700521', time_epoch_executed='1632878466.7' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432079/ft1_4FGL_J2237.6-5126_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432079/ft2_4FGL_J2237.6-5126_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432079/ft1_4FGL_J2237.6-5126_daily_bin1492.fits outfile=/scratch/kocevski/432079/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1492.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=626054401.0 tmax=626313601.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.09
user 3.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432079/ft1_filtered_4FGL_J2237.6-5126_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/432079/ft2_4FGL_J2237.6-5126_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/432079/ltcube_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.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/432079/ft2_4FGL_J2237.6-5126_daily_bin1492.fits
.....................!
real 11.86
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432079/ft1_filtered_4FGL_J2237.6-5126_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/432079/ft2_4FGL_J2237.6-5126_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/432079/ltcube_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.fits outfile=/scratch/kocevski/432079/expmap_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.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/432079/ltcube_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.fits
.....................!
real 192.94
user 187.41
sys 5.13

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/432079/ft1_filtered_4FGL_J2237.6-5126_daily_bin1492.fits scfile=/scratch/kocevski/432079/ft2_4FGL_J2237.6-5126_daily_bin1492.fits outfile=/scratch/kocevski/432079/cmap_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432079/ft1_filtered_4FGL_J2237.6-5126_daily_bin1492.fits scfile=/scratch/kocevski/432079/ft2_4FGL_J2237.6-5126_daily_bin1492.fits outfile=/scratch/kocevski/432079/cmap_HighResolution_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432079/ft1_filtered_4FGL_J2237.6-5126_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/432079/ft2_4FGL_J2237.6-5126_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432079/Model_4FGL_J2237.6-5126_daily_bin1492.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/432079/ft1_filtered_4FGL_J2237.6-5126_daily_bin1492.fits.....................!
real 51.36
user 49.85
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.407       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10292E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.593       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .41162E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19820E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48760E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5861       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7791       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5589       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .97803E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .49411       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9369       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20788E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .62118       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1867       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=   7332.373     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3978 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.408        23.198       -.14065E-05   -.40100E-04
   2  Prefactor     .10013E-03    4.8853       -.36764E-05** at limit **
   3  Prefactor     41.571        27.510       -.13687E-05   -.63034E-05
   4  Prefactor     .10000E-03    3.3048       -.18327E-06** at limit **
   5  Prefactor     1.5197        1.8013       -.22259E-08    .35659E-03
   6  Prefactor     .10000E-03    26.642       -.11134E-05** at limit **
   7  norm          .10002E-03    7.8909        .43251E-05** at limit **
   8  Prefactor     2.8552        2.4828       -.13332E-06    .61916E-03
   9  Prefactor     .10000E-03    6.8376       -.20044E-07** at limit **
  10  Prefactor     .10000E-03    2.2212        .50928E-06** at limit **
  11  Prefactor     .10000E-03    32.980        .75750E-05** at limit **
  12  Prefactor     .10032E-03    6.9920       -.28619E-05** at limit **
  13  Prefactor     .10000E-03    32.851        .34858E-06** at limit **
  14  Prefactor     3.5857        3.7347       -.11176E-06    .13018E-03
  15  Prefactor     .10000E-03    9.1416       -.56135E-07** at limit **
  16  Prefactor     8.7805        10.849       -.10818E-06    .93800E-04
  17  norm          .10000E-03    9.2690       -.85387E-07** at limit **
  18  norm          .10000E-03    1.6115        .21272E-07** at limit **
  19  Prefactor     2.5617        3.6809       -.19300E-06    .27830E-03
  20  Prefactor     .10000E-03    16.239        .92343E-07** at limit **
  21  norm          .95055E-01    .68037        .69143E-06    .20730E-02
  22  Prefactor     .47511        8.0736       -.24726E-05   -.82550E-04
  23  Prefactor     1.9447        3.4096       -.12528E-05    .71248E-04
  24  Prefactor     .10020E-03    56.206       -.12081E-04** at limit **
  25  norm          .10000E-03    13.466        .57300E-06** at limit **
  26  Normalizat    .62115        .15291        .15048E-05    .44486E-03
  27  Prefactor     1.1868        .13811        .44757E-06    .52597E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4075
  Prefactor  = 0.000100134
  Prefactor  = 41.5712
  Prefactor  = 0.0001
  Prefactor  = 1.51974
  Prefactor  = 0.0001
  norm       = 0.00010002
  Prefactor  = 2.85524
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.00010032
  Prefactor  = 0.0001
  Prefactor  = 3.58569
  Prefactor  = 0.0001
  Prefactor  = 8.78053
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56167
  Prefactor  = 0.0001
  norm       = 0.095055
  Prefactor  = 0.475112
  Prefactor  = 1.94467
  Prefactor  = 0.000100198
  norm       = 0.0001
  Normalizat = 0.621145
  Prefactor  = 1.18685
 **********
 **   18 **HESSE 
 **********

 FCN=   7332.373     FROM HESSE     STATUS=OK           516 CALLS     4494 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.408        23.214        .75168E-04   -1.4641    
   2  Prefactor     .10013E-03    30.929        .20916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.571        27.554        .62156E-04   -1.4418    
   4  Prefactor     .10000E-03    3.3428        .15197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5197        1.7898        .12082E-03   -1.5461    
   6  Prefactor     .10000E-03    26.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    16.378        .32738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8552        2.4752        .12005E-03   -1.5370    
   9  Prefactor     .10000E-03    6.8383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.008        .23206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    130.66        .61849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10032E-03    10.929        .54318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5857        3.7328        .16405E-03   -1.5329    
  15  Prefactor     .10000E-03    9.1459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7805        10.746        .13528E-03   -1.5115    
  17  norm          .10000E-03    9.4314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6123        .10614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5617        3.6221        .18523E-03   -1.5388    
  20  Prefactor     .10000E-03    16.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .95055E-01    1.2566        .12053E-02   -1.5646    
  22  Prefactor     .47511        36.254        .43509E-02   -1.5570    
  23  Prefactor     1.9447        3.4929        .18658E-03   -1.5429    
  24  Prefactor     .10020E-03    16.501        .97236E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    13.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .62115        .17595        .27066E-03   -1.0709    
  27  Prefactor     1.1868        .16132        .19206E-03   -.86737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05807e-08
Minuit parameter uncertainties:
  1  23.2218
  2  0.00407151
  3  27.5627
  4  2.45655e-05
  5  1.78982
  6  5.35739e-05
  7  0.0011375
  8  2.47531
  9  3.86913e-06
  10  0.000250097
  11  0.00132249
  12  0.00373846
  13  6.80607e-06
  14  3.73307
  15  9.82801e-06
  16  10.7483
  17  4.57594e-05
  18  5.60585e-07
  19  3.6224
  20  5.0834e-05
  21  0.690872
  22  8.30485
  23  3.49328
  24  0.00361606
  25  4.31388e-05
  26  0.17611
  27  0.161384
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  1.322e-03  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.187e+00  1.614e-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.211e-01  1.761e-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: 7.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432079/likelihoodResults_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.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) = 7332.37332119
delta logL = -3.55585743819e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7332.37332118
delta logL = -3.55530009983e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96352E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0120       1.0000          .0000       10.000    
     3 'Normalizat'    .62113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1869       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=   7332.373     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      287 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11201E-03    12.605        .94079E-01** at limit **
   2  Index         2.6719        5.5502        .50000        .32146E-06
   3  Normalizat    .62114        .26216E-02    .27066E-03   -.11173E-04
   4  Prefactor     1.1868        .25170E-02    .19206E-03    .47946E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112015
  Index      = 2.67187
  Normalizat = 0.621144
  Prefactor  = 1.18685
 **********
 **   18 **HESSE 
 **********

 FCN=   7332.373     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      326 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11201E-03    10.085        .10270       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6719        8.3140        .50000       -.48434    
   3  Normalizat    .62114        .25136E-02    .10827E-04   -1.0709    
   4  Prefactor     1.1868        .24133E-02    .76824E-05   -.86737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85338e-12
Minuit parameter uncertainties:
  1  0.0220195
  2  132.289
  3  0.00251355
  4  0.00241333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432079': 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) = 7332.37328532
delta logL = 3.13460986945e-07

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.120e-04  2.202e-02  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.672e+00  1.323e+02  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.187e+00  2.413e-03  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.211e-01  2.514e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.414 -51.435

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/432079/cmap_HighResolution_626054401_626313601_4FGL_J2237.6-5126_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-28 18:36:35.856806', job_id='432079', GAL2='1.19', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632879395.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.01' WHERE bin_id='1492' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:36:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 432079: <4FGL_J2237.6-5126_daily_bin1492> in cluster <slac> Done

Job <4FGL_J2237.6-5126_daily_bin1492> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 18:20:29 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:20:30 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:20:30 2021
Terminated at Tue Sep 28 18:36:36 2021
Results reported at Tue Sep 28 18:36:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1492 339.414 -51.4347 626054401 626313601 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 :                                   917.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            967 sec.

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

