/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 6 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2237.6-5126_daily_bin249
RA = 339.414, Dec = -51.4347
tmin = 303868801, tmax = 304128001
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='425795', job_status='RUN', time_executed='2021-09-28 18:01:08.531994', time_epoch_executed='1632877268.53' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425795/ft1_4FGL_J2237.6-5126_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425795/ft2_4FGL_J2237.6-5126_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425795/ft1_4FGL_J2237.6-5126_daily_bin249.fits outfile=/scratch/kocevski/425795/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin249.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=303868801.0 tmax=304128001.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.43
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425795/ft1_filtered_4FGL_J2237.6-5126_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/425795/ft2_4FGL_J2237.6-5126_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/425795/ltcube_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.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/425795/ft2_4FGL_J2237.6-5126_daily_bin249.fits
.....................!
real 12.00
user 11.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425795/ft1_filtered_4FGL_J2237.6-5126_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/425795/ft2_4FGL_J2237.6-5126_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/425795/ltcube_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.fits outfile=/scratch/kocevski/425795/expmap_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.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/425795/ltcube_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.fits
.....................!
real 191.37
user 186.58
sys 4.48

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/425795/ft1_filtered_4FGL_J2237.6-5126_daily_bin249.fits scfile=/scratch/kocevski/425795/ft2_4FGL_J2237.6-5126_daily_bin249.fits outfile=/scratch/kocevski/425795/cmap_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425795/ft1_filtered_4FGL_J2237.6-5126_daily_bin249.fits scfile=/scratch/kocevski/425795/ft2_4FGL_J2237.6-5126_daily_bin249.fits outfile=/scratch/kocevski/425795/cmap_HighResolution_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24111E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.411       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6415       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5652       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.988       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9162       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.814       1.0000         .10000E-03   10000.    
    21 'norm      '    38.235       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .48102       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.940       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84428       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94248       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=   7402.247     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3324 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.939        30.662        .13757E-05    .65361E-04
   2  Prefactor     .23997E-01    1.7041       -.56988E-06    .70311E-04
   3  Prefactor     23.880        32.220        .78096E-06    .12616E-03
   4  Prefactor     .10000E-03    10.818       -.36467E-05** at limit **
   5  Prefactor     12.988        5.0131        .32437E-06    .68850E-03
   6  Prefactor     14.446        102.78        .11472E-05    .41761E-04
   7  norm          4.6415        5.4168        .81513E-08    .42199E-04
   8  Prefactor     .51608        1.6212       -.53125E-08   -.61408E-04
   9  Prefactor     2.9756        42.440        .23300E-07    .78734E-05
  10  Prefactor     1.5654        2.9262        .15071E-07    .60318E-04
  11  Prefactor     25.985        24.370       -.12183E-06    .13546E-03
  12  Prefactor     2.4422        11.736        .25188E-05    .38210E-04
  13  Prefactor     .10000E-03    25.471        .33645E-05** at limit **
  14  Prefactor     1.2028        4.7764        .50257E-05    .16086E-03
  15  Prefactor     .10000E-03    22.963       -.24815E-05** at limit **
  16  Prefactor     7.9158        22.597        .17871E-06    .71258E-05
  17  norm          .10000E-03    4.6434        .65483E-07** at limit **
  18  norm          .10000E-03    2.3559       -.84632E-09** at limit **
  19  Prefactor     .10000E-03    8.8892       -.13849E-05** at limit **
  20  Prefactor     28.819        19.349       -.82945E-06    .10716E-04
  21  norm          38.235        3.5996       -.21072E-07   -.71813E-03
  22  Prefactor     .10000E-03    13.575       -.25154E-05** at limit **
  23  Prefactor     .48392        2.2778        .12691E-05   -.14931E-02
  24  Prefactor     .10000E-03    24.215        .20142E-07** at limit **
  25  norm          24.938        29.478        .11327E-07   -.21466E-04
  26  Normalizat    .84425        .18204       -.24863E-06    .31020E-03
  27  Prefactor     .94250        .15630        .99558E-07    .45742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9393
  Prefactor  = 0.0239972
  Prefactor  = 23.8801
  Prefactor  = 0.0001
  Prefactor  = 12.9882
  Prefactor  = 14.4456
  norm       = 4.64149
  Prefactor  = 0.516078
  Prefactor  = 2.97557
  Prefactor  = 1.56536
  Prefactor  = 25.9851
  Prefactor  = 2.44217
  Prefactor  = 0.000100002
  Prefactor  = 1.20279
  Prefactor  = 0.000100001
  Prefactor  = 7.91581
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8186
  norm       = 38.235
  Prefactor  = 0.000100001
  Prefactor  = 0.483915
  Prefactor  = 0.0001
  norm       = 24.9382
  Normalizat = 0.844252
  Prefactor  = 0.942503
 **********
 **   18 **HESSE 
 **********

 FCN=   7402.247     FROM HESSE     STATUS=OK           506 CALLS     3830 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.939        30.644        .12112E-03   -1.5046    
   2  Prefactor     .23997E-01    2.4264        .40797E-01   -1.5677    
   3  Prefactor     23.880        32.330        .81984E-04   -1.4730    
   4  Prefactor     .10000E-03    11.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.988        5.0197        .11115E-03   -1.4987    
   6  Prefactor     14.446        104.89        .10551E-03   -1.4948    
   7  norm          4.6415        5.4140        .18681E-03   -1.5277    
   8  Prefactor     .51608        1.7351        .18560E-02   -1.5564    
   9  Prefactor     2.9756        42.274        .23536E-03   -1.5363    
  10  Prefactor     1.5654        2.8827        .19399E-03   -1.5458    
  11  Prefactor     25.985        24.186        .78582E-04   -1.4688    
  12  Prefactor     2.4422        11.507        .13094E-02   -1.5395    
  13  Prefactor     .10000E-03    25.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2028        4.7906        .18154E-02   -1.5489    
  15  Prefactor     .10000E-03    23.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9158        22.559        .14251E-03   -1.5145    
  17  norm          .10000E-03    4.6470        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3572        .12896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.819        19.194        .74636E-04   -1.4634    
  21  norm          38.235        3.6013        .43064E-04   -1.4470    
  22  Prefactor     .10000E-03    13.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .48392        2.0609        .63925E-01   -1.5569    
  24  Prefactor     .10000E-03    24.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.938        29.486        .80213E-04   -1.4709    
  26  Normalizat    .84425        .21595        .29381E-03   -.98448    
  27  Prefactor     .94250        .18684        .25088E-03   -.94671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79178e-08
Minuit parameter uncertainties:
  1  30.6881
  2  0.481622
  3  32.3533
  4  5.4988e-06
  5  5.01984
  6  78.046
  7  5.41453
  8  1.73527
  9  22.4499
  10  2.88299
  11  24.1951
  12  10.6054
  13  0.000396145
  14  4.79217
  15  0.000300874
  16  22.5833
  17  4.76256e-06
  18  1.02023e-06
  19  7.06035e-05
  20  19.1985
  21  3.60127
  22  0.000236526
  23  1.99721
  24  0.000109255
  25  29.5034
  26  0.216172
  27  0.186965
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  2.599e+01  2.420e+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.425e-01  1.870e-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:  8.443e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 339.414 -51.435
Photon Index (Fixed Index): 3.01 +/- 0.00
Photon Flux (Fixed Index): 4.46e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 8.85e-06 +/- 8.24e-06

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

Saving results to:
/scratch/kocevski/425795/likelihoodResults_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.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) = 7402.23941089
delta logL = 0.00791644688798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7402.23881579
delta logL = 0.0085115450911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.208       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8699       1.0000          .0000       10.000    
     3 'Normalizat'    .84963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93919       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=   7402.239     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.211        22.799        .78252E-04   -.13801E-02
   2  Index         2.8698        1.0688        .15130E-01   -.33002E-03
   3  Normalizat    .84950        .20925        .29300E-03    .27688E-03
   4  Prefactor     .93931        .18499        .25125E-03    .27832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2107
  Index      = 2.86976
  Normalizat = 0.849499
  Prefactor  = 0.939311
 **********
 **   18 **HESSE 
 **********

 FCN=   7402.239     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.211        22.799        .15650E-04   -1.4684    
   2  Index         2.8698        1.0682        .60521E-03   -.44012    
   3  Normalizat    .84950        .20962        .11720E-04   -.98258    
   4  Prefactor     .93931        .18521        .50251E-04   -.94781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08737e-08
Minuit parameter uncertainties:
  1  22.807
  2  1.07843
  3  0.209817
  4  0.185338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425795': 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) = 7402.23881556
delta logL = 0.00851177365348

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  2.621e+01  2.281e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.870e+00  1.078e+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:  9.393e-01  1.853e-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:  8.495e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 339.414 -51.435
Photon Index (Free Index): 2.87 +/- 1.08
Photon Flux (Free Index): 4.10e-08 +/- 4.60e-08
Energy Flux (Free Index): 8.77e-06 +/- 7.65e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/425795/cmap_HighResolution_303868801_304128001_4FGL_J2237.6-5126_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.46e-08', energy_flux2='8.77e-06', photon_flux_error='4.15e-08', dlogl='8.51e-03', energy_flux='8.85e-06', photon_flux2='4.10e-08', job_status='DONE', time_completed='2021-09-28 18:15:55.883646', photon_index_error2='1.08', photon_index2='2.87', ts='2.33', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='7.65e-06', EG='0.84', time_epoch_completed='1632878155.88', return_code='0', job_id='425795', GAL2='0.94', EG2='0.85', return_code2='0', energy_flux_error='8.24e-06', photon_flux_error2='4.60e-08', ts2='2.32', photon_index='3.01' WHERE bin_id='249' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:15:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 425795: <4FGL_J2237.6-5126_daily_bin249> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin249 339.414 -51.4347 303868801 304128001 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 :                                   886.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

