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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin995
RA = 339.414, Dec = -51.4347
tmin = 497232001, tmax = 497491201
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='429096', job_status='RUN', time_executed='2021-09-28 18:13:55.129387', time_epoch_executed='1632878035.13' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429096/ft1_4FGL_J2237.6-5126_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429096/ft2_4FGL_J2237.6-5126_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429096/ft1_4FGL_J2237.6-5126_daily_bin995.fits outfile=/scratch/kocevski/429096/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin995.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.76
user 6.49
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429096/ft1_filtered_4FGL_J2237.6-5126_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/429096/ft2_4FGL_J2237.6-5126_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/429096/ltcube_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.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/429096/ft2_4FGL_J2237.6-5126_daily_bin995.fits
.....................!
real 11.65
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429096/ft1_filtered_4FGL_J2237.6-5126_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/429096/ft2_4FGL_J2237.6-5126_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/429096/ltcube_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.fits outfile=/scratch/kocevski/429096/expmap_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.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/429096/ltcube_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.fits
.....................!
real 189.86
user 185.14
sys 4.42

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/429096/ft1_filtered_4FGL_J2237.6-5126_daily_bin995.fits scfile=/scratch/kocevski/429096/ft2_4FGL_J2237.6-5126_daily_bin995.fits outfile=/scratch/kocevski/429096/cmap_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.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/429096/ft1_filtered_4FGL_J2237.6-5126_daily_bin995.fits scfile=/scratch/kocevski/429096/ft2_4FGL_J2237.6-5126_daily_bin995.fits outfile=/scratch/kocevski/429096/cmap_HighResolution_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429096/ft1_filtered_4FGL_J2237.6-5126_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/429096/ft2_4FGL_J2237.6-5126_daily_bin995.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429096/Model_4FGL_J2237.6-5126_daily_bin995.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/429096/ft1_filtered_4FGL_J2237.6-5126_daily_bin995.fits.....................!
real 37.15
user 35.91
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4639       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.586       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8651       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.3347       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6103       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.826       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.920       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93469       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88609       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=   4405.908     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3293 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4529        48.452        .21950E-05    .25151E-04
   2  Prefactor     13.577        6.4144       -.98573E-07   -.22855E-03
   3  Prefactor     14.250        35.357        .19910E-05   -.37921E-05
   4  Prefactor     .10000E-03    4.2373        .26993E-06** at limit **
   5  Prefactor     .10000E-03    .84366        .90487E-07** at limit **
   6  Prefactor     .10000E-03    36.239        .29736E-05** at limit **
   7  norm          .10000E-03    2.1590        .51011E-07** at limit **
   8  Prefactor     .10000E-03    1.0456        .85993E-07** at limit **
   9  Prefactor     .10000E-03    15.491        .82377E-07** at limit **
  10  Prefactor     9.1008        7.0695       -.49631E-09   -.25218E-03
  11  Prefactor     27.515        29.319       -.11957E-05   -.28918E-03
  12  Prefactor     .10004E-03    48.322        .17690E-04** at limit **
  13  Prefactor     .10000E-03    39.865        .22959E-05** at limit **
  14  Prefactor     .10000E-03    4.0017        .12244E-06** at limit **
  15  Prefactor     4.8291        57.091        .47672E-05    .22163E-04
  16  Prefactor     .10000E-03    15.471        .89273E-06** at limit **
  17  norm          9.3357        15.553        .16600E-06   -.15667E-04
  18  norm          4.6106        5.0176       -.11184E-06   -.16174E-03
  19  Prefactor     7.8645        7.0801        .51184E-07   -.16567E-03
  20  Prefactor     .10000E-03    24.687        .18787E-06** at limit **
  21  norm          .10000E-03    .86746       -.33291E-06** at limit **
  22  Prefactor     13.829        17.711        .76371E-07   -.52826E-04
  23  Prefactor     .10000E-03    1.4226        .76958E-07** at limit **
  24  Prefactor     .10000E-03    9.7562        .10097E-06** at limit **
  25  norm          28.920        31.192       -.45153E-07   -.17622E-04
  26  Normalizat    .93434        .20727        .12795E-05   -.25123E-03
  27  Prefactor     .88639        .17747       -.30835E-05   -.92387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45289
  Prefactor  = 13.577
  Prefactor  = 14.2497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.10082
  Prefactor  = 27.5146
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82915
  Prefactor  = 0.0001
  norm       = 9.33574
  norm       = 4.61056
  Prefactor  = 7.86451
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 13.8291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.9205
  Normalizat = 0.934341
  Prefactor  = 0.886392
 **********
 **   18 **HESSE 
 **********

 FCN=   4405.908     FROM HESSE     STATUS=OK           484 CALLS     3777 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4529        48.942        .21729E-03   -1.5336    
   2  Prefactor     13.577        6.4102        .10871E-03   -1.4971    
   3  Prefactor     14.250        35.345        .10606E-03   -1.4953    
   4  Prefactor     .10000E-03    4.2757        .13339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .84609        .59562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1594        .95257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0509        .66298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1008        7.0592        .13288E-03   -1.5105    
  11  Prefactor     27.515        29.314        .76275E-04   -1.4658    
  12  Prefactor     .10004E-03    51.819        .32799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0450        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8291        57.451        .18237E-03   -1.5268    
  16  Prefactor     .10000E-03    15.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.3357        15.549        .13117E-03   -1.5097    
  18  norm          4.6106        5.0170        .15118E-03   -1.5278    
  19  Prefactor     7.8645        7.0296        .14306E-03   -1.5147    
  20  Prefactor     .10000E-03    25.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8385        .11695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.829        17.728        .10772E-03   -1.4964    
  23  Prefactor     .10000E-03    1.4278        .77315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.920        31.190        .74500E-04   -1.4632    
  26  Normalizat    .93434        .23678        .23480E-03   -.95264    
  27  Prefactor     .88639        .21142        .21962E-03   -.96618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43105e-09
Minuit parameter uncertainties:
  1  26.0247
  2  6.41051
  3  35.3972
  4  1.08033e-05
  5  4.89133e-06
  6  0.00033831
  7  2.04594e-06
  8  7.93434e-06
  9  3.00877e-05
  10  7.05981
  11  29.3291
  12  0.00301542
  13  0.000243437
  14  3.17966e-05
  15  33.3529
  16  7.77413e-05
  17  15.5554
  18  5.01741
  19  7.03035
  20  0.000305478
  21  6.50899e-05
  22  17.7348
  23  7.14356e-06
  24  1.64202e-05
  25  31.2074
  26  0.237049
  27  0.211613
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  2.751e+01  2.933e+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:  8.864e-01  2.116e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  9.343e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 339.414 -51.435
Photon Index (Fixed Index): 3.01 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 9.37e-06 +/- 9.99e-06

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

Saving results to:
/scratch/kocevski/429096/likelihoodResults_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.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) = 4405.88094462
delta logL = 0.027433136017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4405.8737864
delta logL = 0.0345913545707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.035       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3166       1.0000          .0000       10.000    
     3 'Normalizat'    .92801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89087       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=   4405.874     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      249 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.027        31.625        .81706E-04    .12523E-05
   2  Index         3.3169        1.3053        .11808E-01   -.16225E-04
   3  Normalizat    .92803        .23123        .23550E-03   -.18486E-03
   4  Prefactor     .89085        .20824        .21916E-03    .10582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0267
  Index      = 3.31689
  Normalizat = 0.928034
  Prefactor  = 0.890849
 **********
 **   18 **HESSE 
 **********

 FCN=   4405.874     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.027        29.983        .32682E-05   -1.4727    
   2  Index         3.3169        1.2382        .47232E-03   -.34333    
   3  Normalizat    .92803        .23158        .47099E-04   -.95482    
   4  Prefactor     .89085        .20848        .87663E-05   -.96462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00081e-10
Minuit parameter uncertainties:
  1  30.0022
  2  1.25295
  3  0.231824
  4  0.208666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429096': 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) = 4405.87378634
delta logL = 0.0345914117079

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  2.403e+01  3.000e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.317e+00  1.253e+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:  8.908e-01  2.087e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  9.280e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 339.414 -51.435
Photon Index (Free Index): 3.32 +/- 1.25
Photon Flux (Free Index): 5.13e-08 +/- 5.21e-08
Energy Flux (Free Index): 9.01e-06 +/- 9.24e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/429096/cmap_HighResolution_497232001_497491201_4FGL_J2237.6-5126_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='9.01e-06', photon_flux_error='5.03e-08', dlogl='3.46e-02', energy_flux='9.37e-06', photon_flux2='5.13e-08', job_status='DONE', time_completed='2021-09-28 18:24:35.753439', photon_index_error2='1.25', photon_index2='3.32', ts='1.24', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='9.24e-06', EG='0.93', time_epoch_completed='1632878675.75', return_code='0', job_id='429096', GAL2='0.89', EG2='0.93', return_code2='0', energy_flux_error='9.99e-06', photon_flux_error2='5.21e-08', ts2='1.32', photon_index='3.01' WHERE bin_id='995' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 429096: <4FGL_J2237.6-5126_daily_bin995> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin995 339.414 -51.4347 497232001 497491201 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 :                                   638.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

