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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1299
RA = 339.414, Dec = -51.4347
tmin = 576028801, tmax = 576288001
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='430672', job_status='RUN', time_executed='2021-09-28 18:15:57.340385', time_epoch_executed='1632878157.34' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430672

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430672/ft1_4FGL_J2237.6-5126_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430672/ft1_4FGL_J2237.6-5126_daily_bin1299.fits outfile=/scratch/kocevski/430672/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1299.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=576028801.0 tmax=576288001.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.63
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.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/430672/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1299.fits evtable="EVENTS" outfile="/scratch/kocevski/430672/ft1_filtered_4FGL_J2237.6-5126_daily_bin1299.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430672/ft1_filtered_4FGL_J2237.6-5126_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/430672/ltcube_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.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/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.fits
.....................!
real 11.88
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430672/ft1_filtered_4FGL_J2237.6-5126_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/430672/ltcube_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.fits outfile=/scratch/kocevski/430672/expmap_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.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/430672/ltcube_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.fits
.....................!
real 192.86
user 187.50
sys 4.94

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/430672/ft1_filtered_4FGL_J2237.6-5126_daily_bin1299.fits scfile=/scratch/kocevski/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.fits outfile=/scratch/kocevski/430672/cmap_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430672/ft1_filtered_4FGL_J2237.6-5126_daily_bin1299.fits scfile=/scratch/kocevski/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.fits outfile=/scratch/kocevski/430672/cmap_HighResolution_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430672/ft1_filtered_4FGL_J2237.6-5126_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/430672/ft2_4FGL_J2237.6-5126_daily_bin1299.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430672/Model_4FGL_J2237.6-5126_daily_bin1299.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/430672/ft1_filtered_4FGL_J2237.6-5126_daily_bin1299.fits.....................!
real 45.86
user 44.48
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12354E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6001       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7077       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.715       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0834       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2509       1.0000         .10000E-03   10000.    
    18 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .50627       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11897E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.949       1.0000         .10000E-03   10000.    
    25 'norm      '    .31368E-01   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0483       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70321       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.

 FCN=   6329.445     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3323 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.115        .90712E-02** at limit **
   2  Prefactor     6.5998        4.1384        .39051E-02    .26877E-03
   3  Prefactor     .10000E-03    7.3086        .90712E-02** at limit **
   4  Prefactor     7.7074        5.7202        .36110E-02    .11455E-03
   5  Prefactor     .10000E-03    2.7104        .90712E-02** at limit **
   6  Prefactor     .10002E-03    98.897        .90712E-02** at limit **
   7  norm          .10000E-03    1.8730        .90712E-02** at limit **
   8  Prefactor     11.243        3.8680        .29870E-02    .13882E-03
   9  Prefactor     .10000E-03    7.8320        .90712E-02** at limit **
  10  Prefactor     .10000E-03    1.2059        .90712E-02** at limit **
  11  Prefactor     20.125        24.316        .22316E-02    .28436E-03
  12  Prefactor     .10000E-03    8.5828        .90712E-02** at limit **
  13  Prefactor     .10000E-03    38.668        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.3396        .90712E-02** at limit **
  15  Prefactor     18.683        24.755        .23146E-02   -.55998E-03
  16  Prefactor     5.0875        16.911        .44583E-02    .28570E-03
  17  norm          6.2508        6.2376        .40139E-02   -.10832E-03
  18  norm          .10000E-03    2.2479        .90712E-02** at limit **
  19  Prefactor     .10000E-03    3.4322        .90712E-02** at limit **
  20  Prefactor     .10000E-03    6.5350        .90712E-02** at limit **
  21  norm          .50635        1.1771        .11296E-01    .16607E-02
  22  Prefactor     .10000E-03    7.2276        .90712E-02** at limit **
  23  Prefactor     .10000E-03    2.4631        .64192E-01** at limit **
  24  Prefactor     12.010        28.246        .28972E-02    .10168E-02
  25  norm          .10001E-03    21.390        .14137    ** at limit **
  26  Normalizat    1.0484        .16043        .40673E-01   -.82402E-06
  27  Prefactor     .70318        .13594        .42444E-01    .16349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.59979
  Prefactor  = 0.0001
  Prefactor  = 7.70736
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 0.0001
  Prefactor  = 11.2425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6832
  Prefactor  = 5.0875
  norm       = 6.25084
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.506347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0103
  norm       = 0.000100012
  Normalizat = 1.0484
  Prefactor  = 0.703181
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.445     FROM HESSE     STATUS=OK           484 CALLS     3807 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5998        4.1356        .12241E-03   -1.5194    
   3  Prefactor     .10000E-03    7.3128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7074        5.7178        .14444E-03   -1.5153    
   5  Prefactor     .10000E-03    2.8288        .25535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    99.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8745        .10633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.243        3.8738        .88130E-04   -1.5037    
   9  Prefactor     .10000E-03    7.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2094        .85290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.125        24.530        .44631E-03   -1.4810    
  12  Prefactor     .10000E-03    8.6729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3554        .11883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.683        24.747        .92583E-04   -1.4843    
  16  Prefactor     5.0875        16.269        .17833E-03   -1.5257    
  17  norm          6.2508        6.2415        .16056E-03   -1.5208    
  18  norm          .10000E-03    2.2519        .11642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4656        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .50635        1.0988        .10569E-03   -1.5566    
  22  Prefactor     .10000E-03    7.2574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.537        .20472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.010        24.639        .11589E-03   -1.5015    
  25  norm          .10001E-03    179.57        .71558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0484        .18925        .21357E-03   -.91426    
  27  Prefactor     .70318        .15944        .23120E-03   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72105e-09
Minuit parameter uncertainties:
  1  1.65941e-05
  2  4.13573
  3  5.81309e-05
  4  5.7182
  5  1.08348e-06
  6  0.00281089
  7  2.00081e-06
  8  3.87393
  9  9.78374e-06
  10  1.6547e-07
  11  24.5425
  12  8.16838e-06
  13  2.08276e-05
  14  2.50801e-07
  15  24.7607
  16  16.2833
  17  6.24213
  18  1.06017e-07
  19  6.94876e-07
  20  5.7416e-06
  21  1.0988
  22  5.49668e-05
  23  9.45105e-06
  24  24.6603
  25  0.00293863
  26  0.189369
  27  0.159539
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  2.013e+01  2.454e+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.032e-01  1.595e-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.048e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430672/likelihoodResults_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.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) = 6328.94833362
delta logL = 0.496305145557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6328.94568486
delta logL = 0.498953904573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.208       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5048       1.0000          .0000       10.000    
     3 'Normalizat'    1.0075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72792       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=   6328.946     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      277 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.195        41.304        .11967E-03   -.64298E-03
   2  Index         4.5038        3.5525        .10852E-01   -.86693E-04
   3  Normalizat    1.0080        .18308        .21726E-03    .14500E-03
   4  Prefactor     .72767        .16091        .22769E-03    .73959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1946
  Index      = 4.50384
  Normalizat = 1.00799
  Prefactor  = 0.727669
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.946     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.195        21.370        .47867E-05   -1.5039    
   2  Index         4.5038        1.9826        .43408E-03   -.99395E-01
   3  Normalizat    1.0080        .18345        .86903E-05   -.92763    
   4  Prefactor     .72767        .16083        .45538E-04   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55824e-09
Minuit parameter uncertainties:
  1  21.3842
  2  2.03926
  3  0.183564
  4  0.160932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430672': 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) = 6328.9456789
delta logL = 0.498959863357

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.119e+01  2.138e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  4.504e+00  2.039e+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.277e-01  1.609e-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.008e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 339.414 -51.435
Photon Index (Free Index): 4.50 +/- 2.04
Photon Flux (Free Index): 6.40e-08 +/- 5.26e-08
Energy Flux (Free Index): 8.93e-06 +/- 7.42e-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/430672/cmap_HighResolution_576028801_576288001_4FGL_J2237.6-5126_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', comment='SUCCESS', energy_flux2='8.93e-06', dlogl='4.99e-01', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-28 18:28:49.528740', photon_index_error2='2.04', photon_index2='4.50', ts='0.84', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='7.42e-06', EG='1.05', time_epoch_completed='1632878929.53', return_code='0', job_id='430672', GAL2='0.73', EG2='1.01', return_code2='0', photon_flux_error2='5.26e-08', ts2='1.95', photon_index='3.01' WHERE bin_id='1299' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:28:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 430672: <4FGL_J2237.6-5126_daily_bin1299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1299 339.414 -51.4347 576028801 576288001 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 :                                   767.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

