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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1224
RA = 340.865, Dec = -25.7363
tmin = 556588801, tmax = 556848001
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='438115', job_status='RUN', time_executed='2021-09-28 18:41:31.967069', time_epoch_executed='1632879691.97' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438115/ft1_4FGL_J2243.4-2544_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438115/ft1_4FGL_J2243.4-2544_daily_bin1224.fits outfile=/scratch/kocevski/438115/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1224.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=556588801.0 tmax=556848001.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.70
user 3.45
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.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/438115/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.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.54
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/438115/ltcube_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.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/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits
.....................!
real 16.30
user 15.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/438115/ltcube_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.fits outfile=/scratch/kocevski/438115/expmap_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.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/438115/ltcube_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.fits
.....................!
real 193.06
user 186.45
sys 5.74

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.4-2544 @ 340.865 -25.7363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits scfile=/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits outfile=/scratch/kocevski/438115/cmap_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.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.865 yref=-25.7363 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits scfile=/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits outfile=/scratch/kocevski/438115/cmap_HighResolution_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.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.865 yref=-25.7363 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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438115/Model_4FGL_J2243.4-2544_daily_bin1224.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/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits.....................!
real 67.95
user 65.81
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits', '/scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits', expMap='/scratch/kocevski/438115/expmap_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.fits', expCube='/scratch/kocevski/438115/ltcube_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438115/Model_4FGL_J2243.4-2544_daily_bin1224.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.4-2544'

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.477e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/438115/ft1_filtered_4FGL_J2243.4-2544_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/438115/ft2_4FGL_J2243.4-2544_daily_bin1224.fits
Exposure map: /scratch/kocevski/438115/expmap_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.fits
Exposure cube: /scratch/kocevski/438115/ltcube_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438115/Model_4FGL_J2243.4-2544_daily_bin1224.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) = 9281.14178452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .69337       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.946       1.0000         .10000E-03   10000.    
     8 'norm      '    22.566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8117       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1246       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.032       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8380       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5653       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2569       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12401E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.945       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91587       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9281.118     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2966 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.056        .82458E-07** at limit **
   2  Prefactor     .10000E-03    43.233       -.29870E-06** at limit **
   3  norm          .69336        .24774        .57778E-08    .11381E-03
   4  Prefactor     1.6064        4.2243       -.99469E-06   -.11162E-02
   5  Prefactor     17.439        12.145       -.14438E-05   -.54504E-05
   6  Prefactor     9.4321        5.8975       -.10156E-06   -.91026E-04
   7  Prefactor     16.871        36.115        .21359E-04    .32649E-05
   8  norm          22.565        16.788        .31218E-05   -.20615E-04
   9  Prefactor     .10000E-03    12.540        .71821E-06** at limit **
  10  Prefactor     9.8123        10.015        .55555E-05   -.21584E-04
  11  norm          1.1241        .74939       -.27692E-06   -.11796E-02
  12  norm          2.7826        2.2573        .35007E-05   -.13070E-02
  13  Prefactor     22.947        49.014       -.47981E-04    .57881E-04
  14  Prefactor     2.8366        6.3871       -.15110E-05   -.47704E-03
  15  norm          1.0646        2.4734       -.42213E-06   -.12171E-02
  16  Prefactor     11.700        10.137        .51971E-06   -.12691E-04
  17  Prefactor     7.5675        10.074        .35057E-05   -.61687E-04
  18  norm          3.2567        .77176       -.10674E-06    .17521E-02
  19  Prefactor     .10000E-03    12.850       -.83383E-06** at limit **
  20  Prefactor     .70573        5.8676       -.10847E-05   -.23599E-03
  21  Prefactor     .10000E-03    6.0347        .70900E-07** at limit **
  22  norm          .10000E-03    1.0109       -.33240E-06** at limit **
  23  Prefactor     22.930        29.088        .63687E-05    .43748E-04
  24  Normalizat    .91617        .14535        .19907E-05   -.15977E-04
  25  Prefactor     .79612        .12777       -.18324E-05    .31572E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.693361
  Prefactor  = 1.6064
  Prefactor  = 17.439
  Prefactor  = 9.43211
  Prefactor  = 16.8708
  norm       = 22.5648
  Prefactor  = 0.0001
  Prefactor  = 9.81231
  norm       = 1.12407
  norm       = 2.78257
  Prefactor  = 22.9473
  Prefactor  = 2.83665
  norm       = 1.06461
  Prefactor  = 11.6997
  Prefactor  = 7.56752
  norm       = 3.2567
  Prefactor  = 0.0001
  Prefactor  = 0.705725
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.9304
  Normalizat = 0.91617
  Prefactor  = 0.79612
 **********
 **   18 **HESSE 
 **********

 FCN=   9281.118     FROM HESSE     STATUS=OK           443 CALLS     3409 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .69336        .24868        .27817E-04   -1.5541    
   4  Prefactor     1.6064        4.2060        .31066E-03   -1.5454    
   5  Prefactor     17.439        12.142        .95900E-04   -1.4873    
   6  Prefactor     9.4321        5.9270        .13047E-03   -1.5094    
   7  Prefactor     16.871        36.030        .97294E-04   -1.4886    
   8  norm          22.565        16.768        .84321E-04   -1.4758    
   9  Prefactor     .10000E-03    12.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8123        9.9654        .12793E-03   -1.5081    
  11  norm          1.1241        .73542        .65044E-04   -1.5496    
  12  norm          2.7826        2.2485        .10106E-03   -1.5374    
  13  Prefactor     22.947        48.605        .83464E-04   -1.4750    
  14  Prefactor     2.8366        6.3893        .24138E-03   -1.5371    
  15  norm          1.0646        1.9336        .20389E-02   -1.5502    
  16  Prefactor     11.700        10.091        .11713E-03   -1.5024    
  17  Prefactor     7.5675        10.039        .14580E-03   -1.5158    
  18  norm          3.2567        .79214        .32052E-04   -1.5347    
  19  Prefactor     .10000E-03    12.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .70573        24.207        .44284E-02   -1.5540    
  21  Prefactor     .10000E-03    6.0973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.2393        .18679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.930        28.980        .83622E-04   -1.4750    
  24  Normalizat    .91617        .17275        .24073E-03   -.95894    
  25  Prefactor     .79612        .15100        .23971E-03   -.99871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52829e-09
Minuit parameter uncertainties:
  1  1.56594e-05
  2  2.94929e-05
  3  0.248682
  4  4.20677
  5  12.1435
  6  5.92735
  7  36.0762
  8  16.7716
  9  1.84988e-06
  10  9.96711
  11  0.73543
  12  2.24857
  13  48.6891
  14  6.39086
  15  1.93372
  16  10.092
  17  10.0415
  18  0.792138
  19  5.1817e-07
  20  8.26951
  21  8.80016e-06
  22  6.37267e-05
  23  28.9973
  24  0.172855
  25  0.151079
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.783e+00  2.249e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  7.961e-01  1.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.162e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.69e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.38e-05

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) = 9280.39957079
delta logL = 0.718525009914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9280.39366105
delta logL = 0.724434754202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9704       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7120       1.0000          .0000       5.0000    
     3 'Normalizat'    .88447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9280.394     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9705        19.131        .73849E-03    .26904E-02
   2  alpha         2.7117        3.8401        .23658        .10273E-03
   3  Normalizat    .88453        .71748E-01    .44703E-01    .20735E-04
   4  Prefactor     .81125        .49589E-01    .43863E-01    .18725E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97051
  alpha      = 2.71173
  Normalizat = 0.884535
  Prefactor  = 0.811253
 **********
 **   18 **HESSE 
 **********

 FCN=   9280.394     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9705        1.8188        .14770E-03   -1.5427    
   2  alpha         2.7117        .65683        .11563E-01    .84794E-01
   3  Normalizat    .88453        .15849        .24410E-03   -.97006    
   4  Prefactor     .81125        .14633        .23742E-03   -.99315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02655e-11
Minuit parameter uncertainties:
  1  1.81889
  2  0.664686
  3  0.15857
  4  0.146396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438115': 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) = 9280.39366024
delta logL = 0.724435559803

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.971e+00  1.819e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.712e+00  6.647e-01  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.113e-01  1.464e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.845e-01  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.71 +/- 0.66
Photon Flux (Free Index): 5.84e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.62e-05 +/- 8.67e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/438115/cmap_HighResolution_556588801_556848001_4FGL_J2243.4-2544_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-08', energy_flux2='1.62e-05', photon_flux_error='2.18e-08', dlogl='7.24e-01', energy_flux='1.71e-05', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-28 18:54:03.490243', photon_index_error2='0.66', photon_index2='2.71', ts='4.69', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='8.67e-06', EG='0.92', time_epoch_completed='1632880443.49', return_code='0', job_id='438115', GAL2='0.81', EG2='0.88', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.91e-08', ts2='6.20', photon_index='2.00' WHERE bin_id='1224' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:54:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 438115: <4FGL_J2243.4-2544_daily_bin1224> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1224> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:25 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:26 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:40:26 2021
Terminated at Tue Sep 28 18:54:04 2021
Results reported at Tue Sep 28 18:54:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1224 340.865 -25.7363 556588801 556848001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.4-2544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

