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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1504
RA = 340.957, Dec = -25.1701
tmin = 629164801, tmax = 629424001
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='446400', job_status='RUN', time_executed='2021-09-28 19:06:12.144671', time_epoch_executed='1632881172.14' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446400

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446400/ft1_4FGL_J2243.8-2510_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446400/ft2_4FGL_J2243.8-2510_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446400/ft1_4FGL_J2243.8-2510_daily_bin1504.fits outfile=/scratch/kocevski/446400/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1504.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=629164801.0 tmax=629424001.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.60
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446400/ft1_filtered_4FGL_J2243.8-2510_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/446400/ft2_4FGL_J2243.8-2510_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/446400/ltcube_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.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/446400/ft2_4FGL_J2243.8-2510_daily_bin1504.fits
.....................!
real 12.09
user 11.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446400/ft1_filtered_4FGL_J2243.8-2510_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/446400/ft2_4FGL_J2243.8-2510_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/446400/ltcube_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.fits outfile=/scratch/kocevski/446400/expmap_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.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/446400/ltcube_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.fits
.....................!
real 191.69
user 186.40
sys 4.97

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/446400/ft1_filtered_4FGL_J2243.8-2510_daily_bin1504.fits scfile=/scratch/kocevski/446400/ft2_4FGL_J2243.8-2510_daily_bin1504.fits outfile=/scratch/kocevski/446400/cmap_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446400/ft1_filtered_4FGL_J2243.8-2510_daily_bin1504.fits scfile=/scratch/kocevski/446400/ft2_4FGL_J2243.8-2510_daily_bin1504.fits outfile=/scratch/kocevski/446400/cmap_HighResolution_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.957 yref=-25.1701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/446400/ft1_filtered_4FGL_J2243.8-2510_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/446400/ft2_4FGL_J2243.8-2510_daily_bin1504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446400/Model_4FGL_J2243.8-2510_daily_bin1504.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/446400/ft1_filtered_4FGL_J2243.8-2510_daily_bin1504.fits.....................!
real 46.22
user 44.96
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2218       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6362       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5008       1.0000         .10000E-03   10000.    
    11 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11627E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.718       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4190       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20237       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9420       1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.315       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94394       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91022       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=   5547.150     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2763 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.699       -.18429E-05** at limit **
   2  norm          1.2217        .44296        .38315E-08   -.60461E-04
   3  Prefactor     2.4153        7.5436        .78966E-06   -.42316E-04
   4  Prefactor     8.0921        11.217        .53745E-07   -.18360E-04
   5  Prefactor     .10000E-03    5.9395       -.21277E-06** at limit **
   6  Prefactor     .10000E-03    30.437        .21574E-05** at limit **
   7  norm          .10000E-03    8.1429        .10808E-05** at limit **
   8  Prefactor     7.6319        20.838       -.84165E-06   -.38881E-04
   9  Prefactor     .10000E-03    4.9315        .73336E-06** at limit **
  10  norm          2.5007        1.0847        .14296E-07   -.21460E-03
  11  norm          .10001E-03    2.5862        .28469E-05** at limit **
  12  Prefactor     40.261        37.491       -.33577E-05   -.47781E-03
  13  Prefactor     .10000E-03    18.191       -.28092E-07** at limit **
  14  norm          .10000E-03    2.8784       -.14827E-06** at limit **
  15  Prefactor     .10000E-03    8.7836       -.87528E-06** at limit **
  16  Prefactor     18.716        10.686       -.47156E-06   -.33985E-03
  17  norm          1.4182        .78170        .11921E-07   -.92570E-03
  18  Prefactor     26.716        68.216       -.58034E-06   -.91092E-05
  19  Prefactor     .20571        7.6380        .15423E-05   -.46787E-03
  20  Prefactor     .10000E-03    3.3164        .26453E-07** at limit **
  21  norm          1.9399        3.6396        .91226E-06    .35745E-04
  22  Prefactor     51.292        46.034       -.53293E-05   -.27358E-03
  23  Normalizat    .94421        .19472        .12927E-05   -.45612E-03
  24  Prefactor     .90996        .17626       -.16882E-05   -.36560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.22173
  Prefactor  = 2.41531
  Prefactor  = 8.09206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.63191
  Prefactor  = 0.0001
  norm       = 2.50072
  norm       = 0.000100012
  Prefactor  = 40.2614
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7162
  norm       = 1.41817
  Prefactor  = 26.7164
  Prefactor  = 0.205712
  Prefactor  = 0.0001
  norm       = 1.93989
  Prefactor  = 51.2924
  Normalizat = 0.94421
  Prefactor  = 0.909961
 **********
 **   18 **HESSE 
 **********

 FCN=   5547.150     FROM HESSE     STATUS=OK           399 CALLS     3162 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2217        .44250        .28981E-04   -1.5487    
   3  Prefactor     2.4153        7.5370        .26344E-03   -1.5397    
   4  Prefactor     8.0921        11.212        .14093E-03   -1.5139    
   5  Prefactor     .10000E-03    5.9863        .17713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6319        20.846        .14512E-03   -1.5155    
   9  Prefactor     .10000E-03    4.9549        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5007        1.0834        .49359E-04   -1.5392    
  11  norm          .10001E-03    4.4191        .19869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.261        39.784        .63185E-04   -1.4438    
  13  Prefactor     .10000E-03    18.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.2301        .23682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.716        10.791        .92575E-04   -1.4842    
  17  norm          1.4182        .79405        .39972E-04   -1.5470    
  18  Prefactor     26.716        68.260        .77502E-04   -1.4674    
  19  Prefactor     .20571        70.708        .38880E-02   -1.5617    
  20  Prefactor     .10000E-03    3.3244        .13242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9399        3.6135        .17718E-03   -1.5429    
  22  Prefactor     51.292        46.801        .55986E-04   -1.4274    
  23  Normalizat    .94421        .23075        .25475E-03   -.94924    
  24  Prefactor     .90996        .20900        .23871E-03   -.95794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72053e-09
Minuit parameter uncertainties:
  1  0.000211504
  2  0.442499
  3  7.54
  4  11.2147
  5  3.6303e-06
  6  0.000239585
  7  5.68054e-05
  8  20.866
  9  2.17696e-05
  10  1.08337
  11  0.000456973
  12  39.8099
  13  2.48145e-05
  14  6.72306e-05
  15  3.71138e-05
  16  10.792
  17  0.794058
  18  68.4603
  19  7.63495
  20  4.65971e-06
  21  3.61389
  22  46.8344
  23  0.230995
  24  0.20918
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  4.026e+01  3.981e+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:  9.100e-01  2.092e-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.442e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 9.99e-06 +/- 9.88e-06

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

Saving results to:
/scratch/kocevski/446400/likelihoodResults_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.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) = 5546.64658478
delta logL = 0.502924429849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5546.57772346
delta logL = 0.571785750785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.360       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9332       1.0000          .0000       10.000    
     3 'Normalizat'    .97103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88941       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=   5546.578     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.360        68.856        .12806E-02    .15121E-02
   2  Index         1.9332        .62257        .19204       -.36773E-04
   3  Normalizat    .97116        .18666        .45803E-01    .50035E-04
   4  Prefactor     .88933        .17249        .44870E-01   -.62596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.3596
  Index      = 1.93321
  Normalizat = 0.97116
  Prefactor  = 0.889331
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.578     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.360        59.902        .51224E-04   -1.4140    
   2  Index         1.9332        .63787        .95359E-02   -.66030    
   3  Normalizat    .97116        .22074        .25163E-03   -.94003    
   4  Prefactor     .88933        .20347        .24103E-03   -.96515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34197e-08
Minuit parameter uncertainties:
  1  59.961
  2  0.640678
  3  0.220946
  4  0.203643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446400': 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) = 5546.57772326
delta logL = 0.571785944127

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  6.136e+01  5.996e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.933e+00  6.407e-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:  8.893e-01  2.036e-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.712e-01  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 1.93 +/- 0.64
Photon Flux (Free Index): 2.64e-08 +/- 3.29e-08
Energy Flux (Free Index): 2.17e-05 +/- 2.80e-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/446400/cmap_HighResolution_629164801_629424001_4FGL_J2243.8-2510_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='2.17e-05', photon_flux_error='4.12e-08', dlogl='5.72e-01', energy_flux='9.99e-06', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-28 19:16:21.550088', photon_index_error2='0.64', photon_index2='1.93', ts='1.63', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='2.80e-05', EG='0.94', time_epoch_completed='1632881781.55', return_code='0', job_id='446400', GAL2='0.89', EG2='0.97', return_code2='0', energy_flux_error='9.88e-06', photon_flux_error2='3.29e-08', ts2='2.78', photon_index='2.71' WHERE bin_id='1504' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 446400: <4FGL_J2243.8-2510_daily_bin1504> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1504> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:12 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05:15 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:05:15 2021
Terminated at Tue Sep 28 19:16:22 2021
Results reported at Tue Sep 28 19:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1504 340.957 -25.1701 629164801 629424001 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 :                                   607.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            670 sec.

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

