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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin974
RA = 340.957, Dec = -25.1701
tmin = 491788801, tmax = 492048001
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='443554', job_status='RUN', time_executed='2021-09-28 18:56:41.311401', time_epoch_executed='1632880601.31' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443554

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443554/ft1_4FGL_J2243.8-2510_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443554/ft2_4FGL_J2243.8-2510_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443554/ft1_4FGL_J2243.8-2510_daily_bin974.fits outfile=/scratch/kocevski/443554/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin974.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.23
user 3.99
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443554/ft1_filtered_4FGL_J2243.8-2510_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/443554/ft2_4FGL_J2243.8-2510_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/443554/ltcube_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.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/443554/ft2_4FGL_J2243.8-2510_daily_bin974.fits
.....................!
real 11.60
user 11.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443554/ft1_filtered_4FGL_J2243.8-2510_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/443554/ft2_4FGL_J2243.8-2510_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/443554/ltcube_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.fits outfile=/scratch/kocevski/443554/expmap_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.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/443554/ltcube_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.fits
.....................!
real 191.03
user 184.92
sys 5.74

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/443554/ft1_filtered_4FGL_J2243.8-2510_daily_bin974.fits scfile=/scratch/kocevski/443554/ft2_4FGL_J2243.8-2510_daily_bin974.fits outfile=/scratch/kocevski/443554/cmap_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443554/ft1_filtered_4FGL_J2243.8-2510_daily_bin974.fits scfile=/scratch/kocevski/443554/ft2_4FGL_J2243.8-2510_daily_bin974.fits outfile=/scratch/kocevski/443554/cmap_HighResolution_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.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/443554/ft1_filtered_4FGL_J2243.8-2510_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/443554/ft2_4FGL_J2243.8-2510_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443554/Model_4FGL_J2243.8-2510_daily_bin974.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/443554/ft1_filtered_4FGL_J2243.8-2510_daily_bin974.fits.....................!
real 53.71
user 52.29
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14626E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.800       1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
    10 'norm      '    .68964       1.0000         .10000E-03   10000.    
    11 'norm      '    .19694E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.248       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2847       1.0000         .10000E-03   10000.    
    17 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2854       1.0000         .10000E-03   10000.    
    21 'norm      '    .66335       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1911       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67738       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=   6783.668     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2782 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    186.95       -.81391E-05** at limit **
   2  norm          1.5501        .39589        .46969E-09    .38394E-04
   3  Prefactor     .10000E-03    4.9088       -.10432E-06** at limit **
   4  Prefactor     .10000E-03    58.850        .41895E-05** at limit **
   5  Prefactor     .10000E-03    12.739        .75475E-06** at limit **
   6  Prefactor     48.796        68.189       -.39557E-05   -.17263E-05
   7  norm          .10000E-03    10.322       -.11467E-06** at limit **
   8  Prefactor     .10000E-03    6.4548       -.29672E-07** at limit **
   9  Prefactor     11.806        12.930       -.17632E-06   -.13163E-03
  10  norm          .68933        .96580        .48498E-07    .17408E-03
  11  norm          .10000E-03    .73001       -.98051E-07** at limit **
  12  Prefactor     .10000E-03    23.365        .19488E-04** at limit **
  13  Prefactor     18.249        11.394       -.25571E-06    .55040E-05
  14  norm          .10000E-03    1.1613       -.52651E-07** at limit **
  15  Prefactor     13.379        15.175       -.10938E-06   -.13754E-04
  16  Prefactor     5.2736        11.416       -.15376E-06   -.53737E-04
  17  norm          .10000E-03    .46822       -.20157E-07** at limit **
  18  Prefactor     .10000E-03    26.230       -.15978E-04** at limit **
  19  Prefactor     1.3115        33.397       -.20515E-05   -.72975E-05
  20  Prefactor     1.2877        1.4349        .12427E-06   -.55422E-03
  21  norm          .66287        2.7570       -.85866E-07   -.87575E-05
  22  Prefactor     .10000E-03    18.871       -.58540E-05** at limit **
  23  Normalizat    1.1911        .17246        .36621E-06   -.59797E-04
  24  Prefactor     .67744        .15146        .20965E-06   -.94996E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.55006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7963
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.806
  norm       = 0.689333
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2488
  norm       = 0.0001
  Prefactor  = 13.3787
  Prefactor  = 5.27356
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3115
  Prefactor  = 1.2877
  norm       = 0.66287
  Prefactor  = 0.0001
  Normalizat = 1.19109
  Prefactor  = 0.677437
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.668     FROM HESSE     STATUS=OK           403 CALLS     3185 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    188.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5501        .39664        .25423E-04   -1.5459    
   3  Prefactor     .10000E-03    4.9378        .17819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    61.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.248        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.796        67.896        .57403E-04   -1.4310    
   7  norm          .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.806        12.977        .58293E-03   -1.5021    
  10  norm          .68933        .85682        .91149E-03   -1.5542    
  11  norm          .10000E-03    3.2645        .13694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.249        11.473        .93759E-04   -1.4853    
  14  norm          .10000E-03    1.1769        .86543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.379        15.066        .10951E-03   -1.4976    
  16  Prefactor     5.2736        11.265        .17484E-03   -1.5249    
  17  norm          .10000E-03    1.1892        .90706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3115        33.875        .38444E-03   -1.5479    
  20  Prefactor     1.2877        14.705        .19552E-02   -1.5481    
  21  norm          .66287        2.8530        .25993E-03   -1.5545    
  22  Prefactor     .10000E-03    18.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1911        .20810        .22265E-03   -.86879    
  24  Prefactor     .67744        .18128        .26192E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60351e-09
Minuit parameter uncertainties:
  1  5.31114e-05
  2  0.396639
  3  3.4689e-06
  4  0.000229589
  5  3.32022e-05
  6  68.0034
  7  4.77154e-06
  8  1.34291e-06
  9  12.9802
  10  0.856835
  11  8.10284e-06
  12  2.19036e-05
  13  11.4741
  14  1.23791e-07
  15  15.0702
  16  11.2692
  17  9.21987e-06
  18  1.23294e-06
  19  13.3386
  20  8.70548
  21  2.75042
  22  8.72905e-06
  23  0.208248
  24  0.181434
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.190e-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.774e-01  1.814e-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.191e+00  2.082e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443554/likelihoodResults_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.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) = 6783.66837362
delta logL = -0.000203725921892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6783.66817001
delta logL = -1.14003341878e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6170       1.0000          .0000       10.000    
     3 'Normalizat'    1.1911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67744       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=   6783.668     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2228.5        .90712E-02** at limit **
   2  Index         2.6297        8.6816        .50000       -.53006E-05
   3  Normalizat    1.1911        .48530E-01    .50362E-01   -.45750E-05
   4  Prefactor     .67744        .44426E-01    .42100E-01    .27521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.62971
  Normalizat = 1.19109
  Prefactor  = 0.677436
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.668     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6297        5.7714        .50000       -.49389    
   3  Normalizat    1.1911        .19137        .22265E-03   -.86879    
   4  Prefactor     .67744        .17531        .26192E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36528e-10
Minuit parameter uncertainties:
  1  0.000124582
  2  7.6992
  3  0.191485
  4  0.175454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443554': 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) = 6783.66816999
delta logL = -9.5631548902e-08

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.246e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.630e+00  7.699e+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:  6.774e-01  1.755e-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.191e+00  1.915e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/443554/cmap_HighResolution_491788801_492048001_4FGL_J2243.8-2510_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-28 19:07:57.248347', job_id='443554', GAL2='0.68', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632881277.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-9.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='974' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:07:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 443554: <4FGL_J2243.8-2510_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin974 340.957 -25.1701 491788801 492048001 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

