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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin523
RA = 340.865, Dec = -25.7363
tmin = 374889601, tmax = 375148801
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='434909', job_status='RUN', time_executed='2021-09-28 18:32:20.490844', time_epoch_executed='1632879140.49' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434909/ft1_4FGL_J2243.4-2544_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434909/ft2_4FGL_J2243.4-2544_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434909/ft1_4FGL_J2243.4-2544_daily_bin523.fits outfile=/scratch/kocevski/434909/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin523.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=374889601.0 tmax=375148801.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.52
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/434909/ft2_4FGL_J2243.4-2544_daily_bin523.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/434909/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin523.fits evtable="EVENTS" outfile="/scratch/kocevski/434909/ft1_filtered_4FGL_J2243.4-2544_daily_bin523.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434909/ft1_filtered_4FGL_J2243.4-2544_daily_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/434909/ft2_4FGL_J2243.4-2544_daily_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/434909/ltcube_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.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/434909/ft2_4FGL_J2243.4-2544_daily_bin523.fits
.....................!
real 11.83
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434909/ft1_filtered_4FGL_J2243.4-2544_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/434909/ft2_4FGL_J2243.4-2544_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/434909/ltcube_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.fits outfile=/scratch/kocevski/434909/expmap_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.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/434909/ltcube_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.fits
.....................!
real 192.08
user 187.08
sys 4.67

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/434909/ft1_filtered_4FGL_J2243.4-2544_daily_bin523.fits scfile=/scratch/kocevski/434909/ft2_4FGL_J2243.4-2544_daily_bin523.fits outfile=/scratch/kocevski/434909/cmap_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434909/ft1_filtered_4FGL_J2243.4-2544_daily_bin523.fits scfile=/scratch/kocevski/434909/ft2_4FGL_J2243.4-2544_daily_bin523.fits outfile=/scratch/kocevski/434909/cmap_HighResolution_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434909/ft1_filtered_4FGL_J2243.4-2544_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/434909/ft2_4FGL_J2243.4-2544_daily_bin523.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434909/Model_4FGL_J2243.4-2544_daily_bin523.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/434909/ft1_filtered_4FGL_J2243.4-2544_daily_bin523.fits.....................!
real 50.20
user 48.85
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4430       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9472       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6660       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5423       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.259       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8519       1.0000         .10000E-03   10000.    
    12 'norm      '    .66545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.877       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.705       1.0000         .10000E-03   10000.    
    15 'norm      '    .28699E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1047       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3880       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.066       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2601       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6785       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3227       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1415       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62959       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=   6298.772     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3442 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.730       -.22214E-06** at limit **
   2  Prefactor     .10000E-03    24.737        .48721E-06** at limit **
   3  norm          1.4430        .36837        .46458E-08   -.68740E-04
   4  Prefactor     2.9462        6.4392       -.18694E-05    .41995E-05
   5  Prefactor     9.6674        9.3105        .80174E-07   -.91092E-05
   6  Prefactor     1.5420        3.0667       -.39019E-07   -.18973E-05
   7  Prefactor     .10000E-03    82.024        .10337E-06** at limit **
   8  norm          15.478        16.620       -.61260E-06   -.54420E-04
   9  Prefactor     13.258        12.299        .38405E-08   -.39296E-05
  10  Prefactor     .10000E-03    6.6891        .32945E-06** at limit **
  11  norm          1.8519        .84955        .78515E-08   -.40660E-04
  12  norm          .66307        2.4460        .10723E-05   -.29519E-04
  13  Prefactor     51.966        58.196       -.72812E-06   -.35724E-04
  14  Prefactor     48.704        14.676       -.63823E-07   -.29252E-04
  15  norm          .10000E-03    16.887        .36616E-05** at limit **
  16  Prefactor     .10000E-03    9.0365       -.14095E-06** at limit **
  17  Prefactor     8.1202        11.655       -.88471E-07    .13922E-04
  18  norm          1.3880        .80964        .72745E-07   -.78137E-03
  19  Prefactor     38.116        51.571        .28391E-05    .32193E-04
  20  Prefactor     2.2590        13.862       -.23747E-06    .43955E-05
  21  Prefactor     3.6781        6.2359       -.20635E-06   -.97618E-05
  22  norm          2.3225        2.8138       -.17640E-07    .13239E-04
  23  Prefactor     .10000E-03    18.943       -.81524E-06** at limit **
  24  Normalizat    1.1414        .19010        .69979E-06   -.12485E-03
  25  Prefactor     .62974        .16507       -.97527E-06   -.59253E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44303
  Prefactor  = 2.94617
  Prefactor  = 9.66738
  Prefactor  = 1.54197
  Prefactor  = 0.0001
  norm       = 15.4782
  Prefactor  = 13.2583
  Prefactor  = 0.0001
  norm       = 1.85186
  norm       = 0.663072
  Prefactor  = 51.9661
  Prefactor  = 48.7035
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12016
  norm       = 1.38804
  Prefactor  = 38.1156
  Prefactor  = 2.25905
  Prefactor  = 3.67812
  norm       = 2.32247
  Prefactor  = 0.0001
  Normalizat = 1.1414
  Prefactor  = 0.629738
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.772     FROM HESSE     STATUS=OK           433 CALLS     3875 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4430        .36909        .23648E-04   -1.5468    
   4  Prefactor     2.9462        6.5141        .11829E-02   -1.5365    
   5  Prefactor     9.6674        9.3164        .12889E-03   -1.5086    
   6  Prefactor     1.5420        3.0264        .19065E-03   -1.5460    
   7  Prefactor     .10000E-03    82.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.478        16.648        .10181E-03   -1.4921    
   9  Prefactor     13.258        12.298        .11000E-03   -1.4980    
  10  Prefactor     .10000E-03    6.7361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8519        .85118        .48112E-04   -1.5436    
  12  norm          .66307        2.4622        .19315E-03   -1.5545    
  13  Prefactor     51.966        58.901        .55683E-04   -1.4265    
  14  Prefactor     48.704        14.724        .57459E-04   -1.4311    
  15  norm          .10000E-03    16.585        .20720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1202        12.019        .14083E-03   -1.5138    
  18  norm          1.3880        .84751        .40498E-04   -1.5472    
  19  Prefactor     38.116        51.828        .64962E-04   -1.4472    
  20  Prefactor     2.2590        13.876        .27325E-03   -1.5407    
  21  Prefactor     3.6781        6.1830        .21059E-03   -1.5324    
  22  norm          2.3225        2.7996        .14226E-03   -1.5403    
  23  Prefactor     .10000E-03    18.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1414        .22446        .22899E-03   -.88433    
  25  Prefactor     .62974        .19484        .27227E-03   -1.0635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98236e-11
Minuit parameter uncertainties:
  1  3.58315e-07
  2  3.13469e-05
  3  0.369089
  4  6.51562
  5  9.31781
  6  3.02675
  7  0.000108768
  8  16.6529
  9  12.2999
  10  1.55301e-05
  11  0.851188
  12  2.46262
  13  58.9674
  14  14.7247
  15  1.90361e-05
  16  1.15991e-05
  17  12.023
  18  0.847513
  19  51.8898
  20  11.2013
  21  6.18409
  22  2.7998
  23  1.69497e-05
  24  0.224648
  25  0.195049
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  6.631e-01  2.463e+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:  6.297e-01  1.950e-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.141e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434909/likelihoodResults_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.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) = 6298.47877738
delta logL = 0.292926806746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6298.32927359
delta logL = 0.442430594589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81552E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2593       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66573       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=   6298.329     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80466E-01    1.1649        .51326E-02    .33665E-02
   2  alpha         4.2669        4.5585        .48480        .66741E-04
   3  Normalizat    1.0830        .32110E-01    .38737E-01    .10274E-04
   4  Prefactor     .66565        .29376E-01    .59972E-01    .16587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0804662
  alpha      = 4.26687
  Normalizat = 1.08301
  Prefactor  = 0.665646
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.329     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      261 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80466E-01    4.4615        .23138E-04   -1.5651    
   2  alpha         4.2669        3.2839        .21522E-02    .78489    
   3  Normalizat    1.0830        .21394        .23383E-03   -.90299    
   4  Prefactor     .66565        .19410        .26527E-03   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01929e-10
Minuit parameter uncertainties:
  1  1.19769
  2  7.08559
  3  0.214111
  4  0.194296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434909': 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) = 6298.32926732
delta logL = 0.442436860435

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  8.047e-02  1.198e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  4.267e+00  7.086e+00  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:  6.656e-01  1.943e-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.083e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 4.27 +/- 7.09
Photon Flux (Free Index): 5.19e-08 +/- 5.66e-08
Energy Flux (Free Index): 7.99e-06 +/- 1.21e-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/434909/cmap_HighResolution_374889601_375148801_4FGL_J2243.4-2544_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', comment='SUCCESS', energy_flux2='7.99e-06', dlogl='4.42e-01', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-28 18:44:02.999897', photon_index_error2='7.09', photon_index2='4.27', ts='0.12', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='6.03e-08', energy_flux_error2='1.21e-05', EG='1.14', time_epoch_completed='1632879843.0', return_code='0', job_id='434909', GAL2='0.67', EG2='1.08', return_code2='102', photon_flux_error2='5.66e-08', ts2='1.06', photon_index='2.00' WHERE bin_id='523' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:44:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 434909: <4FGL_J2243.4-2544_daily_bin523> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin523> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:30:12 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:30:14 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:30:14 2021
Terminated at Tue Sep 28 18:44:03 2021
Results reported at Tue Sep 28 18:44:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin523 340.865 -25.7363 374889601 375148801 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 :                                   700.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

