/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7539
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2243.8-2510_daily_bin909
RA = 340.957, Dec = -25.1701
tmin = 474940801, tmax = 475200001
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='443461', job_status='RUN', time_executed='2021-09-28 18:56:59.398830', time_epoch_executed='1632880619.4' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443461/ft1_4FGL_J2243.8-2510_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443461/ft2_4FGL_J2243.8-2510_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443461/ft1_4FGL_J2243.8-2510_daily_bin909.fits outfile=/scratch/kocevski/443461/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin909.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=474940801.0 tmax=475200001.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.56
user 3.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443461/ft1_filtered_4FGL_J2243.8-2510_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/443461/ft2_4FGL_J2243.8-2510_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/443461/ltcube_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.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/443461/ft2_4FGL_J2243.8-2510_daily_bin909.fits
.....................!
real 11.87
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443461/ft1_filtered_4FGL_J2243.8-2510_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/443461/ft2_4FGL_J2243.8-2510_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/443461/ltcube_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.fits outfile=/scratch/kocevski/443461/expmap_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.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/443461/ltcube_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.fits
.....................!
real 190.26
user 185.27
sys 4.63

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/443461/ft1_filtered_4FGL_J2243.8-2510_daily_bin909.fits scfile=/scratch/kocevski/443461/ft2_4FGL_J2243.8-2510_daily_bin909.fits outfile=/scratch/kocevski/443461/cmap_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443461/ft1_filtered_4FGL_J2243.8-2510_daily_bin909.fits scfile=/scratch/kocevski/443461/ft2_4FGL_J2243.8-2510_daily_bin909.fits outfile=/scratch/kocevski/443461/cmap_HighResolution_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9685       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 '    3.4983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.040       1.0000         .10000E-03   10000.    
     7 'norm      '    13.105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.263       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4867       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0303       1.0000         .10000E-03   10000.    
    14 'norm      '    .11525E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37086E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.051       1.0000         .10000E-03   10000.    
    17 'norm      '    .12902       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1895       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11238E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.752       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70016       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0011       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=   8011.360     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2806 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.90        .40121E-06** at limit **
   2  norm          1.9684        .39309       -.11811E-07    .62195E-03
   3  Prefactor     .10000E-03    2.4727        .62542E-07** at limit **
   4  Prefactor     .10000E-03    3.4512        .28676E-07** at limit **
   5  Prefactor     3.4971        6.5481        .14171E-06   -.15812E-03
   6  Prefactor     44.048        42.200       -.20594E-06    .39945E-04
   7  norm          13.107        13.559        .15129E-06   -.43537E-04
   8  Prefactor     5.8930        7.4555       -.45121E-07   -.71473E-05
   9  Prefactor     19.266        10.104        .16026E-06   -.77279E-04
  10  norm          2.4867        .82926       -.51041E-08    .72335E-04
  11  norm          1.2245        1.8821        .35121E-06   -.39105E-03
  12  Prefactor     30.821        42.150       -.12892E-05   -.26564E-04
  13  Prefactor     3.0300        5.5662       -.38638E-07   -.47767E-04
  14  norm          .10005E-03    2.0335       -.92113E-06** at limit **
  15  Prefactor     .10001E-03    75.869        .48063E-05** at limit **
  16  Prefactor     14.060        7.9146        .15241E-05    .17350E-03
  17  norm          .12837        .46613       -.27288E-06   -.12448E-03
  18  Prefactor     .10000E-03    44.669        .10163E-06** at limit **
  19  Prefactor     4.1890        8.8375       -.11084E-06    .23326E-04
  20  Prefactor     .10000E-03    2.6073       -.25437E-06** at limit **
  21  norm          .10000E-03    1.1021       -.89940E-08** at limit **
  22  Prefactor     58.744        34.856        .15247E-06   -.24307E-04
  23  Normalizat    .70036        .16109       -.11852E-05    .13437E-03
  24  Prefactor     1.0010        .14696        .10227E-05   -.87102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.96843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4971
  Prefactor  = 44.0476
  norm       = 13.1072
  Prefactor  = 5.89301
  Prefactor  = 19.2661
  norm       = 2.48668
  norm       = 1.22446
  Prefactor  = 30.8211
  Prefactor  = 3.03
  norm       = 0.000100052
  Prefactor  = 0.000100006
  Prefactor  = 14.0605
  norm       = 0.128373
  Prefactor  = 0.0001
  Prefactor  = 4.18896
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.7439
  Normalizat = 0.700364
  Prefactor  = 1.00096
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.360     FROM HESSE     STATUS=OK           419 CALLS     3225 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9684        .39355        .24336E-04   -1.5427    
   3  Prefactor     .10000E-03    2.4816        .13743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4610        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4971        6.5644        .21617E-03   -1.5334    
   6  Prefactor     44.048        42.200        .60412E-04   -1.4380    
   7  norm          13.107        13.549        .11065E-03   -1.4984    
   8  Prefactor     5.8930        7.4503        .16542E-03   -1.5222    
   9  Prefactor     19.266        10.095        .91256E-04   -1.4830    
  10  norm          2.4867        .82831        .45350E-04   -1.5393    
  11  norm          1.2245        1.8625        .11540E-03   -1.5487    
  12  Prefactor     30.821        42.418        .72107E-04   -1.4597    
  13  Prefactor     3.0300        5.5532        .23311E-03   -1.5360    
  14  norm          .10005E-03    2.2949        .36102E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    75.845        .37742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.060        8.2316        .10685E-03   -1.4958    
  17  norm          .12837        .47276        .19297E-03   -1.5636    
  18  Prefactor     .10000E-03    44.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1890        8.8304        .19689E-03   -1.5299    
  20  Prefactor     .10000E-03    2.6246        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.9917        .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     58.744        34.176        .52341E-04   -1.4174    
  23  Normalizat    .70036        .18576        .26605E-03   -1.0388    
  24  Prefactor     1.0010        .16964        .21607E-03   -.92697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54437e-10
Minuit parameter uncertainties:
  1  0.000449199
  2  0.39355
  3  5.58033e-06
  4  3.55868e-06
  5  6.56572
  6  42.2287
  7  13.5518
  8  7.45147
  9  10.096
  10  0.82831
  11  1.86258
  12  42.4598
  13  5.55415
  14  0.000689202
  15  0.00140074
  16  8.23224
  17  0.47277
  18  0.000125907
  19  8.83314
  20  1.1663e-06
  21  3.14699e-06
  22  34.1879
  23  0.185932
  24  0.169733
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  3.082e+01  4.246e+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.001e+00  1.697e-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.004e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 7.65e-06 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/443461/likelihoodResults_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.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) = 8011.35174897
delta logL = 0.00854021489886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8011.34543919
delta logL = 0.0148499922716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.532       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8679       1.0000          .0000       10.000    
     3 'Normalizat'    .69669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0036       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=   8011.345     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      215 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.453        628.70        .19443E-02    .18808E-03
   2  Index         2.8710        6.4145        .22428        .88306E-04
   3  Normalizat    .69671        .41777E-01    .42246E-01    .28480E-04
   4  Prefactor     1.0035        .38445E-01    .44506E-01    .44059E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4535
  Index      = 2.871
  Normalizat = 0.696713
  Prefactor  = 1.00355
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.345     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.453        44.240        .38887E-03   -1.4679    
   2  Index         2.8710        1.1199        .87202E-02   -.43985    
   3  Normalizat    .69671        .17473        .26666E-03   -1.0402    
   4  Prefactor     1.0035        .16570        .21582E-03   -.92611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75074e-09
Minuit parameter uncertainties:
  1  44.2946
  2  1.13168
  3  0.174871
  4  0.165783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443461': 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) = 8011.34543388
delta logL = 0.0148553044792

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  2.645e+01  4.429e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.871e+00  1.132e+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.004e+00  1.658e-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.967e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 2.87 +/- 1.13
Photon Flux (Free Index): 3.43e-08 +/- 3.57e-08
Energy Flux (Free Index): 7.33e-06 +/- 8.14e-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/443461/cmap_HighResolution_474940801_475200001_4FGL_J2243.8-2510_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='7.33e-06', photon_flux_error='4.40e-08', dlogl='1.49e-02', energy_flux='7.65e-06', photon_flux2='3.43e-08', job_status='DONE', time_completed='2021-09-28 19:09:34.533922', photon_index_error2='1.13', photon_index2='2.87', ts='1.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='8.14e-06', EG='0.70', time_epoch_completed='1632881374.53', return_code='0', job_id='443461', GAL2='1.00', EG2='0.70', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.57e-08', ts2='1.21', photon_index='2.71' WHERE bin_id='909' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:09:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 443461: <4FGL_J2243.8-2510_daily_bin909> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin909 340.957 -25.1701 474940801 475200001 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 :                                   753.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

