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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin921
RA = 339.414, Dec = -51.4347
tmin = 478051201, tmax = 478310401
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='428989', job_status='RUN', time_executed='2021-09-28 18:10:41.876792', time_epoch_executed='1632877841.88' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428989/ft1_4FGL_J2237.6-5126_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428989/ft2_4FGL_J2237.6-5126_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428989/ft1_4FGL_J2237.6-5126_daily_bin921.fits outfile=/scratch/kocevski/428989/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin921.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=478051201.0 tmax=478310401.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.59
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428989/ft2_4FGL_J2237.6-5126_daily_bin921.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/428989/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin921.fits evtable="EVENTS" outfile="/scratch/kocevski/428989/ft1_filtered_4FGL_J2237.6-5126_daily_bin921.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428989/ft1_filtered_4FGL_J2237.6-5126_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/428989/ft2_4FGL_J2237.6-5126_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/428989/ltcube_478051201_478310401_4FGL_J2237.6-5126_daily_bin921.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/428989/ft2_4FGL_J2237.6-5126_daily_bin921.fits
.....................!
real 12.26
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428989/ft1_filtered_4FGL_J2237.6-5126_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/428989/ft2_4FGL_J2237.6-5126_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/428989/ltcube_478051201_478310401_4FGL_J2237.6-5126_daily_bin921.fits outfile=/scratch/kocevski/428989/expmap_478051201_478310401_4FGL_J2237.6-5126_daily_bin921.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/428989/ltcube_478051201_478310401_4FGL_J2237.6-5126_daily_bin921.fits
.....................!
real 191.62
user 186.71
sys 4.60

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/428989/ft1_filtered_4FGL_J2237.6-5126_daily_bin921.fits scfile=/scratch/kocevski/428989/ft2_4FGL_J2237.6-5126_daily_bin921.fits outfile=/scratch/kocevski/428989/cmap_478051201_478310401_4FGL_J2237.6-5126_daily_bin921.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2319       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20338E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.567       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7601       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7307       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4886       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14887E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    76.342       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79868       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2565       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=   5905.534     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3295 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.589        .74859E-05** at limit **
   2  Prefactor     1.2312        1.3982        .51167E-06   -.33357E-02
   3  Prefactor     23.834        30.621       -.99390E-06   -.41397E-04
   4  Prefactor     9.5533        9.0075       -.20519E-06   -.27700E-03
   5  Prefactor     .10002E-03    2.4550        .10042E-05** at limit **
   6  Prefactor     .10000E-03    67.391        .30641E-04** at limit **
   7  norm          .10000E-03    3.5614       -.59285E-07** at limit **
   8  Prefactor     2.4538        4.1915        .15777E-05   -.31678E-04
   9  Prefactor     .10000E-03    23.446       -.15840E-05** at limit **
  10  Prefactor     14.566        8.1754        .60528E-07   -.25602E-04
  11  Prefactor     .10000E-03    10.593       -.44143E-05** at limit **
  12  Prefactor     27.964        14.396        .57351E-07    .72924E-04
  13  Prefactor     .10000E-03    85.604       -.37365E-04** at limit **
  14  Prefactor     .10000E-03    3.1636       -.13866E-07** at limit **
  15  Prefactor     .10000E-03    30.864       -.14868E-04** at limit **
  16  Prefactor     .10000E-03    12.570        .23351E-05** at limit **
  17  norm          3.7598        7.1451       -.48283E-07   -.25975E-04
  18  norm          4.7745        5.1191       -.38663E-07    .28624E-03
  19  Prefactor     .10000E-03    5.4312        .38428E-05** at limit **
  20  Prefactor     .10000E-03    5.2859       -.13854E-05** at limit **
  21  norm          4.7305        1.6001       -.42281E-08   -.30640E-03
  22  Prefactor     3.4882        8.6646        .11892E-06   -.12118E-04
  23  Prefactor     .10001E-03    2.9767       -.64638E-06** at limit **
  24  Prefactor     .10000E-03    22.243        .44811E-05** at limit **
  25  norm          76.335        52.327       -.46042E-05    .29496E-04
  26  Normalizat    .79879        .19706       -.10244E-05   -.19364E-03
  27  Prefactor     1.2565        .17538        .13401E-06   -.28572E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.23117
  Prefactor  = 23.8343
  Prefactor  = 9.55326
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.45376
  Prefactor  = 0.0001
  Prefactor  = 14.5657
  Prefactor  = 0.0001
  Prefactor  = 27.9636
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75979
  norm       = 4.77453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.73054
  Prefactor  = 3.48823
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 76.3353
  Normalizat = 0.798789
  Prefactor  = 1.25647
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.534     FROM HESSE     STATUS=OK           486 CALLS     3781 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2312        4.2832        .14126E-02   -1.5486    
   3  Prefactor     23.834        30.615        .82047E-04   -1.4731    
   4  Prefactor     9.5533        8.9749        .12967E-03   -1.5090    
   5  Prefactor     .10002E-03    9.2446        .22705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5694        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4538        4.1773        .19544E-03   -1.5395    
   9  Prefactor     .10000E-03    23.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.566        8.1831        .10494E-03   -1.4944    
  11  Prefactor     .10000E-03    10.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.964        14.403        .75758E-04   -1.4650    
  13  Prefactor     .10000E-03    85.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1738        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7598        7.1362        .20821E-03   -1.5320    
  18  norm          4.7745        5.1312        .87517E-03   -1.5271    
  19  Prefactor     .10000E-03    5.5648        .34909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3013        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7305        1.5917        .53315E-04   -1.5273    
  22  Prefactor     3.4882        8.6522        .21648E-03   -1.5334    
  23  Prefactor     .10001E-03    5.8897        .25017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          76.335        51.709        .45957E-04   -1.3958    
  26  Normalizat    .79879        .23275        .29368E-03   -1.0011    
  27  Prefactor     1.2565        .20965        .22358E-03   -.84611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88501e-08
Minuit parameter uncertainties:
  1  4.61086e-05
  2  4.28426
  3  30.6353
  4  8.97617
  5  0.000783967
  6  0.000366913
  7  1.23828e-06
  8  4.17775
  9  3.17192e-05
  10  8.18371
  11  1.76775e-05
  12  14.4044
  13  0.00045563
  14  1.6203e-06
  15  0.000106568
  16  1.86815e-05
  17  7.13782
  18  5.13163
  19  3.09326e-06
  20  7.91824e-06
  21  1.59169
  22  8.65534
  23  0.000418747
  24  8.09404e-05
  25  51.7394
  26  0.233044
  27  0.20979
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  1.768e-05  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.256e+00  2.098e-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:  7.988e-01  2.330e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428989/likelihoodResults_478051201_478310401_4FGL_J2237.6-5126_daily_bin921.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) = 5905.53433551
delta logL = -0.000448710467936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5905.53388684
delta logL = -3.43616193277e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0021       1.0000          .0000       10.000    
     3 'Normalizat'    .79883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2564       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=   5905.534     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      262 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.644        .18142E-01** at limit **
   2  Index         2.6025        5.0495        .50000       -.31717E-06
   3  Normalizat    .79879        .12770E-01    .29368E-03    .96389E-05
   4  Prefactor     1.2565        .11977E-01    .22358E-03    .14085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60254
  Normalizat = 0.798789
  Prefactor  = 1.25647
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.534     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      289 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    548.69        .25497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6025        6.0128        .50000       -.50008    
   3  Normalizat    .79879        .34516E-01    .11747E-04   -1.0011    
   4  Prefactor     1.2565        .32370E-01    .89431E-05   -.84611    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30634e-08
Minuit parameter uncertainties:
  1  0.000228525
  2  1444.85
  3  0.0345166
  4  0.0323705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428989': 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) = 5905.53388641
delta logL = 3.98862539441e-07

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.285e-04  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.603e+00  1.445e+03  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.256e+00  3.237e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  7.988e-01  3.452e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/428989/cmap_HighResolution_478051201_478310401_4FGL_J2237.6-5126_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-28 18:22:46.134303', job_id='428989', GAL2='1.26', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632878566.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.01' WHERE bin_id='921' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:22:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 428989: <4FGL_J2237.6-5126_daily_bin921> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin921 339.414 -51.4347 478051201 478310401 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            735 sec.

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

