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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1084
RA = 340.957, Dec = -25.1701
tmin = 520300801, tmax = 520560001
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='444790', job_status='RUN', time_executed='2021-09-28 19:04:04.933849', time_epoch_executed='1632881044.93' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444790/ft1_4FGL_J2243.8-2510_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444790/ft2_4FGL_J2243.8-2510_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444790/ft1_4FGL_J2243.8-2510_daily_bin1084.fits outfile=/scratch/kocevski/444790/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1084.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.08
user 5.81
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444790/ft1_filtered_4FGL_J2243.8-2510_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/444790/ft2_4FGL_J2243.8-2510_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/444790/ltcube_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.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/444790/ft2_4FGL_J2243.8-2510_daily_bin1084.fits
.....................!
real 12.64
user 12.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444790/ft1_filtered_4FGL_J2243.8-2510_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/444790/ft2_4FGL_J2243.8-2510_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/444790/ltcube_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.fits outfile=/scratch/kocevski/444790/expmap_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.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/444790/ltcube_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.fits
.....................!
real 191.27
user 185.31
sys 5.37

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/444790/ft1_filtered_4FGL_J2243.8-2510_daily_bin1084.fits scfile=/scratch/kocevski/444790/ft2_4FGL_J2243.8-2510_daily_bin1084.fits outfile=/scratch/kocevski/444790/cmap_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444790/ft1_filtered_4FGL_J2243.8-2510_daily_bin1084.fits scfile=/scratch/kocevski/444790/ft2_4FGL_J2243.8-2510_daily_bin1084.fits outfile=/scratch/kocevski/444790/cmap_HighResolution_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.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/444790/ft1_filtered_4FGL_J2243.8-2510_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/444790/ft2_4FGL_J2243.8-2510_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/444790/Model_4FGL_J2243.8-2510_daily_bin1084.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/444790/ft1_filtered_4FGL_J2243.8-2510_daily_bin1084.fits.....................!
real 63.72
user 62.33
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7796       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2040       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.2431       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7832       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.505       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.159       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.984       1.0000         .10000E-03   10000.    
    17 'norm      '    .64826       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0636       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.7844       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9577       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1989       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63197       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=   8263.016     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2314 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.164       -.11988E-04** at limit **
   2  norm          1.7796        .35944       -.15536E-07    .76845E-03
   3  Prefactor     1.6517        8.5417       -.68572E-05   -.56837E-03
   4  Prefactor     .10000E-03    4.1764        .29891E-07** at limit **
   5  Prefactor     7.2018        6.4393        .15082E-05   -.64198E-04
   6  Prefactor     .10000E-03    45.018       -.14902E-04** at limit **
   7  norm          3.3047        10.238       -.94853E-06   -.14291E-03
   8  Prefactor     29.944        20.910       -.10791E-05   -.94387E-05
   9  Prefactor     .10000E-03    6.8457       -.33026E-06** at limit **
  10  norm          6.2433        1.2448       -.39437E-07    .44790E-03
  11  norm          1.7832        1.3647       -.93281E-08    .84544E-04
  12  Prefactor     .10000E-03    20.954       -.26970E-06** at limit **
  13  Prefactor     .10000E-03    5.8378        .38595E-07** at limit **
  14  norm          16.504        5.5529       -.12712E-05    .72732E-04
  15  Prefactor     18.157        16.799        .56602E-06    .15362E-04
  16  Prefactor     12.976        10.544        .16345E-05   -.25489E-05
  17  norm          .64885        .63991       -.20559E-06   -.14486E-02
  18  Prefactor     .10000E-03    52.515        .25479E-04** at limit **
  19  Prefactor     7.0633        5.8978        .46915E-07    .44230E-04
  20  Prefactor     .10000E-03    6.3919        .16672E-07** at limit **
  21  norm          3.7848        4.2501        .26185E-05   -.21959E-03
  22  Prefactor     8.9326        57.184       -.54903E-04   -.10396E-04
  23  Normalizat    1.1992        .16204        .18240E-05    .13139E-03
  24  Prefactor     .63167        .13795        .26222E-06    .26159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.77964
  Prefactor  = 1.6517
  Prefactor  = 0.0001
  Prefactor  = 7.20183
  Prefactor  = 0.0001
  norm       = 3.30467
  Prefactor  = 29.9436
  Prefactor  = 0.0001
  norm       = 6.24334
  norm       = 1.7832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.5036
  Prefactor  = 18.1568
  Prefactor  = 12.976
  norm       = 0.648851
  Prefactor  = 0.0001
  Prefactor  = 7.06332
  Prefactor  = 0.0001
  norm       = 3.78476
  Prefactor  = 8.93263
  Normalizat = 1.19925
  Prefactor  = 0.631675
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.016     FROM HESSE     STATUS=OK           401 CALLS     2715 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7796        .35975        .23667E-04   -1.5441    
   3  Prefactor     1.6517        8.9022        .32858E-03   -1.5451    
   4  Prefactor     .10000E-03    4.1827        .18141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2018        6.4401        .14945E-03   -1.5171    
   6  Prefactor     .10000E-03    45.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3047        10.229        .22228E-03   -1.5344    
   8  Prefactor     29.944        20.954        .73209E-04   -1.4613    
   9  Prefactor     .10000E-03    6.8907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.2433        1.2448        .43626E-04   -1.5208    
  11  norm          1.7832        1.3667        .90079E-04   -1.5441    
  12  Prefactor     .10000E-03    21.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.504        5.5340        .98586E-04   -1.4895    
  15  Prefactor     18.157        16.747        .93987E-04   -1.4855    
  16  Prefactor     12.976        10.527        .11116E-03   -1.4987    
  17  norm          .64885        .59164        .59610E-03   -1.5547    
  18  Prefactor     .10000E-03    52.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0633        5.8975        .15094E-03   -1.5176    
  20  Prefactor     .10000E-03    6.4610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7848        4.2076        .17841E-03   -1.5319    
  22  Prefactor     8.9326        56.341        .13392E-03   -1.5110    
  23  Normalizat    1.1992        .19766        .24201E-03   -.86626    
  24  Prefactor     .63167        .16701        .28004E-03   -1.0627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69503e-09
Minuit parameter uncertainties:
  1  0.000121069
  2  0.359747
  3  7.67063
  4  4.03668e-06
  5  6.44068
  6  1.76713e-05
  7  10.2342
  8  20.9596
  9  1.98152e-05
  10  1.24485
  11  1.36677
  12  2.45135e-05
  13  1.91111e-05
  14  5.53419
  15  16.7514
  16  10.529
  17  0.591645
  18  6.19678e-05
  19  5.89798
  20  1.87758e-05
  21  4.20789
  22  44.9297
  23  0.19778
  24  0.167141
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.451e-05  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.317e-01  1.671e-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.199e+00  1.978e-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: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444790/likelihoodResults_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.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) = 8263.01645058
delta logL = -0.000226824102356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8263.01622576
delta logL = -2.00909926207e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7073       1.0000          .0000       10.000    
     3 'Normalizat'    1.1992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63168       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=   8263.016     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      289 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    251.88        .18142E-01** at limit **
   2  Index         2.2704        6.9997        .41778        .70208E-08
   3  Normalizat    1.1992        .13107E-01    .24201E-03    .22511E-03
   4  Prefactor     .63167        .11392E-01    .28004E-03    .19543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27035
  Normalizat = 1.19925
  Prefactor  = 0.631673
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.016     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1377.7        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2704        5.2492        .50000       -.57750    
   3  Normalizat    1.1992        .33103E-01    .48403E-04   -.86626    
   4  Prefactor     .63167        .28772E-01    .11202E-04   -1.0627    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.64036e-08
Minuit parameter uncertainties:
  1  0.000844121
  2  2316.79
  3  0.0331037
  4  0.028773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444790': 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) = 8263.01622349
delta logL = 2.66136339633e-07

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.441e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.270e+00  2.317e+03  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:  6.317e-01  2.877e-02  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.199e+00  3.310e-02  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/444790/cmap_HighResolution_520300801_520560001_4FGL_J2243.8-2510_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-28 19:16:16.816162', job_id='444790', GAL2='0.63', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632881776.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1084' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:16:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 444790: <4FGL_J2243.8-2510_daily_bin1084> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1084> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:14 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:16 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:16 2021
Terminated at Tue Sep 28 19:16:17 2021
Results reported at Tue Sep 28 19:16:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1084 340.957 -25.1701 520300801 520560001 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 :                                   727.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

