/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 2 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 = 7398
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2237.6-5126_daily_bin30
RA = 339.414, Dec = -51.4347
tmin = 247104001, tmax = 247363201
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='425437', job_status='RUN', time_executed='2021-09-28 18:00:35.556359', time_epoch_executed='1632877235.56' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425437/ft1_4FGL_J2237.6-5126_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425437/ft2_4FGL_J2237.6-5126_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425437/ft1_4FGL_J2237.6-5126_daily_bin30.fits outfile=/scratch/kocevski/425437/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin30.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=247104001.0 tmax=247363201.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 1.49
user 1.31
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425437/ft1_filtered_4FGL_J2237.6-5126_daily_bin30.fits" evtable="EVENTS" scfile=/scratch/kocevski/425437/ft2_4FGL_J2237.6-5126_daily_bin30.fits sctable="SC_DATA" outfile=/scratch/kocevski/425437/ltcube_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.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/425437/ft2_4FGL_J2237.6-5126_daily_bin30.fits
.....................!
real 12.48
user 12.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425437/ft1_filtered_4FGL_J2237.6-5126_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/425437/ft2_4FGL_J2237.6-5126_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/425437/ltcube_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.fits outfile=/scratch/kocevski/425437/expmap_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.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/425437/ltcube_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.fits
.....................!
real 190.30
user 185.15
sys 4.81

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/425437/ft1_filtered_4FGL_J2237.6-5126_daily_bin30.fits scfile=/scratch/kocevski/425437/ft2_4FGL_J2237.6-5126_daily_bin30.fits outfile=/scratch/kocevski/425437/cmap_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425437/ft1_filtered_4FGL_J2237.6-5126_daily_bin30.fits scfile=/scratch/kocevski/425437/ft2_4FGL_J2237.6-5126_daily_bin30.fits outfile=/scratch/kocevski/425437/cmap_HighResolution_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425437/ft1_filtered_4FGL_J2237.6-5126_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/425437/ft2_4FGL_J2237.6-5126_daily_bin30.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425437/Model_4FGL_J2237.6-5126_daily_bin30.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/425437/ft1_filtered_4FGL_J2237.6-5126_daily_bin30.fits.....................!
real 43.99
user 42.69
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8291       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3026       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .91072E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.531       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2772       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.364       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2039       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24510E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34404       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1248       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6761       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .49604       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1708       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87743       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=   5499.637     FROM MIGRAD    STATUS=CONVERGED   1162 CALLS     3323 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.374        .18142E-02** at limit **
   2  Prefactor     2.8292        4.2793        .18079E-03   -.61625E-05
   3  Prefactor     .10000E-03    31.338        .18142E-02** at limit **
   4  Prefactor     .10000E-03    3.6643        .13837E-02** at limit **
   5  Prefactor     3.3057        5.0033        .19088E-03   -.81476E-04
   6  Prefactor     .10000E-03    45.518        .18142E-02** at limit **
   7  norm          .10005E-03    23.594        .35492E-02** at limit **
   8  Prefactor     .10000E-03    2.2744        .10865E-02** at limit **
   9  Prefactor     .10000E-03    33.768        .18142E-02** at limit **
  10  Prefactor     6.4921        4.9743        .13864E-03   -.10997E-03
  11  Prefactor     11.507        20.833        .11798E-03   -.99737E-04
  12  Prefactor     .10000E-03    12.518        .18142E-02** at limit **
  13  Prefactor     .10000E-03    110.28        .18142E-02** at limit **
  14  Prefactor     3.2775        4.7516        .18941E-03   -.80910E-04
  15  Prefactor     .10000E-03    22.798        .18142E-02** at limit **
  16  Prefactor     23.369        17.216        .82869E-04   -.17349E-03
  17  norm          2.2023        10.877        .13856E-02   -.54456E-03
  18  norm          .10000E-03    2.0035        .10251E-02** at limit **
  19  Prefactor     .10001E-03    31.704        .34957E-02** at limit **
  20  Prefactor     .42655        107.17        .44639E-02    .10010E-03
  21  norm          1.1250        .98845        .64947E-04   -.82061E-03
  22  Prefactor     2.6811        27.061        .24911E-03   -.41074E-06
  23  Prefactor     .10000E-03    2.6008        .23037E-03** at limit **
  24  Prefactor     .41040        22.654        .10306        .20572E-03
  25  norm          .10000E-03    24.047        .18142E-02** at limit **
  26  Normalizat    1.1702        .23417        .23514E-03   -.48782E-03
  27  Prefactor     .87798        .19640        .23691E-03   -.59389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 2.8292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30568
  Prefactor  = 0.0001
  norm       = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.49206
  Prefactor  = 11.5075
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.27749
  Prefactor  = 0.0001
  Prefactor  = 23.3686
  norm       = 2.2023
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.426551
  norm       = 1.12499
  Prefactor  = 2.68114
  Prefactor  = 0.0001
  Prefactor  = 0.410402
  norm       = 0.0001
  Normalizat = 1.17016
  Prefactor  = 0.877983
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.637     FROM HESSE     STATUS=OK           472 CALLS     3795 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8292        4.2786        .72316E-05   -1.5372    
   3  Prefactor     .10000E-03    31.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6646        .27673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3057        5.0008        .76353E-05   -1.5344    
   6  Prefactor     .10000E-03    45.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10005E-03    23.906        .70985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2747        .21730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4921        4.9738        .55454E-05   -1.5198    
  11  Prefactor     11.507        20.828        .47190E-05   -1.5029    
  12  Prefactor     .10000E-03    12.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    110.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2775        4.7513        .75763E-05   -1.5346    
  15  Prefactor     .10000E-03    22.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.369        17.197        .16574E-04   -1.4741    
  17  norm          2.2023        10.860        .55424E-04   -1.5411    
  18  norm          .10000E-03    2.0035        .20501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    31.652        .69915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .42655        104.38        .17855E-03   -1.5577    
  21  norm          1.1250        .98514        .25979E-05   -1.5496    
  22  Prefactor     2.6811        27.046        .99642E-05   -1.5380    
  23  Prefactor     .10000E-03    2.6009        .46074E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .41040        22.114        .10487       -1.5580    
  25  norm          .10000E-03    24.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1702        .23356        .47028E-04   -.87530    
  27  Prefactor     .87798        .19641        .47382E-04   -.96915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87248e-09
Minuit parameter uncertainties:
  1  0.000554927
  2  4.27905
  3  3.76162e-05
  4  1.21064e-05
  5  5.0014
  6  0.00011066
  7  0.00215801
  8  3.9718e-05
  9  5.80679e-05
  10  4.97407
  11  20.8409
  12  0.000231459
  13  0.000298566
  14  4.75189
  15  0.000136177
  16  17.2009
  17  9.7834
  18  1.75224e-06
  19  0.000876019
  20  13.3671
  21  0.985159
  22  17.0407
  23  2.21804e-05
  24  6.02678
  25  0.000135056
  26  0.23377
  27  0.196572
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.151e+01  2.084e+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.780e-01  1.966e-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:  1.170e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 339.414 -51.435
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425437/likelihoodResults_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.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) = 5499.636501
delta logL = 0.000317208130582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5499.63622354
delta logL = 0.000594667994847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.474       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0927       1.0000          .0000       10.000    
     3 'Normalizat'    1.1688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87879       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=   5499.636     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.470        20.837        .11827E-03    .12304E-02
   2  Index         3.0919        2.2554        .23751E-01    .22117E-03
   3  Normalizat    1.1688        .22239        .23526E-03   -.64495E-03
   4  Prefactor     .87879        .19448        .23682E-03   -.57972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4701
  Index      = 3.09194
  Normalizat = 1.1688
  Prefactor  = 0.878788
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.636     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.470        20.614        .23653E-04   -1.5030    
   2  Index         3.0919        2.2317        .95003E-03   -.39154    
   3  Normalizat    1.1688        .22263        .47051E-04   -.87572    
   4  Prefactor     .87879        .19463        .47363E-04   -.96886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79067e-08
Minuit parameter uncertainties:
  1  20.6265
  2  2.32905
  3  0.222805
  4  0.194784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425437': 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) = 5499.63622338
delta logL = 0.00059482713732

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.147e+01  2.063e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.092e+00  2.329e+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.788e-01  1.948e-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:  1.169e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/425437/cmap_HighResolution_247104001_247363201_4FGL_J2237.6-5126_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-28 18:12:20.409851', job_id='425437', GAL2='0.88', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632877940.41', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.95e-04', ts2='0.44', photon_index_error='0.00', photon_index='3.01' WHERE bin_id='30' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:12:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 425437: <4FGL_J2237.6-5126_daily_bin30> in cluster <slac> Done

Job <4FGL_J2237.6-5126_daily_bin30> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:00:24 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:00:25 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:25 2021
Terminated at Tue Sep 28 18:12:21 2021
Results reported at Tue Sep 28 18:12:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin30 339.414 -51.4347 247104001 247363201 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 :                                   704.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

