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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin835
RA = 340.957, Dec = -25.1701
tmin = 455760001, tmax = 456019201
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='443353', job_status='RUN', time_executed='2021-09-28 18:58:01.235609', time_epoch_executed='1632880681.24' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443353/ft1_4FGL_J2243.8-2510_daily_bin835.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443353/ft1_4FGL_J2243.8-2510_daily_bin835.fits outfile=/scratch/kocevski/443353/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin835.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=455760001.0 tmax=456019201.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.38
user 3.17
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.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/443353/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin835.fits evtable="EVENTS" outfile="/scratch/kocevski/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits" evtable="EVENTS" scfile=/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits sctable="SC_DATA" outfile=/scratch/kocevski/443353/ltcube_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.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/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits
.....................!
real 11.78
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/443353/ltcube_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.fits outfile=/scratch/kocevski/443353/expmap_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.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/443353/ltcube_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.fits
.....................!
real 189.85
user 184.63
sys 4.84

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/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits scfile=/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits outfile=/scratch/kocevski/443353/cmap_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits scfile=/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits outfile=/scratch/kocevski/443353/cmap_HighResolution_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443353/Model_4FGL_J2243.8-2510_daily_bin835.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/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits.....................!
real 50.59
user 49.09
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits', '/scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits', expMap='/scratch/kocevski/443353/expmap_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.fits', expCube='/scratch/kocevski/443353/ltcube_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443353/Model_4FGL_J2243.8-2510_daily_bin835.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/443353/ft1_filtered_4FGL_J2243.8-2510_daily_bin835.fits
Spacecraft file(s): /scratch/kocevski/443353/ft2_4FGL_J2243.8-2510_daily_bin835.fits
Exposure map: /scratch/kocevski/443353/expmap_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.fits
Exposure cube: /scratch/kocevski/443353/ltcube_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443353/Model_4FGL_J2243.8-2510_daily_bin835.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) = 6482.90650492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13726E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .97955       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.194       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0578       1.0000         .10000E-03   10000.    
    11 'norm      '    .13117E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.826       1.0000         .10000E-03   10000.    
    14 'norm      '    .12711E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3757       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10985       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1162       1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.550       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70305       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0641       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=   6482.851     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2821 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.23       -.23066E-05** at limit **
   2  norm          .97954        .33966       -.89906E-08    .67762E-04
   3  Prefactor     .10000E-03    2.4530       -.49960E-07** at limit **
   4  Prefactor     .10000E-03    11.112        .83880E-07** at limit **
   5  Prefactor     .10000E-03    4.2600       -.34043E-07** at limit **
   6  Prefactor     .10000E-03    24.769        .60958E-06** at limit **
   7  norm          .10000E-03    9.4343        .58048E-07** at limit **
   8  Prefactor     10.081        14.243        .17089E-05    .61979E-04
   9  Prefactor     27.187        13.581       -.32675E-05   -.29591E-03
  10  norm          1.0578        .63840       -.35008E-08   -.23111E-04
  11  norm          .10000E-03    1.7521       -.35066E-06** at limit **
  12  Prefactor     43.369        46.356        .42039E-05    .10609E-03
  13  Prefactor     12.818        10.759       -.24964E-06   -.33557E-04
  14  norm          .10005E-03    1.9267        .21158E-06** at limit **
  15  Prefactor     6.8433        11.794       -.24455E-05   -.21837E-03
  16  Prefactor     6.4291        3.8787        .71374E-06   -.24721E-02
  17  norm          .10000E-03    .20776       -.10715E-07** at limit **
  18  Prefactor     .10000E-03    24.827       -.58194E-06** at limit **
  19  Prefactor     .10000E-03    3.8055       -.38678E-07** at limit **
  20  Prefactor     .10019E-03    5.6235       -.25983E-06** at limit **
  21  norm          3.1159        2.3203        .14430E-07   -.42454E-04
  22  Prefactor     52.576        29.407       -.11034E-05   -.47323E-04
  23  Normalizat    .70301        .16986        .75237E-06   -.28522E-04
  24  Prefactor     1.0642        .15302        .65773E-07    .35352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.979545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0813
  Prefactor  = 27.1865
  norm       = 1.05776
  norm       = 0.0001
  Prefactor  = 43.369
  Prefactor  = 12.8176
  norm       = 0.000100048
  Prefactor  = 6.84334
  Prefactor  = 6.42911
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100194
  norm       = 3.11592
  Prefactor  = 52.5762
  Normalizat = 0.703011
  Prefactor  = 1.06425
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.851     FROM HESSE     STATUS=OK           415 CALLS     3236 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97954        .34060        .26870E-04   -1.5510    
   3  Prefactor     .10000E-03    2.4591        .12315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2934        .16225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.4877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.081        14.233        .12619E-03   -1.5073    
   9  Prefactor     27.187        13.647        .76822E-04   -1.4665    
  10  norm          1.0578        .63220        .48490E-04   -1.5502    
  11  norm          .10000E-03    3.5129        .19143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.369        44.719        .60823E-04   -1.4390    
  13  Prefactor     12.818        10.853        .11185E-03   -1.4992    
  14  norm          .10005E-03    4.1402        .36364E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8433        12.661        .15368E-03   -1.5185    
  16  Prefactor     6.4291        9.7836        .79480E-03   -1.5201    
  17  norm          .10000E-03    .20790        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8236        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10019E-03    19.089        .52586E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1159        2.3174        .10223E-03   -1.5355    
  22  Prefactor     52.576        29.407        .55327E-04   -1.4257    
  23  Normalizat    .70301        .20582        .26946E-03   -1.0377    
  24  Prefactor     1.0642        .18469        .21109E-03   -.90618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8257e-09
Minuit parameter uncertainties:
  1  0.000215173
  2  0.340603
  3  1.04025e-06
  4  4.83841e-06
  5  8.48288e-06
  6  2.29352e-05
  7  3.21005e-07
  8  14.2381
  9  13.6484
  10  0.6322
  11  8.36571e-05
  12  44.7532
  13  10.8549
  14  0.00089364
  15  12.6659
  16  9.78601
  17  1.49022e-07
  18  2.69438e-05
  19  2.05914e-06
  20  0.00385348
  21  2.31743
  22  29.4149
  23  0.206045
  24  0.184804
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  4.337e+01  4.475e+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.064e+00  1.848e-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:  7.030e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 4.50e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/443353/likelihoodResults_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.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) = 6482.52230793
delta logL = 0.328614699871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6482.50294713
delta logL = 0.347975496266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.565       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9144       1.0000          .0000       10.000    
     3 'Normalizat'    .66948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0908       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=   6482.503     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      322 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.553        310.53        .12327E-03   -.20290E-05
   2  Index         3.9152        6.9524        .65157E-02    .22313E-04
   3  Normalizat    .66899        .18209        .27555E-03    .69108E-04
   4  Prefactor     1.0912        .17434        .20876E-03   -.11159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5527
  Index      = 3.91516
  Normalizat = 0.668989
  Prefactor  = 1.09118
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.503     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.553        29.200        .49307E-05   -1.5058    
   2  Index         3.9152        1.7172        .26063E-03   -.21871    
   3  Normalizat    .66899        .19617        .11022E-04   -1.0513    
   4  Prefactor     1.0912        .18288        .41751E-04   -.89749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36441e-10
Minuit parameter uncertainties:
  1  29.2397
  2  1.7548
  3  0.196378
  4  0.182981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443353': 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) = 6482.50294377
delta logL = 0.347978858447

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.055e+01  2.924e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.915e+00  1.755e+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.091e+00  1.830e-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:  6.690e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 3.92 +/- 1.75
Photon Flux (Free Index): 6.47e-08 +/- 5.22e-08
Energy Flux (Free Index): 9.83e-06 +/- 8.15e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/443353/cmap_HighResolution_455760001_456019201_4FGL_J2243.8-2510_daily_bin835.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.50e-08', energy_flux2='9.83e-06', photon_flux_error='4.63e-08', dlogl='3.48e-01', energy_flux='1.08e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-28 19:09:06.505217', photon_index_error2='1.75', photon_index2='3.92', ts='1.36', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='8.15e-06', EG='0.70', time_epoch_completed='1632881346.51', return_code='0', job_id='443353', GAL2='1.09', EG2='0.67', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='5.22e-08', ts2='2.16', photon_index='2.71' WHERE bin_id='835' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 443353: <4FGL_J2243.8-2510_daily_bin835> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin835 340.957 -25.1701 455760001 456019201 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 :                                   665.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

