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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1629
RA = 340.957, Dec = -25.1701
tmin = 661564801, tmax = 661824001
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='447519', job_status='RUN', time_executed='2021-12-22 02:46:28.449516', time_epoch_executed='1640169988.45' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447519/ft1_4FGL_J2243.8-2510_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447519/ft1_4FGL_J2243.8-2510_daily_bin1629.fits outfile=/scratch/kocevski/447519/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1629.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=661564801.0 tmax=661824001.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.55
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.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/447519/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1629.fits evtable="EVENTS" outfile="/scratch/kocevski/447519/ft1_filtered_4FGL_J2243.8-2510_daily_bin1629.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447519/ft1_filtered_4FGL_J2243.8-2510_daily_bin1629.fits" evtable="EVENTS" scfile=/scratch/kocevski/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.fits sctable="SC_DATA" outfile=/scratch/kocevski/447519/ltcube_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.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/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.fits
.....................!
real 12.07
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447519/ft1_filtered_4FGL_J2243.8-2510_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/447519/ltcube_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.fits outfile=/scratch/kocevski/447519/expmap_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.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/447519/ltcube_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.fits
.....................!
real 192.65
user 186.74
sys 5.33

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/447519/ft1_filtered_4FGL_J2243.8-2510_daily_bin1629.fits scfile=/scratch/kocevski/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.fits outfile=/scratch/kocevski/447519/cmap_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447519/ft1_filtered_4FGL_J2243.8-2510_daily_bin1629.fits scfile=/scratch/kocevski/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.fits outfile=/scratch/kocevski/447519/cmap_HighResolution_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447519/ft1_filtered_4FGL_J2243.8-2510_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447519/ft2_4FGL_J2243.8-2510_daily_bin1629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447519/Model_4FGL_J2243.8-2510_daily_bin1629.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/447519/ft1_filtered_4FGL_J2243.8-2510_daily_bin1629.fits.....................!
real 54.59
user 53.21
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18214E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9252       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9700       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4764       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94662E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9703       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29428E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .82990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6141       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3570       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99391       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96327       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=   7082.057     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3185 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.647        .15704E-05** at limit **
   2  norm          1.0683        .33295       -.35937E-09    .13985E-03
   3  Prefactor     .10000E-03    4.1603       -.55586E-07** at limit **
   4  Prefactor     32.189        19.010        .21185E-05   -.11949E-05
   5  Prefactor     .10000E-03    4.8708        .24664E-07** at limit **
   6  Prefactor     .10000E-03    72.251        .95375E-06** at limit **
   7  norm          7.5717        14.666       -.15712E-04   -.27178E-05
   8  Prefactor     9.9227        12.337       -.20397E-05   -.20770E-04
   9  Prefactor     1.9733        10.667        .10163E-04   -.19745E-03
  10  norm          2.4764        1.0739       -.29586E-07   -.31706E-03
  11  norm          1.5696        1.7986        .27319E-06    .78495E-03
  12  Prefactor     .10082E-03    58.835       -.34059E-05** at limit **
  13  Prefactor     7.9774        7.5399        .10203E-05   -.60936E-04
  14  norm          .10000E-03    .93720       -.46322E-08** at limit **
  15  Prefactor     .10009E-03    6.2753       -.10827E-05** at limit **
  16  Prefactor     .10000E-03    4.4620        .44481E-06** at limit **
  17  norm          .83015        .46382        .24737E-07    .51269E-03
  18  Prefactor     .10000E-03    22.837       -.58596E-06** at limit **
  19  Prefactor     .10000E-03    6.3600        .22472E-07** at limit **
  20  Prefactor     .10000E-03    9.1627       -.76992E-07** at limit **
  21  norm          7.6138        3.3594       -.45458E-06   -.17593E-02
  22  Prefactor     6.3551        36.600        .87839E-05   -.13765E-04
  23  Normalizat    .99390        .17098       -.69945E-06    .14112E-03
  24  Prefactor     .96333        .15670        .10280E-06    .71639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.06828
  Prefactor  = 0.0001
  Prefactor  = 32.1893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.57168
  Prefactor  = 9.92266
  Prefactor  = 1.9733
  norm       = 2.47638
  norm       = 1.56958
  Prefactor  = 0.000100818
  Prefactor  = 7.97739
  norm       = 0.0001
  Prefactor  = 0.000100092
  Prefactor  = 0.0001
  norm       = 0.830154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.61383
  Prefactor  = 6.35515
  Normalizat = 0.993899
  Prefactor  = 0.963334
 **********
 **   18 **HESSE 
 **********

 FCN=   7082.057     FROM HESSE     STATUS=OK           415 CALLS     3600 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0683        .33412        .26388E-04   -1.5501    
   3  Prefactor     .10000E-03    4.1926        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.189        19.003        .70618E-04   -1.4573    
   5  Prefactor     .10000E-03    4.9697        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    72.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5717        14.712        .14573E-03   -1.5158    
   8  Prefactor     9.9227        12.342        .12719E-03   -1.5078    
   9  Prefactor     1.9733        10.098        .29543E-03   -1.5427    
  10  norm          2.4764        1.0721        .55190E-04   -1.5393    
  11  norm          1.5696        1.8133        .10287E-03   -1.5457    
  12  Prefactor     .10082E-03    56.082        .12939       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9774        7.5390        .14202E-03   -1.5143    
  14  norm          .10000E-03    .94233        .79512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    36.473        .38882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3625        .30978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .83015        .43245        .38389E-04   -1.5526    
  18  Prefactor     .10000E-03    22.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6138        3.3749        .48151E-03   -1.5156    
  22  Prefactor     6.3551        36.691        .15920E-03   -1.5204    
  23  Normalizat    .99390        .20346        .24650E-03   -.93235    
  24  Prefactor     .96333        .18726        .23740E-03   -.93962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21328e-09
Minuit parameter uncertainties:
  1  3.91369e-06
  2  0.334125
  3  6.30781e-06
  4  19.0067
  5  1.03464e-05
  6  1.43067e-05
  7  14.7193
  8  12.345
  9  8.9299
  10  1.07213
  11  1.8134
  12  0.0135612
  13  7.53993
  14  2.37312e-06
  15  0.00367113
  16  7.82407e-05
  17  0.432447
  18  1.5139e-06
  19  1.94619e-06
  20  9.64886e-06
  21  3.375
  22  30.5686
  23  0.203623
  24  0.187387
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.008e-04  1.356e-02  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:  9.633e-01  1.874e-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:  9.939e-01  2.036e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447519/likelihoodResults_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.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) = 7082.05716325
delta logL = -1.15998682304e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7082.05716325
delta logL = -1.15926559374e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7067       1.0000          .0000       10.000    
     3 'Normalizat'    .99389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96334       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=   7081.928     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      359 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.476        24.772         .0000        .20148E-02
   2  Index         1.5980        .71281         .0000       -.78614E-04
   3  Normalizat    .99415        .16270         .0000        .17435E-04
   4  Prefactor     .96069        .15523         .0000        .12150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4763
  Index      = 1.59802
  Normalizat = 0.994147
  Prefactor  = 0.960686
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.928     FROM HESSE     STATUS=OK            33 CALLS      392 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.476        28.498        .18142E-02   -1.5061    
   2  Index         1.5980        1.1589        .15897E-01   -.74830    
   3  Normalizat    .99415        .19350        .24645E-03   -.93227    
   4  Prefactor     .96069        .18460        .23759E-03   -.94052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67625e-11
Minuit parameter uncertainties:
  1  28.5352
  2  1.17914
  3  0.193633
  4  0.184719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447519': 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) = 7081.92838749
delta logL = 0.128774592721

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.048e+01  2.854e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.598e+00  1.179e+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:  9.607e-01  1.847e-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:  9.941e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.957 -25.170

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/447519/cmap_HighResolution_661564801_661824001_4FGL_J2243.8-2510_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-12-22 02:58:48.910214', job_id='447519', GAL2='0.96', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1640170728.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.29e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1629' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 02:58:48 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 447519: <4FGL_J2243.8-2510_daily_bin1629> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1629> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec 22 02:45:23 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 02:46:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 02:46:07 2021
Terminated at Wed Dec 22 02:58:49 2021
Results reported at Wed Dec 22 02:58:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1629 340.957 -25.1701 661564801 661824001 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 :                                   742.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            806 sec.

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

