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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1060
RA = 340.957, Dec = -25.1701
tmin = 514080001, tmax = 514339201
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='443687', job_status='RUN', time_executed='2021-09-28 18:56:16.606366', time_epoch_executed='1632880576.61' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443687/ft1_4FGL_J2243.8-2510_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443687/ft1_4FGL_J2243.8-2510_daily_bin1060.fits outfile=/scratch/kocevski/443687/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1060.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=514080001.0 tmax=514339201.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.60
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.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/443687/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/443687/ltcube_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.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/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits
.....................!
real 11.54
user 11.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/443687/ltcube_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.fits outfile=/scratch/kocevski/443687/expmap_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.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/443687/ltcube_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.fits
.....................!
real 191.17
user 185.70
sys 5.08

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.8-2510 @ 340.957 -25.1701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits scfile=/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits outfile=/scratch/kocevski/443687/cmap_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.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=340.957 yref=-25.1701 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits scfile=/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits outfile=/scratch/kocevski/443687/cmap_HighResolution_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.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=340.957 yref=-25.1701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443687/Model_4FGL_J2243.8-2510_daily_bin1060.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/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits.....................!
real 45.16
user 43.77
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits', '/scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits', expMap='/scratch/kocevski/443687/expmap_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.fits', expCube='/scratch/kocevski/443687/ltcube_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443687/Model_4FGL_J2243.8-2510_daily_bin1060.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.8-2510'

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  7.852e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/443687/ft1_filtered_4FGL_J2243.8-2510_daily_bin1060.fits
Spacecraft file(s): /scratch/kocevski/443687/ft2_4FGL_J2243.8-2510_daily_bin1060.fits
Exposure map: /scratch/kocevski/443687/expmap_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.fits
Exposure cube: /scratch/kocevski/443687/ltcube_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443687/Model_4FGL_J2243.8-2510_daily_bin1060.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) = 5207.16308043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20546E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8759       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17105E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7960       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8296       1.0000         .10000E-03   10000.    
    11 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.982       1.0000         .10000E-03   10000.    
    14 'norm      '    7.7403       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.045       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0488       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0921       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.294       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5207.097     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2742 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    256.97        .34502E-06** at limit **
   2  norm          3.8752        .74106       -.80359E-08   -.33934E-05
   3  Prefactor     6.2413        10.492        .37509E-05   -.10783E-03
   4  Prefactor     .10000E-03    12.688       -.18668E-06** at limit **
   5  Prefactor     .10000E-03    7.3528       -.25768E-06** at limit **
   6  Prefactor     .10000E-03    21.134        .56442E-06** at limit **
   7  norm          3.6374        87.671        .32323E-05    .22423E-04
   8  Prefactor     .10000E-03    13.193        .22025E-06** at limit **
   9  Prefactor     .10000E-03    5.2504       -.85315E-07** at limit **
  10  norm          1.8293        1.3047        .68817E-07   -.36779E-04
  11  norm          .10000E-03    2.3927       -.48790E-06** at limit **
  12  Prefactor     24.556        54.983       -.18460E-05   -.34732E-04
  13  Prefactor     23.995        19.396       -.37887E-06   -.34957E-04
  14  norm          7.7366        9.0237        .16496E-06    .92595E-05
  15  Prefactor     .10000E-03    8.8894        .57600E-08** at limit **
  16  Prefactor     17.049        19.545        .84540E-07    .33443E-04
  17  norm          1.0483        1.2037        .62725E-08    .43717E-04
  18  Prefactor     .10000E-03    69.694       -.11952E-06** at limit **
  19  Prefactor     .10000E-03    19.514       -.34353E-06** at limit **
  20  Prefactor     .10000E-03    11.042        .84808E-07** at limit **
  21  norm          2.0951        3.5615        .39947E-06    .24255E-04
  22  Prefactor     43.238        49.277       -.37827E-05   -.22001E-03
  23  Normalizat    1.0575        .24453        .17288E-05   -.53576E-04
  24  Prefactor     1.0254        .21547       -.20887E-05    .95560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.87524
  Prefactor  = 6.24128
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.63738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82929
  norm       = 0.0001
  Prefactor  = 24.5565
  Prefactor  = 23.9953
  norm       = 7.7366
  Prefactor  = 0.0001
  Prefactor  = 17.0491
  norm       = 1.04831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09506
  Prefactor  = 43.238
  Normalizat = 1.05748
  Prefactor  = 1.0254
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.097     FROM HESSE     STATUS=OK           401 CALLS     3143 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    257.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8752        .74181        .26387E-04   -1.5314    
   3  Prefactor     6.2413        10.730        .80269E-03   -1.5208    
   4  Prefactor     .10000E-03    12.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.676        .37688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6374        87.465        .20718E-03   -1.5327    
   8  Prefactor     .10000E-03    13.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2563        .16144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8293        1.2974        .66200E-04   -1.5437    
  11  norm          .10000E-03    2.4131        .21541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.556        54.904        .80749E-04   -1.4716    
  13  Prefactor     23.995        19.542        .81797E-04   -1.4728    
  14  norm          7.7366        8.9553        .14413E-03   -1.5152    
  15  Prefactor     .10000E-03    8.8906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.049        20.349        .97010E-04   -1.4882    
  17  norm          1.0483        1.1896        .58919E-03   -1.5503    
  18  Prefactor     .10000E-03    69.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0951        3.5375        .16672E-03   -1.5418    
  22  Prefactor     43.238        51.709        .60928E-04   -1.4392    
  23  Normalizat    1.0575        .29356        .28676E-03   -.91129    
  24  Prefactor     1.0254        .25784        .26121E-03   -.91888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5914e-10
Minuit parameter uncertainties:
  1  4.8826e-05
  2  0.741809
  3  10.7335
  4  3.98866e-05
  5  0.000434145
  6  8.64089e-05
  7  35.7313
  8  2.66129e-05
  9  2.24772e-06
  10  1.29744
  11  1.16699e-05
  12  55.0168
  13  19.5467
  14  8.95681
  15  6.2185e-07
  16  20.3574
  17  1.18966
  18  4.12112e-05
  19  5.41017e-05
  20  3.94538e-06
  21  3.53784
  22  51.7624
  23  0.294012
  24  0.258148
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  2.456e+01  5.502e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.025e+00  2.581e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.057e+00  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443687/likelihoodResults_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.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) = 5207.02264079
delta logL = 0.0742300871816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5207.00989274
delta logL = 0.0869781303954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.912       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2659       1.0000          .0000       10.000    
     3 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0350       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   5207.010     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.919        49.033        .94634E-04    .11064E-03
   2  Index         3.2661        1.6077        .10008E-01    .54760E-04
   3  Normalizat    1.0402        .27492        .28879E-03    .79123E-03
   4  Prefactor     1.0351        .24310        .26025E-03    .69775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.919
  Index      = 3.26608
  Normalizat = 1.04018
  Prefactor  = 1.03505
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.010     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.919        42.281        .37854E-05   -1.4861    
   2  Index         3.2661        1.3910        .40032E-03   -.35414    
   3  Normalizat    1.0402        .27537        .57758E-04   -.91696    
   4  Prefactor     1.0351        .24331        .52050E-04   -.91570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10919e-09
Minuit parameter uncertainties:
  1  42.3513
  2  1.41221
  3  0.275746
  4  0.24357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443687': 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) = 5207.00989261
delta logL = 0.0869782652508

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.792e+01  4.235e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.266e+00  1.412e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.035e+00  2.436e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.040e+00  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 340.957 -25.170

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/443687/cmap_HighResolution_514080001_514339201_4FGL_J2243.8-2510_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-28 19:05:57.536493', job_id='443687', GAL2='1.04', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1632881157.54', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.70e-02', ts2='0.46', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1060' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:05:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 443687: <4FGL_J2243.8-2510_daily_bin1060> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1060> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:55:51 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:55:53 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:55:53 2021
Terminated at Tue Sep 28 19:05:58 2021
Results reported at Tue Sep 28 19:05:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1060 340.957 -25.1701 514080001 514339201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.8-2510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            607 sec.

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

