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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1063
RA = 340.957, Dec = -25.1701
tmin = 514857601, tmax = 515116801
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='443692', job_status='RUN', time_executed='2021-09-28 18:56:13.976257', time_epoch_executed='1632880573.98' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443692

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443692/ft1_4FGL_J2243.8-2510_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443692/ft2_4FGL_J2243.8-2510_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443692/ft1_4FGL_J2243.8-2510_daily_bin1063.fits outfile=/scratch/kocevski/443692/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1063.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=514857601.0 tmax=515116801.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.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443692/ft1_filtered_4FGL_J2243.8-2510_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/443692/ft2_4FGL_J2243.8-2510_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/443692/ltcube_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.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/443692/ft2_4FGL_J2243.8-2510_daily_bin1063.fits
.....................!
real 11.56
user 11.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443692/ft1_filtered_4FGL_J2243.8-2510_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/443692/ft2_4FGL_J2243.8-2510_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/443692/ltcube_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.fits outfile=/scratch/kocevski/443692/expmap_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.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/443692/ltcube_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.fits
.....................!
real 190.77
user 185.03
sys 5.28

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/443692/ft1_filtered_4FGL_J2243.8-2510_daily_bin1063.fits scfile=/scratch/kocevski/443692/ft2_4FGL_J2243.8-2510_daily_bin1063.fits outfile=/scratch/kocevski/443692/cmap_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443692/ft1_filtered_4FGL_J2243.8-2510_daily_bin1063.fits scfile=/scratch/kocevski/443692/ft2_4FGL_J2243.8-2510_daily_bin1063.fits outfile=/scratch/kocevski/443692/cmap_HighResolution_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.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/443692/ft1_filtered_4FGL_J2243.8-2510_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/443692/ft2_4FGL_J2243.8-2510_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443692/Model_4FGL_J2243.8-2510_daily_bin1063.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/443692/ft1_filtered_4FGL_J2243.8-2510_daily_bin1063.fits.....................!
real 50.71
user 49.37
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.408       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0623       1.0000         .10000E-03   10000.    
    11 'norm      '    .11780E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.008       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48740       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8441       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32316E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2456       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74031       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=   6136.600     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2741 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.416        55.022        .88210E-06    .80020E-04
   2  norm          1.3965        .42410       -.17948E-08   -.17242E-04
   3  Prefactor     .10000E-03    5.1937        .15122E-06** at limit **
   4  Prefactor     .10000E-03    12.477        .29770E-06** at limit **
   5  Prefactor     2.7013        6.1080        .27376E-06    .13814E-03
   6  Prefactor     .10000E-03    44.391        .91492E-06** at limit **
   7  norm          .10000E-03    36.245       -.12015E-05** at limit **
   8  Prefactor     .10000E-03    4.9546        .34108E-07** at limit **
   9  Prefactor     .10000E-03    11.160       -.12871E-05** at limit **
  10  norm          2.0624        1.1755        .53582E-07    .18357E-03
  11  norm          .10000E-03    1.7224       -.34098E-05** at limit **
  12  Prefactor     64.952        48.082       -.33790E-06    .23119E-03
  13  Prefactor     .48741        6.5163        .43974E-06    .23922E-04
  14  norm          3.8436        5.6144        .51205E-06    .94489E-03
  15  Prefactor     36.748        24.425       -.23386E-05    .31312E-03
  16  Prefactor     .10028E-03    12.074       -.15284E-05** at limit **
  17  norm          2.4588        .94771       -.10863E-06    .37558E-02
  18  Prefactor     .10000E-03    42.426        .69154E-06** at limit **
  19  Prefactor     29.662        15.788        .16086E-07    .65268E-05
  20  Prefactor     .10000E-03    7.2264        .81612E-07** at limit **
  21  norm          4.3370        3.5697        .13696E-07    .12095E-03
  22  Prefactor     .10000E-03    12.691        .10492E-06** at limit **
  23  Normalizat    1.2458        .19864        .18929E-05    .64882E-03
  24  Prefactor     .74010        .17763       -.25105E-05    .40445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4159
  norm       = 1.39646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70131
  Prefactor  = 0.000100003
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.06238
  norm       = 0.0001
  Prefactor  = 64.9518
  Prefactor  = 0.487408
  norm       = 3.84364
  Prefactor  = 36.748
  Prefactor  = 0.000100276
  norm       = 2.45882
  Prefactor  = 0.000100001
  Prefactor  = 29.6616
  Prefactor  = 0.0001
  norm       = 4.33698
  Prefactor  = 0.0001
  Normalizat = 1.24577
  Prefactor  = 0.740103
 **********
 **   18 **HESSE 
 **********

 FCN=   6136.600     FROM HESSE     STATUS=OK           393 CALLS     3134 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.416        55.108        .95995E-04   -1.4873    
   2  norm          1.3965        .42533        .27269E-04   -1.5472    
   3  Prefactor     .10000E-03    5.2641        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7013        6.1018        .24785E-03   -1.5379    
   6  Prefactor     .10000E-03    44.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    36.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9552        .17030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0624        1.1737        .61189E-04   -1.5421    
  11  norm          .10000E-03    1.8348        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     64.952        48.367        .49774E-04   -1.4094    
  13  Prefactor     .48741        22.392        .38104E-02   -1.5568    
  14  norm          3.8436        5.5968        .19019E-03   -1.5316    
  15  Prefactor     36.748        25.116        .66092E-04   -1.4495    
  16  Prefactor     .10028E-03    40.109        .42212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4588        .96677        .39958E-04   -1.5394    
  18  Prefactor     .10000E-03    42.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.662        15.790        .73564E-04   -1.4618    
  20  Prefactor     .10000E-03    7.2570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3370        3.5672        .12973E-03   -1.5291    
  22  Prefactor     .10000E-03    12.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2458        .23686        .24434E-03   -.85200    
  24  Prefactor     .74010        .21137        .27939E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13588e-09
Minuit parameter uncertainties:
  1  55.2696
  2  0.425328
  3  1.89674e-05
  4  7.53625e-05
  5  6.1032
  6  0.000702824
  7  0.000695504
  8  6.02636e-06
  9  0.000246718
  10  1.1737
  11  2.84708e-05
  12  48.3958
  13  6.6093
  14  5.59758
  15  25.1235
  16  0.00665954
  17  0.966779
  18  0.000505098
  19  15.7918
  20  4.30753e-05
  21  3.56734
  22  2.94827e-05
  23  0.237063
  24  0.211601
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  6.495e+01  4.840e+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:  7.401e-01  2.116e-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.246e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 6.73e-08 +/- 5.01e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/443692/likelihoodResults_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.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) = 6136.4234902
delta logL = 0.176902194872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6136.41600563
delta logL = 0.184386764492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.758       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1664       1.0000          .0000       10.000    
     3 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75506       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=   6136.416     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      301 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.747        60.666        .62034E-04   -.12400E-03
   2  Index         3.1668        .96942        .59343E-02   -.28244E-04
   3  Normalizat    1.2247        .23545        .24604E-03   -.87886E-04
   4  Prefactor     .75494        .21049        .27690E-03   -.38881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.7471
  Index      = 3.16684
  Normalizat = 1.22474
  Prefactor  = 0.754943
 **********
 **   18 **HESSE 
 **********

 FCN=   6136.416     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.747        52.091        .12407E-04   -1.4415    
   2  Index         3.1668        .83298        .23737E-03   -.37539    
   3  Normalizat    1.2247        .23562        .98415E-05   -.85842    
   4  Prefactor     .75494        .21048        .11076E-04   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44369e-11
Minuit parameter uncertainties:
  1  52.148
  2  0.837495
  3  0.235824
  4  0.210702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443692': 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) = 6136.41600517
delta logL = 0.184387227229

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  4.175e+01  5.215e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.167e+00  8.375e-01  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:  7.549e-01  2.107e-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.225e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 3.17 +/- 0.84
Photon Flux (Free Index): 8.22e-08 +/- 5.82e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.07e-05

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/443692/cmap_HighResolution_514857601_515116801_4FGL_J2243.8-2510_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.73e-08', energy_flux2='1.52e-05', photon_flux_error='5.01e-08', dlogl='1.84e-01', energy_flux='1.61e-05', photon_flux2='8.22e-08', job_status='DONE', time_completed='2021-09-28 19:07:04.656094', photon_index_error2='0.84', photon_index2='3.17', ts='2.57', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.07e-05', EG='1.25', time_epoch_completed='1632881224.66', return_code='0', job_id='443692', GAL2='0.75', EG2='1.22', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.82e-08', ts2='3.00', photon_index='2.71' WHERE bin_id='1063' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:07:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 443692: <4FGL_J2243.8-2510_daily_bin1063> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1063> 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) <bullet0243>, 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:07:05 2021
Results reported at Tue Sep 28 19:07:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1063 340.957 -25.1701 514857601 515116801 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 :                                   647.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            674 sec.

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

