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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1042
RA = 340.957, Dec = -25.1701
tmin = 509414401, tmax = 509673601
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='443657', job_status='RUN', time_executed='2021-09-28 18:56:38.670431', time_epoch_executed='1632880598.67' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443657/ft1_4FGL_J2243.8-2510_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443657/ft2_4FGL_J2243.8-2510_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443657/ft1_4FGL_J2243.8-2510_daily_bin1042.fits outfile=/scratch/kocevski/443657/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1042.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=509414401.0 tmax=509673601.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.66
user 3.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443657/ft1_filtered_4FGL_J2243.8-2510_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/443657/ft2_4FGL_J2243.8-2510_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/443657/ltcube_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.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/443657/ft2_4FGL_J2243.8-2510_daily_bin1042.fits
.....................!
real 11.86
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443657/ft1_filtered_4FGL_J2243.8-2510_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/443657/ft2_4FGL_J2243.8-2510_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/443657/ltcube_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.fits outfile=/scratch/kocevski/443657/expmap_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.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/443657/ltcube_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.fits
.....................!
real 190.30
user 185.14
sys 4.80

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/443657/ft1_filtered_4FGL_J2243.8-2510_daily_bin1042.fits scfile=/scratch/kocevski/443657/ft2_4FGL_J2243.8-2510_daily_bin1042.fits outfile=/scratch/kocevski/443657/cmap_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.957 yref=-25.1701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443657/ft1_filtered_4FGL_J2243.8-2510_daily_bin1042.fits scfile=/scratch/kocevski/443657/ft2_4FGL_J2243.8-2510_daily_bin1042.fits outfile=/scratch/kocevski/443657/cmap_HighResolution_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443657/ft1_filtered_4FGL_J2243.8-2510_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/443657/ft2_4FGL_J2243.8-2510_daily_bin1042.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443657/Model_4FGL_J2243.8-2510_daily_bin1042.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/443657/ft1_filtered_4FGL_J2243.8-2510_daily_bin1042.fits.....................!
real 43.32
user 41.95
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    304.15       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0199       1.0000         .10000E-03   10000.    
    11 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    102.25       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.965       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    296.20       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1200       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=   4778.651     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2709 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     304.28        188.39        .17507E-05    .98033E-04
   2  norm          1.8317        .66489       -.63951E-08    .70819E-04
   3  Prefactor     .10000E-03    7.3910        .18379E-06** at limit **
   4  Prefactor     .10000E-03    9.0253        .22733E-06** at limit **
   5  Prefactor     6.9125        12.921        .65604E-06    .94994E-06
   6  Prefactor     .10000E-03    36.794       -.29265E-06** at limit **
   7  norm          .10000E-03    7.6932        .41018E-06** at limit **
   8  Prefactor     .10000E-03    27.604       -.38621E-06** at limit **
   9  Prefactor     .10000E-03    7.3346        .16691E-05** at limit **
  10  norm          3.0200        1.5157        .44030E-07    .40390E-04
  11  norm          .10000E-03    2.5329        .65631E-05** at limit **
  12  Prefactor     102.39        79.352       -.18269E-05    .78830E-04
  13  Prefactor     .10000E-03    13.145       -.65531E-06** at limit **
  14  norm          .10000E-03    4.3633        .38677E-06** at limit **
  15  Prefactor     .10000E-03    11.357        .16974E-06** at limit **
  16  Prefactor     30.935        15.157        .22715E-05    .12837E-02
  17  norm          .10000E-03    .53814       -.12641E-05** at limit **
  18  Prefactor     296.22        159.60        .54355E-06    .77927E-05
  19  Prefactor     .10000E-03    27.433       -.11697E-05** at limit **
  20  Prefactor     .10000E-03    13.120       -.11469E-05** at limit **
  21  norm          .10000E-03    3.5671       -.58221E-06** at limit **
  22  Prefactor     .10000E-03    32.499       -.38788E-06** at limit **
  23  Normalizat    1.0238        .26707       -.67562E-05    .34863E-03
  24  Prefactor     1.1207        .22213        .54610E-05   -.65723E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 304.276
  norm       = 1.83174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91252
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01999
  norm       = 0.0001
  Prefactor  = 102.391
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.9347
  norm       = 0.0001
  Prefactor  = 296.216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0238
  Prefactor  = 1.12073
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.651     FROM HESSE     STATUS=OK           383 CALLS     3092 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     304.28        188.30        .11647E-03   -1.2201    
   2  norm          1.8317        .66513        .31953E-04   -1.5437    
   3  Prefactor     .10000E-03    7.4487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9125        12.951        .15268E-03   -1.5182    
   6  Prefactor     .10000E-03    36.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.6925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0200        1.5141        .57749E-04   -1.5360    
  11  norm          .10000E-03    2.4881        .20993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     102.39        79.662        .19881E-03   -1.3681    
  13  Prefactor     .10000E-03    13.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4740        .28139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.935        14.728        .72003E-04   -1.4595    
  17  norm          .10000E-03    .81775        .91411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     296.22        159.78        .23594E-04   -1.2249    
  19  Prefactor     .10000E-03    28.378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6799        .25482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0238        .31600        .30424E-03   -.92237    
  24  Prefactor     1.1207        .26267        .25840E-03   -.88807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20972e-09
Minuit parameter uncertainties:
  1  188.679
  2  0.665134
  3  7.99354e-06
  4  2.89909e-06
  5  12.9559
  6  6.01255e-05
  7  2.88141e-05
  8  1.56015e-05
  9  3.6825e-05
  10  1.51411
  11  1.74087e-06
  12  79.7458
  13  4.07306e-05
  14  2.73566e-05
  15  3.10158e-05
  16  14.7297
  17  9.49329e-06
  18  160.021
  19  2.9447e-05
  20  0.000110363
  21  6.05228e-06
  22  7.26668e-05
  23  0.316579
  24  0.262974
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.024e+02  7.975e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.121e+00  2.630e-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.024e+00  3.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 8.26e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.98e-05

TS (Fixed Index): 2.44
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 2.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443657/likelihoodResults_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.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) = 4778.07096412
delta logL = 0.579565423304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4778.03287474
delta logL = 0.617654807179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.454       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5138       1.0000          .0000       10.000    
     3 'Normalizat'    .92423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1974       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=   4778.033     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      306 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.626        138.02        .29593E-02    .18968E-03
   2  Index         4.5064        3.4513        .10970        .13022E-03
   3  Normalizat    .92002        .95345E-01    .71995E-01   -.26537E-04
   4  Prefactor     1.2007        .83087E-01    .56767E-01   -.49408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6263
  Index      = 4.50644
  Normalizat = 0.920015
  Prefactor  = 1.20075
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.033     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.626        200.03        .11837E-03   -1.5026    
   2  Index         4.5064        7.0066        .43695E-02   -.98872E-01
   3  Normalizat    .92002        .26848        .31856E-03   -.95760    
   4  Prefactor     1.2007        .23806        .25101E-03   -.86308    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.66621e-10
Minuit parameter uncertainties:
  1  96.8301
  2  5.09516
  3  0.268873
  4  0.238268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443657': 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) = 4778.03277596
delta logL = 0.617753580723

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.163e+01  9.683e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  4.506e+00  5.095e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.201e+00  2.383e-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.200e-01  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 4.51 +/- 5.10
Photon Flux (Free Index): 1.84e-07 +/- 1.12e-07
Energy Flux (Free Index): 2.56e-05 +/- 2.19e-05

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/443657/cmap_HighResolution_509414401_509673601_4FGL_J2243.8-2510_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-02', comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='2.56e-05', photon_flux_error='8.26e-08', dlogl='6.18e-01', energy_flux='2.54e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-28 19:06:04.643852', photon_index_error2='5.10', photon_index2='4.51', ts='2.44', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.62e-07', energy_flux_error2='2.19e-05', EG='1.02', time_epoch_completed='1632881164.64', return_code='0', job_id='443657', GAL2='1.20', EG2='0.92', return_code2='102', energy_flux_error='1.98e-05', photon_flux_error2='1.12e-07', ts2='4.02', photon_index='2.71' WHERE bin_id='1042' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 443657: <4FGL_J2243.8-2510_daily_bin1042> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1042 340.957 -25.1701 509414401 509673601 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 :                                   564.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            617 sec.

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

