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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1459
RA = 340.957, Dec = -25.1701
tmin = 617500801, tmax = 617760001
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='445348', job_status='RUN', time_executed='2021-09-28 19:01:53.014972', time_epoch_executed='1632880913.02' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445348/ft1_4FGL_J2243.8-2510_daily_bin1459.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445348/ft1_4FGL_J2243.8-2510_daily_bin1459.fits outfile=/scratch/kocevski/445348/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1459.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=617500801.0 tmax=617760001.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.61
user 2.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits" evtable="EVENTS" scfile=/scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits sctable="SC_DATA" outfile=/scratch/kocevski/445348/ltcube_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.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/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits
.....................!
real 12.38
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits sctable="SC_DATA" expcube=/scratch/kocevski/445348/ltcube_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.fits outfile=/scratch/kocevski/445348/expmap_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.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/445348/ltcube_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.fits
.....................!
real 190.11
user 185.69
sys 4.04

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/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits scfile=/scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits outfile=/scratch/kocevski/445348/cmap_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits scfile=/scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits outfile=/scratch/kocevski/445348/cmap_HighResolution_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445348/Model_4FGL_J2243.8-2510_daily_bin1459.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/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits........................!
real 19.28
user 17.95
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits', '/scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits', expMap='/scratch/kocevski/445348/expmap_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.fits', expCube='/scratch/kocevski/445348/ltcube_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/445348/Model_4FGL_J2243.8-2510_daily_bin1459.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/445348/ft1_filtered_4FGL_J2243.8-2510_daily_bin1459.fits
Spacecraft file(s): /scratch/kocevski/445348/ft2_4FGL_J2243.8-2510_daily_bin1459.fits
Exposure map: /scratch/kocevski/445348/expmap_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.fits
Exposure cube: /scratch/kocevski/445348/ltcube_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/445348/Model_4FGL_J2243.8-2510_daily_bin1459.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 864.952155159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2422.4       1.0000         .10000E-03   10000.    
     2 'norm      '    .10557E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    136.80       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.794       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    142.81       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.536       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2063       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13341E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.154       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4189       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7106       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .13085       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=   864.5106     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     3582 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2422.7        2611.3        .46681E-04   -.22527E-06
   2  norm          .10000E-03    2.2513        .43080E-03** at limit **
   3  Prefactor     136.89        194.09        .17218E-03   -.50692E-05
   4  Prefactor     .10000E-03    242.26        .18142E-02** at limit **
   5  Prefactor     67.784        74.713        .48748E-04   -.24779E-05
   6  Prefactor     .10000E-03    145.83        .18142E-02** at limit **
   7  norm          .10000E-03    50.603        .18142E-02** at limit **
   8  Prefactor     142.80        140.73        .16857E-03    .13488E-06
   9  Prefactor     39.546        96.418        .63747E-04    .20063E-06
  10  norm          4.2057        3.4532        .46515E-04    .12282E-04
  11  norm          .10000E-03    4.8475        .63227E-03** at limit **
  12  Prefactor     .10000E-03    179.83        .18142E-02** at limit **
  13  Prefactor     10.045        90.860        .12660E-03    .41534E-06
  14  norm          .10000E-03    13.133        .10397E-02** at limit **
  15  Prefactor     .10000E-03    38.696        .17874E-02** at limit **
  16  Prefactor     18.196        67.375        .94002E-04   -.12276E-04
  17  norm          3.4177        4.0380        .40353E-04   -.38562E-04
  18  Prefactor     .10000E-03    133.07        .18142E-02** at limit **
  19  Prefactor     20.865        27.510        .87683E-04    .56725E-06
  20  Prefactor     .10000E-03    27.008        .14923E-02** at limit **
  21  norm          .10000E-03    2.9294        .49120E-03** at limit **
  22  Prefactor     .10000E-03    70.066        .18142E-02** at limit **
  23  Normalizat    1.7099        .79411        .23267E-03   -.11153E-04
  24  Prefactor     .13139        .80107        .63213E-03   -.22683E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2422.66
  norm       = 0.0001
  Prefactor  = 136.888
  Prefactor  = 0.0001
  Prefactor  = 67.7843
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 142.801
  Prefactor  = 39.5462
  norm       = 4.20574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0449
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1965
  norm       = 3.4177
  Prefactor  = 0.0001
  Prefactor  = 20.8653
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.70986
  Prefactor  = 0.131391
 **********
 **   18 **HESSE 
 **********

 FCN=   864.5106     FROM HESSE     STATUS=OK           373 CALLS     3955 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2422.7        2611.0        .93362E-05   -.54155    
   2  norm          .10000E-03    2.2513        .86159E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     136.89        194.08        .34436E-04   -1.3363    
   4  Prefactor     .10000E-03    242.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.784        74.710        .19499E-05   -1.4059    
   6  Prefactor     .10000E-03    145.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    50.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     142.80        140.73        .67428E-05   -1.3312    
   9  Prefactor     39.546        96.439        .25499E-05   -1.4449    
  10  norm          4.2057        3.4524        .18606E-05   -1.5298    
  11  norm          .10000E-03    4.8475        .12645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    179.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.045        90.845        .50639E-05   -1.5074    
  14  norm          .10000E-03    13.134        .20794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.696        .35747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.196        67.373        .37601E-05   -1.4855    
  17  norm          3.4177        4.0384        .16141E-05   -1.5338    
  18  Prefactor     .10000E-03    133.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.865        27.505        .35073E-05   -1.4794    
  20  Prefactor     .10000E-03    27.008        .29845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9294        .98241E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    70.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7099        .79144        .93066E-05   -.72040    
  24  Prefactor     .13139        .79521        .25285E-04   -1.3410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15266e-12
Minuit parameter uncertainties:
  1  2807.69
  2  4.7493e-07
  3  194.989
  4  0.000400852
  5  74.8136
  6  9.58324e-05
  7  3.7982e-05
  8  141.066
  9  96.8223
  10  3.45254
  11  6.84005e-07
  12  1.24076e-05
  13  60.5384
  14  3.1865e-06
  15  8.44623e-06
  16  67.657
  17  4.03874
  18  9.68523e-05
  19  27.5216
  20  3.68275e-06
  21  8.39255e-07
  22  9.08994e-05
  23  0.797423
  24  0.660028
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.241e-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:  1.314e-01  6.600e-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.710e+00  7.974e-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.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445348/likelihoodResults_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.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) = 864.510671131
delta logL = -2.61887322495e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 864.510645747
delta logL = -8.05362901701e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13428E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.1817       1.0000          .0000       10.000    
     3 'Normalizat'    1.7099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .13139       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=   864.5097     FROM MIGRAD    STATUS=CONVERGED    221 CALLS      394 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12372        29.307        .25011E-01    .20588E-03
   2  Index         5.6946        4.1092        .50000        .14741E-05
   3  Normalizat    1.7021        .31514E-01    .23267E-03   -.38550E-04
   4  Prefactor     .13607        .26369E-01    .63205E-03   -.16087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.123722
  Index      = 5.69457
  Normalizat = 1.70206
  Prefactor  = 0.136068
 **********
 **   18 **HESSE 
 **********

 FCN=   864.5097     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      425 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12372        6326.7        .13485E-02   -1.5638    
   2  Index         5.6946        6.4372        .12186E-01    .13937    
   3  Normalizat    1.7021        .34076        .46534E-04   -.72248    
   4  Prefactor     .13607        .25407        .25282E-04   -1.3370    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02818e-09
Minuit parameter uncertainties:
  1  38.3
  2  152.311
  3  0.341227
  4  0.256147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445348': 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) = 864.509701116
delta logL = 0.000943825914987

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.237e-01  3.830e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  5.695e+00  1.523e+02  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.361e-01  2.561e-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.702e+00  3.412e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/445348/cmap_HighResolution_617500801_617760001_4FGL_J2243.8-2510_daily_bin1459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-02', job_status='DONE', photon_flux_upper_limit='6.41e-07', time_completed='2021-09-28 19:08:02.579901', job_id='445348', GAL2='0.14', fit_tolerance='1e-08', EG2='1.70', EG='1.71', time_epoch_completed='1632881282.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.13', dlogl='9.44e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1459' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:08:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 445348: <4FGL_J2243.8-2510_daily_bin1459> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1459 340.957 -25.1701 617500801 617760001 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 :                                   366.53 sec.
    Max Memory :                                 1137 MB
    Average Memory :                             238.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   422 sec.
    Turnaround time :                            425 sec.

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

