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


Performing analysis on: 4FGL_J2237.6-5126_daily_bin1556
RA = 339.414, Dec = -51.4347
tmin = 642643201, tmax = 642902401
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='432180', job_status='RUN', time_executed='2021-09-28 18:22:07.136070', time_epoch_executed='1632878527.14' WHERE source_name='4FGL J2237.6-5126' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432180/ft1_4FGL_J2237.6-5126_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432180/ft1_4FGL_J2237.6-5126_daily_bin1556.fits outfile=/scratch/kocevski/432180/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1556.fits ra=339.414 dec=-51.4347 rad=12.0 tmin=642643201.0 tmax=642902401.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.53
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.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/432180/ft1_filteredMKT_4FGL_J2237.6-5126_daily_bin1556.fits evtable="EVENTS" outfile="/scratch/kocevski/432180/ft1_filtered_4FGL_J2237.6-5126_daily_bin1556.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/432180/ft1_filtered_4FGL_J2237.6-5126_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/432180/ltcube_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.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/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.fits
.....................!
real 11.59
user 11.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432180/ft1_filtered_4FGL_J2237.6-5126_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/432180/ltcube_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.fits outfile=/scratch/kocevski/432180/expmap_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.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/432180/ltcube_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.fits
.....................!
real 189.84
user 184.27
sys 5.21

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/432180/ft1_filtered_4FGL_J2237.6-5126_daily_bin1556.fits scfile=/scratch/kocevski/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.fits outfile=/scratch/kocevski/432180/cmap_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432180/ft1_filtered_4FGL_J2237.6-5126_daily_bin1556.fits scfile=/scratch/kocevski/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.fits outfile=/scratch/kocevski/432180/cmap_HighResolution_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.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.56
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432180/ft1_filtered_4FGL_J2237.6-5126_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/432180/ft2_4FGL_J2237.6-5126_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432180/Model_4FGL_J2237.6-5126_daily_bin1556.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/432180/ft1_filtered_4FGL_J2237.6-5126_daily_bin1556.fits.....................!
real 45.41
user 44.03
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9631       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.114       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.273       1.0000         .10000E-03   10000.    
     7 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11863E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4237       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.9459       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8196       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2044       1.0000         .10000E-03   10000.    
    25 'norm      '    14.950       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92656       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0676       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=   6219.574     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3272 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.151       -.10147E-06** at limit **
   2  Prefactor     2.9641        4.8837        .92718E-07   -.79206E-05
   3  Prefactor     15.084        29.956        .96913E-06    .35823E-05
   4  Prefactor     .10000E-03    4.5364       -.11236E-05** at limit **
   5  Prefactor     11.798        5.3105        .64970E-07   -.27485E-05
   6  Prefactor     46.159        85.155        .13498E-04    .65021E-05
   7  norm          .10000E-03    5.1288       -.19821E-06** at limit **
   8  Prefactor     1.6672        2.8260        .13032E-06   -.30151E-05
   9  Prefactor     .10000E-03    17.522       -.20488E-06** at limit **
  10  Prefactor     .10000E-03    1.2828       -.53410E-07** at limit **
  11  Prefactor     .10000E-03    59.303       -.11142E-05** at limit **
  12  Prefactor     8.3966        12.606        .78157E-06    .13051E-04
  13  Prefactor     .10000E-03    85.250       -.19699E-05** at limit **
  14  Prefactor     .10000E-03    2.0383        .18776E-07** at limit **
  15  Prefactor     .10000E-03    17.721       -.14257E-06** at limit **
  16  Prefactor     .10000E-03    8.0020        .71432E-07** at limit **
  17  norm          6.9454        8.4067       -.29466E-07   -.94529E-05
  18  norm          .10000E-03    2.3564        .52602E-09** at limit **
  19  Prefactor     .10000E-03    4.3700        .95652E-06** at limit **
  20  Prefactor     1.8171        29.921        .89081E-05   -.39299E-04
  21  norm          3.1208        1.3917       -.10605E-06    .14062E-03
  22  Prefactor     .10000E-03    14.245        .36360E-06** at limit **
  23  Prefactor     .10000E-03    2.2894       -.47859E-06** at limit **
  24  Prefactor     7.1739        26.075        .21216E-05    .10374E-03
  25  norm          14.943        24.959        .33177E-06    .38307E-04
  26  Normalizat    .92648        .18604       -.18888E-05    .10946E-03
  27  Prefactor     1.0677        .16175        .47266E-06    .38816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.96405
  Prefactor  = 15.084
  Prefactor  = 0.0001
  Prefactor  = 11.7976
  Prefactor  = 46.1592
  norm       = 0.0001
  Prefactor  = 1.66718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.39656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.9454
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81715
  norm       = 3.12076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.17394
  norm       = 14.9429
  Normalizat = 0.926477
  Prefactor  = 1.06771
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.574     FROM HESSE     STATUS=OK           488 CALLS     3760 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9641        4.8698        .21193E-03   -1.5364    
   3  Prefactor     15.084        29.938        .10303E-03   -1.4931    
   4  Prefactor     .10000E-03    4.6052        .16457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.798        5.3141        .57287E-03   -1.5021    
   6  Prefactor     46.159        84.701        .29471E-03   -1.4348    
   7  norm          .10000E-03    5.1735        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6672        2.7995        .16556E-03   -1.5450    
   9  Prefactor     .10000E-03    17.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2855        .87226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    60.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3966        12.571        .13812E-03   -1.5128    
  13  Prefactor     .10000E-03    85.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0428        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.9454        8.4051        .15222E-03   -1.5181    
  18  norm          .10000E-03    2.3599        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4207        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8171        30.316        .15479E-02   -1.5438    
  21  norm          3.1208        1.3898        .55800E-04   -1.5355    
  22  Prefactor     .10000E-03    14.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3472        .20723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.1739        24.027        .14944E-03   -1.5172    
  25  norm          14.943        24.834        .10359E-03   -1.4935    
  26  Normalizat    .92648        .21326        .25736E-03   -.95536    
  27  Prefactor     1.0677        .18713        .22304E-03   -.90505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15111e-10
Minuit parameter uncertainties:
  1  2.58152e-06
  2  4.87048
  3  29.9675
  4  7.21266e-05
  5  5.31433
  6  84.9226
  7  1.48599e-05
  8  2.79972
  9  3.80856e-06
  10  1.80957e-06
  11  0.000357986
  12  12.5745
  13  6.52237e-05
  14  1.18615e-06
  15  7.19679e-07
  16  3.33035e-06
  17  8.40656
  18  1.3722e-06
  19  9.399e-06
  20  14.8529
  21  1.38985
  22  1.56507e-05
  23  8.33722e-06
  24  24.0599
  25  24.8516
  26  0.213452
  27  0.187247
Done.

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

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  3.580e-04  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:  1.068e+00  1.872e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  9.265e-01  2.135e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432180/likelihoodResults_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.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) = 6219.57445366
delta logL = -7.90537733337e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6219.57437324
delta logL = 1.37307142722e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35193E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3489       1.0000          .0000       10.000    
     3 'Normalizat'    .92653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6219.553     FROM MIGRAD    STATUS=CONVERGED    167 CALLS      322 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9783        36.458        .21321E-02    .25962E-04
   2  Index         4.2125        7.0042        .27418E-01    .10341E-03
   3  Normalizat    .91580        .20619        .25868E-03    .56254E-05
   4  Prefactor     1.0733        .18630        .22252E-03   -.81744E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97832
  Index      = 4.21245
  Normalizat = 0.915803
  Prefactor  = 1.07332
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.553     FROM HESSE     STATUS=OK            27 CALLS      349 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9783        17.728        .85284E-04   -1.5427    
   2  Index         4.2125        3.4991        .54835E-02   -.15817    
   3  Normalizat    .91580        .20486        .10347E-04   -.95907    
   4  Prefactor     1.0733        .18613        .89009E-05   -.90324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39305e-12
Minuit parameter uncertainties:
  1  11.8485
  2  3.88881
  3  0.205037
  4  0.186246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432180': 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) = 6219.5532766
delta logL = 0.0210980132397

Extracting fit parameters...

4FGL J2237.6-5126
   Spectrum: PowerLaw
369    Prefactor:  1.978e+00  1.185e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  4.212e+00  3.889e+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:  1.073e+00  1.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  9.158e-01  2.050e-01  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/432180/cmap_HighResolution_642643201_642902401_4FGL_J2237.6-5126_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-28 18:34:32.790287', job_id='432180', GAL2='1.07', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1632879272.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.11e-02', ts2='0.05', photon_index_error='0.00', photon_index='3.01' WHERE bin_id='1556' AND source_name='4FGL J2237.6-5126' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:34:32 PDT 2021


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

Job <4FGL_J2237.6-5126_daily_bin1556> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 18:20:34 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:20:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:20:36 2021
Terminated at Tue Sep 28 18:34:33 2021
Results reported at Tue Sep 28 18:34:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2237.6-5126_daily_bin1556 339.414 -51.4347 642643201 642902401 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 :                                   742.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

