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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1152
RA = 339.414, Dec = -51.4347
tmin = 537926401, tmax = 538185601
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='430451', job_status='RUN', time_executed='2021-09-28 18:15:45.228920', time_epoch_executed='1632878145.23' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430451

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430451/ft1_4FGL_J2237.6-5126_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430451/ft2_4FGL_J2237.6-5126_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430451/ft1_4FGL_J2237.6-5126_daily_bin1152.fits outfile=/scratch/kocevski/430451/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1152.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.48
user 6.19
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430451/ft1_filtered_4FGL_J2237.6-5126_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/430451/ft2_4FGL_J2237.6-5126_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/430451/ltcube_537926401_538185601_4FGL_J2237.6-5126_daily_bin1152.fits outfile=/scratch/kocevski/430451/expmap_537926401_538185601_4FGL_J2237.6-5126_daily_bin1152.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/430451/ltcube_537926401_538185601_4FGL_J2237.6-5126_daily_bin1152.fits
.....................!
real 191.28
user 186.14
sys 4.79

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/430451/ft1_filtered_4FGL_J2237.6-5126_daily_bin1152.fits scfile=/scratch/kocevski/430451/ft2_4FGL_J2237.6-5126_daily_bin1152.fits outfile=/scratch/kocevski/430451/cmap_537926401_538185601_4FGL_J2237.6-5126_daily_bin1152.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430451/ft1_filtered_4FGL_J2237.6-5126_daily_bin1152.fits scfile=/scratch/kocevski/430451/ft2_4FGL_J2237.6-5126_daily_bin1152.fits outfile=/scratch/kocevski/430451/cmap_HighResolution_537926401_538185601_4FGL_J2237.6-5126_daily_bin1152.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430451/ft1_filtered_4FGL_J2237.6-5126_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/430451/ft2_4FGL_J2237.6-5126_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430451/Model_4FGL_J2237.6-5126_daily_bin1152.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/430451/ft1_filtered_4FGL_J2237.6-5126_daily_bin1152.fits.....................!
real 41.21
user 39.98
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17153E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9110       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32478       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .17214       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.009       1.0000         .10000E-03   10000.    
    21 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79472       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5167.190     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3846 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.508        25.131        .17017E-05    .27281E-04
   2  Prefactor     5.7780        4.8564       -.44340E-06   -.17541E-04
   3  Prefactor     .10000E-03    53.578       -.88337E-07** at limit **
   4  Prefactor     4.2159        8.1739       -.38631E-06   -.13060E-04
   5  Prefactor     3.3037        3.3743       -.10568E-06   -.14880E-05
   6  Prefactor     .10000E-03    622.25        .65409E-05** at limit **
   7  norm          .10000E-03    2.4016       -.81221E-08** at limit **
   8  Prefactor     6.5801        3.9159       -.76751E-08    .53572E-04
   9  Prefactor     .10000E-03    13.339        .61810E-06** at limit **
  10  Prefactor     .10000E-03    3.1042       -.12333E-06** at limit **
  11  Prefactor     .10000E-03    31.255       -.72932E-07** at limit **
  12  Prefactor     5.6058        11.219       -.64367E-06    .21261E-04
  13  Prefactor     23.252        53.832       -.71642E-07    .35387E-05
  14  Prefactor     1.9110        5.1221       -.14712E-05    .75549E-05
  15  Prefactor     .10000E-03    11.285       -.13903E-05** at limit **
  16  Prefactor     .34522        11.245       -.23947E-05    .19200E-03
  17  norm          .10000E-03    5.5866       -.87353E-07** at limit **
  18  norm          .16763        18.928       -.43233E-05    .10153E-04
  19  Prefactor     .10000E-03    3.8079       -.65781E-06** at limit **
  20  Prefactor     34.011        16.454        .14563E-06    .25648E-03
  21  norm          .10001E-03    .71661        .31789E-06** at limit **
  22  Prefactor     .10000E-03    3.3028       -.40227E-07** at limit **
  23  Prefactor     .10000E-03    .99888        .11761E-06** at limit **
  24  Prefactor     17.351        21.312        .60956E-06    .54591E-04
  25  norm          .10000E-03    10.775        .85325E-06** at limit **
  26  Normalizat    .79458        .18667        .82052E-06    .12928E-03
  27  Prefactor     .97660        .16554        .33082E-06    .20746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5082
  Prefactor  = 5.77804
  Prefactor  = 0.0001
  Prefactor  = 4.21587
  Prefactor  = 3.30374
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.58013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.60583
  Prefactor  = 23.2521
  Prefactor  = 1.91097
  Prefactor  = 0.0001
  Prefactor  = 0.345216
  norm       = 0.0001
  norm       = 0.167632
  Prefactor  = 0.0001
  Prefactor  = 34.0112
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3511
  norm       = 0.0001
  Normalizat = 0.794579
  Prefactor  = 0.976604
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.190     FROM HESSE     STATUS=OK           490 CALLS     4336 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.508        25.389        .80927E-04   -1.4717    
   2  Prefactor     5.7780        4.8578        .13933E-03   -1.5227    
   3  Prefactor     .10000E-03    53.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2159        8.1541        .19623E-03   -1.5297    
   5  Prefactor     3.3037        3.3679        .12799E-03   -1.5344    
   6  Prefactor     .10000E-03    629.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4027        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5801        3.9207        .10541E-03   -1.5195    
   9  Prefactor     .10000E-03    13.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1334        .12365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6058        11.195        .16970E-03   -1.5234    
  13  Prefactor     23.252        53.773        .83023E-04   -1.4743    
  14  Prefactor     1.9110        5.1614        .26119E-03   -1.5431    
  15  Prefactor     .10000E-03    11.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .34522        73.804        .37647E-02   -1.5590    
  17  norm          .10000E-03    5.5974        .16595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .16763        20.857        .28785E-02   -1.5626    
  19  Prefactor     .10000E-03    3.8357        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.011        16.232        .68715E-04   -1.4541    
  21  norm          .10001E-03    6.7673        .98111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.3048        .12759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .99965        .69975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.351        21.278        .96157E-04   -1.4875    
  25  norm          .10000E-03    10.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .79458        .22304        .25023E-03   -1.0027    
  27  Prefactor     .97660        .19885        .21009E-03   -.93513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57256e-09
Minuit parameter uncertainties:
  1  25.3998
  2  4.85814
  3  1.53992e-05
  4  8.15629
  5  3.36813
  6  8.72649e-05
  7  3.6013e-08
  8  3.92084
  9  7.79915e-06
  10  3.40876e-06
  11  2.59886e-05
  12  11.199
  13  53.8858
  14  5.16262
  15  1.65196e-05
  16  10.1064
  17  1.86804e-06
  18  3.73992
  19  1.47376e-06
  20  16.2342
  21  0.000467689
  22  1.78735e-06
  23  2.99413e-06
  24  21.2876
  25  7.39437e-06
  26  0.223294
  27  0.199003
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.599e-05  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.012e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.766e-01  1.990e-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:  7.946e-01  2.233e-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: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430451/likelihoodResults_537926401_538185601_4FGL_J2237.6-5126_daily_bin1152.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): 102
logL (Free Index) = 5167.18984194
delta logL = -0.000151563234795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5167.1896901
delta logL = 2.81855136564e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6023       1.0000          .0000       10.000    
     3 'Normalizat'    .79458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97661       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=   5167.190     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    241.49        .90712E-02** at limit **
   2  Index         3.6037        6.4000        .50000       -.34729E-06
   3  Normalizat    .79458        .10741E-01    .43540E-01    .22246E-04
   4  Prefactor     .97660        .99610E-02    .45974E-01    .96493E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.60373
  Normalizat = 0.79458
  Prefactor  = 0.976603
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.190     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7323.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6037        7.0306        .50000       -.28302    
   3  Normalizat    .79458        .63498E-01    .25023E-03   -1.0027    
   4  Prefactor     .97660        .58900E-01    .21009E-03   -.93514    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.13059e-07
Minuit parameter uncertainties:
  1  0.00222525
  2  5999
  3  0.063504
  4  0.0589039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430451': 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): 102
logL (Free Index) = 5167.18969004
delta logL = 3.45061380358e-07

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.225e-03  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.604e+00  5.999e+03  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  3.240e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.766e-01  5.890e-02  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:  7.946e-01  6.350e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/430451/cmap_HighResolution_537926401_538185601_4FGL_J2237.6-5126_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-28 18:27:49.674886', job_id='430451', GAL2='0.98', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632878869.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.01' WHERE bin_id='1152' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:27:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 430451: <4FGL_J2237.6-5126_daily_bin1152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1152 339.414 -51.4347 537926401 538185601 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 :                                   720.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            743 sec.

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

