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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1339
RA = 340.865, Dec = -25.7363
tmin = 586396801, tmax = 586656001
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='438282', job_status='RUN', time_executed='2021-09-28 18:41:57.019377', time_epoch_executed='1632879717.02' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438282

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438282/ft1_4FGL_J2243.4-2544_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438282/ft2_4FGL_J2243.4-2544_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438282/ft1_4FGL_J2243.4-2544_daily_bin1339.fits outfile=/scratch/kocevski/438282/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1339.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.58
user 2.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438282/ft1_filtered_4FGL_J2243.4-2544_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/438282/ft2_4FGL_J2243.4-2544_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/438282/ltcube_586396801_586656001_4FGL_J2243.4-2544_daily_bin1339.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/438282/ft2_4FGL_J2243.4-2544_daily_bin1339.fits
.....................!
real 8.41
user 8.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438282/ft1_filtered_4FGL_J2243.4-2544_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/438282/ft2_4FGL_J2243.4-2544_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/438282/ltcube_586396801_586656001_4FGL_J2243.4-2544_daily_bin1339.fits outfile=/scratch/kocevski/438282/expmap_586396801_586656001_4FGL_J2243.4-2544_daily_bin1339.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/438282/ltcube_586396801_586656001_4FGL_J2243.4-2544_daily_bin1339.fits
.....................!
real 190.02
user 185.40
sys 4.28

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/438282/ft1_filtered_4FGL_J2243.4-2544_daily_bin1339.fits scfile=/scratch/kocevski/438282/ft2_4FGL_J2243.4-2544_daily_bin1339.fits outfile=/scratch/kocevski/438282/cmap_586396801_586656001_4FGL_J2243.4-2544_daily_bin1339.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.51
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438282/ft1_filtered_4FGL_J2243.4-2544_daily_bin1339.fits scfile=/scratch/kocevski/438282/ft2_4FGL_J2243.4-2544_daily_bin1339.fits outfile=/scratch/kocevski/438282/cmap_HighResolution_586396801_586656001_4FGL_J2243.4-2544_daily_bin1339.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.531       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .95016E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4898       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3745       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7192       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9075       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.593       1.0000         .10000E-03   10000.    
    22 'norm      '    6.2013       1.0000         .10000E-03   10000.    
    23 'Prefactor '    171.60       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.9300       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .32210       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=   3224.417     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2941 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.415        48.723        .10497E-06   -.12455E-03
   2  Prefactor     .10000E-03    195.63       -.67257E-05** at limit **
   3  norm          .94929E-01    .29806       -.47865E-07   -.16311E-03
   4  Prefactor     .10000E-03    7.7793       -.14612E-06** at limit **
   5  Prefactor     .10000E-03    31.687       -.19008E-06** at limit **
   6  Prefactor     .10000E-03    5.3973        .20688E-07** at limit **
   7  Prefactor     .10000E-03    35.212        .30512E-06** at limit **
   8  norm          .10000E-03    17.921       -.54782E-07** at limit **
   9  Prefactor     .10000E-03    20.645        .35094E-06** at limit **
  10  Prefactor     .10000E-03    6.1435       -.94941E-09** at limit **
  11  norm          3.4900        1.8023        .24515E-07   -.14021E-04
  12  norm          2.3746        2.2840       -.73117E-07   -.13223E-04
  13  Prefactor     .10000E-03    23.261       -.34197E-06** at limit **
  14  Prefactor     .10000E-03    47.327       -.49193E-06** at limit **
  15  norm          5.7193        5.7912       -.33181E-06    .64655E-05
  16  Prefactor     .10000E-03    10.152       -.66054E-07** at limit **
  17  Prefactor     8.9010        20.936        .49599E-05    .63191E-05
  18  norm          1.2320        .98515       -.21175E-06    .98634E-04
  19  Prefactor     .10000E-03    110.15        .22823E-06** at limit **
  20  Prefactor     .10000E-03    8.4400        .47074E-07** at limit **
  21  Prefactor     12.594        18.507       -.16578E-05   -.21966E-04
  22  norm          6.2018        6.8949        .17014E-05   -.28277E-05
  23  Prefactor     171.61        105.24       -.15707E-05    .10570E-05
  24  Normalizat    1.9301        .33055       -.85206E-06    .31123E-04
  25  Prefactor     .32192        .26967        .29745E-07   -.17363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.4152
  Prefactor  = 0.000100001
  norm       = 0.0949291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.48996
  norm       = 2.37458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71934
  Prefactor  = 0.0001
  Prefactor  = 8.90101
  norm       = 1.23199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5941
  norm       = 6.20181
  Prefactor  = 171.608
  Normalizat = 1.93008
  Prefactor  = 0.321923
 **********
 **   18 **HESSE 
 **********

 FCN=   3224.417     FROM HESSE     STATUS=OK           423 CALLS     3364 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.415        48.354        .25372E-03   -1.4126    
   2  Prefactor     .10000E-03    195.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .94929E-01    .26245        .52952E-03   -1.5646    
   4  Prefactor     .10000E-03    7.7913        .15467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4095        .12884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1489        .13746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4900        1.8010        .52895E-04   -1.5334    
  12  norm          2.3746        2.2875        .81934E-04   -1.5400    
  13  Prefactor     .10000E-03    23.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7193        5.7738        .12926E-03   -1.5230    
  16  Prefactor     .10000E-03    10.155        .17667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9010        21.126        .67148E-03   -1.5111    
  18  norm          1.2320        .98595        .43326E-04   -1.5486    
  19  Prefactor     .10000E-03    110.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4511        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.594        18.427        .11288E-03   -1.4998    
  22  norm          6.2018        6.8811        .72258E-03   -1.5210    
  23  Prefactor     171.61        105.35        .30800E-04   -1.3080    
  24  Normalizat    1.9301        .36003        .22557E-03   -.66315    
  25  Prefactor     .32192        .28997        .42097E-03   -1.2100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59498e-09
Minuit parameter uncertainties:
  1  48.3845
  2  0.000757629
  3  0.26245
  4  3.96355e-06
  5  3.56274e-06
  6  9.43652e-07
  7  0.000159767
  8  2.8229e-05
  9  0.000122199
  10  1.24967e-06
  11  1.801
  12  2.28753
  13  0.000152693
  14  0.000274252
  15  5.77433
  16  1.51763e-05
  17  21.144
  18  0.985963
  19  0.000118007
  20  1.44822e-06
  21  18.4354
  22  6.88199
  23  105.47
  24  0.360537
  25  0.291286
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.375e+00  2.288e+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:  3.219e-01  2.913e-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.930e+00  3.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.02
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.41e-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) = 3218.11855956
delta logL = 6.29869847514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3218.08526067
delta logL = 6.33199736497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25094       1.0000         .10000E-03   10000.    
     2 'alpha     '    .53391E-07   1.0000          .0000       5.0000    
     3 'Normalizat'    1.9365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .32537       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=   3218.085     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25064        .27594        .62694E-02   -.45869E-03
   2  alpha         .27756E-15    .26889        .46267    ** at limit **
   3  Normalizat    1.9363        .31413        .50932E-01   -.72083E-05
   4  Prefactor     .32567        .26244        .94474E-01    .27977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.250637
  alpha      = 2.77556e-16
  Normalizat = 1.93631
  Prefactor  = 0.325667
 **********
 **   18 **HESSE 
 **********

 FCN=   3218.085     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25064        .25080        .26053E-03   -1.5608    
   2  alpha         .27756E-15    .29308        .22120E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.9363        .33581        .22512E-03   -.66156    
   4  Prefactor     .32567        .27957        .41870E-03   -1.2079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82782e-13
Minuit parameter uncertainties:
  1  0.250797
  2  1.60754e-08
  3  0.336219
  4  0.280743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438282': 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) = 3218.08525916
delta logL = 6.33199888048

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.506e-01  2.508e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.776e-16  1.608e-08  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:  3.257e-01  2.807e-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.936e+00  3.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.69
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 6.14e-09 +/- 6.14e-09
Energy Flux (Free Index): 1.82e-04 +/- 1.82e-04

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/438282/cmap_HighResolution_586396801_586656001_4FGL_J2243.4-2544_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='1.82e-04', photon_flux_error='2.21e-08', dlogl='6.33e+00', energy_flux='1.46e-05', photon_flux2='6.14e-09', job_status='DONE', time_completed='2021-09-28 18:49:26.024264', photon_index_error2='0.00', photon_index2='0.00', ts='4.02', fit_tolerance='1e-08', GAL='0.32', photon_index_error='0.00', energy_flux_error2='1.82e-04', EG='1.93', time_epoch_completed='1632880166.02', return_code='0', job_id='438282', GAL2='0.33', EG2='1.94', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='6.14e-09', ts2='16.69', photon_index='2.00' WHERE bin_id='1339' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 438282: <4FGL_J2243.4-2544_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1339 340.865 -25.7363 586396801 586656001 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 :                                   444.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            529 sec.

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

