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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin365
RA = 340.957, Dec = -25.1701
tmin = 333936001, tmax = 334195201
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='441634', job_status='RUN', time_executed='2021-09-28 18:51:45.029007', time_epoch_executed='1632880305.03' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441634/ft1_4FGL_J2243.8-2510_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441634/ft2_4FGL_J2243.8-2510_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441634/ft1_4FGL_J2243.8-2510_daily_bin365.fits outfile=/scratch/kocevski/441634/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin365.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=333936001.0 tmax=334195201.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.57
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441634/ft1_filtered_4FGL_J2243.8-2510_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/441634/ft2_4FGL_J2243.8-2510_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/441634/ltcube_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.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/441634/ft2_4FGL_J2243.8-2510_daily_bin365.fits
.....................!
real 12.75
user 12.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441634/ft1_filtered_4FGL_J2243.8-2510_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/441634/ft2_4FGL_J2243.8-2510_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/441634/ltcube_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.fits outfile=/scratch/kocevski/441634/expmap_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.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/441634/ltcube_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.fits
.....................!
real 190.52
user 184.91
sys 5.24

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/441634/ft1_filtered_4FGL_J2243.8-2510_daily_bin365.fits scfile=/scratch/kocevski/441634/ft2_4FGL_J2243.8-2510_daily_bin365.fits outfile=/scratch/kocevski/441634/cmap_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.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/441634/ft1_filtered_4FGL_J2243.8-2510_daily_bin365.fits scfile=/scratch/kocevski/441634/ft2_4FGL_J2243.8-2510_daily_bin365.fits outfile=/scratch/kocevski/441634/cmap_HighResolution_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/441634/ft1_filtered_4FGL_J2243.8-2510_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/441634/ft2_4FGL_J2243.8-2510_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/441634/Model_4FGL_J2243.8-2510_daily_bin365.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/441634/ft1_filtered_4FGL_J2243.8-2510_daily_bin365.fits....................!
real 46.79
user 45.17
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34344E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2173       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9970       1.0000         .10000E-03   10000.    
     7 'norm      '    23.131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.816       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.987       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0973       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25871E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    28.832       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.757       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0082       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3272       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67478       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=   5291.900     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2704 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    544.39       -.13357E-03** at limit **
   2  norm          1.2171        .39616        .31186E-07    .14148E-02
   3  Prefactor     .10000E-03    5.1503       -.27170E-06** at limit **
   4  Prefactor     11.314        17.525        .60343E-06   -.34992E-05
   5  Prefactor     .10000E-03    15.345        .19244E-05** at limit **
   6  Prefactor     3.0071        329.70        .24427E-04   -.87993E-05
   7  norm          23.133        21.583       -.24084E-05   -.19018E-03
   8  Prefactor     54.827        31.243       -.70958E-05   -.24260E-04
   9  Prefactor     14.989        17.136       -.17550E-05   -.74884E-03
  10  norm          2.0975        1.1651       -.16233E-06   -.40381E-03
  11  norm          .10000E-03    .96675       -.76064E-07** at limit **
  12  Prefactor     .10001E-03    238.91        .14545E-03** at limit **
  13  Prefactor     .10000E-03    9.4877        .20734E-06** at limit **
  14  norm          28.831        7.4804       -.30216E-06   -.94566E-03
  15  Prefactor     14.755        10.727       -.63409E-06   -.19098E-03
  16  Prefactor     .10000E-03    2.2861       -.23548E-06** at limit **
  17  norm          .10000E-03    .21837       -.35513E-07** at limit **
  18  Prefactor     .10000E-03    55.496       -.51079E-06** at limit **
  19  Prefactor     .10000E-03    13.131        .19476E-06** at limit **
  20  Prefactor     .10000E-03    5.8419        .37199E-07** at limit **
  21  norm          1.0086        2.7071       -.85298E-06   -.11618E-02
  22  Prefactor     .10000E-03    15.236       -.22288E-05** at limit **
  23  Normalizat    1.3268        .20556        .81045E-06   -.39792E-03
  24  Prefactor     .67497        .17794        .21234E-06   -.16926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  norm       = 1.21712
  Prefactor  = 0.0001
  Prefactor  = 11.3141
  Prefactor  = 0.0001
  Prefactor  = 3.00713
  norm       = 23.1327
  Prefactor  = 54.8267
  Prefactor  = 14.9887
  norm       = 2.09752
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 28.8313
  Prefactor  = 14.7554
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00856
  Prefactor  = 0.0001
  Normalizat = 1.32684
  Prefactor  = 0.674967
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.900     FROM HESSE     STATUS=OK           391 CALLS     3095 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    549.82        .19677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2171        .39746        .25413E-04   -1.5487    
   3  Prefactor     .10000E-03    5.2068        .16120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.314        17.529        .11910E-03   -1.5035    
   5  Prefactor     .10000E-03    15.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0071        326.68        .23448E-03   -1.5361    
   7  norm          23.133        21.598        .83286E-04   -1.4746    
   8  Prefactor     54.827        31.269        .54177E-04   -1.4226    
   9  Prefactor     14.989        17.248        .10346E-03   -1.4933    
  10  norm          2.0975        1.1594        .55472E-04   -1.5418    
  11  norm          .10000E-03    .97183        .69810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    240.00        .21451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.831        7.4653        .74614E-04   -1.4634    
  15  Prefactor     14.755        10.708        .10426E-03   -1.4940    
  16  Prefactor     .10000E-03    2.2887        .10739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .28115        .65765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8678        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0086        2.4280        .19052E-02   -1.5507    
  22  Prefactor     .10000E-03    15.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3268        .24686        .23770E-03   -.82769    
  24  Prefactor     .67497        .21225        .28202E-03   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98168e-09
Minuit parameter uncertainties:
  1  0.00460016
  2  0.397459
  3  9.20217e-07
  4  17.5367
  5  0.000120013
  6  63.0402
  7  21.6052
  8  31.278
  9  17.2534
  10  1.15939
  11  5.17192e-06
  12  0.00304146
  13  2.25524e-05
  14  7.46551
  15  10.7091
  16  1.74087e-06
  17  7.75122e-07
  18  2.88371e-05
  19  1.63952e-05
  20  3.57141e-06
  21  2.42824
  22  5.0003e-06
  23  0.247076
  24  0.212509
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.041e-03  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.750e-01  2.125e-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.327e+00  2.471e-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: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441634/likelihoodResults_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.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) = 5291.89981292
delta logL = -1.97089411813e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5291.89979329
delta logL = -7.82893039286e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6775       1.0000          .0000       10.000    
     3 'Normalizat'    1.3268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67497       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=   5291.263     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      299 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5209        30.242        .90712E-02   -.96472E-03
   2  Index         5.2496        3.7969        .12943       -.54602E-04
   3  Normalizat    1.2350        .55076E-01    .55297E-01   -.35548E-03
   4  Prefactor     .72741        .48462E-01    .61590E-01   -.32190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52087
  Index      = 5.24955
  Normalizat = 1.23497
  Prefactor  = 0.727408
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.263     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5209        67.554        .81521E-04   -1.5461    
   2  Index         5.2496        7.6194        .63970E-02    .49931E-01
   3  Normalizat    1.2350        .20881        .24452E-03   -.85529    
   4  Prefactor     .72741        .17973        .27243E-03   -1.0246    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.61393e-10
Minuit parameter uncertainties:
  1  20.296
  2  7.76508
  3  0.208955
  4  0.179878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441634': 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) = 5291.26283851
delta logL = 0.636954705548

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.521e+00  2.030e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  5.250e+00  7.765e+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:  7.274e-01  1.799e-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.235e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 5.25 +/- 7.77
Photon Flux (Free Index): 8.23e-08 +/- 8.05e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.36e-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/441634/cmap_HighResolution_333936001_334195201_4FGL_J2243.8-2510_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='6.37e-01', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-09-28 19:01:38.988769', photon_index_error2='7.77', photon_index2='5.25', ts='-0.00', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.36e-05', EG='1.33', time_epoch_completed='1632880898.99', return_code='0', job_id='441634', GAL2='0.73', EG2='1.23', return_code2='102', photon_flux_error2='8.05e-08', ts2='1.38', photon_index='2.71' WHERE bin_id='365' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:01:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 441634: <4FGL_J2243.8-2510_daily_bin365> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin365> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:50:17 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:50:19 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:50:19 2021
Terminated at Tue Sep 28 19:01:39 2021
Results reported at Tue Sep 28 19:01:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin365 340.957 -25.1701 333936001 334195201 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 :                                   593.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

