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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1122
RA = 339.414, Dec = -51.4347
tmin = 530150401, tmax = 530409601
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='430407', job_status='RUN', time_executed='2021-09-28 18:16:00.295236', time_epoch_executed='1632878160.3' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430407/ft1_4FGL_J2237.6-5126_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430407/ft1_4FGL_J2237.6-5126_daily_bin1122.fits outfile=/scratch/kocevski/430407/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1122.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=530150401.0 tmax=530409601.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.57
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.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/430407/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1122.fits evtable="EVENTS" outfile="/scratch/kocevski/430407/ft1_filtered_4FGL_J2237.6-5126_daily_bin1122.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/430407/ft1_filtered_4FGL_J2237.6-5126_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/430407/ltcube_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.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/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.fits
.....................!
real 12.14
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430407/ft1_filtered_4FGL_J2237.6-5126_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/430407/ltcube_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.fits outfile=/scratch/kocevski/430407/expmap_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.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/430407/ltcube_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.fits
.....................!
real 192.55
user 187.60
sys 4.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/430407/ft1_filtered_4FGL_J2237.6-5126_daily_bin1122.fits scfile=/scratch/kocevski/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.fits outfile=/scratch/kocevski/430407/cmap_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430407/ft1_filtered_4FGL_J2237.6-5126_daily_bin1122.fits scfile=/scratch/kocevski/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.fits outfile=/scratch/kocevski/430407/cmap_HighResolution_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.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/430407/ft1_filtered_4FGL_J2237.6-5126_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/430407/ft2_4FGL_J2237.6-5126_daily_bin1122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430407/Model_4FGL_J2237.6-5126_daily_bin1122.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/430407/ft1_filtered_4FGL_J2237.6-5126_daily_bin1122.fits.....................!
real 52.08
user 50.73
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.556       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.3981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4622       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3204       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   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 '    4.7293       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .61898E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.159       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4214       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .60624       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=   7191.178     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     2925 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.557        17.451        .22085E-02    .85559E-03
   2  Prefactor     .43872        2.4496        .39753E-01    .10796E-02
   3  Prefactor     .10000E-03    92.666        .90712E-02** at limit **
   4  Prefactor     3.7984        7.5501        .51727E-02   -.12158E-02
   5  Prefactor     3.8942        3.9298        .51123E-02    .77253E-03
   6  Prefactor     .10001E-03    131.04        .90712E-02** at limit **
   7  norm          8.3986        6.5915        .34583E-02   -.11844E-02
   8  Prefactor     .10000E-03    .92616        .90712E-02** at limit **
   9  Prefactor     .10000E-03    10.902        .90712E-02** at limit **
  10  Prefactor     2.4865        3.9448        .64842E-02    .65380E-03
  11  Prefactor     .10001E-03    18.928        .11249    ** at limit **
  12  Prefactor     5.4777        9.8444        .42981E-02   -.61962E-03
  13  Prefactor     .10000E-03    21.599        .90712E-02** at limit **
  14  Prefactor     2.3203        3.2116        .67320E-02    .13956E-03
  15  Prefactor     .10000E-03    7.5413        .90712E-02** at limit **
  16  Prefactor     .10000E-03    4.4301        .90712E-02** at limit **
  17  norm          .10000E-03    3.2712        .90712E-02** at limit **
  18  norm          .10000E-03    2.3468        .90712E-02** at limit **
  19  Prefactor     4.7294        4.3777        .46257E-02    .43859E-02
  20  Prefactor     .10000E-03    6.1944        .90712E-02** at limit **
  21  norm          .61936E-01    .51734        .20019E-01    .23279E-02
  22  Prefactor     .10000E-03    18.006        .90712E-02** at limit **
  23  Prefactor     .10000E-03    1.6461        .38758E-01** at limit **
  24  Prefactor     .10000E-03    13.302        .90712E-02** at limit **
  25  norm          11.158        18.020        .29983E-02   -.10780E-03
  26  Normalizat    1.4215        .15826        .46536E-01   -.89529E-05
  27  Prefactor     .60617        .13586        .60117E-01    .22411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5574
  Prefactor  = 0.438721
  Prefactor  = 0.0001
  Prefactor  = 3.7984
  Prefactor  = 3.89422
  Prefactor  = 0.000100007
  norm       = 8.39855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48647
  Prefactor  = 0.000100014
  Prefactor  = 5.47772
  Prefactor  = 0.0001
  Prefactor  = 2.3203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.72944
  Prefactor  = 0.0001
  norm       = 0.0619357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1576
  Normalizat = 1.42147
  Prefactor  = 0.606174
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.178     FROM HESSE     STATUS=OK           498 CALLS     3423 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.557        17.429        .88342E-04   -1.4801    
   2  Prefactor     .43872        5.1390        .24891E-02   -1.5576    
   3  Prefactor     .10000E-03    95.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7984        7.4929        .20691E-03   -1.5318    
   5  Prefactor     3.8942        3.9173        .15659E-03   -1.5313    
   6  Prefactor     .10001E-03    131.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.3986        6.5907        .13833E-03   -1.5128    
   8  Prefactor     .10000E-03    .93374        .79671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4865        3.9261        .20062E-03   -1.5393    
  11  Prefactor     .10001E-03    27.120        .90315E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4777        9.8556        .17193E-03   -1.5240    
  13  Prefactor     .10000E-03    21.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3203        3.1991        .17397E-03   -1.5403    
  15  Prefactor     .10000E-03    7.5432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4460        .17428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2744        .14979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3514        .12682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7294        4.3508        .81504E-03   -1.5273    
  20  Prefactor     .10000E-03    6.2131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .61936E-01    1.3311        .11546E-02   -1.5658    
  22  Prefactor     .10000E-03    18.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4335        .21042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.158        18.004        .11993E-03   -1.5040    
  26  Normalizat    1.4215        .18741        .20571E-03   -.80010    
  27  Prefactor     .60617        .16026        .26593E-03   -1.0733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45741e-08
Minuit parameter uncertainties:
  1  17.4329
  2  3.00303
  3  0.000238112
  4  7.4947
  5  3.91761
  6  0.00198448
  7  6.59127
  8  7.48856e-08
  9  1.65631e-05
  10  3.9265
  11  0.00123192
  12  9.8585
  13  0.000152597
  14  3.19935
  15  3.96425e-06
  16  4.29087e-06
  17  7.49138e-06
  18  1.50251e-06
  19  4.35108
  20  7.30544e-06
  21  0.57381
  22  9.99765e-05
  23  5.4122e-06
  24  0.000146213
  25  18.0125
  26  0.187497
  27  0.160384
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  1.232e-03  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:  6.062e-01  1.604e-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.421e+00  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430407/likelihoodResults_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.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) = 7191.17838259
delta logL = -8.14187205833e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7189.74046696
delta logL = 1.43790748238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67234E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    9.4855       1.0000          .0000       10.000    
     3 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64830       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=   7189.740     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      401 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65640E-01    1.7737        .15439E-03    .36965E-02
   2  Index         9.5101        6.9623        .31114E-01    .12777E-04
   3  Normalizat    1.3493        .14233        .20986E-03   -.28918E-04
   4  Prefactor     .64831        .12366        .25771E-03   -.57790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0656398
  Index      = 9.5101
  Normalizat = 1.34934
  Prefactor  = 0.648312
 **********
 **   18 **HESSE 
 **********

 FCN=   7189.740     FROM HESSE     STATUS=OK            27 CALLS      428 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65640E-01    1.6676        .61758E-05   -1.5657    
   2  Index         9.5101        7.3134        .12446E-02    1.1244    
   3  Normalizat    1.3493        .18431        .41971E-04   -.82105    
   4  Prefactor     .64831        .16041        .10308E-04   -1.0559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97892e-10
Minuit parameter uncertainties:
  1  0.661206
  2  9.15765
  3  0.184396
  4  0.160521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430407': 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) = 7189.74044993
delta logL = 1.4379245182

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  6.564e-02  6.612e-01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  9.510e+00  9.158e+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:  6.483e-01  1.605e-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.349e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 339.414 -51.435
Photon Index (Free Index): 9.51 +/- 9.16
Photon Flux (Free Index): 5.69e-08 +/- 4.45e-08
Energy Flux (Free Index): 6.40e-06 +/- 5.50e-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/430407/cmap_HighResolution_530150401_530409601_4FGL_J2237.6-5126_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', comment='SUCCESS', energy_flux2='6.40e-06', dlogl='1.44e+00', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-09-28 18:29:32.778111', photon_index_error2='9.16', photon_index2='9.51', ts='-0.00', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='8.05e-08', energy_flux_error2='5.50e-06', EG='1.42', time_epoch_completed='1632878972.78', return_code='0', job_id='430407', GAL2='0.65', EG2='1.35', return_code2='0', photon_flux_error2='4.45e-08', ts2='2.99', photon_index='3.01' WHERE bin_id='1122' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:29:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 430407: <4FGL_J2237.6-5126_daily_bin1122> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1122 339.414 -51.4347 530150401 530409601 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 :                                   810.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             350.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

