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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1490
RA = 339.414, Dec = -51.4347
tmin = 625536001, tmax = 625795201
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='432076', job_status='RUN', time_executed='2021-09-28 18:20:53.692512', time_epoch_executed='1632878453.69' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432076

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432076/ft1_4FGL_J2237.6-5126_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432076/ft2_4FGL_J2237.6-5126_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432076/ft1_4FGL_J2237.6-5126_daily_bin1490.fits outfile=/scratch/kocevski/432076/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1490.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=625536001.0 tmax=625795201.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.68
user 3.45
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432076/ft1_filtered_4FGL_J2237.6-5126_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/432076/ft2_4FGL_J2237.6-5126_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/432076/ltcube_625536001_625795201_4FGL_J2237.6-5126_daily_bin1490.fits outfile=/scratch/kocevski/432076/expmap_625536001_625795201_4FGL_J2237.6-5126_daily_bin1490.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/432076/ltcube_625536001_625795201_4FGL_J2237.6-5126_daily_bin1490.fits
.....................!
real 191.17
user 185.23
sys 5.63

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/432076/ft1_filtered_4FGL_J2237.6-5126_daily_bin1490.fits scfile=/scratch/kocevski/432076/ft2_4FGL_J2237.6-5126_daily_bin1490.fits outfile=/scratch/kocevski/432076/cmap_625536001_625795201_4FGL_J2237.6-5126_daily_bin1490.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.52
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432076/ft1_filtered_4FGL_J2237.6-5126_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/432076/ft2_4FGL_J2237.6-5126_daily_bin1490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432076/Model_4FGL_J2237.6-5126_daily_bin1490.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/432076/ft1_filtered_4FGL_J2237.6-5126_daily_bin1490.fits.....................!
real 49.09
user 47.73
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0391       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12975E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4874       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.648       1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83453E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3970       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20107       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.920       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.537       1.0000         .10000E-03   10000.    
    18 'norm      '    .11181E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1358       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8725       1.0000         .10000E-03   10000.    
    21 'norm      '    .51561       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93021       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76954       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6727.176     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     2812 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0314        3.1200        .77999E-05   -.18603E-03
   2  Prefactor     .10000E-03    5.4024       -.48261E-06** at limit **
   3  Prefactor     22.377        3.7837        .95746E-06   -.99712E-03
   4  Prefactor     1.4846        1.2353        .19092E-05    .89017E-04
   5  Prefactor     .10000E-03    1.4074       -.45949E-07** at limit **
   6  Prefactor     75.630        4.9317       -.23086E-05    .73477E-02
   7  norm          .10000E-03    1.4679       -.44919E-07** at limit **
   8  Prefactor     4.6595        2.8568        .23854E-06    .52080E-03
   9  Prefactor     43.512        8.1826       -.15250E-05    .13683E-02
  10  Prefactor     .11002E-03    141.68       -.20594E-04** at limit **
  11  Prefactor     8.4417        14.595        .13677E-04    .31350E-02
  12  Prefactor     .13857        105.66        .64433E-04   -.33536E-03
  13  Prefactor     .10001E-03    32.397       -.17893E-04** at limit **
  14  Prefactor     .10000E-03    1.5061       -.45037E-07** at limit **
  15  Prefactor     24.920        1.1217       -.42166E-06    .10945E-02
  16  Prefactor     .10000E-03    7.6039       -.25009E-05** at limit **
  17  norm          17.538        1.4036       -.67380E-06   -.15186E-02
  18  norm          .10000E-03    5.5524        .77981E-06** at limit **
  19  Prefactor     7.1381        4.6445        .14171E-06    .85313E-03
  20  Prefactor     2.8756        2.7552       -.43452E-05   -.14593E-02
  21  norm          .51589        .80094        .26217E-06   -.16678E-03
  22  Prefactor     .10000E-03    8.7901       -.12526E-04** at limit **
  23  Prefactor     .10000E-03    2.3190        .12137E-06** at limit **
  24  Prefactor     .10000E-03    27.562        .76199E-05** at limit **
  25  norm          .10000E-03    8.5843        .13884E-04** at limit **
  26  Normalizat    .92977        .16882       -.47608E-05   -.76914E-03
  27  Prefactor     .76982        .15005        .14412E-05   -.66322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03137
  Prefactor  = 0.0001
  Prefactor  = 22.3768
  Prefactor  = 1.48459
  Prefactor  = 0.0001
  Prefactor  = 75.6303
  norm       = 0.0001
  Prefactor  = 4.6595
  Prefactor  = 43.5125
  Prefactor  = 0.000110025
  Prefactor  = 8.44168
  Prefactor  = 0.138571
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 24.9199
  Prefactor  = 0.0001
  norm       = 17.5382
  norm       = 0.0001
  Prefactor  = 7.13809
  Prefactor  = 2.87561
  norm       = 0.515891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Normalizat = 0.929771
  Prefactor  = 0.769822
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.176     FROM HESSE     STATUS=OK           572 CALLS     3384 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0314        26.735        .58188E-02   -1.5360    
   2  Prefactor     .10000E-03    1.8204        .57099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.377        37.847        .21181E-02   -1.4762    
   4  Prefactor     1.4846        11.291        .87910E-02   -1.5464    
   5  Prefactor     .10000E-03    1.3754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     75.630        94.685        .11541E-02   -1.3966    
   7  norm          .10000E-03    1.4679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6595        2.8843        .46613E-02   -1.5276    
   9  Prefactor     43.512        33.050        .15184E-02   -1.4388    
  10  Prefactor     .11002E-03    2.2986        .74467E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4417        22.965        .34586E-02   -1.5127    
  12  Prefactor     .13857        9.2306        .74177E-01   -1.5634    
  13  Prefactor     .10001E-03    33.164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.920        28.878        .20061E-02   -1.4709    
  16  Prefactor     .10000E-03    7.5414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.538        10.614        .23910E-02   -1.4870    
  18  norm          .10000E-03    2.4532        .49421E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1381        5.7231        .37541E-02   -1.5174    
  20  Prefactor     2.8756        10.024        .59956E-02   -1.5369    
  21  norm          .51589        .87280        .20038E-01   -1.5564    
  22  Prefactor     .10000E-03    8.7284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3535        .36347E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.6096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .92977        .14750        .45286E-01   -.95422    
  27  Prefactor     .76982        .12845        .43320E-01   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67047e-07
Minuit parameter uncertainties:
  1  18.0153
  2  5.84068e-06
  3  37.8873
  4  8.19023
  5  2.96684e-07
  6  94.8747
  7  2.97825e-06
  8  2.88439
  9  33.0641
  10  0.00960088
  11  22.9893
  12  2.26149
  13  0.00101765
  14  5.15774e-06
  15  28.8943
  16  4.89391e-05
  17  10.6147
  18  3.23168e-05
  19  5.72353
  20  10.0299
  21  0.872822
  22  2.37313e-05
  23  1.06257e-05
  24  0.000511809
  25  0.000199341
  26  0.147567
  27  0.128496
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  8.442e+00  2.299e+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:  7.698e-01  1.285e-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.298e-01  1.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 339.414 -51.435
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432076/likelihoodResults_625536001_625795201_4FGL_J2237.6-5126_daily_bin1490.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) = 6727.17201292
delta logL = 0.0039934315846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6727.17160166
delta logL = 0.00440469326077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9113       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1672       1.0000          .0000       10.000    
     3 'Normalizat'    .92843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77085       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=   6727.172     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      281 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9088        20.769        .14256E-03    .59509E-03
   2  Index         3.1679        1.7922        .20410E-01    .14107E-03
   3  Normalizat    .92872        .16608        .21641E-03   -.85059E-03
   4  Prefactor     .77058        .15004        .21582E-03   -.74990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.90884
  Index      = 3.16794
  Normalizat = 0.928723
  Prefactor  = 0.770581
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.172     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9088        19.556        .57022E-05   -1.5145    
   2  Index         3.1679        1.6927        .81640E-03   -.37515    
   3  Normalizat    .92872        .16632        .43283E-04   -.95458    
   4  Prefactor     .77058        .15021        .43164E-04   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66401e-09
Minuit parameter uncertainties:
  1  19.5721
  2  1.7325
  3  0.166415
  4  0.150286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432076': 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) = 6727.17159975
delta logL = 0.00440659928881

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  7.909e+00  1.957e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.168e+00  1.732e+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:  7.706e-01  1.503e-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.287e-01  1.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/432076/cmap_HighResolution_625536001_625795201_4FGL_J2237.6-5126_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-28 18:33:46.517758', job_id='432076', GAL2='0.77', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632879226.52', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.41e-03', ts2='0.24', photon_index_error='0.00', photon_index='3.01' WHERE bin_id='1490' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:33:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 432076: <4FGL_J2237.6-5126_daily_bin1490> in cluster <slac> Done

Job <4FGL_J2237.6-5126_daily_bin1490> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 18:20:28 2021
Job was executed on host(s) <bullet0035>, 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:33:47 2021
Results reported at Tue Sep 28 18:33:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1490 339.414 -51.4347 625536001 625795201 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 :                                   759.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            799 sec.

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

