/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 167 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.8-2510_daily_bin300
RA = 340.957, Dec = -25.1701
tmin = 317088001, tmax = 317347201
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='440169', job_status='RUN', time_executed='2021-09-28 18:48:36.639932', time_epoch_executed='1632880116.64' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440169

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440169/ft1_4FGL_J2243.8-2510_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440169/ft2_4FGL_J2243.8-2510_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440169/ft1_4FGL_J2243.8-2510_daily_bin300.fits outfile=/scratch/kocevski/440169/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin300.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=317088001.0 tmax=317347201.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.87
user 3.66
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440169/ft1_filtered_4FGL_J2243.8-2510_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/440169/ft2_4FGL_J2243.8-2510_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/440169/ltcube_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.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/440169/ft2_4FGL_J2243.8-2510_daily_bin300.fits
.....................!
real 12.39
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440169/ft1_filtered_4FGL_J2243.8-2510_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/440169/ft2_4FGL_J2243.8-2510_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/440169/ltcube_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.fits outfile=/scratch/kocevski/440169/expmap_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.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/440169/ltcube_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.fits
.....................!
real 190.07
user 185.29
sys 4.47

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/440169/ft1_filtered_4FGL_J2243.8-2510_daily_bin300.fits scfile=/scratch/kocevski/440169/ft2_4FGL_J2243.8-2510_daily_bin300.fits outfile=/scratch/kocevski/440169/cmap_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.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/440169/ft1_filtered_4FGL_J2243.8-2510_daily_bin300.fits scfile=/scratch/kocevski/440169/ft2_4FGL_J2243.8-2510_daily_bin300.fits outfile=/scratch/kocevski/440169/cmap_HighResolution_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    114.14       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    199.20       1.0000         .10000E-03   10000.    
     7 'norm      '    13.717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.226       1.0000         .10000E-03   10000.    
    10 'norm      '    .65515E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .12532E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68607E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.195       1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    131.77       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .54643       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93593       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0005       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=   4828.601     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2859 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     114.12        121.37       -.41037E-07   -.14000E-04
   2  norm          1.0898        .46049       -.62881E-08   -.28597E-03
   3  Prefactor     .10000E-03    4.9354        .16258E-06** at limit **
   4  Prefactor     .10000E-03    61.326        .13007E-05** at limit **
   5  Prefactor     29.744        13.874        .37640E-07   -.34871E-04
   6  Prefactor     199.17        95.615       -.13039E-06   -.65760E-04
   7  norm          13.660        36.047        .48400E-06   -.50767E-04
   8  Prefactor     .10000E-03    8.9141       -.20970E-06** at limit **
   9  Prefactor     11.217        17.660        .98781E-07   -.68334E-04
  10  norm          .65484E-01    .70632        .22376E-06   -.25608E-03
  11  norm          .10000E-03    2.3228       -.91082E-07** at limit **
  12  Prefactor     47.690        61.692       -.91216E-07   -.91977E-04
  13  Prefactor     .10000E-03    5.7379       -.36271E-06** at limit **
  14  norm          .10000E-03    4.9017        .58307E-07** at limit **
  15  Prefactor     .10144E-03    30.885        .45085E-05** at limit **
  16  Prefactor     15.213        13.075       -.62524E-07   -.10532E-02
  17  norm          .10000E-03    .69920       -.84473E-07** at limit **
  18  Prefactor     131.57        129.13       -.45454E-06   -.54747E-04
  19  Prefactor     .10000E-03    5.7836        .34372E-06** at limit **
  20  Prefactor     .10000E-03    8.8608        .17994E-06** at limit **
  21  norm          .54688        3.9086        .32267E-05    .40269E-03
  22  Prefactor     .10000E-03    25.150       -.26073E-07** at limit **
  23  Normalizat    .93595        .23426        .10503E-05   -.38928E-03
  24  Prefactor     1.0005        .20180       -.21372E-05   -.41022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 114.122
  norm       = 1.08975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7442
  Prefactor  = 199.174
  norm       = 13.6602
  Prefactor  = 0.0001
  Prefactor  = 11.2166
  norm       = 0.0654842
  norm       = 0.0001
  Prefactor  = 47.6904
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101438
  Prefactor  = 15.2131
  norm       = 0.0001
  Prefactor  = 131.573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.546879
  Prefactor  = 0.0001
  Normalizat = 0.935955
  Prefactor  = 1.0005
 **********
 **   18 **HESSE 
 **********

 FCN=   4828.601     FROM HESSE     STATUS=OK           393 CALLS     3252 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     114.12        121.51        .37656E-04   -1.3567    
   2  norm          1.0898        .46145        .29482E-04   -1.5499    
   3  Prefactor     .10000E-03    4.9501        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    62.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.744        13.887        .73465E-04   -1.4617    
   6  Prefactor     199.17        94.889        .14314E-03   -1.2876    
   7  norm          13.660        36.044        .10815E-03   -1.4969    
   8  Prefactor     .10000E-03    8.9173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.217        17.657        .11957E-03   -1.5038    
  10  norm          .65484E-01    1.6424        .10987E-02   -1.5657    
  11  norm          .10000E-03    2.3382        .10259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.690        61.217        .58068E-04   -1.4326    
  13  Prefactor     .10000E-03    5.7520        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.0351        .29916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10144E-03    139.10        .52249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.213        10.136        .10275E-03   -1.4928    
  17  norm          .10000E-03    1.0642        .95456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     131.57        129.30        .17539E-03   -1.3409    
  19  Prefactor     .10000E-03    5.8010        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .54688        4.0623        .26534E-03   -1.5560    
  22  Prefactor     .10000E-03    25.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93595        .27172        .27629E-03   -.95208    
  24  Prefactor     1.0005        .23284        .23991E-03   -.92713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79053e-08
Minuit parameter uncertainties:
  1  121.78
  2  0.461449
  3  1.10325e-05
  4  0.000308933
  5  13.8882
  6  94.9626
  7  36.1013
  8  1.48299e-05
  9  17.6648
  10  0.655421
  11  5.18579e-06
  12  61.2981
  13  1.75552e-05
  14  2.44368e-05
  15  0.0283555
  16  10.1371
  17  3.29459e-05
  18  129.575
  19  2.08477e-05
  20  1.0051e-05
  21  2.98102
  22  5.70368e-05
  23  0.272124
  24  0.233073
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  4.769e+01  6.130e+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.000e+00  2.331e-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.360e-01  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/440169/likelihoodResults_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.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) = 4828.22786532
delta logL = 0.37295261801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4828.20708599
delta logL = 0.393731941344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.803       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9760       1.0000          .0000       10.000    
     3 'Normalizat'    .96641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98031       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=   4828.207     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      261 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.780        74.384        .25520E-03   -.17819E-06
   2  Index         1.9763        .76591        .89934E-02   -.10674E-03
   3  Normalizat    .96675        .25479        .27237E-03    .80974E-05
   4  Prefactor     .98001        .22741        .24197E-03   -.46796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.7798
  Index      = 1.9763
  Normalizat = 0.966746
  Prefactor  = 0.980012
 **********
 **   18 **HESSE 
 **********

 FCN=   4828.207     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.780        75.529        .10208E-04   -1.4134    
   2  Index         1.9763        .77767        .17987E-02   -.64944    
   3  Normalizat    .96675        .25511        .10895E-04   -.94153    
   4  Prefactor     .98001        .22764        .96787E-05   -.93399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77256e-11
Minuit parameter uncertainties:
  1  75.6461
  2  0.782696
  3  0.255433
  4  0.227867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440169': 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) = 4828.20708479
delta logL = 0.393733141997

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.800e-01  2.279e-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.667e-01  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 1.98 +/- 0.78
Photon Flux (Free Index): 2.77e-08 +/- 4.59e-08
Energy Flux (Free Index): 2.03e-05 +/- 2.68e-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/440169/cmap_HighResolution_317088001_317347201_4FGL_J2243.8-2510_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', energy_flux2='2.03e-05', dlogl='3.94e-01', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-28 18:58:04.184522', photon_index_error2='0.78', photon_index2='1.98', ts='0.96', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='2.68e-05', EG='0.94', time_epoch_completed='1632880684.18', return_code='0', job_id='440169', GAL2='0.98', EG2='0.97', return_code2='0', photon_flux_error2='4.59e-08', ts2='1.75', photon_index='2.71' WHERE bin_id='300' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:58:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 440169: <4FGL_J2243.8-2510_daily_bin300> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin300> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:45:39 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:45:41 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:45:41 2021
Terminated at Tue Sep 28 18:58:04 2021
Results reported at Tue Sep 28 18:58:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin300 340.957 -25.1701 317088001 317347201 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 :                                   566.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             213.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            745 sec.

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

