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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin699
RA = 340.957, Dec = -25.1701
tmin = 420508801, tmax = 420768001
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='443168', job_status='RUN', time_executed='2021-09-28 18:55:23.122738', time_epoch_executed='1632880523.12' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443168

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443168/ft1_4FGL_J2243.8-2510_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443168/ft2_4FGL_J2243.8-2510_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443168/ft1_4FGL_J2243.8-2510_daily_bin699.fits outfile=/scratch/kocevski/443168/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin699.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=420508801.0 tmax=420768001.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.43
user 3.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443168/ft1_filtered_4FGL_J2243.8-2510_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/443168/ft2_4FGL_J2243.8-2510_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/443168/ltcube_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.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/443168/ft2_4FGL_J2243.8-2510_daily_bin699.fits
.....................!
real 11.65
user 11.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443168/ft1_filtered_4FGL_J2243.8-2510_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/443168/ft2_4FGL_J2243.8-2510_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/443168/ltcube_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.fits outfile=/scratch/kocevski/443168/expmap_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.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/443168/ltcube_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.fits
.....................!
real 193.50
user 187.27
sys 5.58

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/443168/ft1_filtered_4FGL_J2243.8-2510_daily_bin699.fits scfile=/scratch/kocevski/443168/ft2_4FGL_J2243.8-2510_daily_bin699.fits outfile=/scratch/kocevski/443168/cmap_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443168/ft1_filtered_4FGL_J2243.8-2510_daily_bin699.fits scfile=/scratch/kocevski/443168/ft2_4FGL_J2243.8-2510_daily_bin699.fits outfile=/scratch/kocevski/443168/cmap_HighResolution_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443168/ft1_filtered_4FGL_J2243.8-2510_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/443168/ft2_4FGL_J2243.8-2510_daily_bin699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443168/Model_4FGL_J2243.8-2510_daily_bin699.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/443168/ft1_filtered_4FGL_J2243.8-2510_daily_bin699.fits.....................!
real 56.44
user 55.11
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.144       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16368       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.006       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0220       1.0000         .10000E-03   10000.    
    11 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.552       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99937       1.0000         .10000E-03   10000.    
    14 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0312       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37892E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .86159       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.3627       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.906       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76464       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0001       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=   7233.639     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2878 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.111        63.549        .12381E-05    .57763E-04
   2  norm          2.7052        .46522        .23806E-08    .97072E-04
   3  Prefactor     .10000E-03    1.8699       -.24119E-08** at limit **
   4  Prefactor     7.0524        12.182        .29250E-06    .17485E-04
   5  Prefactor     3.8076        5.5810        .61367E-06    .14533E-03
   6  Prefactor     .10000E-03    10.964       -.63033E-07** at limit **
   7  norm          .33029E-01    28.601       -.13155E-04    .47278E-03
   8  Prefactor     21.778        16.057        .46758E-06    .29228E-03
   9  Prefactor     14.003        9.5704       -.28288E-06   -.52336E-03
  10  norm          1.0218        .64007        .26235E-07    .18303E-03
  11  norm          .10000E-03    .95292        .22786E-05** at limit **
  12  Prefactor     44.612        33.149        .29516E-06   -.13761E-03
  13  Prefactor     1.0006        10.948        .97578E-05    .51884E-03
  14  norm          .10000E-03    2.3035       -.38931E-06** at limit **
  15  Prefactor     7.0620        9.8832        .60366E-06   -.37398E-05
  16  Prefactor     .10000E-03    7.3910       -.24534E-06** at limit **
  17  norm          .86268        .46618        .10249E-06    .34351E-03
  18  Prefactor     .10000E-03    36.855       -.43747E-07** at limit **
  19  Prefactor     .10000E-03    2.4024       -.57870E-07** at limit **
  20  Prefactor     .10000E-03    2.3635        .31862E-07** at limit **
  21  norm          6.3619        3.5140        .12722E-06    .34874E-04
  22  Prefactor     47.898        34.774        .12271E-07   -.81811E-04
  23  Normalizat    .76492        .16961       -.29644E-05    .34482E-04
  24  Prefactor     1.0000        .15179        .10924E-05   -.59517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.1111
  norm       = 2.70525
  Prefactor  = 0.0001
  Prefactor  = 7.05242
  Prefactor  = 3.80765
  Prefactor  = 0.0001
  norm       = 0.0330285
  Prefactor  = 21.7778
  Prefactor  = 14.0027
  norm       = 1.02184
  norm       = 0.0001
  Prefactor  = 44.6121
  Prefactor  = 1.00065
  norm       = 0.0001
  Prefactor  = 7.06196
  Prefactor  = 0.0001
  norm       = 0.862684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.36193
  Prefactor  = 47.8979
  Normalizat = 0.764916
  Prefactor  = 1.00003
 **********
 **   18 **HESSE 
 **********

 FCN=   7233.639     FROM HESSE     STATUS=OK           415 CALLS     3293 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.111        63.626        .53536E-04   -1.4208    
   2  norm          2.7052        .46598        .23185E-04   -1.5379    
   3  Prefactor     .10000E-03    1.8723        .11357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0524        12.177        .15104E-03   -1.5177    
   5  Prefactor     3.8076        5.5787        .10341E-02   -1.5318    
   6  Prefactor     .10000E-03    10.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .33029E-01    18.185        .88023E-01   -1.5672    
   8  Prefactor     21.778        16.090        .85820E-04   -1.4774    
   9  Prefactor     14.003        9.6105        .10702E-03   -1.4959    
  10  norm          1.0218        .63758        .52131E-04   -1.5506    
  11  norm          .10000E-03    .97786        .16141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.612        33.716        .60065E-04   -1.4371    
  13  Prefactor     1.0006        11.289        .26327E-02   -1.5508    
  14  norm          .10000E-03    3.9416        .23610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0620        11.226        .15129E-03   -1.5176    
  16  Prefactor     .10000E-03    13.887        .48490E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .86268        .51925        .38845E-04   -1.5522    
  18  Prefactor     .10000E-03    36.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4068        .12874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3699        .12764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.3619        3.5131        .56236E-03   -1.5203    
  22  Prefactor     47.898        34.840        .57934E-04   -1.4323    
  23  Normalizat    .76492        .20014        .26448E-03   -1.0138    
  24  Prefactor     1.0000        .17806        .22072E-03   -.92729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78817e-09
Minuit parameter uncertainties:
  1  63.7034
  2  0.465984
  3  1.62863e-06
  4  12.1816
  5  5.57943
  6  1.22303e-06
  7  1.54812
  8  16.0935
  9  9.61159
  10  0.637587
  11  2.31141e-05
  12  33.7308
  13  6.72329
  14  8.5076e-05
  15  11.229
  16  3.71328e-05
  17  0.519249
  18  1.14738e-05
  19  4.31849e-08
  20  1.93192e-06
  21  3.51322
  22  34.855
  23  0.200334
  24  0.178163
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  4.461e+01  3.373e+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.000e+00  1.782e-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.649e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 8.37e-06

TS (Fixed Index): 2.96
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443168/likelihoodResults_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.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) = 7233.39474264
delta logL = 0.244607548687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7233.36994453
delta logL = 0.269405653522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.545       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6236       1.0000          .0000       10.000    
     3 'Normalizat'    .72535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0287       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=   7233.370     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      287 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.532        328.03        .95619E-04    .36620E-04
   2  Index         3.6245        6.8115        .57185E-02    .36968E-04
   3  Normalizat    .72528        .21066        .27110E-03    .20385E-03
   4  Prefactor     1.0287        .19383        .21804E-03   -.40718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5323
  Index      = 3.62452
  Normalizat = 0.725281
  Prefactor  = 1.02873
 **********
 **   18 **HESSE 
 **********

 FCN=   7233.370     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.532        46.365        .38247E-05   -1.4870    
   2  Index         3.6245        1.8108        .22874E-03   -.27869    
   3  Normalizat    .72528        .19479        .10844E-04   -1.0290    
   4  Prefactor     1.0287        .18077        .43608E-04   -.91778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44822e-09
Minuit parameter uncertainties:
  1  46.4603
  2  1.85657
  3  0.194976
  4  0.180876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443168': 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) = 7233.36994394
delta logL = 0.269406249544

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.753e+01  4.646e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.625e+00  1.857e+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.029e+00  1.809e-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.253e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 3.62 +/- 1.86
Photon Flux (Free Index): 6.84e-08 +/- 4.73e-08
Energy Flux (Free Index): 1.10e-05 +/- 7.27e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/443168/cmap_HighResolution_420508801_420768001_4FGL_J2243.8-2510_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.10e-05', photon_flux_error='3.49e-08', dlogl='2.69e-01', energy_flux='1.11e-05', photon_flux2='6.84e-08', job_status='DONE', time_completed='2021-09-28 19:07:17.782619', photon_index_error2='1.86', photon_index2='3.62', ts='2.96', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='7.27e-06', EG='0.76', time_epoch_completed='1632881237.78', return_code='0', job_id='443168', GAL2='1.03', EG2='0.73', return_code2='0', energy_flux_error='8.37e-06', photon_flux_error2='4.73e-08', ts2='3.62', photon_index='2.71' WHERE bin_id='699' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:07:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 443168: <4FGL_J2243.8-2510_daily_bin699> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin699 340.957 -25.1701 420508801 420768001 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 :                                   715.00 sec.
    Max Memory :                                 1043 MB
    Average Memory :                             324.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

