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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1506
RA = 340.865, Dec = -25.7363
tmin = 629683201, tmax = 629942401
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='438524', job_status='RUN', time_executed='2021-09-28 18:41:38.049468', time_epoch_executed='1632879698.05' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438524/ft1_4FGL_J2243.4-2544_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438524/ft1_4FGL_J2243.4-2544_daily_bin1506.fits outfile=/scratch/kocevski/438524/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1506.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=629683201.0 tmax=629942401.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.53
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.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/438524/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1506.fits evtable="EVENTS" outfile="/scratch/kocevski/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/438524/ltcube_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.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/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits
.....................!
real 15.28
user 14.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/438524/ltcube_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.fits outfile=/scratch/kocevski/438524/expmap_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.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/438524/ltcube_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.fits
.....................!
real 193.79
user 188.61
sys 4.79

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/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits scfile=/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits outfile=/scratch/kocevski/438524/cmap_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits scfile=/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits outfile=/scratch/kocevski/438524/cmap_HighResolution_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438524/Model_4FGL_J2243.4-2544_daily_bin1506.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/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits.....................!
real 50.47
user 49.05
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits', '/scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits', expMap='/scratch/kocevski/438524/expmap_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.fits', expCube='/scratch/kocevski/438524/ltcube_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438524/Model_4FGL_J2243.4-2544_daily_bin1506.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/438524/ft1_filtered_4FGL_J2243.4-2544_daily_bin1506.fits
Spacecraft file(s): /scratch/kocevski/438524/ft2_4FGL_J2243.4-2544_daily_bin1506.fits
Exposure map: /scratch/kocevski/438524/expmap_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.fits
Exposure cube: /scratch/kocevski/438524/ltcube_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438524/Model_4FGL_J2243.4-2544_daily_bin1506.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) = 6353.5019189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54120E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.180       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1337       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5914       1.0000         .10000E-03   10000.    
     8 'norm      '    12.890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.253       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4608       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9222       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.815       1.0000         .10000E-03   10000.    
    15 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1698       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2421       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18303E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1889       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.802       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1751       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .54193       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=   6353.475     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2938 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    97.702        .12386E-03** at limit **
   2  Prefactor     49.144        65.342       -.41620E-04   -.53644E-03
   3  norm          1.1337        .38199        .23295E-06   -.56915E-02
   4  Prefactor     .10000E-03    3.1951        .30774E-06** at limit **
   5  Prefactor     .10000E-03    15.630        .31001E-06** at limit **
   6  Prefactor     .10000E-03    2.6509        .55759E-07** at limit **
   7  Prefactor     2.5764        57.286        .69194E-05   -.80033E-04
   8  norm          12.890        12.870       -.22412E-06    .14224E-04
   9  Prefactor     31.250        19.152        .84050E-06   -.77256E-04
  10  Prefactor     .10000E-03    8.2074       -.68895E-06** at limit **
  11  norm          1.4609        .81752       -.11711E-06   -.56410E-04
  12  norm          2.9222        2.0116       -.16569E-06   -.18028E-05
  13  Prefactor     .10000E-03    28.190       -.20353E-05** at limit **
  14  Prefactor     10.811        10.559       -.15982E-05    .13978E-03
  15  norm          .10000E-03    2.4979       -.13425E-07** at limit **
  16  Prefactor     6.0251        12.357        .35668E-05   -.27194E-03
  17  Prefactor     8.1684        10.868       -.10583E-05   -.27571E-03
  18  norm          1.2419        .61072       -.72209E-07    .32852E-04
  19  Prefactor     .10007E-03    145.56       -.40607E-04** at limit **
  20  Prefactor     5.1895        9.3082       -.71656E-06   -.12208E-03
  21  Prefactor     .10000E-03    4.5987       -.39503E-07** at limit **
  22  norm          .10000E-03    .92005        .64683E-07** at limit **
  23  Prefactor     16.803        20.110       -.88877E-06    .31866E-04
  24  Normalizat    1.1750        .16858        .23430E-05   -.49154E-03
  25  Prefactor     .54194        .15064       -.55577E-06   -.21840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100064
  Prefactor  = 49.1444
  norm       = 1.13373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.57639
  norm       = 12.8904
  Prefactor  = 31.2502
  Prefactor  = 0.0001
  norm       = 1.46093
  norm       = 2.92222
  Prefactor  = 0.0001
  Prefactor  = 10.8113
  norm       = 0.0001
  Prefactor  = 6.02508
  Prefactor  = 8.16839
  norm       = 1.24192
  Prefactor  = 0.000100068
  Prefactor  = 5.18953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8028
  Normalizat = 1.17502
  Prefactor  = 0.541939
 **********
 **   18 **HESSE 
 **********

 FCN=   6353.475     FROM HESSE     STATUS=OK           423 CALLS     3361 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    102.36        .42235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.144        68.193        .57182E-04   -1.4305    
   3  norm          1.1337        .38127        .27178E-04   -1.5495    
   4  Prefactor     .10000E-03    3.2057        .13913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7238        .25344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5764        57.286        .25347E-03   -1.5387    
   8  norm          12.890        12.868        .11157E-03   -1.4990    
   9  Prefactor     31.250        19.150        .71672E-04   -1.4589    
  10  Prefactor     .10000E-03    8.2995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4609        .81435        .52076E-04   -1.5466    
  12  norm          2.9222        2.0072        .90117E-04   -1.5366    
  13  Prefactor     .10000E-03    28.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.811        10.603        .12183E-03   -1.5050    
  15  norm          .10000E-03    2.5549        .24520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0251        12.272        .16353E-03   -1.5217    
  17  Prefactor     8.1684        11.097        .14027E-03   -1.5136    
  18  norm          1.2419        .62473        .35824E-04   -1.5485    
  19  Prefactor     .10007E-03    146.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1895        9.3035        .17648E-03   -1.5252    
  21  Prefactor     .10000E-03    4.6182        .16660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .92611        .74649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.803        20.113        .97709E-04   -1.4888    
  24  Normalizat    1.1750        .19997        .20808E-03   -.87378    
  25  Prefactor     .54194        .17726        .27248E-03   -1.1009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20921e-09
Minuit parameter uncertainties:
  1  0.00511982
  2  68.3018
  3  0.381273
  4  1.76638e-05
  5  6.47084e-05
  6  5.75414e-06
  7  24.3233
  8  12.8709
  9  19.1541
  10  5.87448e-06
  11  0.814355
  12  2.00729
  13  0.000115762
  14  10.6045
  15  1.13025e-05
  16  12.2775
  17  11.1002
  18  0.624737
  19  0.0063403
  20  9.30605
  21  5.168e-06
  22  2.6657e-06
  23  20.1214
  24  0.200101
  25  0.177441
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.922e+00  2.007e+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:  5.419e-01  1.774e-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:  1.175e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.95
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.24e-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) = 6353.18476049
delta logL = 0.289798361078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6353.18130902
delta logL = 0.293249823295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1692       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5742       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53608       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=   6353.181     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1692        6.3580        .56914E-02   -.24451E-02
   2  alpha         1.5743        1.2516        .40005       -.52561E-05
   3  Normalizat    1.1862        .16786        .35238E-01    .21678E-05
   4  Prefactor     .53610        .15264        .61894E-01    .30323E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16918
  alpha      = 1.57426
  Normalizat = 1.18621
  Prefactor  = 0.5361
 **********
 **   18 **HESSE 
 **********

 FCN=   6353.181     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1692        2.2253        .95621E-04   -1.5352    
   2  alpha         1.5743        .53154        .15147E-01   -.37933    
   3  Normalizat    1.1862        .18466        .20726E-03   -.87030    
   4  Prefactor     .53610        .17050        .27386E-03   -1.1035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70277e-10
Minuit parameter uncertainties:
  1  2.22536
  2  0.536291
  3  0.184762
  4  0.170667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438524': 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) = 6353.18130902
delta logL = 0.293249830833

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.169e+00  2.225e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.574e+00  5.363e-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:  5.361e-01  1.707e-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:  1.186e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.56
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.57 +/- 0.54
Photon Flux (Free Index): 1.93e-08 +/- 1.71e-08
Energy Flux (Free Index): 2.82e-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/438524/cmap_HighResolution_629683201_629942401_4FGL_J2243.4-2544_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='2.82e-05', photon_flux_error='1.94e-08', dlogl='2.93e-01', energy_flux='1.80e-05', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-09-28 18:51:50.599172', photon_index_error2='0.54', photon_index2='1.57', ts='4.95', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='2.68e-05', EG='1.18', time_epoch_completed='1632880310.6', return_code='0', job_id='438524', GAL2='0.54', EG2='1.19', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='1.71e-08', ts2='5.56', photon_index='2.00' WHERE bin_id='1506' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:51:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 438524: <4FGL_J2243.4-2544_daily_bin1506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1506 340.865 -25.7363 629683201 629942401 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 :                                   600.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

