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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1263
RA = 340.957, Dec = -25.1701
tmin = 566697601, tmax = 566956801
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='445049', job_status='RUN', time_executed='2021-09-28 19:01:01.363553', time_epoch_executed='1632880861.36' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445049/ft1_4FGL_J2243.8-2510_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445049/ft2_4FGL_J2243.8-2510_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445049/ft1_4FGL_J2243.8-2510_daily_bin1263.fits outfile=/scratch/kocevski/445049/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1263.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=566697601.0 tmax=566956801.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 2.00
user 1.78
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445049/ft1_filtered_4FGL_J2243.8-2510_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/445049/ft2_4FGL_J2243.8-2510_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/445049/ltcube_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.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/445049/ft2_4FGL_J2243.8-2510_daily_bin1263.fits
.....................!
real 17.05
user 16.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445049/ft1_filtered_4FGL_J2243.8-2510_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/445049/ft2_4FGL_J2243.8-2510_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/445049/ltcube_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.fits outfile=/scratch/kocevski/445049/expmap_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.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/445049/ltcube_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.fits
.....................!
real 193.12
user 187.44
sys 5.21

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/445049/ft1_filtered_4FGL_J2243.8-2510_daily_bin1263.fits scfile=/scratch/kocevski/445049/ft2_4FGL_J2243.8-2510_daily_bin1263.fits outfile=/scratch/kocevski/445049/cmap_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445049/ft1_filtered_4FGL_J2243.8-2510_daily_bin1263.fits scfile=/scratch/kocevski/445049/ft2_4FGL_J2243.8-2510_daily_bin1263.fits outfile=/scratch/kocevski/445049/cmap_HighResolution_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.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/445049/ft1_filtered_4FGL_J2243.8-2510_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/445049/ft2_4FGL_J2243.8-2510_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445049/Model_4FGL_J2243.8-2510_daily_bin1263.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/445049/ft1_filtered_4FGL_J2243.8-2510_daily_bin1263.fits.....................!
real 57.06
user 55.66
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16277E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8949       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.123       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0408       1.0000         .10000E-03   10000.    
    11 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .45963       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3775       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13808E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0525       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9597       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1050       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68123       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=   7556.609     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2395 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    165.66       -.46538E-05** at limit **
   2  norm          1.8090        .46900       -.86286E-08    .20686E-03
   3  Prefactor     .10000E-03    2.0828        .60542E-06** at limit **
   4  Prefactor     .10000E-03    4.9099       -.21850E-06** at limit **
   5  Prefactor     9.0375        9.3602       -.15848E-06   -.10693E-04
   6  Prefactor     .10000E-03    18.744        .37409E-05** at limit **
   7  norm          8.8893        12.453        .17337E-05   -.23361E-04
   8  Prefactor     .10000E-03    22.263       -.79675E-05** at limit **
   9  Prefactor     13.130        11.476       -.44615E-06   -.65106E-04
  10  norm          4.0407        .95013        .49413E-07   -.36934E-04
  11  norm          .10000E-03    1.1685       -.60275E-10** at limit **
  12  Prefactor     .97980        39.630       -.20835E-05   -.73114E-04
  13  Prefactor     .10000E-03    21.293       -.84971E-05** at limit **
  14  norm          .45968        1.4864       -.10214E-05   -.18272E-02
  15  Prefactor     9.3778        8.8099       -.84072E-06   -.62695E-03
  16  Prefactor     .10006E-03    7.2030        .39442E-05** at limit **
  17  norm          2.0525        .64737       -.14837E-06   -.69498E-02
  18  Prefactor     .10000E-03    18.597        .50472E-05** at limit **
  19  Prefactor     .10000E-03    5.0426       -.62532E-07** at limit **
  20  Prefactor     .10001E-03    4.0730       -.82509E-06** at limit **
  21  norm          .10000E-03    1.0159        .35070E-06** at limit **
  22  Prefactor     4.9650        17.223       -.10455E-04   -.84616E-04
  23  Normalizat    1.1048        .16314       -.90995E-07   -.34536E-03
  24  Prefactor     .68143        .14043        .58401E-06   -.17183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.80896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.03748
  Prefactor  = 0.0001
  norm       = 8.88925
  Prefactor  = 0.0001
  Prefactor  = 13.1299
  norm       = 4.04074
  norm       = 0.0001
  Prefactor  = 0.979802
  Prefactor  = 0.0001
  norm       = 0.459676
  Prefactor  = 9.37784
  Prefactor  = 0.00010006
  norm       = 2.05253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 4.96497
  Normalizat = 1.10485
  Prefactor  = 0.681431
 **********
 **   18 **HESSE 
 **********

 FCN=   7556.609     FROM HESSE     STATUS=OK           405 CALLS     2800 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    166.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8090        .46994        .29477E-04   -1.5439    
   3  Prefactor     .10000E-03    2.0835        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0375        9.3747        .13334E-03   -1.5107    
   6  Prefactor     .10000E-03    18.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8893        12.440        .13439E-03   -1.5112    
   8  Prefactor     .10000E-03    22.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.130        11.482        .11057E-03   -1.4983    
  10  norm          4.0407        .95031        .39764E-04   -1.5306    
  11  norm          .10000E-03    2.7146        .16706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .97980        355.50        .84816E-02   -1.5510    
  13  Prefactor     .10000E-03    21.544        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .45968        1.5741        .18311E-02   -1.5572    
  15  Prefactor     9.3778        8.7452        .13087E-03   -1.5095    
  16  Prefactor     .10006E-03    24.095        .36109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0525        .60787        .33855E-04   -1.5421    
  18  Prefactor     .10000E-03    18.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    16.271        .31276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.8624        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9650        17.189        .18059E-03   -1.5262    
  23  Normalizat    1.1048        .18633        .22678E-03   -.89596    
  24  Prefactor     .68143        .16196        .25599E-03   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83011e-09
Minuit parameter uncertainties:
  1  1.85088e-05
  2  0.469942
  3  4.10326e-07
  4  8.1783e-07
  5  9.37625
  6  9.00127e-06
  7  12.4434
  8  3.53942e-05
  9  11.4843
  10  0.950317
  11  5.45757e-05
  12  37.5512
  13  0.000172945
  14  1.57426
  15  8.74636
  16  0.00240348
  17  0.607871
  18  3.08824e-07
  19  3.2244e-06
  20  0.000677204
  21  1.19797e-05
  22  17.2062
  23  0.186442
  24  0.162072
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  9.798e-01  3.755e+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:  6.814e-01  1.621e-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.105e+00  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445049/likelihoodResults_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.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): 102
logL (Free Index) = 7556.45718166
delta logL = 0.151770950419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7556.01637063
delta logL = 0.592581978571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35843E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.1751       1.0000          .0000       10.000    
     3 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72398       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.

 FCN=   7556.016     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      271 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34901E-01    .45837        .33821E-02    .10079E-01
   2  Index         7.1912        2.9420        .15962        .18474E-03
   3  Normalizat    1.0364        .29850E-01    .41623E-01    .32819E-04
   4  Prefactor     .72365        .27248E-01    .42720E-01    .22042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0349012
  Index      = 7.19121
  Normalizat = 1.03636
  Prefactor  = 0.723652
 **********
 **   18 **HESSE 
 **********

 FCN=   7556.016     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      306 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34901E-01    1.5653        .15335E-03   -1.5671    
   2  Index         7.1912        8.4233        .80826E-02    .45364    
   3  Normalizat    1.0364        .12160        .23298E-03   -.91822    
   4  Prefactor     .72365        .10833        .24910E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74591e-10
Minuit parameter uncertainties:
  1  0.46681
  2  7.42023
  3  0.121633
  4  0.108362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445049': 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): 102
logL (Free Index) = 7556.01635584
delta logL = 0.592596762775

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  3.490e-02  4.668e-01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  7.191e+00  7.420e+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:  7.237e-01  1.084e-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.036e+00  1.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 7.19 +/- 7.42
Photon Flux (Free Index): 5.35e-08 +/- 5.10e-08
Energy Flux (Free Index): 6.35e-06 +/- 6.75e-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/445049/cmap_HighResolution_566697601_566956801_4FGL_J2243.8-2510_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', comment='SUCCESS', energy_flux2='6.35e-06', dlogl='5.93e-01', photon_flux2='5.35e-08', job_status='DONE', time_completed='2021-09-28 19:12:32.322530', photon_index_error2='7.42', photon_index2='7.19', ts='0.00', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='6.75e-06', EG='1.10', time_epoch_completed='1632881552.32', return_code='0', job_id='445049', GAL2='0.72', EG2='1.04', return_code2='102', photon_flux_error2='5.10e-08', ts2='1.30', photon_index='2.71' WHERE bin_id='1263' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:12:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 445049: <4FGL_J2243.8-2510_daily_bin1263> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1263> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:35 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:00:37 2021
Terminated at Tue Sep 28 19:12:33 2021
Results reported at Tue Sep 28 19:12:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1263 340.957 -25.1701 566697601 566956801 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 :                                   686.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

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

