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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1049
RA = 340.865, Dec = -25.7363
tmin = 511228801, tmax = 511488001
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='436783', job_status='RUN', time_executed='2021-09-28 18:36:42.261047', time_epoch_executed='1632879402.26' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436783/ft1_4FGL_J2243.4-2544_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436783/ft2_4FGL_J2243.4-2544_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436783/ft1_4FGL_J2243.4-2544_daily_bin1049.fits outfile=/scratch/kocevski/436783/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1049.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=511228801.0 tmax=511488001.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.50
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436783/ft1_filtered_4FGL_J2243.4-2544_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/436783/ft2_4FGL_J2243.4-2544_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/436783/ltcube_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.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/436783/ft2_4FGL_J2243.4-2544_daily_bin1049.fits
.....................!
real 11.56
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436783/ft1_filtered_4FGL_J2243.4-2544_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/436783/ft2_4FGL_J2243.4-2544_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/436783/ltcube_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.fits outfile=/scratch/kocevski/436783/expmap_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.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/436783/ltcube_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.fits
.....................!
real 189.61
user 185.18
sys 4.12

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/436783/ft1_filtered_4FGL_J2243.4-2544_daily_bin1049.fits scfile=/scratch/kocevski/436783/ft2_4FGL_J2243.4-2544_daily_bin1049.fits outfile=/scratch/kocevski/436783/cmap_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436783/ft1_filtered_4FGL_J2243.4-2544_daily_bin1049.fits scfile=/scratch/kocevski/436783/ft2_4FGL_J2243.4-2544_daily_bin1049.fits outfile=/scratch/kocevski/436783/cmap_HighResolution_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436783/ft1_filtered_4FGL_J2243.4-2544_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/436783/ft2_4FGL_J2243.4-2544_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436783/Model_4FGL_J2243.4-2544_daily_bin1049.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/436783/ft1_filtered_4FGL_J2243.4-2544_daily_bin1049.fits.....................!
real 58.62
user 57.33
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    168.05       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.477       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    88.586       1.0000         .10000E-03   10000.    
     8 'norm      '    19.724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .29509       1.0000         .10000E-03   10000.    
    12 'norm      '    .83898       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.349       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .37628       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.071       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.643       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60598       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2131       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=   7808.829     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2917 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.450        .17673E-06** at limit **
   2  Prefactor     168.06        72.871        .15965E-06    .19552E-04
   3  norm          3.1443        .50282        .17476E-08    .18585E-04
   4  Prefactor     .10000E-03    2.5133       -.14092E-07** at limit **
   5  Prefactor     23.482        15.767        .33448E-07   -.67429E-04
   6  Prefactor     .10000E-03    2.8081       -.29088E-07** at limit **
   7  Prefactor     88.631        52.371        .27725E-06    .15907E-03
   8  norm          19.728        20.610        .13845E-06   -.28709E-04
   9  Prefactor     .10000E-03    12.493       -.38785E-07** at limit **
  10  Prefactor     .10000E-03    5.1522       -.57185E-07** at limit **
  11  norm          .29509        .42646        .53059E-06    .13881E-02
  12  norm          .83892        2.0607        .10247E-06   -.29992E-04
  13  Prefactor     36.344        37.359       -.24635E-06   -.34521E-04
  14  Prefactor     .10000E-03    2.2922       -.22616E-07** at limit **
  15  norm          .10000E-03    .72316       -.26346E-07** at limit **
  16  Prefactor     .10000E-03    3.1582       -.65875E-07** at limit **
  17  Prefactor     .10000E-03    1.4476       -.87903E-07** at limit **
  18  norm          .37641        .34843       -.80581E-07   -.52699E-03
  19  Prefactor     .10000E-03    102.23       -.42464E-07** at limit **
  20  Prefactor     10.757        7.0158       -.92937E-09   -.18661E-04
  21  Prefactor     11.070        8.3381        .11648E-05   -.72229E-03
  22  norm          .10000E-03    .74875       -.20222E-09** at limit **
  23  Prefactor     16.645        28.966        .14865E-06    .14978E-05
  24  Normalizat    .60584        .15862       -.13394E-06   -.75292E-04
  25  Prefactor     1.2132        .15383       -.29412E-06   -.26525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 168.059
  norm       = 3.14434
  Prefactor  = 0.0001
  Prefactor  = 23.482
  Prefactor  = 0.0001
  Prefactor  = 88.6307
  norm       = 19.7277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.29509
  norm       = 0.838921
  Prefactor  = 36.3441
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.376409
  Prefactor  = 0.0001
  Prefactor  = 10.7565
  Prefactor  = 11.0697
  norm       = 0.0001
  Prefactor  = 16.6452
  Normalizat = 0.605845
  Prefactor  = 1.21319
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.829     FROM HESSE     STATUS=OK           429 CALLS     3346 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     168.06        72.807        .31119E-04   -1.3108    
   3  norm          3.1443        .50357        .24111E-04   -1.5353    
   4  Prefactor     .10000E-03    2.5202        .13680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.482        15.769        .82671E-04   -1.4738    
   6  Prefactor     .10000E-03    2.8286        .14457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     88.631        52.129        .21345E-03   -1.3822    
   8  norm          19.728        20.492        .90186E-04   -1.4819    
   9  Prefactor     .10000E-03    12.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .29509        .41333        .82437E-03   -1.5599    
  12  norm          .83892        1.6380        .15277E-02   -1.5525    
  13  Prefactor     36.344        34.789        .66473E-04   -1.4502    
  14  Prefactor     .10000E-03    2.2990        .13064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .72617        .73364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.1665        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.4519        .10374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .37641        .32583        .46488E-03   -1.5585    
  19  Prefactor     .10000E-03    103.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.757        7.0168        .12216E-03   -1.5052    
  21  Prefactor     11.070        7.9689        .60204E-03   -1.5042    
  22  norm          .10000E-03    .75088        .74638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.645        28.968        .98175E-04   -1.4892    
  24  Normalizat    .60584        .18398        .29633E-03   -1.0774    
  25  Prefactor     1.2132        .17898        .21279E-03   -.85926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03445e-09
Minuit parameter uncertainties:
  1  3.21743e-05
  2  72.8457
  3  0.503575
  4  1.78545e-06
  5  15.7714
  6  3.50105e-06
  7  52.1555
  8  20.4995
  9  1.40975e-05
  10  5.98807e-06
  11  0.413339
  12  1.6381
  13  34.8088
  14  1.90223e-06
  15  1.34163e-07
  16  1.89754e-06
  17  1.82894e-06
  18  0.325829
  19  0.000159438
  20  7.01732
  21  7.96968
  22  1.12609e-07
  23  28.9929
  24  0.184169
  25  0.179073
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  8.389e-01  1.638e+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:  1.213e+00  1.791e-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:  6.058e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/436783/likelihoodResults_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7808.69109916
delta logL = 0.137775271309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7808.68343139
delta logL = 0.145443037934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71078       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5401       1.0000          .0000       5.0000    
     3 'Normalizat'    .59917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2156       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=   7808.683     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70947        16.021        .23022E-01    .12102E-02
   2  alpha         2.5418        3.7533        .41158        .43781E-04
   3  Normalizat    .59909        .24052E-01    .67292E-01    .34556E-04
   4  Prefactor     1.2157        .23780E-01    .34273E-01   -.11362E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.709474
  alpha      = 2.54175
  Normalizat = 0.59909
  Prefactor  = 1.21567
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.683     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70947        1.4098        .10934E-02   -1.5540    
   2  alpha         2.5418        1.1186        .19385E-01    .16701E-01
   3  Normalizat    .59909        .17976        .29781E-03   -1.0802    
   4  Prefactor     1.2157        .17791        .21253E-03   -.85850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86019e-09
Minuit parameter uncertainties:
  1  1.4099
  2  1.1598
  3  0.179937
  4  0.177995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436783': 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) = 7808.68342968
delta logL = 0.145444753159

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  7.095e-01  1.410e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.542e+00  1.160e+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:  1.216e+00  1.780e-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:  5.991e-01  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 340.865 -25.736

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/436783/cmap_HighResolution_511228801_511488001_4FGL_J2243.4-2544_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2021-09-28 18:49:03.721284', job_id='436783', GAL2='1.22', fit_tolerance='1e-08', EG2='0.60', EG='0.61', time_epoch_completed='1632880143.72', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.45e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1049' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:49:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 436783: <4FGL_J2243.4-2544_daily_bin1049> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1049> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:39 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:41 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:35:41 2021
Terminated at Tue Sep 28 18:49:04 2021
Results reported at Tue Sep 28 18:49:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1049 340.865 -25.7363 511228801 511488001 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 :                                   741.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

